id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,136,265 | Android Unit Test - retrofit and rxJava ,request never end | <p>I am start began to learn unit test at android,
and i try to execute http request with Retrofit2 and RxJava2
but when i executing current request it never end.
Here is my TestCase code:</p>
<pre><code>@RunWith(RobolectricTestRunner::class)
@Config(sdk = [Build.VERSION_CODES.O_MR1])
@FixMethodOrder(MethodSorters.NAM... | I am start began to learn unit test at android, and i try to execute http request with Retrofit2 and RxJava2 but when i executing current request it never end. Here is my TestCase code: [CODE] RxImmediateSchedulerRule : [CODE] Note: What i am trying to test is the real request and verify all fields. | android|unit-testing|kotlin|retrofit2|rx-java2 | 0 | 2020-02-09T11:47:06.397Z | 2,020 | 2 | 11 | 6 | 49 | 0 | 300 | 58 | 5 | 2 | true | true | false | false | false | false | zero |
60,136,307 | flutter pub get is stucking | <p>When I run in terminal <code>flutter pub get</code> is stuck it's showing</p>
<p>OS MacOS Catalina 10.15.3</p>
<pre><code>Got TLS error trying to find package launch_review at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 1 in 1 second... ... | When I run in terminal flutter pub get is stuck it's showing OS MacOS Catalina 10.15.3 [CODE] | android|flutter|flutter-dependencies|flutter-packages | 8 | 2020-02-09T11:52:18.643Z | 2,020 | 2 | 11 | 6 | 28,336 | 12 | 93 | 27 | 4 | 1 | true | false | true | true | false | false | medium |
60,136,321 | multiple edit text field on click problems | <p>Now, I created a number pad and I have multiple edit text and I have set the clicks for the numbers but they are only for the first edit text but I can't set it for the other editTexts</p>
<p>Here's a picture that explains what I mean</p>
<p><a href="https://i.stack.imgur.com/XUoLs.png" rel="nofollow noreferrer"><... | Now, I created a number pad and I have multiple edit text and I have set the clicks for the numbers but they are only for the first edit text but I can't set it for the other editTexts Here's a picture that explains what I mean My second question is: as displayed to you in the text watcher that I'm showing that when th... | android|android-edittext | 1 | 2020-02-09T11:53:56.780Z | 2,020 | 2 | 11 | 6 | 85 | 1 | 557 | 42 | 2 | 1 | true | false | false | false | false | false | low |
60,136,345 | Perform view touch event when user touch children | <p>I created a custom view library and set up a touch event for it. I want when the user touches one of children in custom view, it gets the same touch events with the touched child.</p>
<p>How do I do this?!</p>
<p>Thanks.
<br/>
<br/>
<br/>
Update Feb.16 / 2020</p>
<p>I add this code and it works fine:</p>
<pre><c... | I created a custom view library and set up a touch event for it. I want when the user touches one of children in custom view, it gets the same touch events with the touched child. How do I do this?! Thanks. Update Feb.16 / 2020 I add this code and it works fine: [CODE] | java|android|view|touch-event | 0 | 2020-02-09T11:56:21.377Z | 2,020 | 2 | 11 | 6 | 31 | 0 | 269 | 49 | 4 | 1 | true | true | false | false | false | false | zero |
60,136,405 | getting 401 Unauthorized error retrofit in android? | <p>I am facing problem when I am trying to login using retrofit.</p>
<p>Its shows 401 unauthorized. I have tried lots of times!</p>
<p>Can not find the exact solution! In postman/Advanced Rest Client its working fine.
What should I do to login, please anyone help!</p>
<p><a href="https://i.stack.imgur.com/R9TYU.png"... | I am facing problem when I am trying to login using retrofit. Its shows 401 unauthorized. I have tried lots of times! Can not find the exact solution! In postman/Advanced Rest Client its working fine. What should I do to login, please anyone help! In okhttp its shows the data postman also respose perfectly Client | android|retrofit|unauthorized | -1 | 2020-02-09T12:04:40.497Z | 2,020 | 2 | 12 | 6 | 271 | 2 | 314 | 51 | 3 | 0 | false | false | false | false | false | true | negative |
60,136,436 | Why does the paging library stop loading data after several calls? | <p>I implemented a paging library and it does not work quite as it should. I request data from the github and paginate the list of repositories. The code works well, but after several changes to the search query, it stops loading data. In the debug, the data always loads well. I guess the problem is asynchrony, but I c... | I implemented a paging library and it does not work quite as it should. I request data from the github and paginate the list of repositories. The code works well, but after several changes to the search query, it stops loading data. In the debug, the data always loads well. I guess the problem is asynchrony, but I can’... | java|android|paging | 0 | 2020-02-09T12:08:23.963Z | 2,020 | 2 | 12 | 6 | 623 | 1 | 496 | 66 | 3 | 6 | true | false | false | false | false | false | zero |
60,136,530 | which IP address should I make in the Post method? | <p>I made an API between an android application and a desktop application (java). I test that in local between android studio device and my desktop application and it works with local address: </p>
<pre><code>post("http://10.0.2.2:8080/api/v1/locations", json)
</code></pre>
<p>but now I want to install the app in my ... | I made an API between an android application and a desktop application (java). I test that in local between android studio device and my desktop application and it works with local address: [CODE] but now I want to install the app in my phone so I'm not in local anymore, I want to know which address should I make to po... | java|android|spring-boot|api | 0 | 2020-02-09T12:17:55.157Z | 2,020 | 2 | 12 | 6 | 97 | 1 | 367 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
60,136,537 | Is it possible to get the ndk's linker to run with multithreading enabled? | <p>we've a giant library consisting of millions lines of code, it is targeted for iOS and Android.</p>
<p>On iOS linking is super fast, several seconds.
On Android using the latest NDK to this date, it's by a factor slower, takes about 4 minutes on the same machine.</p>
<p>Note: I'm on macOS Mojave</p>
<p>When I che... | we've a giant library consisting of millions lines of code, it is targeted for iOS and Android. On iOS linking is super fast, several seconds. On Android using the latest NDK to this date, it's by a factor slower, takes about 4 minutes on the same machine. Note: I'm on macOS Mojave When I checked NDK's ld on activity m... | android|android-ndk|ld | 1 | 2020-02-09T12:18:47.937Z | 2,020 | 2 | 12 | 6 | 45 | 1 | 499 | 74 | 3 | 0 | false | false | false | false | false | false | low |
60,136,736 | GoogleApiClient is deprecated, New alternative | <pre><code>public class DriverMapActivity extends FragmentActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, com.google.android.gms.location.LocationListener {
private GoogleMap mMap;
GoogleApiClient mGoogleApiClient;
Location mLastLocat... | [CODE] I followed this tutorial , but all GoogleApiClients are crossed out and I don't understand why! | android|google-api | 2 | 2020-02-09T12:42:09.907Z | 2,020 | 2 | 12 | 6 | 16,877 | 1 | 102 | 46 | 2 | 1 | true | false | true | true | false | false | low |
60,136,779 | Zxing Android app won't open from website | <p>I trying to launch the zxing barecode scanner from website. It used to work 1 or two years ago.</p>
<p>Simple code is a <code>window.location = "zxing://scan/?ret...";</code></p>
<p>The console in Chrome output: <code>the destination zxing... was blocked.</code>.</p>
<p>I call the URL from IP without TLS. </p>
<... | I trying to launch the zxing barecode scanner from website. It used to work 1 or two years ago. Simple code is a window.location = "zxing://scan/?ret..."; The console in Chrome output: the destination zxing... was blocked. . I call the URL from IP without TLS. Is it because it's an old app, browser restriction or phone... | javascript|android|zxing | 0 | 2020-02-09T12:47:21.923Z | 2,020 | 2 | 12 | 6 | 225 | 1 | 469 | 41 | 3 | 0 | false | false | false | false | false | false | zero |
60,136,864 | BLE error : D/BluetoothLeScanner: Scan failed, reason: app registration failed | <p>I am getting this error sometimes while trying to scan BLE in android studio, usually after a while of using my app but cerntainly not all the time.
I am using a class especially for BT connection, this is what's inside:</p>
<pre><code>package com.omri.goniometer;
import android.app.Application;
import android.blu... | I am getting this error sometimes while trying to scan BLE in android studio, usually after a while of using my app but cerntainly not all the time. I am using a class especially for BT connection, this is what's inside: [CODE] Why is it not scanning? found a place that says you have to wait 5 seconds between D/Bluetoo... | android|bluetooth-lowenergy|bluetooth-gatt | 1 | 2020-02-09T12:56:26.460Z | 2,020 | 2 | 12 | 6 | 330 | 0 | 425 | 78 | 3 | 1 | true | true | false | false | false | false | low |
60,136,922 | Not using translation from string.xml on older systems | <p>In my app I am using another strings.xml for english translation. The language is changed via:</p>
<pre><code> private void saveLang(String lng) {
Locale locale = new Locale(lng);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().... | In my app I am using another strings.xml for english translation. The language is changed via: [CODE] The problem I noticed these days, that the english strings file is absolutely ignored on Android 6 and 7, but works fine on Android 8. So my question is, why the translation is not working on older devices, but works o... | android|translation | 0 | 2020-02-09T13:04:18.400Z | 2,020 | 2 | 13 | 6 | 23 | 1 | 397 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
60,136,966 | Twilio video sends me an error (NotReadableError: could not start video source) on my android-chrome browser (reactJS app) | <p>I have a nodeJS / reactJS app using twilio-video 2.1.0.</p>
<p>It works great, exept when I try to login via my chrome app on my smartphone (android) and someone got the same issue on a window tab (I don't know which browser).</p>
<p>The issue sent is "NotReadableError: could not start video source".</p>
<p>From ... | I have a nodeJS / reactJS app using twilio-video 2.1.0. It works great, exept when I try to login via my chrome app on my smartphone (android) and someone got the same issue on a window tab (I don't know which browser). The issue sent is "NotReadableError: could not start video source". From what I read, this is becaus... | android|reactjs|video|twilio | 1 | 2020-02-09T13:09:34.087Z | 2,020 | 2 | 13 | 6 | 1,298 | 1 | 592 | 122 | 4 | 1 | true | false | false | false | false | false | low |
60,136,968 | Cannot resolve Method "builder()" | <p>I want to send notifications to topics with FCM without using the Firebase console. When I build a new message with the help of <a href="https://firebase.google.com/docs/cloud-messaging/android/topic-messaging" rel="nofollow noreferrer">Firebase Documentation</a> it´s a problem.</p>
<p><a href="https://i.stack.imgu... | I want to send notifications to topics with FCM without using the Firebase console. When I build a new message with the help of Firebase Documentation it´s a problem. Picture of the problem Here my Codes: [CODE] | android|firebase|push-notification|firebase-cloud-messaging | 0 | 2020-02-09T13:09:51.437Z | 2,020 | 2 | 13 | 6 | 1,852 | 1 | 211 | 33 | 4 | 1 | true | false | false | false | false | false | zero |
60,137,269 | Make alignments with different views so that they are center aligned with each other | <pre><code>Android Studio 3.5.3
</code></pre>
<p>I have the following xml and using constraintLayout to align a 2 views and TextView with each other. However, The views need to be fixed at a MarginTop of 45dp. I need to adjust the MarginTop of the textview to get them to look like they are horizontally aligned. I thin... | [CODE] I have the following xml and using constraintLayout to align a 2 views and TextView with each other. However, The views need to be fixed at a MarginTop of 45dp. I need to adjust the MarginTop of the textview to get them to look like they are horizontally aligned. I think there must be a better way. So basically,... | android|android-constraintlayout | 0 | 2020-02-09T13:47:25.977Z | 2,020 | 2 | 13 | 6 | 18 | 1 | 540 | 84 | 2 | 2 | true | false | false | false | false | false | zero |
60,137,355 | ViewPager2 disable transition animation | <p>I have ViewPager2 connected with TabLayout. Other posts referring to ViewPager offer to override setCurrentItem(position, false) where false disables the smooth scroll. However, TabLayoutMediator calls onTabSelected(TabLayout.Tab tab) which calls viewpager.setCurrentItem(postion, true). How can I override this behav... | I have ViewPager2 connected with TabLayout. Other posts referring to ViewPager offer to override setCurrentItem(position, false) where false disables the smooth scroll. However, TabLayoutMediator calls onTabSelected(TabLayout.Tab tab) which calls viewpager.setCurrentItem(postion, true). How can I override this behavior... | android|android-tablayout|android-viewpager2 | 2 | 2020-02-09T13:56:33.537Z | 2,020 | 2 | 13 | 6 | 2,829 | 1 | 448 | 39 | 3 | 2 | true | false | true | false | false | false | low |
60,137,396 | How to display all hidden checkoboxes in a recyclerview on long press? | <p>I made a layout for an item, with a hidden checkbox. On a long press, I want to make all checkboxes for all item in the recyclerview visible. I've tried to implement a long click listener but on a long press of an item only the check box for this specific item becomes visible.</p> | I made a layout for an item, with a hidden checkbox. On a long press, I want to make all checkboxes for all item in the recyclerview visible. I've tried to implement a long click listener but on a long press of an item only the check box for this specific item becomes visible. | android|android-recyclerview|view|android-view|onlongclicklistener | 1 | 2020-02-09T14:01:59.450Z | 2,020 | 2 | 14 | 6 | 772 | 1 | 277 | 70 | 5 | 0 | false | false | false | false | false | false | low |
60,137,616 | Check if wifi is on or not inside a class in android | <p>I have this class:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>import android.content.Context;
import android.net.wifi.WifiManager;
import static androidx.core.content... | I have this class: [CODE] I want to return the state of wifi using this class and method. But I get an error for getSystemService(Context.WIFI_SERVICE) part: Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices | java|android|android-studio | 0 | 2020-02-09T14:24:47.203Z | 2,020 | 2 | 14 | 6 | 173 | 1 | 257 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
60,137,720 | View.draw(canvas) poor quality of child views | <p>I am trying to solve problem when I get bitmap from view (with bad quality of childviews) and store it as PNG. There are some taken pictures using this code:</p>
<pre><code>Bitmap b = Bitmap.createBitmap(
Math.round(General.getDisplayWidthPx()), Math.round(General.getDisplayHeightPx()), Bitm... | I am trying to solve problem when I get bitmap from view (with bad quality of childviews) and store it as PNG. There are some taken pictures using this code: [CODE] When the childview is small the quality of childview is terrible. But when it's larger the quality is better. As you can see the smaller the picture, the l... | android|image|canvas|bitmap|draw | 1 | 2020-02-09T14:36:13.377Z | 2,020 | 2 | 14 | 6 | 122 | 0 | 946 | 45 | 5 | 2 | true | true | false | false | false | false | low |
60,137,733 | Android Exception :- android.view.InflateException: Binary XML file line #11: Error inflating class android.support.design.widget.AppBarLayout | <p>While inflating Appbarlayout in lower version android device I Received FileNotFoundException from one particular device on the same screen. Following file "ic_download_active.png" is not part of my application but why it is trying to fetch? </p>
<pre><code> Caused by: android.content.res.Resources$NotFoundExceptio... | While inflating Appbarlayout in lower version android device I Received FileNotFoundException from one particular device on the same screen. Following file "ic_download_active.png" is not part of my application but why it is trying to fetch? [CODE] My AppBarLayout:- [CODE] Activity code android manifest :- [CODE] Style... | android|xml|android-activity|android-resources|android-inflate | 0 | 2020-02-09T14:38:05.800Z | 2,020 | 2 | 14 | 6 | 74 | 0 | 331 | 142 | 5 | 4 | true | true | false | false | false | false | zero |
60,137,804 | I am getting this "NullPointerException" Error | <p>I am getting this NullPointerException from the code that I got online for plotting a line graph using JSON.problem is I am an absolute beginner to android and I couldn't fix it please help. the code is as follow </p>
<p><strong>JSON file</strong></p>
<pre><code>{
"id": 1,
"coffee": [
{
"Date": "18:2... | I am getting this NullPointerException from the code that I got online for plotting a line graph using JSON.problem is I am an absolute beginner to android and I couldn't fix it please help. the code is as follow JSON file [CODE] AppController.java file [CODE] MainActivity.java file [CODE] activity_mmain.xml [CODE] the... | java|android | 0 | 2020-02-09T14:46:19.833Z | 2,020 | 2 | 14 | 6 | 59 | 1 | 830 | 46 | 2 | 4 | true | false | false | false | false | false | zero |
60,137,888 | How can I send a request to Google Chrome images with Java? | <p>I have to enter a word in the input stream, which should then go to Google Chrome images. And return the html containing the page with pictures on the request for this word.
For example. I enter word "cat" to search field and I should get page like this <a href="http://imglink.ru/show-image.php?id=5fe8a4b53719458439... | I have to enter a word in the input stream, which should then go to Google Chrome images. And return the html containing the page with pictures on the request for this word. For example. I enter word "cat" to search field and I should get page like this http://imglink.ru/show-image.php?id=5fe8a4b53719458439387177d0ab6e... | java|android|html|browser|request | 0 | 2020-02-09T14:54:34.750Z | 2,020 | 2 | 14 | 6 | 66 | 1 | 538 | 59 | 5 | 0 | false | false | false | false | false | false | zero |
60,137,907 | How to make a unique name for each user? | <p>I want when user sign up the app automatic generate a unique name like user-53s5ww or user-789kss. How can I do this in Java?</p> | I want when user sign up the app automatic generate a unique name like user-53s5ww or user-789kss. How can I do this in Java? | java|android|firebase | -1 | 2020-02-09T14:57:40.527Z | 2,020 | 2 | 14 | 6 | 75 | 2 | 125 | 40 | 3 | 0 | false | false | false | false | false | true | negative |
60,138,016 | Manipulate incoming call | <p>I am trying to build Android/IOS application application with React Native and trying to gather knowledge about its ability in manipulating incoming calls, so for example user is getting incoming call from somebody, is it possible for React Native to just hide this screen? <a href="https://i.stack.imgur.com/Hphtx.pn... | I am trying to build Android/IOS application application with React Native and trying to gather knowledge about its ability in manipulating incoming calls, so for example user is getting incoming call from somebody, is it possible for React Native to just hide this screen? i've tried to gather all the modules and libra... | android|ios|react-native|flutter | 0 | 2020-02-09T15:08:08.673Z | 2,020 | 2 | 15 | 6 | 1,371 | 0 | 444 | 24 | 4 | 0 | false | true | false | false | false | false | zero |
60,138,123 | How to run cloned (dual) apps via adb shell | <p>Could someone tell how to run cloned (dual) application via adb shell. The smartphone has MIUI 11 and the app is TelegramX, for example. Application clone emulator is by default.</p>
<p>I get the original application when I try to run the app via:</p>
<pre><code>adb shell
monkey -p org.thunderdog.challegram 1
</co... | Could someone tell how to run cloned (dual) application via adb shell. The smartphone has MIUI 11 and the app is TelegramX, for example. Application clone emulator is by default. I get the original application when I try to run the app via: [CODE] The package list tells only this point: [CODE] And no hint to the cloned... | android|adb|miui | 0 | 2020-02-09T15:20:11.103Z | 2,020 | 2 | 15 | 6 | 1,995 | 1 | 650 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
60,138,275 | Save rewarded ad value after close | <p>After watching a rewarded ad video, a text view displays the rewarded points. The points accumulate after each video. However, when the app closes, the points get erased. I would like the points to continue to show when the user comes back to the application. I could not figure out if this is part of the onDestroy m... | After watching a rewarded ad video, a text view displays the rewarded points. The points accumulate after each video. However, when the app closes, the points get erased. I would like the points to continue to show when the user comes back to the application. I could not figure out if this is part of the onDestroy meth... | java|android|android-studio|admob|rewardedvideoad | 0 | 2020-02-09T15:37:58.930Z | 2,020 | 2 | 15 | 6 | 751 | 3 | 347 | 34 | 5 | 1 | true | false | false | false | false | false | zero |
60,138,334 | Android Java - Race Condition in OnCreate with two Observers and making lists | <p>sorry if this is a convoluted question. Working on creating an app for a college course and I'm running into (what appears to be) a race condition in my OnCreate method.</p>
<p>TL;DR - sometimes my spinner populates and I can get an index from it. Sometimes it's not populated yet when trying to get a specific index... | sorry if this is a convoluted question. Working on creating an app for a college course and I'm running into (what appears to be) a race condition in my OnCreate method. TL;DR - sometimes my spinner populates and I can get an index from it. Sometimes it's not populated yet when trying to get a specific index. Details a... | java|android|spinner|race-condition|oncreate | 0 | 2020-02-09T15:44:11.030Z | 2,020 | 2 | 15 | 6 | 308 | 1 | 2,968 | 77 | 5 | 1 | true | false | false | false | false | false | zero |
60,138,350 | SharedPreferences not updating value in Android 6 and above | <p>I'm storing user's profile picture uri in SharedPreferences. When the user updates their profile image, it should get updated in SharedPreferences as well. However, when I try to retrieve the new image uri, I always get the old uri, but if I turn the device off or force the app to stop, the value is updated. I've no... | I'm storing user's profile picture uri in SharedPreferences. When the user updates their profile image, it should get updated in SharedPreferences as well. However, when I try to retrieve the new image uri, I always get the old uri, but if I turn the device off or force the app to stop, the value is updated. I've notic... | android|sharedpreferences | 0 | 2020-02-09T15:45:40.740Z | 2,020 | 2 | 15 | 6 | 136 | 1 | 809 | 59 | 2 | 2 | true | false | false | false | false | false | zero |
60,138,358 | URL is not redirecting to home page after sending token android? | <p>I have a login activity that works fine,after successfully login i get token which i send it to the webview fragment by <strong>SharedPreferences</strong> and pass it to <strong>WebviewClient</strong> but it doesn't redirect to the <strong>homepage URL</strong> of the site which is inside <strong>webview</strong>,it... | I have a login activity that works fine,after successfully login i get token which i send it to the webview fragment by SharedPreferences and pass it to WebviewClient but it doesn't redirect to the homepage URL of the site which is inside webview ,it's redirect to login page URL of the site inside Webview .I didn't fin... | java|android|webview|retrofit2|token | 1 | 2020-02-09T15:46:16.217Z | 2,020 | 2 | 15 | 6 | 120 | 0 | 429 | 64 | 5 | 2 | true | true | false | false | false | false | low |
60,138,413 | Android BluetoothHeadset getConnectedDevices() list is empty | <p>In my app, I want to get certain details about the connected bluetooth headset.
First, I thought of getting the connected devices whose profile is headset.</p>
<pre><code> val result = BluetoothAdapter.getDefaultAdapter()
.getProfileProxy(context, mProfileListener, BluetoothProfile.HEADSET)
</code></pre>
... | In my app, I want to get certain details about the connected bluetooth headset. First, I thought of getting the connected devices whose profile is headset. [CODE] The listener snippet is as follows : [CODE] I have declared the necessary permissions in the manifest [CODE] But mBluetoothHeadset?.connectedDevices is alway... | android|kotlin|android-bluetooth|bluetooth-profile | 2 | 2020-02-09T15:51:13.603Z | 2,020 | 2 | 15 | 6 | 631 | 1 | 448 | 60 | 4 | 3 | true | false | false | false | false | false | low |
60,138,421 | RecyclerView doesn't appear when back pressed | <p>I see the problem with a RecyclerView in viewpager fragment and I use bottom naviagation bar. When I tab on the navigation bar to change a screen and then pressed on back button it will go to the first screen which have the viewpager but the recyclerview doesn't appear and when I tab the naviagtion bar to reselect t... | I see the problem with a RecyclerView in viewpager fragment and I use bottom naviagation bar. When I tab on the navigation bar to change a screen and then pressed on back button it will go to the first screen which have the viewpager but the recyclerview doesn't appear and when I tab the naviagtion bar to reselect this... | android|android-fragments|android-recyclerview|android-viewpager | 0 | 2020-02-09T15:51:34.850Z | 2,020 | 2 | 15 | 6 | 177 | 0 | 843 | 45 | 4 | 6 | true | true | false | false | false | false | zero |
60,138,461 | Clear complete back stack of navigation controller | <p>I have an App with LogIn flow and several fragments from all of those i can access a navigation drawer that has an option to log out of the app. Instead of connecting every fragment to my splash screen i would like to reset the navigation to the splash screen on log out.</p>
<p>My code looks like this:</p>
<pre><c... | I have an App with LogIn flow and several fragments from all of those i can access a navigation drawer that has an option to log out of the app. Instead of connecting every fragment to my splash screen i would like to reset the navigation to the splash screen on log out. My code looks like this: [CODE] It navigates bac... | android|navigation|android-architecture-components|back-stack | 3 | 2020-02-09T15:55:32.963Z | 2,020 | 2 | 15 | 6 | 569 | 1 | 499 | 50 | 4 | 1 | true | false | false | false | false | false | low |
60,138,485 | Android AppCompatDelegate.setDefaultNightMode not recreating parent activity in android 9 | <p>Hello I am using this AppCompatDelegate to change between day/night themes
I have 2 activities A& B
this code called from activity B
it should recreating activity B & A with the chosen style
here is my code </p>
<blockquote>
<pre><code> applyNight.setOnClickListener(new View.OnClickListener() {
... | Hello I am using this AppCompatDelegate to change between day/night themes I have 2 activities A& B this code called from activity B it should recreating activity B & A with the chosen style here is my code [CODE] I tested it on android 7 & 6 it's working fine i.e when changing mode in activity B and press back activit... | android|android-appcompat|android-night-mode|appcompatdelegate | 4 | 2020-02-09T15:58:32.420Z | 2,020 | 2 | 15 | 6 | 2,987 | 1 | 458 | 89 | 4 | 1 | true | false | true | false | false | false | low |
60,138,542 | Error when cropping an image and using getDownloadURL() | <p>I am trying to utilise an image cropper (from ArthurHub GitHub) getting an error when typing getDownloadURL() i have put getStorage() in front using the getStorage() gets rid of the red line under getDownloadUrl however when I press crop I get the error message I have coded down the very end of this piece of code 'i... | I am trying to utilise an image cropper (from ArthurHub GitHub) getting an error when typing getDownloadURL() i have put getStorage() in front using the getStorage() gets rid of the red line under getDownloadUrl however when I press crop I get the error message I have coded down the very end of this piece of code 'imag... | java|android|firebase | 0 | 2020-02-09T16:03:32.523Z | 2,020 | 2 | 16 | 6 | 97 | 0 | 381 | 55 | 3 | 1 | true | true | false | false | false | false | zero |
60,138,672 | Move view upwards when edit text expand | <p>I have an activity called ChatWindowActivity. The layout for this is like chat window in Facebook Messenger. The problem is when edit text is expand to multiple lines, I want the recycler view to move up a litlle bit just like Messenger. I have tried using ConstrainLayout to chain view according to <a href="https://... | I have an activity called ChatWindowActivity. The layout for this is like chat window in Facebook Messenger. The problem is when edit text is expand to multiple lines, I want the recycler view to move up a litlle bit just like Messenger. I have tried using ConstrainLayout to chain view according to this but the result ... | android|android-layout | 0 | 2020-02-09T16:17:14.427Z | 2,020 | 2 | 16 | 6 | 64 | 0 | 417 | 39 | 2 | 1 | true | true | false | false | false | false | zero |
60,138,763 | How to Navigate any destination for action of header of drawer in navigation architecture | <p>Anyone please explain, How to define the action in Navigation architecture for header layout of drawer.</p>
<p><a href="https://i.stack.imgur.com/UxEjD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UxEjD.png" alt="snapshot"></a></p>
<p>Now, I need to set click of header of drawer and I set it ... | Anyone please explain, How to define the action in Navigation architecture for header layout of drawer. Now, I need to set click of header of drawer and I set it to like this: [CODE] | android|android-studio|navigation-drawer|navigation-architecture | 0 | 2020-02-09T16:27:29.347Z | 2,020 | 2 | 16 | 6 | 340 | 1 | 182 | 89 | 4 | 1 | true | false | false | false | false | false | zero |
60,138,765 | Why ListView.Adapter returns null when assigning a query | <p>I select the data from the meeting table and assign it an adapter. In doing so, I get a System.NullReferenceException: Object reference not set to an instance of an object.</p>
<pre><code>private void LoadData()
{
listSource = DBConnection.selectTable();
var adapter = new ListViewAda... | I select the data from the meeting table and assign it an adapter. In doing so, I get a System.NullReferenceException: Object reference not set to an instance of an object. [CODE] Meeting table structure: [CODE] I do this by analogy with this project: https://www.c-sharpcorner.com/article/xamarin-android-sqlite-databas... | c#|android|sqlite|xamarin | 0 | 2020-02-09T16:27:36.543Z | 2,020 | 2 | 16 | 6 | 65 | 1 | 322 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
60,138,802 | Application keeps crashing when I try to load the database | <p>I'm currently making an android application and now I'm trying to add this new "listingStatus" column to my database, I added the column name to my onCreate() function but I still keep getting this is my logCat.
Any ideas how to solve this issue? I've tried dropping my database and recreating it but I keep getting t... | I'm currently making an android application and now I'm trying to add this new "listingStatus" column to my database, I added the column name to my onCreate() function but I still keep getting this is my logCat. Any ideas how to solve this issue? I've tried dropping my database and recreating it but I keep getting the ... | java|android | 0 | 2020-02-09T16:31:56.627Z | 2,020 | 2 | 16 | 6 | 49 | 2 | 363 | 58 | 2 | 2 | true | false | false | false | false | false | zero |
60,138,817 | Publishing progress in async task | <p>Is there any way to publish progress from doInBackground() to onProgressUpdate() without using publishProgress()?</p> | Is there any way to publish progress from doInBackground() to onProgressUpdate() without using publishProgress()? | android|asynchronous|android-asynctask|progressdialog|android-progressbar | 0 | 2020-02-09T16:33:12.340Z | 2,020 | 2 | 16 | 6 | 151 | 1 | 113 | 33 | 5 | 0 | false | false | false | false | false | false | zero |
60,138,927 | Firebase AuthUI for Android - skip Twitter OAuth page if app is approved | <p>I've integrated Firebase AuthUI into my Android application. When using Twitter auth (and possible other social auth providers), I experience that even if I've authorized my application for use with Twitter authentication (my Twitter privacy setting show my app is already approved), I still get prompted with the Tw... | I've integrated Firebase AuthUI into my Android application. When using Twitter auth (and possible other social auth providers), I experience that even if I've authorized my application for use with Twitter authentication (my Twitter privacy setting show my app is already approved), I still get prompted with the Twitte... | android|firebase|firebase-authentication|twitter-oauth|firebaseui | 0 | 2020-02-09T16:47:52.650Z | 2,020 | 2 | 16 | 6 | 76 | 0 | 714 | 72 | 5 | 0 | false | true | false | false | false | false | zero |
60,138,974 | Changing background of ImageView is slow | <p>I am creating an app where I change the background image every time a new quote gets displayed.
I am using ImageView and those pictures are all jpg-files. They are stored in the mipmap folder under xxhdpi, because the images are too big for the drawable folder.</p>
<p>However when I am setting the new ImageView usi... | I am creating an app where I change the background image every time a new quote gets displayed. I am using ImageView and those pictures are all jpg-files. They are stored in the mipmap folder under xxhdpi, because the images are too big for the drawable folder. However when I am setting the new ImageView using: [CODE] ... | android|performance|android-layout | 0 | 2020-02-09T16:52:50.203Z | 2,020 | 2 | 16 | 6 | 120 | 2 | 864 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
60,139,010 | How to navigate back to the master screen from the details with Nav controller on Android | <p>I have the following nav_graph xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
app:startDestination="@id/users_fra... | I have the following nav_graph xml: [CODE] The main activity xml is: [CODE] To navigate to the details I call: [CODE] where UsersFragmentDirections is generated by the safe-args plugin. The problem is that when I press back the master fragment is not shown: the activity is closed. If in the action I use app:popUpToIncl... | android|android-architecture-components|master-detail | 0 | 2020-02-09T16:57:29.990Z | 2,020 | 2 | 16 | 6 | 44 | 1 | 483 | 89 | 3 | 3 | true | false | false | false | false | false | zero |
60,139,297 | Initializing retrofit class in another class | <p>I am working on a retrofit application and I am following a tutorial, but in the tutorial he always creates the following in every class:</p>
<pre><code> Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://jsonplaceholder.typicode.com/")
.addConverterFactory(GsonConver... | I am working on a retrofit application and I am following a tutorial, but in the tutorial he always creates the following in every class: [CODE] Now I have created a retro fit class called APIClient, which has the above in it, plus some security. Here is my API client: [CODE] now in the tutorial I am following he does ... | android|retrofit2 | 0 | 2020-02-09T17:26:53.197Z | 2,020 | 2 | 17 | 6 | 324 | 1 | 481 | 44 | 2 | 3 | true | false | false | false | false | false | zero |
60,139,406 | How can i put a RecyclerView inside NestedScrollView? | <p>I have a RecyclerView inside a NestedScrollView. It's working fine when recyclerView adapter list size is small. But when list size is large , it's crashing my app (or make more lag).
How can i fix it. Codes are below.</p>
<p>XML :</p>
<pre><code> <androidx.core.widget.NestedScrollView
android:lay... | I have a RecyclerView inside a NestedScrollView. It's working fine when recyclerView adapter list size is small. But when list size is large , it's crashing my app (or make more lag). How can i fix it. Codes are below. XML : [CODE] JAVA : [CODE] | android|android-recyclerview|scrollview | 0 | 2020-02-09T17:37:59.637Z | 2,020 | 2 | 17 | 6 | 197 | 1 | 245 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
60,139,458 | Difficulty adding AdMob Native Ads in Android Recyclerview | <p>how are you? I am trying to add Google AdMob native ads to a recyclerview feed. I followed the instructions provided by the Google Developer Codelabs here. <a href="https://codelabs.developers.google.com/codelabs/admob-native-advanced-feed-android/#0" rel="nofollow noreferrer">https://codelabs.developers.google.com/... | how are you? I am trying to add Google AdMob native ads to a recyclerview feed. I followed the instructions provided by the Google Developer Codelabs here. https://codelabs.developers.google.com/codelabs/admob-native-advanced-feed-android/#0 . It mostly worked. I have the ads inserted and posts being displayed. But the... | android|android-recyclerview|admob | 1 | 2020-02-09T17:43:27.630Z | 2,020 | 2 | 17 | 6 | 3,060 | 1 | 1,302 | 58 | 3 | 2 | true | false | true | false | false | false | low |
60,139,548 | How to save images with Picasso so there is no loading time? | <p>I have an app where I display a quote and there is a picture in the background. When I click on a "next"-button, the next quote will be shown and the new image will be loaded. The loading takes around 0.5 seconds and has the image before as placeholder. But when I switch back, there is no loading time.</p>
<p>This ... | I have an app where I display a quote and there is a picture in the background. When I click on a "next"-button, the next quote will be shown and the new image will be loaded. The loading takes around 0.5 seconds and has the image before as placeholder. But when I switch back, there is no loading time. This means, the ... | java|android|performance|picasso | 0 | 2020-02-09T17:51:23.143Z | 2,020 | 2 | 17 | 6 | 120 | 1 | 993 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
60,139,561 | H264 ByteStream to Image Files | <p>first time here so be gentle.</p>
<p>I've been working for a few weeks on a given H.264 byte stream:</p>
<p><strong>General notes:</strong></p>
<ol>
<li>The Byte Stream is not from a file, it is being fed live to me from an external source.</li>
<li>The Byte Stream is encoded with Android's Media Codec.</li>
<li>... | first time here so be gentle. I've been working for a few weeks on a given H.264 byte stream: General notes: The Byte Stream is not from a file, it is being fed live to me from an external source. The Byte Stream is encoded with Android's Media Codec. When writing the stream into a file with a .H264 extension, VLC is a... | java|ffmpeg|h.264|javacv|android-mediacodec | 2 | 2020-02-09T17:52:16.360Z | 2,020 | 2 | 17 | 6 | 3,758 | 1 | 832 | 30 | 5 | 0 | false | false | true | false | false | false | low |
60,139,633 | Google Drive Api stops working after publishing app in Google Play | <p>In my app I'm using the Google Drive API but I'm getting the following message when the app is installed via Google Play:</p>
<pre><code> com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "usageLimits",
... | In my app I'm using the Google Drive API but I'm getting the following message when the app is installed via Google Play: [CODE] My code follows the example from Google : [CODE] I'm able to Sign In the user but then when trying to retrieve the files, it fails with the reason dailyLimitExceededUnreg . I've looked at sev... | android|google-drive-api|certificate|sha1|google-drive-android-api | 1 | 2020-02-09T18:01:21.333Z | 2,020 | 2 | 18 | 6 | 632 | 2 | 920 | 66 | 5 | 2 | true | false | false | false | false | false | low |
60,139,657 | Temporarily change text in an Android app | <p>How can I inspect and edit text in an Android app running on my device.
Like we normally do on a web browser. It's just for the sake of a screenshot.</p>
<p>I've tried Appium UIAUTOMATER, but none of that lets me to edit that info.</p> | How can I inspect and edit text in an Android app running on my device. Like we normally do on a web browser. It's just for the sake of a screenshot. I've tried Appium UIAUTOMATER, but none of that lets me to edit that info. | android|inspect | 0 | 2020-02-09T18:03:59.050Z | 2,020 | 2 | 18 | 6 | 485 | 1 | 224 | 41 | 2 | 0 | false | false | false | false | false | false | zero |
60,139,788 | Gluon save properties file | <p>I have the following bit of code in Android. It is supposed to create a properties file and set up some properties on app init.</p>
<pre class="lang-java prettyprint-override"><code>String androidFilePath = settingsFolderPath + File.separator + "my.properties";
File ROOT_DIR = Services.get(StorageService.class)
... | I have the following bit of code in Android. It is supposed to create a properties file and set up some properties on app init. [CODE] The problem is that when I start the app the properties file is created but never written. I checked the my manifest and permissions and it seems to me that it is set correctly. I do no... | java|android|gluon-mobile | 0 | 2020-02-09T18:15:39.303Z | 2,020 | 2 | 18 | 6 | 34 | 0 | 354 | 26 | 3 | 1 | true | true | false | false | false | false | zero |
60,139,871 | How to save photo after capture at activity after closing it? | <p>I have two activities - first opens the second. On the second activity, I can take photos and add them in an ImageView. But after I leave this activity the photo is missing and I need to shoot again. </p>
<p>I call second activity doing this:</p>
<pre><code> startActivity(Intent(this@MapsActivity, this.allPoints[i... | I have two activities - first opens the second. On the second activity, I can take photos and add them in an ImageView. But after I leave this activity the photo is missing and I need to shoot again. I call second activity doing this: [CODE] Here this.allPoints[it.tag as Int].second is the activity from collection. Tak... | android|android-studio|kotlin-android-extensions | 0 | 2020-02-09T18:25:05.893Z | 2,020 | 2 | 18 | 6 | 65 | 1 | 479 | 61 | 3 | 2 | true | false | false | false | false | false | zero |
60,139,919 | Android: Determine when the audio for a notification stops playing | <p>I'm using NotificationCompat.Builder to configure and build a notification with a custom sound using NotificationCompat.Builder.setSound(). How can I determine when the sound has stopped playing?</p> | I'm using NotificationCompat.Builder to configure and build a notification with a custom sound using NotificationCompat.Builder.setSound(). How can I determine when the sound has stopped playing? | android|audio|notifications | 1 | 2020-02-09T18:29:52.637Z | 2,020 | 2 | 18 | 6 | 31 | 0 | 195 | 66 | 3 | 0 | false | true | false | false | false | false | low |
60,139,920 | android-NullPointerException: Attempt to invoke virtual method p() | <p>I'm using <code>Crashlytics</code> to monitor crashes of my Android app. the following crash has been reported for some users:</p>
<pre><code>Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void app.mapdroid.activities.MapActivity.p()' on a null object reference
at app.mapdroid... | I'm using Crashlytics to monitor crashes of my Android app. the following crash has been reported for some users: [CODE] I don't understand what is p() method which is causing this crash. can anyone guide please? the app has been reported to be in background state for all users with proximity on. | android|debugging|crash|crashlytics|android-debug | 0 | 2020-02-09T18:29:55.653Z | 2,020 | 2 | 18 | 6 | 151 | 1 | 297 | 66 | 5 | 1 | true | false | false | false | false | false | zero |
60,139,958 | Is there a minimal example of taking a picture in Android Jetpack? (no preview, no user interaction) | <p>I am following the guidance in the Android Jetpack CameraX docs, and it is significantly more involved than I was hoping for than the "Hello World" I was hoping for. My case is much more simple:</p>
<ol>
<li>The permissions are already taken care of</li>
<li><strong>No preview window</strong> (this is where I can'... | I am following the guidance in the Android Jetpack CameraX docs, and it is significantly more involved than I was hoping for than the "Hello World" I was hoping for. My case is much more simple: The permissions are already taken care of No preview window (this is where I can't figure out how to adapt their demo to my n... | android-camera2|android-jetpack | 1 | 2020-02-09T18:32:45.817Z | 2,020 | 2 | 18 | 6 | 35 | 0 | 576 | 100 | 2 | 0 | false | true | false | false | false | false | low |
60,140,062 | How to append HashMap one by one in JSONObject | <p>My question is how to append HashMap to JsonObject on by one?
Suppose I have HashMap called newspaperHashMap which is declared and Initilizedat the start of Program</p>
<pre><code>HashMap<String, String> newspaperHashMap = new HashMap<>();
JSONObject j2 = new JSONObject();
for(int tag_id =0 ; tag_id &l... | My question is how to append HashMap to JsonObject on by one? Suppose I have HashMap called newspaperHashMap which is declared and Initilizedat the start of Program [CODE] But becase of last line j2 object is overwritten. Now I want to convert this HashMap to JSONObject. Any help will be appreciated. Thank You | java|android|json | 0 | 2020-02-09T18:43:19.960Z | 2,020 | 2 | 18 | 6 | 41 | 1 | 311 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
60,140,184 | How to find my textview with findViewById in my onPause method in PlaceHolderFragment | <p>I am using a Tab Layout in my app and i have a button that will start a timer and then stop it. The problem is in my placeholderfragment i can only find textviews in my onCreateView() method by using root.FindViewById. </p>
<p>Of course i cannot access root outside the onCreateView() method. Is there any way to go ... | I am using a Tab Layout in my app and i have a button that will start a timer and then stop it. The problem is in my placeholderfragment i can only find textviews in my onCreateView() method by using root.FindViewById. Of course i cannot access root outside the onCreateView() method. Is there any way to go around this ... | android|android-fragments|textview|onpause | 0 | 2020-02-09T18:56:17.763Z | 2,020 | 2 | 18 | 6 | 92 | 1 | 372 | 85 | 4 | 1 | true | false | false | false | false | false | zero |
60,140,208 | How to add new attributes to existing data in Firebase Realtime Database? | <p>I'm creating an app in Android Studio, which will allow a registered users to book trips. For this case, I have 2 activities: DepartGermany and DepartGermany2. </p>
<p>In the first activity a new Trip node is created, containing 3 attributes: city, zip, street.</p>
<p>In the second activity I want the user to add ... | I'm creating an app in Android Studio, which will allow a registered users to book trips. For this case, I have 2 activities: DepartGermany and DepartGermany2. In the first activity a new Trip node is created, containing 3 attributes: city, zip, street. In the second activity I want the user to add a phone number and a... | java|android|firebase|firebase-realtime-database | 0 | 2020-02-09T18:59:07.037Z | 2,020 | 2 | 18 | 6 | 732 | 1 | 481 | 73 | 4 | 1 | true | false | false | false | false | false | zero |
60,140,234 | Our app made by myself work fine in android 9 but does not work in android 6 or older | <p>unfortunately your app has stopped working I have created an app with target api 26 and minimum api 19 when I install it in android 9 it work fine but when I it install in android 6 or older version it gives me error your app has unfortunately stopped working</p>
<p>this is my main xml file</p>
<pre><code><?xml... | unfortunately your app has stopped working I have created an app with target api 26 and minimum api 19 when I install it in android 9 it work fine but when I it install in android 6 or older version it gives me error your app has unfortunately stopped working this is my main xml file [CODE] and the main Activity is lik... | android | 0 | 2020-02-09T19:01:37.317Z | 2,020 | 2 | 19 | 6 | 62 | 0 | 392 | 85 | 1 | 4 | true | true | false | false | false | false | zero |
60,140,377 | setState doesn't change decoration of TextField | <p>I want to change the decoration of TextField when the onSubmitted method called, in setState when I called my function for returning InputDecoration, it doesn't change the decoration of TextField.</p>
<p>Actually I want to check whether user filling the TextField correctly or not, if not warned them by changing the... | I want to change the decoration of TextField when the onSubmitted method called, in setState when I called my function for returning InputDecoration, it doesn't change the decoration of TextField. Actually I want to check whether user filling the TextField correctly or not, if not warned them by changing the decoration... | android|flutter|mobile|dart|flutter-layout | 0 | 2020-02-09T19:16:58.283Z | 2,020 | 2 | 19 | 6 | 444 | 1 | 406 | 47 | 5 | 2 | true | false | false | false | false | false | zero |
60,140,407 | use intellij kotlin kt file in android studio | <p>I have written a program using intellij and want to import the code into android studio but i can't find any tutorials that have this specifically. </p>
<p>I am only able to find using kotlin in andoid studio or convert from kotlin to java.</p>
<p>I know it will be easy and that I am not looking in the right place... | I have written a program using intellij and want to import the code into android studio but i can't find any tutorials that have this specifically. I am only able to find using kotlin in andoid studio or convert from kotlin to java. I know it will be easy and that I am not looking in the right places but could really d... | android-studio|kotlin|import|import-libraries | 0 | 2020-02-09T19:19:14.310Z | 2,020 | 2 | 19 | 6 | 220 | 2 | 415 | 45 | 4 | 0 | false | false | false | false | false | false | zero |
60,140,472 | How to create a rounded layout | <p>I want to create a layout contains a map, main circle button, and a few buttons below.
I found it easy to create this with straight lines that separate the map and the layout below.
However, I don't have any clue how to do this with the nicely rounded layouts as shown in the picture.</p>
<p>Can someone guide me on ... | I want to create a layout contains a map, main circle button, and a few buttons below. I found it easy to create this with straight lines that separate the map and the layout below. However, I don't have any clue how to do this with the nicely rounded layouts as shown in the picture. Can someone guide me on how it's do... | android|android-layout|android-fragments|android-view|android-button | 0 | 2020-02-09T19:26:58.923Z | 2,020 | 2 | 19 | 6 | 55 | 1 | 323 | 30 | 5 | 0 | false | false | false | false | false | false | zero |
60,140,503 | Android programmatically added ConstraintLayout isn't shown on screen | <p>I'm trying to create a layout draw of a system, which is very similar to a table, therefore, I try to create a constraint layout with rows and columns (which I may need to connect with lines, therefore, vertical/horizontal layouts are not best suited for it).</p>
<p>Also, since the system is of different sizes know... | I'm trying to create a layout draw of a system, which is very similar to a table, therefore, I try to create a constraint layout with rows and columns (which I may need to connect with lines, therefore, vertical/horizontal layouts are not best suited for it). Also, since the system is of different sizes known only at r... | android|android-constraintlayout|android-9.0-pie|programmatically | 1 | 2020-02-09T19:30:41.543Z | 2,020 | 2 | 19 | 6 | 369 | 2 | 1,404 | 69 | 4 | 1 | true | false | false | false | false | false | low |
60,140,524 | Unhandled Exception: Error on line 1, column 10: Invalid media type: expected "/". using flutter http | <p>I'm trying to send Http post request in my flutter application using <a href="https://pub.dev/packages/http" rel="nofollow noreferrer">The flutter HTTP package</a></p>
<p>Here is the code : </p>
<pre class="lang-dart prettyprint-override"><code>String url = 'http://my_website.com/api/panel/attendance/create';
Resp... | I'm trying to send Http post request in my flutter application using The flutter HTTP package Here is the code : [CODE] And am getting this strange error message : Unhandled Exception: Error on line 1, column 10: Invalid media type: expected "/". I think it is something with encoding or something, am not sure. | android|ios|flutter|dart|httprequest | -1 | 2020-02-09T19:33:07.810Z | 2,020 | 2 | 19 | 6 | 822 | 2 | 311 | 101 | 5 | 1 | true | false | false | false | false | true | negative |
60,140,578 | How can i disable any android app such that it cannot be opened until i change/press some button in app? | <p>I am trying to build a parental control app. So now i want to disable or lock app (like Whatsapp, Facebook, etc). I have tried using <code>PackageManager.setComponentEnabledSetting()</code>. But it is throwing <code>java.lang.SercurityException</code>.</p>
<p><strong>So how can I make a parental control app such th... | I am trying to build a parental control app. So now i want to disable or lock app (like Whatsapp, Facebook, etc). I have tried using PackageManager.setComponentEnabledSetting() . But it is throwing java.lang.SercurityException . So how can I make a parental control app such that I can disable any app I want without roo... | java|android|android-studio|android-package-managers|android-securityexception | -1 | 2020-02-09T19:38:52.903Z | 2,020 | 2 | 19 | 6 | 1,014 | 2 | 486 | 104 | 5 | 1 | true | false | false | false | false | true | negative |
60,140,603 | How to solve ConcurrentModificationException | <p>After updating the App I get errors from <code>Firebase</code> almost in all activities. </p>
<pre><code>Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.project.app/com.project.app.MainActivity}: java.util.ConcurrentModificationException
at android.app.ActivityThread.perfo... | After updating the App I get errors from Firebase almost in all activities. [CODE] I am sure the problem appeared after changing build.gradle (Module:app). This is some lines of build.gradle (old version): [CODE] This is some lines of build.gradle (new version): [CODE] I think is due to firebase-analytics:17.2.2, but I... | android|firebase|firebase-analytics | 5 | 2020-02-09T19:41:52.723Z | 2,020 | 2 | 19 | 6 | 1,800 | 1 | 418 | 44 | 3 | 3 | true | false | false | false | false | false | low |
60,140,797 | how Live data will be update in MVVM | <p>I want to get input from the user using EditText and pass it to server and show the response to the user. I do this simply without any architecture but I would like to implement it in MVVM.
this is my repository code:</p>
<pre><code>class Repository {
fun getData(context: Context, word: String): LiveData<St... | I want to get input from the user using EditText and pass it to server and show the response to the user. I do this simply without any architecture but I would like to implement it in MVVM. this is my repository code: [CODE] and these are my View Model codes: [CODE] and my mainActivity would be like this: [CODE] My lay... | kotlin|android-livedata|android-mvvm | 0 | 2020-02-09T20:04:23.320Z | 2,020 | 2 | 20 | 6 | 506 | 1 | 419 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
60,140,838 | Android 10 emulator - unable to uninstall apps due to Invalid UUID string | <p>I'm trying to figure out if it's just me.
On latest Android Studio and Emulator, a stock Android 10 (API 29) image is not able to uninstall apps due to the exception</p>
<pre><code> java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.packageinstaller/com.android.packageinstaller.U... | I'm trying to figure out if it's just me. On latest Android Studio and Emulator, a stock Android 10 (API 29) image is not able to uninstall apps due to the exception [CODE] Any hint would be welcome, please note uninstalling through ADB adb uninstall works as expected, but I need to uninstall through standard drag-n-dr... | android|android-emulator|android-10.0 | 2 | 2020-02-09T20:08:58.773Z | 2,020 | 2 | 20 | 6 | 676 | 2 | 602 | 73 | 3 | 2 | true | false | false | false | false | false | low |
60,140,855 | Updating an activities field from within a static DateDialogFragment in Android | <p>I am trying to implement an <code>EditText</code> field that when clicked will display a date picker. From what I had read, a <code>DateDialogFragment</code> was recommended as a modern solution. </p>
<p>I've stripped out irrelevent code from the activity for simplicity:</p>
<pre><code>public class EditStepCountEn... | I am trying to implement an EditText field that when clicked will display a date picker. From what I had read, a DateDialogFragment was recommended as a modern solution. I've stripped out irrelevent code from the activity for simplicity: [CODE] When I click the EditText I get the following error: java.lang.IllegalState... | java|android|android-fragments | 0 | 2020-02-09T20:11:38.640Z | 2,020 | 2 | 20 | 6 | 49 | 1 | 1,191 | 79 | 3 | 1 | true | false | false | false | false | false | zero |
60,140,926 | Android multi-SDK project debug build | <p>How to add a debug-mode specific functionality into an Android app which is broken into several SDKs?</p>
<p>Lets say I need to add an OkHttp interceptor to all OkHttp clients to all SDKs. But it has to be added only into the app's debug build. However, when the app is broken into several SDKs, they are published a... | How to add a debug-mode specific functionality into an Android app which is broken into several SDKs? Lets say I need to add an OkHttp interceptor to all OkHttp clients to all SDKs. But it has to be added only into the app's debug build. However, when the app is broken into several SDKs, they are published as release b... | android|gradle|dependency-injection|koin | 0 | 2020-02-09T20:21:04.380Z | 2,020 | 2 | 20 | 6 | 277 | 2 | 671 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
60,140,959 | I sent a list of string to server with volley. How I can read this data in php and run query with them? | <p>I am completely newbie in programming and my English is not so good. I faced a problem on my project .
I have the String ArrayList that it contains just some numbers as String .
with follow code I convert it to Gson I think. </p>
<pre class="lang-java prettyprint-override"><code>String finalRequestedList = new Gs... | I am completely newbie in programming and my English is not so good. I faced a problem on my project . I have the String ArrayList that it contains just some numbers as String . with follow code I convert it to Gson I think. [CODE] with volley I sent it to server . It has sent something like this to the server : [CODE]... | php|android|mysql|pdo|android-volley | 0 | 2020-02-09T20:25:32.657Z | 2,020 | 2 | 20 | 6 | 35 | 1 | 506 | 103 | 5 | 5 | true | false | false | false | false | false | zero |
60,140,990 | Getting fatal crash using startMonitoringBeaconsInRegion | <p>Using android beacon library 2.16.3 I am getting an error where my application crashes on startup.</p>
<p>The sections that seem to use this library and are crashing are here. Both sections are found in the MainMenu class.</p>
<p><strong>Section 1</strong> </p>
<pre class="lang-java prettyprint-override"><code>be... | Using android beacon library 2.16.3 I am getting an error where my application crashes on startup. The sections that seem to use this library and are crashing are here. Both sections are found in the MainMenu class. Section 1 [CODE] and also Section 2 [CODE] with the initial bind and the final try catch block being the... | java|android|android-studio|beacon|altbeacon | 2 | 2020-02-09T20:28:28.577Z | 2,020 | 2 | 20 | 6 | 1,549 | 1 | 761 | 56 | 5 | 3 | true | false | false | false | false | false | low |
60,141,085 | Updating Immutable View State Values in Android Unidirectional Data Flow | <h1>Question</h1>
<p><strong>I'm looking to refactor an immutable view state's values in the Android ViewModel (VM) in order to do the following:</strong> </p>
<ol>
<li><strong>Update the view state in the VM cleanly without copying the entire view state</strong></li>
<li><strong>Keep the view state data immutable to... | Question I'm looking to refactor an immutable view state's values in the Android ViewModel (VM) in order to do the following: Update the view state in the VM cleanly without copying the entire view state Keep the view state data immutable to the view observing updates I've built an Android Unidirectional Data Flow (UDF... | android|kotlin|android-livedata|android-viewmodel | 0 | 2020-02-09T20:36:52.630Z | 2,020 | 2 | 20 | 6 | 1,501 | 2 | 1,082 | 72 | 4 | 2 | true | false | false | false | false | false | zero |
60,141,166 | Android (API 28) - Receiving implicit intents in background | <p>I am wildly confused with the current Android background service possibilities and need some help from an expert :)</p>
<p>The "xDrip" application is broadcasting its information via an (I guess implicit) intent with the action name "com.eveningoutpost.dexdrip.BgEstimate". I want to receive these intents. As it is ... | I am wildly confused with the current Android background service possibilities and need some help from an expert :) The "xDrip" application is broadcasting its information via an (I guess implicit) intent with the action name "com.eveningoutpost.dexdrip.BgEstimate". I want to receive these intents. As it is not allowed... | android|background-service|android-implicit-intent | 0 | 2020-02-09T20:48:07.573Z | 2,020 | 2 | 20 | 6 | 189 | 1 | 845 | 59 | 3 | 0 | false | false | false | false | false | false | zero |
60,141,376 | Place key file in APK | <p>Trying to build application apk file by using gradle, task <code>assemble</code>. My application contains private key file and I got error:</p>
<pre><code>E:\D\android\MQTT\app\src\main\res\raw\clientkey.pem: Error: The raw\\clientkey.pem file seems to be a private key file. Please make sure not to embed this in yo... | Trying to build application apk file by using gradle, task assemble . My application contains private key file and I got error: [CODE] I know it is not secure to keep key in apk, but currently I would like to place it in apk. How to achieve that? | android | 2 | 2020-02-09T21:11:34.413Z | 2,020 | 2 | 21 | 6 | 172 | 1 | 246 | 21 | 1 | 1 | true | false | false | false | false | false | low |
60,141,394 | Account Settings Adapter Issue | <p>I have created a account settings page that incorporates multiple options that open via fragments. However, I seem to be facing an issue that I can't resolve. I've tried multiple solutions but seem to get errors. Your help is appreciated! </p>
<p>When the button is clicked to open AccountSettingsActivity, the app c... | I have created a account settings page that incorporates multiple options that open via fragments. However, I seem to be facing an issue that I can't resolve. I've tried multiple solutions but seem to get errors. Your help is appreciated! When the button is clicked to open AccountSettingsActivity, the app crashes. Erro... | java|android|xml|android-fragments | 1 | 2020-02-09T21:13:37.087Z | 2,020 | 2 | 21 | 6 | 104 | 3 | 579 | 30 | 4 | 5 | true | false | false | false | false | false | low |
60,141,426 | MPAndroidChart. How to use data sets with different data types on single chart? | <p>I am trying to combine multiple line charts in a single view but i cannot solve problem with different data types. I've tried to use min-max normalization to scale values from different data sets but when i want to show selected value in custom marker view, i cannot convert it back to initial format.
I've tried to u... | I am trying to combine multiple line charts in a single view but i cannot solve problem with different data types. I've tried to use min-max normalization to scale values from different data sets but when i want to show selected value in custom marker view, i cannot convert it back to initial format. I've tried to use ... | android|charts|formatting|mpandroidchart|linechart | 0 | 2020-02-09T21:18:57.087Z | 2,020 | 2 | 21 | 6 | 450 | 1 | 470 | 79 | 5 | 1 | true | false | false | false | false | false | zero |
60,141,534 | Prevent [Game player Id ]from keeping increasing in fragment | <p>I tried to make my own <code>Tic Tac Toe game</code>, so I created two activities (<code>MainActivity, GameActivity</code>), the second activity contains a <code>Fragment</code> which displays <code>gridView</code>.for storing score and playes'name i created a <code>Player</code> class,every player has a uniq <code>... | I tried to make my own Tic Tac Toe game , so I created two activities ( MainActivity, GameActivity ), the second activity contains a Fragment which displays gridView .for storing score and playes'name i created a Player class,every player has a uniq ID which generated when player object get constructed. [CODE] GameActi... | android|fragment | 0 | 2020-02-09T21:31:38.100Z | 2,020 | 2 | 21 | 6 | 27 | 1 | 508 | 60 | 2 | 3 | true | false | false | false | false | false | zero |
60,141,579 | What is the better way to handle ACTION_PACKAGE_ADDED intent on my app even if the user doesn't using it? | <p>I want to push a notification when a new app installed containing the app name as a title and its content will be its permissions, so how i can implement that even if the my app is closed, my app will support android 6.0 and higher</p> | I want to push a notification when a new app installed containing the app name as a title and its content will be its permissions, so how i can implement that even if the my app is closed, my app will support android 6.0 and higher | java|android|android-studio | 0 | 2020-02-09T21:39:01.490Z | 2,020 | 2 | 21 | 6 | 41 | 0 | 231 | 105 | 3 | 0 | false | true | false | false | false | false | zero |
60,141,638 | App(TikTok) don't run app on adb emulator? | <p>I need to run tiktok from adb to make with it some actions using appium (or maybe there is another solution to make actions on emulator automatically?). By the way when I try to install TikTok on emulator from Android Studio, I got this error:
<a href="https://i.stack.imgur.com/bVDze.png" rel="nofollow noreferrer"><... | I need to run tiktok from adb to make with it some actions using appium (or maybe there is another solution to make actions on emulator automatically?). By the way when I try to install TikTok on emulator from Android Studio, I got this error: I tried different versions of androids and different Android Studio emulator... | android-emulator|adb | 1 | 2020-02-09T21:47:13.157Z | 2,020 | 2 | 21 | 6 | 2,668 | 2 | 547 | 42 | 2 | 0 | false | false | true | false | false | false | low |
60,141,728 | When I press second time on the button , the app stops working | <p>I am developing an app that consist of login-register app . In my login activity i have 2 buttons: LOGIN and REGISTER .The Register button is used to redirect you from login activity to register activity . The app works fine till I press once again . The app stops working.</p>
<pre class="lang-java prettyprint-over... | I am developing an app that consist of login-register app . In my login activity i have 2 buttons: LOGIN and REGISTER .The Register button is used to redirect you from login activity to register activity . The app works fine till I press once again . The app stops working. [CODE] | java|android|android-studio|authentication|button | 0 | 2020-02-09T21:58:02.313Z | 2,020 | 2 | 21 | 6 | 117 | 2 | 280 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
60,141,796 | Passing Data from multiple activities to one activity | <p>I have created three different activities with three different ListViews similar to this and created another activity with a Button.</p>
<p>The purpose is to select any item from any ListView and it will change the Button text to the selected item I choose.</p>
<p>Here is the code I use to create the ListViews: </... | I have created three different activities with three different ListViews similar to this and created another activity with a Button. The purpose is to select any item from any ListView and it will change the Button text to the selected item I choose. Here is the code I use to create the ListViews: [CODE] I have another... | java|android-studio | 1 | 2020-02-09T22:06:44.120Z | 2,020 | 2 | 22 | 6 | 47 | 1 | 758 | 53 | 2 | 4 | true | false | false | false | false | false | low |
60,141,856 | "flutter run" gets stuck at "Running Gradle task 'assembleDebug" | <p>I updated Flutter to the latest stable version today - <code>1.12.13+hotfix.7</code> (I was running 1.12.13+hotfix.6 before). When I tried to run my project in vs code with <code>flutter run</code> it always gets stuck at <code>Running Gradle task 'assembleDebug</code>: </p>
<p><a href="https://i.stack.imgur.com/9X... | I updated Flutter to the latest stable version today - 1.12.13+hotfix.7 (I was running 1.12.13+hotfix.6 before). When I tried to run my project in vs code with flutter run it always gets stuck at Running Gradle task 'assembleDebug : Have anyone experienced the same issue? Here is the output of flutter doctor -v : [CODE... | android|flutter|android-sdk-tools | 5 | 2020-02-09T22:13:07.027Z | 2,020 | 2 | 22 | 6 | 14,843 | 4 | 577 | 64 | 3 | 1 | true | false | true | true | false | false | low |
60,141,937 | flutter_facebook_login plugin issues logging in on iOS simulator (using Android Studio) | <p>I'm building a Flutter app with Android Studio (a Time Tracker, following a course on Udemy) and I am at the stage where I have created a sign-in page, that allows me to sign in using either Google, Facebook, email or 'going anonymous'. I'm using version 2.0.1 of the flutter_facebook_login plugin, since the latest v... | I'm building a Flutter app with Android Studio (a Time Tracker, following a course on Udemy) and I am at the stage where I have created a sign-in page, that allows me to sign in using either Google, Facebook, email or 'going anonymous'. I'm using version 2.0.1 of the flutter_facebook_login plugin, since the latest vers... | ios|firebase|android-studio|flutter|facebook-login | 0 | 2020-02-09T22:26:50.973Z | 2,020 | 2 | 22 | 6 | 2,605 | 2 | 1,937 | 87 | 5 | 3 | true | false | true | false | false | false | zero |
60,141,940 | Databinding in Xamarin.Forms using a RealObject | <p>Apps running very smoothly but I have decided to add to it. I currently have an APR Calculator but I want users to be able to save APRs. so I currently had my app all in the one class as it was pretty small. The way it was set out was using MVVM. Like I said I now want users to be able to save APRs so I installed Re... | Apps running very smoothly but I have decided to add to it. I currently have an APR Calculator but I want users to be able to save APRs. so I currently had my app all in the one class as it was pretty small. The way it was set out was using MVVM. Like I said I now want users to be able to save APRs so I installed Realm... | c#|xamarin.forms|xamarin.android|xamarin.ios|realm | 0 | 2020-02-09T22:27:14.077Z | 2,020 | 2 | 22 | 6 | 62 | 2 | 805 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
60,141,943 | Kotlin - Parcelable Type mismatch: Required: String, Found: String? | <p>The compiler is giving me the error <code>Type mismatch: Required: String, Found: String?</code> for the lines
<code>parcel.writeString(firstName)</code> and <code>parcel.writeString(lastName)</code> inside the constructor of a Parcelable data class.</p>
<p>Here is my class.</p>
<pre><code>data class Mouse(
val f... | The compiler is giving me the error Type mismatch: Required: String, Found: String? for the lines parcel.writeString(firstName) and parcel.writeString(lastName) inside the constructor of a Parcelable data class. Here is my class. [CODE] I don't understand why there is the error and how to correct it. | android-studio|kotlin|parcelable | 2 | 2020-02-09T22:27:43.700Z | 2,020 | 2 | 22 | 6 | 2,664 | 1 | 301 | 67 | 3 | 1 | true | false | true | false | false | false | low |
60,141,954 | Do we really need viewModelFactories and viewmodelProviders when using Dagger? | <p>So I was working on some sample MVVM project using Dagger. I have a viewmodel factory that goes like this:</p>
<pre><code>class DaggerViewModelFactory @Inject constructor(private val viewModelsMap: Map<Class<out ViewModel>, @JvmSuppressWildcards Provider<ViewModel>>) :
ViewModelProvider.Factor... | So I was working on some sample MVVM project using Dagger. I have a viewmodel factory that goes like this: [CODE] A viewmodel factory module [CODE] I got a ViewModelModule: [CODE] A component that goes like this: [CODE] An a viewmodel that goes like this: [CODE] So I can either inject my viewmodel in my activity using ... | mvvm|dagger-2|dagger|android-viewmodel|android-mvvm | 1 | 2020-02-09T22:28:50.340Z | 2,020 | 2 | 22 | 6 | 1,105 | 1 | 700 | 78 | 5 | 7 | true | false | false | false | false | false | low |
60,141,982 | MotionLayout keyTrigger doesn't work properly? | <p>I have MotionLayout xml file </p>
<p>
</p>
<pre><code><androidx.constraintlayout.motion.widget.MotionLayout
android:id="@+id/motionLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#1e376b"
app:layoutDescription="@xml/motion_layout_header_sc... | I have MotionLayout xml file [CODE] and here is my scene file [CODE] But you can see in the video there are issues with fab when scrolling up it disappears and then when I scroll down it doesn't appear again. https://drive.google.com/file/d/1-V5EAdKd0EDfYOKE0ElgfEOSOoUUZrCK/view?usp=sharing | android|android-motionlayout | 2 | 2020-02-09T22:33:19.347Z | 2,020 | 2 | 22 | 6 | 473 | 1 | 291 | 46 | 2 | 2 | true | false | false | false | false | false | low |
60,142,046 | How to call variable from java inside the js in webview | <p>I am filling the user name box automaticly in webview application. But ı need to fill the blanks with wariable which defined in java code here is my code. I want to use variable in my java code instade of "PASS" and "NAME"</p>
<p>javascript:</p>
<pre class="lang-js prettyprint-override"><code>document.getElementBy... | I am filling the user name box automaticly in webview application. But ı need to fill the blanks with wariable which defined in java code here is my code. I want to use variable in my java code instade of "PASS" and "NAME" javascript: [CODE] java: [CODE] | javascript|java|android-studio|variables|webview | 0 | 2020-02-09T22:43:41.797Z | 2,020 | 2 | 22 | 6 | 240 | 1 | 254 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
60,142,127 | MotionLayout - Animate without event | <p>In my scene that I want to animate I have some animation that is triggered by an on click event.
But I also have some bits that I want to animate in the background and on repeat that are not triggered by anything. Can I use motionlayout to create animation that just loops and needs no trigger?</p> | In my scene that I want to animate I have some animation that is triggered by an on click event. But I also have some bits that I want to animate in the background and on repeat that are not triggered by anything. Can I use motionlayout to create animation that just loops and needs no trigger? | android|android-motionlayout | 1 | 2020-02-09T22:55:36.240Z | 2,020 | 2 | 22 | 6 | 1,571 | 1 | 294 | 36 | 2 | 0 | false | false | false | false | false | false | low |
60,142,202 | Android Studio emulator frame size is much bigger then the screen size | <p>I tried to use Android Studio emulator on my Dell XPS 15 with 4K display (set to 200% scaling). There is a problem, however. The size of the emulator screen is fine, but the frame around it is enormous. Here is how it looks like:</p>
<p><a href="https://i.stack.imgur.com/PoONq.jpg" rel="nofollow noreferrer"><img sr... | I tried to use Android Studio emulator on my Dell XPS 15 with 4K display (set to 200% scaling). There is a problem, however. The size of the emulator screen is fine, but the frame around it is enormous. Here is how it looks like: I used Android Studio and it's emulators on this machine before, but it was more then a mo... | android|android-studio|android-emulator|scaling | 4 | 2020-02-09T23:04:39.077Z | 2,020 | 2 | 23 | 6 | 2,034 | 2 | 726 | 70 | 4 | 0 | false | false | false | false | false | false | low |
60,142,230 | Android app is able to make network calls without network permissions defined in the manifest | <p>I am developing an Android app.</p>
<p>I haven't added the permissions below to the manifest but the app is still able to make network calls successfully without any exception.</p>
<pre><code><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.... | I am developing an Android app. I haven't added the permissions below to the manifest but the app is still able to make network calls successfully without any exception. [CODE] I use the latest Retrofit and Okhttp versions to make the network calls, minimum SDK is 21, compile SDK is 29. I created an empty project and t... | android|kotlin|android-permissions|android-networking|android-network-security-config | 1 | 2020-02-09T23:07:38.903Z | 2,020 | 2 | 23 | 6 | 206 | 1 | 477 | 93 | 5 | 1 | true | false | false | false | false | false | low |
60,142,311 | Using default method raises AbstractMethorError in Android release build | <p>I have an interface that inherits from Android's <code>TextWatcher</code> to only implement <code>afterTextChanged</code> method. I have enabled Java 8 support in my project, and added source and target compatibility options in <code>build.gradle</code> file, but even though it works flawless in debug builds, it fai... | I have an interface that inherits from Android's TextWatcher to only implement afterTextChanged method. I have enabled Java 8 support in my project, and added source and target compatibility options in build.gradle file, but even though it works flawless in debug builds, it fails in release builds on every device I tes... | java|android|java-8|textwatcher|default-method | 7 | 2020-02-09T23:20:33.853Z | 2,020 | 2 | 23 | 6 | 505 | 2 | 902 | 72 | 5 | 5 | true | false | false | false | false | false | medium |
60,142,356 | Using Linked Lists in Checkerbox selection List react-native | <p>I created a Linked-List data structure in my react-native app that I want to move between screens and then pick a node based on a checkerbox selection menu.</p>
<p>I understand that I can move the list using react-native-navigation, so now I would like to display the list with a checkerbox list to select multiple n... | I created a Linked-List data structure in my react-native app that I want to move between screens and then pick a node based on a checkerbox selection menu. I understand that I can move the list using react-native-navigation, so now I would like to display the list with a checkerbox list to select multiple nodes and pe... | javascript|android|ios|react-native|linked-list | 1 | 2020-02-09T23:26:52.783Z | 2,020 | 2 | 23 | 6 | 688 | 1 | 870 | 60 | 5 | 0 | false | false | false | false | false | false | low |
60,142,396 | How to save time correctly so that it can be edited later | <p>I have had trouble saving time for some time. Maybe I will first describe how I would like it to work. The application saves time during several events, subtracts or adds these values in this way counting the time spent e.g. at work or on any activity. Time is saved to Firebase - for this reason it is saved as timei... | I have had trouble saving time for some time. Maybe I will first describe how I would like it to work. The application saves time during several events, subtracts or adds these values in this way counting the time spent e.g. at work or on any activity. Time is saved to Firebase - for this reason it is saved as timeinmi... | android|kotlin|datepicker|jodatime|simpledateformat | 0 | 2020-02-09T23:33:53.993Z | 2,020 | 2 | 23 | 6 | 36 | 0 | 945 | 57 | 5 | 0 | false | true | false | false | false | false | zero |
60,142,445 | MaterialComponents theme breaks TabLayout | <p>I'm migrating my app to MaterialComponents themes. I have an activity with a TabLayout inside a Coordinator layout with a scrolling behavior, like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/a... | I'm migrating my app to MaterialComponents themes. I have an activity with a TabLayout inside a Coordinator layout with a scrolling behavior, like this: [CODE] It was working fine with AppCompat themes. I have 3 tabs, and the 3 tabs titles were displayed correctly in the TabLayout. Now I have three issues: the TabLayou... | android|android-tablayout|material-components | 1 | 2020-02-09T23:42:51.327Z | 2,020 | 2 | 23 | 6 | 1,498 | 1 | 982 | 41 | 3 | 1 | true | false | false | false | false | false | low |
60,142,464 | Flutter build error for the first time :Could not open settings remapped class cache for 7yvt6la2007dno98lt3rzbguf | <p>I just downloaded Flutter and tried to learn the emulator with the first default code which Google offered.
But it does not run at all!</p>
<p>I have the dart and flutter plugins installed.
I also changed the order of jcenter() and google() too</p>
<p>like this:</p>
<pre><code>buildscript {
ext.kotlin_version = ... | I just downloaded Flutter and tried to learn the emulator with the first default code which Google offered. But it does not run at all! I have the dart and flutter plugins installed. I also changed the order of jcenter() and google() too like this: [CODE] And the error is: [CODE] | android|gradle|flutter | 17 | 2020-02-09T23:45:59.717Z | 2,020 | 2 | 23 | 6 | 30,168 | 11 | 280 | 114 | 3 | 2 | true | false | true | true | true | false | medium |
60,142,482 | Android - Dalvik virtual machine processes | <p>I would like to investigate the behavior of processes on a dalvik virtual machine. I wonder if I can run the machine itself on a linux environment? How to manage such a machine? Can new processes be started? I do not have knowledge in this area and I would be grateful for any information.</p>
<p>Thanks for the help... | I would like to investigate the behavior of processes on a dalvik virtual machine. I wonder if I can run the machine itself on a linux environment? How to manage such a machine? Can new processes be started? I do not have knowledge in this area and I would be grateful for any information. Thanks for the help | android|linux|dalvik | 0 | 2020-02-09T23:48:54.853Z | 2,020 | 2 | 23 | 6 | 44 | 0 | 309 | 42 | 3 | 0 | false | true | false | false | false | false | zero |
60,142,562 | FragmentScenario and nested NavHostFragments don't perform navigations as expected in Instrumentation tests | <p>I am writing a single Activity app that uses Android's Navigation Components to help with navigation and Fragment Scenario for instrumentation testing. I have run into a performance discrepancy when using the back button between the actual app navigation behavior and the behavior of a Fragment being tested in isolat... | I am writing a single Activity app that uses Android's Navigation Components to help with navigation and Fragment Scenario for instrumentation testing. I have run into a performance discrepancy when using the back button between the actual app navigation behavior and the behavior of a Fragment being tested in isolation... | android|android-fragments|android-architecture-navigation|android-fragmentscenario | 0 | 2020-02-10T00:06:55.913Z | 2,020 | 2 | 0 | 0 | 625 | 1 | 4,194 | 107 | 4 | 1 | true | false | false | false | false | false | zero |
60,142,636 | Pushing an object of arrays to an Array or ArrayList and access it from another class in Android | <p>I have an object of arrays and I am pushing it to an ArrayList like this:</p>
<pre><code>static ArrayList<String> jsonResponse = new ArrayList<>();
//inside the method
strResp = response.body().string(); //the response I get from the server
jsonResponse.clear(); //clear the array first
jsonResponse.ad... | I have an object of arrays and I am pushing it to an ArrayList like this: [CODE] Now from the other class, I am accessing it like this but I can't get it to print because it says NULL: [CODE] First question, is ArrayList a proper way of achieving what I want in this case? Second question, why am I not able to print it ... | java|android|arrays | 0 | 2020-02-10T00:20:02.653Z | 2,020 | 2 | 0 | 0 | 118 | 3 | 477 | 96 | 3 | 2 | true | false | false | false | false | false | zero |
60,142,651 | I want to scroll the scrollview not the webview | <p><a href="https://stackoverflow.com/questions/13257990/android-webview-inside-scrollview-scrolls-only-scrollview">Android WebView inside ScrollView scrolls only scrollview</a></p>
<p>I've tried many solutions above similar question.
But these are all about the scrolls inside the webview.
So I've succeed about about ... | Android WebView inside ScrollView scrolls only scrollview I've tried many solutions above similar question. But these are all about the scrolls inside the webview. So I've succeed about about the inside scrolls. But I want to try Scrolls that is outside of the webview. Which is Main scrollView. This Scrollview must scr... | java|android | 0 | 2020-02-10T00:22:37.377Z | 2,020 | 2 | 0 | 0 | 115 | 2 | 688 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.