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,209,633 | how to save Checked value of checkbox in model class Flutter | <p>How to save checkbox checked value in model class so the box is remain selected when I come back to first from second page and also open a text filed on a last checkbox click?</p>
<pre><code>Map<String, bool> values = {
'Apple': false,
'Banana': false,
'Cherry': false,
'Mango': false,
'Ora... | How to save checkbox checked value in model class so the box is remain selected when I come back to first from second page and also open a text filed on a last checkbox click? [CODE] | android|flutter|dart | 0 | 2020-02-13T14:02:14.903Z | 2,020 | 2 | 14 | 3 | 1,427 | 1 | 182 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
60,209,712 | Delphi 10.3 Android Intent BroadcastReceiver | <p>I have a ZEBRA TC20, I have configured DataWedge according to this Guide:</p>
<p><a href="https://techdocs.zebra.com/datawedge/6-6/guide/api/tutorials/" rel="nofollow noreferrer">https://techdocs.zebra.com/datawedge/6-6/guide/api/tutorials/</a> </p>
<p>The only difference I made is Intent Action: <code>com.xlr.ACT... | I have a ZEBRA TC20, I have configured DataWedge according to this Guide: https://techdocs.zebra.com/datawedge/6-6/guide/api/tutorials/ The only difference I made is Intent Action: com.xlr.ACTION In Delphi, I have the following Unit to process this (found the example from Embarcadero): [CODE] I have also altered Androi... | android|delphi|android-intent|android-broadcast | 1 | 2020-02-13T14:06:02.160Z | 2,020 | 2 | 14 | 3 | 1,996 | 1 | 522 | 44 | 4 | 2 | true | false | false | false | false | false | low |
60,209,847 | CameraX can't initialize | <p>I try to use CameraView. And I'm a beginner in Android. I read some articles and information on class but I am not able to make it works.
I have the following errors :</p>
<blockquote>
<p>Caused by: java.lang.IllegalStateException: CameraX is not initialized properly. Either CameraX.initialize() needs to have bee... | I try to use CameraView. And I'm a beginner in Android. I read some articles and information on class but I am not able to make it works. I have the following errors : Caused by: java.lang.IllegalStateException: CameraX is not initialized properly. Either CameraX.initialize() needs to have been called or the CameraXCon... | android|android-camerax | 4 | 2020-02-13T14:12:12.837Z | 2,020 | 2 | 14 | 3 | 8,412 | 7 | 544 | 24 | 2 | 5 | true | false | true | false | false | false | low |
60,209,912 | lateinit property locationRequest has not been initialized | <p>I am following <a href="https://www.raywenderlich.com/230-introduction-to-google-maps-api-for-android-with-kotlin" rel="nofollow noreferrer">raywenderlich's tutorial</a> Introduction to Google Maps API for Android with Kotlin. All works as expected when the code is in an <code>Activity</code>, but when I put it int... | I am following raywenderlich's tutorial Introduction to Google Maps API for Android with Kotlin. All works as expected when the code is in an Activity , but when I put it into a Fragment , I get an error lateinit property locationRequest has not been initialized . Here is my code: XyzFragment.kt [CODE] What am I doing ... | android|google-maps|kotlin | 0 | 2020-02-13T14:16:07.460Z | 2,020 | 2 | 14 | 3 | 2,275 | 2 | 326 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
60,209,959 | C# Copy file from Android to PC | <p>I need to copy a bunch of files from an Android phone to the PC.
It doesn't work the normal way, the PC is super slow and crashes all the time for some reason.
I want to copy it file by file.</p>
<p>My problem is that if I use Directory.GetFiles("Path") or DirectoryInfo.GetFiles("Path") it does add the persistant D... | I need to copy a bunch of files from an Android phone to the PC. It doesn't work the normal way, the PC is super slow and crashes all the time for some reason. I want to copy it file by file. My problem is that if I use Directory.GetFiles("Path") or DirectoryInfo.GetFiles("Path") it does add the persistant Datapath to ... | c#|android|file|copy | 0 | 2020-02-13T14:19:12.647Z | 2,020 | 2 | 14 | 3 | 72 | 0 | 711 | 31 | 4 | 1 | true | true | false | false | false | false | zero |
60,209,995 | i have written a code for array but logcat not showing the error with it | <p>i am facing an issue but it is not showed in <strong>LOGCAT</strong> as it is not a code error or null
the issue is that if the question has <strong>2 answers</strong> and user selects both of them it counts in right answer but if the question has <strong>only 1 answer</strong> the game calculates it to wrong answe... | i am facing an issue but it is not showed in LOGCAT as it is not a code error or null the issue is that if the question has 2 answers and user selects both of them it counts in right answer but if the question has only 1 answer the game calculates it to wrong answer even if the user selected the right answer i will pos... | java|android | 0 | 2020-02-13T14:20:54.237Z | 2,020 | 2 | 14 | 3 | 33 | 1 | 648 | 72 | 2 | 2 | true | false | false | false | false | false | zero |
60,210,001 | Can onDestroy() be called without onHandleWork() in JobIntentService? | <p>I am using <code>JobIntentService.enqueueWork()</code></p>
<p>I would like to know if it's ever possible for the <code>onDestroy()</code> to be called even without <code>onHandleWork()</code> called in a JobIntentService.</p>
<p>Basically, what's the lifecycle of a JobIntentService. Is <code>onHandleWork()</code> ... | I am using JobIntentService.enqueueWork() I would like to know if it's ever possible for the onDestroy() to be called even without onHandleWork() called in a JobIntentService. Basically, what's the lifecycle of a JobIntentService. Is onHandleWork() guaranteed to be called at least once before onDestroy() gets invoked? | android|service|nullpointerexception|android-lifecycle|jobintentservice | 2 | 2020-02-13T14:21:25Z | -1 | -1 | -1 | -1 | 92 | 1 | 319 | 69 | 5 | 0 | false | false | false | false | false | false | low |
60,210,120 | is it possible to enable or disable geo tagging feature in Android camera programmatically | <p>I'm trying read the location from images which is taken from the camera api which I included in my project.</p>
<p>But </p>
<pre><code>exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE)
</code></pre>
<p>gives null.</p>
<p>I know I need to enable save location(geo tagging) in settings.
But I don't like to do that,... | I'm trying read the location from images which is taken from the camera api which I included in my project. But [CODE] gives null. I know I need to enable save location(geo tagging) in settings. But I don't like to do that, as I need it to be done programmatically. Is it possible to enable or disable geo tagging? | android|geolocation|android-camera|geotagging | 1 | 2020-02-13T14:28:21.657Z | 2,020 | 2 | 14 | 3 | 627 | 1 | 314 | 90 | 4 | 1 | true | false | false | false | false | false | low |
60,210,323 | How to upload image using apollo iOS client? | <p>I am having a problem with uploading an image in ios apollo client. after I upload an image I get a <strong>GraphQlError "createReadStream is not a function"</strong>.
I could not figure out what has gone wrong?
<strong>Mutation</strong></p>
<pre><code>mutation UploadPhoto($input: UploadPhotoInput){
uploadClientP... | I am having a problem with uploading an image in ios apollo client. after I upload an image I get a GraphQlError "createReadStream is not a function" . I could not figure out what has gone wrong? Mutation [CODE] Type Detail [CODE] Following code is not working [CODE] Upload image [CODE] | android|ios|swift|graphql|apollo-client | 0 | 2020-02-13T14:39:19.783Z | 2,020 | 2 | 14 | 3 | 1,265 | 1 | 287 | 44 | 5 | 4 | true | false | false | false | false | false | zero |
60,210,360 | ImageView is null (NullPointerException) | <p>I'm trying to set the srcCompat of an ImageView but got this error instead.</p>
<p><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pangelyn/com.example.pangelyn.SwipeRight}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageR... | I'm trying to set the srcCompat of an ImageView but got this error instead. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pangelyn/com.example.pangelyn.SwipeRight}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on ... | java|android|nullpointerexception | -2 | 2020-02-13T14:41:19.103Z | 2,020 | 2 | 14 | 3 | 585 | 1 | 459 | 40 | 3 | 3 | true | false | false | false | false | true | negative |
60,210,362 | Attach file from internal storage | <p>This question has been asked by many people. I would like to attach a file from internal storage using the below code with accepted comment here on SO:</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain-text");
intent.putExtra(Intent.EXTRA_EMAIL, new St... | This question has been asked by many people. I would like to attach a file from internal storage using the below code with accepted comment here on SO: [CODE] Permission is used in Manifest: [CODE] The app throws Toast message "Attachment Error". | java|android|email|attachment | 0 | 2020-02-13T14:41:23.450Z | 2,020 | 2 | 14 | 3 | 30 | 0 | 246 | 33 | 4 | 2 | true | true | false | false | false | false | zero |
60,210,527 | ExoPlayer2 how to loop a part / segment of a video | <p>I have a video of 10 seconds. I want to loop a segment from 2 seconds to 6 seconds. Starting the player at the right time is easy:</p>
<pre><code>player?.seekTo(2000)
</code></pre>
<p>I don't think there is a functionality available in the ExoPlayer2 library to define an end position. So I tried to add a delay co-... | I have a video of 10 seconds. I want to loop a segment from 2 seconds to 6 seconds. Starting the player at the right time is easy: [CODE] I don't think there is a functionality available in the ExoPlayer2 library to define an end position. So I tried to add a delay co-routine. With the method seekToPositionAndStartCoun... | android|kotlin|exoplayer2.x | 0 | 2020-02-13T14:49:16.703Z | 2,020 | 2 | 14 | 3 | 228 | 1 | 466 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
60,210,531 | Why Transformation.switchMap(anyLiveData) isn't fire when i change the value of "anyLiveData" | <p>I will hope that when i call to "addPlantToGarden()" passing respect "plantId" parameter then fire the "observers" "Transformations.switchMap(plantName)" but that doesn't happen, what is the error?</p>
<pre class="lang-kotlin prettyprint-override"><code>
private val plantName: MutableLiveData<String> = Mutabl... | I will hope that when i call to "addPlantToGarden()" passing respect "plantId" parameter then fire the "observers" "Transformations.switchMap(plantName)" but that doesn't happen, what is the error? [CODE] | android|kotlin|android-livedata|mutablelivedata | 0 | 2020-02-13T14:49:31.230Z | 2,020 | 2 | 14 | 3 | 405 | 1 | 204 | 93 | 4 | 1 | true | false | false | false | false | false | zero |
60,210,612 | When select two item at the same time in recycle view application crash,how can i solve this? | <pre><code> public class BrandsAdapter extends RecyclerView.Adapter<BrandsAdapter.ViewHolder> implements Filterable {
private final OnListFragmentInteractionListener mListener;
int itemLayout = R.layout.brand_item;
private List<Brand> mValues;
private List<Brand> contac... | [CODE] when i clicked two item at the same time the app calls the interface method two times mListener.onListFragmentInteraction(holder.mItem); It does [CODE] StackTrace [CODE] | android|android-recyclerview|android-jetpack | 3 | 2020-02-13T14:54:25.273Z | 2,020 | 2 | 14 | 3 | 237 | 1 | 176 | 93 | 3 | 3 | true | false | false | false | false | false | low |
60,210,618 | Flutter as a UIModule | <p>I'm studying flutter as a module: UIModule (Only components and abstract/interface behaviors).</p>
<p>The idea is apply inheritance between native and flutter to define a context implementation in native layer. Or use a uicomponent written on flutter module to use in native project.</p>
<p>This is strategy is poss... | I'm studying flutter as a module: UIModule (Only components and abstract/interface behaviors). The idea is apply inheritance between native and flutter to define a context implementation in native layer. Or use a uicomponent written on flutter module to use in native project. This is strategy is possible? | android|ios|flutter | 1 | 2020-02-13T14:54:44.573Z | 2,020 | 2 | 14 | 3 | 25 | 0 | 306 | 21 | 3 | 0 | false | true | false | false | false | false | low |
60,210,651 | Updating Firebase causes RxBLE crash | <p>Okay, so I'm having some very odd behaviour that doesn't make much sense in my app.</p>
<p>My app uses BLE and I have a static class which I initialize on app launch, this typically works with no issue.</p>
<p>Today I made a single change in my app which was to update this:</p>
<pre><code> implementation 'com.... | Okay, so I'm having some very odd behaviour that doesn't make much sense in my app. My app uses BLE and I have a static class which I initialize on app launch, this typically works with no issue. Today I made a single change in my app which was to update this: [CODE] To this: [CODE] And after making this minor version ... | android|firebase|dagger|rxbluetooth | 0 | 2020-02-13T14:55:58.897Z | 2,020 | 2 | 14 | 3 | 107 | 1 | 1,047 | 36 | 4 | 4 | true | false | false | false | false | false | zero |
60,210,694 | ZXing Embedded center horizontal prompt | <p>Well, had this doubt and found a simple solution. I'll share it below.<br>
<a href="https://i.stack.imgur.com/uaUre.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uaUre.png" alt="enter image description here"></a></p> | Well, had this doubt and found a simple solution. I'll share it below. | android|android-manifest|zxing|android-theme|android-styles | 1 | 2020-02-13T14:57:55.457Z | 2,020 | 2 | 14 | 3 | 41 | 1 | 70 | 39 | 5 | 0 | false | false | false | false | false | false | low |
60,210,769 | how to get the items name from listview after using intent with sqlite? | <p>i have two listviews each one of them is in different activity i want to send an item from the first listview to the other one by long click on it im using intent, im using string file to get the data it sends the item perfectly but its not saved to sqlite i dont know where is the problem please take a look at my co... | i have two listviews each one of them is in different activity i want to send an item from the first listview to the other one by long click on it im using intent, im using string file to get the data it sends the item perfectly but its not saved to sqlite i dont know where is the problem please take a look at my code ... | java|android|sqlite|listview | 0 | 2020-02-13T15:01:59.277Z | 2,020 | 2 | 15 | 3 | 22 | 1 | 404 | 71 | 4 | 3 | true | false | false | false | false | false | zero |
60,210,898 | Sqlite File Upload in WebView Without filechooser | <p>May be like Duplicate, but I cant find most suitable answer for me. Many examples have explain about img files. like this, <a href="https://stackoverflow.com/questions/57425400/android-java-upload-file-via-webview-without-filechooser">Android Java Upload File via WebView without FileChooser</a> I want to upload .db ... | May be like Duplicate, but I cant find most suitable answer for me. Many examples have explain about img files. like this, Android Java Upload File via WebView without FileChooser I want to upload .db file into my web server from my android application using Webview. but I cant understand what I want to do. Is that pos... | android|file-upload|webview | 0 | 2020-02-13T15:09:21.057Z | 2,020 | 2 | 15 | 3 | 40 | 0 | 395 | 49 | 3 | 0 | false | true | false | false | false | false | zero |
60,211,065 | Navigation Drawer item click | <p>I have <em>DrawerLayout</em> and <em>NavigationView</em>. There are two fragments which are changed when I click on item in navigation drawer and that works well:</p>
<pre><code> <fragment
android:id="@+id/nav_settings"
android:label="@string/menu_settings"
tools:layout="@l... | I have DrawerLayout and NavigationView . There are two fragments which are changed when I click on item in navigation drawer and that works well: [CODE] The problem is that I have several other items in the drawer menu that are not Fragments and I can not make them clickable: [CODE] Here is the code: [CODE] When I set ... | android|android-fragments|navigation-drawer|drawerlayout | 1 | 2020-02-13T15:17:18.643Z | 2,020 | 2 | 15 | 3 | 929 | 1 | 448 | 28 | 4 | 3 | true | false | false | false | false | false | low |
60,211,098 | Getting a Null value while passing data through intent to another activity | <p>When I do a debug, I can see the first activity sending thecorrect number, but the second activity always gets a null value. Thank you for helping.</p>
<p>First Activity:</p>
<pre><code> val intent = Intent(this@InfBateria,ControlActivity::class.java)
intent.putExtra(EXTRA_PERCENTAGE,batteryPercentage.toString())... | When I do a debug, I can see the first activity sending thecorrect number, but the second activity always gets a null value. Thank you for helping. First Activity: [CODE] Second Activity: [CODE] [Edit] Code of the Activity (differente from the First one) that acttualy opens da Second Activity: [CODE] | android|android-intent|null | 0 | 2020-02-13T15:19:36.177Z | 2,020 | 2 | 15 | 3 | 503 | 1 | 301 | 74 | 3 | 3 | true | false | false | false | false | false | zero |
60,211,149 | Is it possible to start adb logcat without cable? | <p>Android studio 3.6
If I want to start adb I use USB/microUSB cable. After plugin cable I start in console command:</p>
<pre><code>adb logcat -vtime
</code></pre>
<p>And as result I see all logs of my application.</p>
<p>Nice. It's work find. </p>
<p>Is it possible to start <code>adb logcat</code> WITHOUT cable?... | Android studio 3.6 If I want to start adb I use USB/microUSB cable. After plugin cable I start in console command: [CODE] And as result I see all logs of my application. Nice. It's work find. Is it possible to start adb logcat WITHOUT cable? | android | 0 | 2020-02-13T15:22:03.990Z | 2,020 | 2 | 15 | 3 | 658 | 2 | 241 | 49 | 1 | 1 | true | false | false | false | false | false | zero |
60,211,200 | Custom Image View Cut Left and Right Edges Semi Circle | <p>Need help with developing a custom view. This is the kind of view I need to develop:
<a href="https://i.stack.imgur.com/b1V2H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b1V2H.png" alt="enter image description here"></a></p>
<p>Have tried a way, but it does not look like a card, its curve an... | Need help with developing a custom view. This is the kind of view I need to develop: Have tried a way, but it does not look like a card, its curve and card can be seen in the background. Need something transparent at the cut left and right edges. Have referred https://github.com/mreram/TicketView , but this does not gi... | android|view|imageview|android-custom-view | 2 | 2020-02-13T15:24:59.997Z | 2,020 | 2 | 15 | 3 | 762 | 1 | 482 | 54 | 4 | 0 | false | false | false | false | false | false | low |
60,211,202 | Show a number raised to the power of another number - superscript | <p>In my application I want to show a textview of a number raised to the power of another number. For example 2^3 but with out the caret.
My actual number is in scientific form - 3.488807993e-5 and I want to show it as 3.4^e-5.
This is what I tried </p>
<pre><code>@Override
public String getFormattedValue(float va... | In my application I want to show a textview of a number raised to the power of another number. For example 2^3 but with out the caret. My actual number is in scientific form - 3.488807993e-5 and I want to show it as 3.4^e-5. This is what I tried [CODE] However, it didn't work. | java|android | 0 | 2020-02-13T15:25:04.357Z | 2,020 | 2 | 15 | 3 | 102 | 1 | 277 | 65 | 2 | 1 | true | false | false | false | false | false | zero |
60,211,231 | How to show the phone number and email selector dialogs using play-services-* depdendencies? | <p>This has been asked a lot however all the solution now seem outdated since the deprecation of <code>GoogleApiClient</code>.</p>
<p>I want to show a dialog that lists the phone numbers present on the user's device. And separately, a dialog showing all emails associated with the device.</p>
<ul>
<li>Is there a solut... | This has been asked a lot however all the solution now seem outdated since the deprecation of GoogleApiClient . I want to show a dialog that lists the phone numbers present on the user's device. And separately, a dialog showing all emails associated with the device. Is there a solution not using GoogleApiClient? (which... | java|android|authentication|kotlin|google-play-services | 1 | 2020-02-13T15:26:23.973Z | 2,020 | 2 | 15 | 3 | 303 | 1 | 1,479 | 92 | 5 | 1 | true | false | false | false | false | false | low |
60,211,365 | TextView does not wrap contents tightly enough to center it properly in a layout | <p>I am trying to center the text in a <code>TextView</code>, which itself is contained in a constraint layout. The problem is, <code>wrap_content</code> does not wrap the text tightly enough, which causes it to be off-center. I tried all gravities, making it fill the parent and then use gravities, etc. and can't think... | I am trying to center the text in a TextView , which itself is contained in a constraint layout. The problem is, wrap_content does not wrap the text tightly enough, which causes it to be off-center. I tried all gravities, making it fill the parent and then use gravities, etc. and can't think of a solution and did not f... | android | 1 | 2020-02-13T15:32:08.810Z | 2,020 | 2 | 15 | 3 | 97 | 1 | 419 | 80 | 1 | 1 | true | false | false | false | false | false | low |
60,211,436 | Can you test multiple devices using different accounts on Firebase? | <p>If I ran a test using a batch of 4 physical devices on Firebase is it possible to have a different account for my app on each device?</p>
<p>Edit:
I am working on testing an app that requires a user to sign in to an account and any changes made will be recorded on a database. Previously i was attempting to run test... | If I ran a test using a batch of 4 physical devices on Firebase is it possible to have a different account for my app on each device? Edit: I am working on testing an app that requires a user to sign in to an account and any changes made will be recorded on a database. Previously i was attempting to run tests using mul... | firebase|testing|android-espresso|firebase-test-lab | 1 | 2020-02-13T15:35:38.650Z | 2,020 | 2 | 15 | 3 | 369 | 1 | 625 | 67 | 4 | 0 | false | false | false | false | false | false | low |
60,211,460 | Android Studio how to use multiple appBarConfiguration? One for drawer layout and one for bottom navigation view | <p>I need to use Drawerlayout and BottomNavigationView in the same activity. This is my Activity <a href="https://i.stack.imgur.com/jcmLP.png" rel="nofollow noreferrer">HomeActivity</a></p>
<p>The DrawerLayout works perfectly, but the BottomNavigationView does not use the AppBarConfiguration that is defined, but that ... | I need to use Drawerlayout and BottomNavigationView in the same activity. This is my Activity HomeActivity The DrawerLayout works perfectly, but the BottomNavigationView does not use the AppBarConfiguration that is defined, but that of the DrawerLayout and when interacting with the BottomNavigationView it works, but sh... | java|android|navigation | 0 | 2020-02-13T15:36:33.307Z | 2,020 | 2 | 15 | 3 | 63 | 0 | 418 | 112 | 3 | 0 | false | true | false | false | false | false | zero |
60,211,478 | mocking private variables in a function for testing Junit4 | <p>I am writing a Junit4 test for a function which has Boolean variables which are set based on other functions. How can I mock these Boolean variable in my test case.</p>
<p>The function I am testing</p>
<pre><code>private var operatorSigned = false
private var engineerSigned = false
override fun onValidationSucce... | I am writing a Junit4 test for a function which has Boolean variables which are set based on other functions. How can I mock these Boolean variable in my test case. The function I am testing [CODE] This is how the values are set [CODE] My test case [CODE] I want to be able to change values on operatorSigned and enginee... | java|android|unit-testing|kotlin|junit | 2 | 2020-02-13T15:37:28.530Z | 2,020 | 2 | 15 | 3 | 443 | 1 | 346 | 58 | 5 | 3 | true | false | false | false | false | false | low |
60,211,491 | Android service not working when phone is idle / dozing / locked | <p>Good evening,</p>
<p>I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. </p>
<p>I'm working on a bigg... | Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. I'm working on a bigger project, but here... | android|background-process|foreground-service|android-doze-and-standby|idle-processing | 2 | 2020-02-13T15:38:02.170Z | 2,020 | 2 | 15 | 3 | 1,699 | 1 | 1,827 | 64 | 5 | 4 | true | false | false | false | false | false | low |
60,211,566 | LiveData never gets updated | <p>In my App i insert a couple of "route" objects using room. directly after doing the insert the app shows a new screen where i need the data.</p>
<p>The Problem looks like the insert takes place after the new view is already created, i insert the data by using ViewModel-> Repository -> DAO</p>
<p>On the next screen... | In my App i insert a couple of "route" objects using room. directly after doing the insert the app shows a new screen where i need the data. The Problem looks like the insert takes place after the new view is already created, i insert the data by using ViewModel-> Repository -> DAO On the next screen i observe the Data... | android-room|android-livedata | 1 | 2020-02-13T15:41:40.137Z | 2,020 | 2 | 15 | 3 | 36 | 1 | 448 | 27 | 2 | 1 | true | false | false | false | false | false | low |
60,211,573 | Prevent creating new activities from notification click | <p>I have an app that use IntentService to work in background even if it is closed.</p>
<p>There is a button that launches background process and notification appears. This notification will not disappear until user press another button that stops IntentService.</p>
<p>But here I got another issue. I launch an app fo... | I have an app that use IntentService to work in background even if it is closed. There is a button that launches background process and notification appears. This notification will not disappear until user press another button that stops IntentService. But here I got another issue. I launch an app for the first time. T... | android|kotlin|android-intent|android-activity|notifications | 1 | 2020-02-13T15:41:51.093Z | 2,020 | 2 | 15 | 3 | 217 | 1 | 965 | 55 | 5 | 1 | true | false | false | false | false | false | low |
60,211,614 | Xamarin Android Archive error. Problem with Path file | <p>I am trying to create an APK, but I am receiving this error</p>
<blockquote>
<p>Cannont create the archive file because the archive directory cannot be created.
Could not find a part of the path ..\artifacts\bin\MonoDoublePulseBle-android\AnyCPU</p>
</blockquote>
<p>I discovered when I click on Archive it crea... | I am trying to create an APK, but I am receiving this error Cannont create the archive file because the archive directory cannot be created. Could not find a part of the path ..\artifacts\bin\MonoDoublePulseBle-android\AnyCPU I discovered when I click on Archive it creates a new folder with a lot of files (apk etc) at ... | c#|android|xamarin.forms | 0 | 2020-02-13T15:43:33.637Z | 2,020 | 2 | 15 | 3 | 985 | 1 | 954 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
60,211,616 | How to enable drag and drop and allow the user custom sorting? | <p>I have a RecyclerView that is a list of user-inputted "Steps" and these steps can be in any order the user wants by drag and drop. I have a TextView that shows the adapter position(the step ordering), but I'm having a hard time keeping it updated after drag and drop.</p>
<p>Using <code>ItemTouchHelper</code>, I hav... | I have a RecyclerView that is a list of user-inputted "Steps" and these steps can be in any order the user wants by drag and drop. I have a TextView that shows the adapter position(the step ordering), but I'm having a hard time keeping it updated after drag and drop. Using ItemTouchHelper , I have the following: [CODE]... | android|kotlin|android-recyclerview | 0 | 2020-02-13T15:43:37.760Z | 2,020 | 2 | 15 | 3 | 143 | 2 | 511 | 62 | 3 | 1 | true | false | false | false | false | false | zero |
60,211,744 | Invariant Violation: The navigation prop is missing for this navigator. in react-navigation 4 | <p>I am trying to create a navigation drawer for my React native App, using 2 screens,home screen and connection sreen but i keep getting this error:</p>
<pre><code>Invariant Violation: The navigation prop is missing for this navigator. In
react-navigation 3 you must set up your app container directly. More info:
ht... | I am trying to create a navigation drawer for my React native App, using 2 screens,home screen and connection sreen but i keep getting this error: [CODE] what's wrong with my code please. my App.js: [CODE] | javascript|android|reactjs|react-native|expo | 0 | 2020-02-13T15:50:02.477Z | 2,020 | 2 | 15 | 3 | 64 | 1 | 205 | 93 | 5 | 2 | true | false | false | false | false | false | zero |
60,211,790 | Unable to start the "HelloWorld" NativeScript app on an Android emulator | <p>This is a continuation of my previous question posted here:</p>
<p><a href="https://stackoverflow.com/questions/60173762/can-i-force-the-android-simulator-to-always-use-the-same-port">Can I "force" the Android Simulator to always use the same port?</a></p>
<p>I kind of found a workaround for the issue de... | This is a continuation of my previous question posted here: Can I "force" the Android Simulator to always use the same port? I kind of found a workaround for the issue described in that question. It's temporary, as it exposes the virtual machine where I am trying to run this NativeScript development environme... | android|android-emulator|nativescript | 0 | 2020-02-13T15:51:48.067Z | 2,020 | 2 | 15 | 3 | 45 | 0 | 1,091 | 72 | 3 | 1 | true | true | false | false | false | false | zero |
60,212,162 | Jetpack Compose and Android Room compatibility | <p>I am trying to set up Android Room in my Jetpack Compose project. However, when trying to add...</p>
<pre><code>kapt "androidx.room:room-compiler:2.2.3"
</code></pre>
<p>... to the app build.gradle dependencies. My build fails with the error...</p>
<pre><code>e: java.lang.NoSuchMethodError: org.jetbrains.kotlin.c... | I am trying to set up Android Room in my Jetpack Compose project. However, when trying to add... [CODE] ... to the app build.gradle dependencies. My build fails with the error... [CODE] Any insight as to why this is? Can we use Android Room with Jetpack Compose yet? | android|kotlin|android-room|android-jetpack|android-jetpack-compose | 6 | 2020-02-13T16:10:29.520Z | 2,020 | 2 | 16 | 3 | 2,010 | 3 | 266 | 46 | 5 | 2 | true | false | false | false | false | false | medium |
60,212,239 | Failure to pass # as input in dialer application | <p>I am building an android dialer application, but when my input contains string of form *123# the number which gets dialed is *123.
How can I pass # also in the dialer application?
Below is the code:</p>
<pre><code> public void onDial(View v) {
if (input.getText().length() <3) {
Toast.makeText(this, "... | I am building an android dialer application, but when my input contains string of form *123# the number which gets dialed is *123. How can I pass # also in the dialer application? Below is the code: [CODE] | android|android-studio|development-environment | 1 | 2020-02-13T16:14:11.647Z | 2,020 | 2 | 16 | 3 | 27 | 1 | 205 | 48 | 3 | 1 | true | false | false | false | false | false | low |
60,212,523 | How to determine how much data was sent through a TLS/TCP OutputStream on Android? | <p>The point is really this - my Android TLS/TCP socket disconnects sometimes mid-data stream. Usually because of timeouts, etc. I'm trying to determine how much data was actually sent successfully BEFORE the socket cut off so I know where to pick up.</p>
<p>How do I do this?</p>
<p>My thought is to pull the output s... | The point is really this - my Android TLS/TCP socket disconnects sometimes mid-data stream. Usually because of timeouts, etc. I'm trying to determine how much data was actually sent successfully BEFORE the socket cut off so I know where to pick up. How do I do this? My thought is to pull the output stream from the sock... | android|sockets|ssl|tcp | 0 | 2020-02-13T16:29:11.373Z | 2,020 | 2 | 16 | 3 | 76 | 1 | 639 | 82 | 4 | 1 | true | false | false | false | false | false | zero |
60,212,554 | Unable to resolve dependency when creating new kotlin project | <p>Hello i wanted to start a new project with Kotlin today but it doesn't sync and error when creating the project After searching I found out that this problem was due to Gradle and fixed by changing this codes</p>
<p>from</p>
<pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip... | Hello i wanted to start a new project with Kotlin today but it doesn't sync and error when creating the project After searching I found out that this problem was due to Gradle and fixed by changing this codes from [CODE] to [CODE] from [CODE] to [CODE] But I want to use the Gradle 5.1.1, Is there a way to use Gradle 5.... | android|android-studio|gradle|kotlin | 0 | 2020-02-13T16:31:55.883Z | 2,020 | 2 | 16 | 3 | 56 | 1 | 324 | 61 | 4 | 4 | true | false | false | false | false | false | zero |
60,212,679 | Android Questions | <p>I have some questions about android, that i would want to clarify to perfect my android basics knowledge. Here they are.</p>
<p>1- Do we need to declare android manifest permission to get user location?</p>
<p>2- Considering android testing aspects, can we only make tests in apllications directly installed on the ... | I have some questions about android, that i would want to clarify to perfect my android basics knowledge. Here they are. 1- Do we need to declare android manifest permission to get user location? 2- Considering android testing aspects, can we only make tests in apllications directly installed on the emulator or in phys... | android | -2 | 2020-02-13T16:39:03.837Z | 2,020 | 2 | 16 | 3 | 40 | 1 | 972 | 17 | 1 | 0 | false | false | false | false | false | true | negative |
60,212,687 | Regex in Java failed to match | <p>I'm writing an Android app in which I would need a Regex check for a data received through Bluetooth.</p>
<p>The data expression is supposed to be <code>A= 137, B= 137, C= 138, D= 136, E= 134, F= 138, G= 137</code> for every received line. I would like to first be sure the data matches " A= ddd, B= ddd.....G= ddd" ... | I'm writing an Android app in which I would need a Regex check for a data received through Bluetooth. The data expression is supposed to be A= 137, B= 137, C= 138, D= 136, E= 134, F= 138, G= 137 for every received line. I would like to first be sure the data matches " A= ddd, B= ddd.....G= ddd" while d, the value could... | java|android|regex | 1 | 2020-02-13T16:39:20.623Z | 2,020 | 2 | 16 | 3 | 74 | 2 | 766 | 29 | 3 | 2 | true | false | false | false | false | false | low |
60,212,740 | How to record 5 sec of sound from mic and save it as file. java.Android studio | <p>I am trying to voice record 5 sec after a button is click. Is there a ways to do it ?
For example, when user clock on a button it starts recording 5 secs and stops. Whatever gets recorded should be saved in mp3 file. The file name is hard coded. </p>
<p>Thanks</p> | I am trying to voice record 5 sec after a button is click. Is there a ways to do it ? For example, when user clock on a button it starts recording 5 secs and stops. Whatever gets recorded should be saved in mp3 file. The file name is hard coded. Thanks | java|android|android-studio|voice-recording | 2 | 2020-02-13T16:42:15.387Z | 2,020 | 2 | 16 | 3 | 1,347 | 1 | 252 | 78 | 4 | 0 | false | false | false | false | false | false | low |
60,212,781 | How to run Filters on those devices that are not compatible with google play store AR services? | <p>So, I was making app and it does capture and apply live filter, my codes are fine, but soon after I realize that I do need to have installed Google AR services, which are not compatible with my REDMI 8 (though, according to many sites, redmi 8, should support AR services), so my 1st question was does My device reall... | So, I was making app and it does capture and apply live filter, my codes are fine, but soon after I realize that I do need to have installed Google AR services, which are not compatible with my REDMI 8 (though, according to many sites, redmi 8, should support AR services), so my 1st question was does My device really n... | android | 0 | 2020-02-13T16:44:37.710Z | 2,020 | 2 | 16 | 3 | 1,625 | 0 | 485 | 95 | 1 | 0 | false | true | false | false | false | false | zero |
60,212,798 | How to identify the programming language for an android app? | <p>I reverse engineered an apk and found '.kt' files.So I assumed that android app was built in kotlin but when I saw the actual code there are no kt files but only java files.How is this possible?</p> | I reverse engineered an apk and found '.kt' files.So I assumed that android app was built in kotlin but when I saw the actual code there are no kt files but only java files.How is this possible? | android|kotlin|reverse-engineering | 0 | 2020-02-13T16:45:40.663Z | 2,020 | 2 | 16 | 3 | 590 | 0 | 194 | 60 | 3 | 0 | false | true | false | false | false | false | zero |
60,212,826 | How to retrieve specific data from firebase realtime database when data changed | <p>I am creating the function that the user can track the driver's location. I want to retrieve the latitude and longitude only when the driver's location change.</p>
<p>Database structure</p>
<p><a href="https://i.stack.imgur.com/IHwO1.jpg" rel="nofollow noreferrer">Firebase Realtime Database</a></p>
<p>driver.java... | I am creating the function that the user can track the driver's location. I want to retrieve the latitude and longitude only when the driver's location change. Database structure Firebase Realtime Database driver.java(added setter and getter) [CODE] Java [CODE] How I can get the data from the database? Please help me. ... | android|firebase|firebase-realtime-database | 1 | 2020-02-13T16:47:02.700Z | 2,020 | 2 | 16 | 3 | 70 | 1 | 326 | 79 | 3 | 2 | true | false | false | false | false | false | low |
60,212,829 | Immersive fullscreen and Preference Dialogs pulling down status bar | <p>I'm using an immersive fullscreen activity and for my dialogs I used the hack I found here where I set the dialog not focusable when opening it so its not pulling down the status bar.</p>
<pre><code>dialog.window?.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE)... | I'm using an immersive fullscreen activity and for my dialogs I used the hack I found here where I set the dialog not focusable when opening it so its not pulling down the status bar. [CODE] Now I'm looking for a way to get the same result for preference dialogs (right now its only a ListPreference) I tried overriding ... | android|kotlin|android-preferences|android-dialogfragment|android-dialog | 0 | 2020-02-13T16:47:12.327Z | 2,020 | 2 | 16 | 3 | 144 | 1 | 441 | 67 | 5 | 1 | true | false | false | false | false | false | zero |
60,212,853 | Flexboxlayout Spacing between items programmatically | <p>I've this Flexboxlayout definition (<a href="https://github.com/google/flexbox-layout" rel="nofollow noreferrer">official Google library</a>):</p>
<pre><code><com.google.android.flexbox.FlexboxLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:dividerDrawableHorizonta... | I've this Flexboxlayout definition ( official Google library ): [CODE] Now I want to create the same programmatically: [CODE] What I'm missing is the app:dividerDrawableHorizontal and app:showDividerHorizontal attributes and didn't find any method to set them. | android|android-layout|android-recyclerview|android-flexboxlayout | 3 | 2020-02-13T16:48:27.377Z | 2,020 | 2 | 16 | 3 | 6,368 | 1 | 260 | 52 | 4 | 2 | true | false | true | false | false | false | low |
60,212,909 | espresso - Could not launch intent Intent { act=android.intent.action.MAIN flg=0x14000000 | <p>I am trying to test app in android studio with espresso, but without success. I tried for 2 days finding the solution but I still get the exception :</p>
<pre><code> ----- begin exception -----
E/TestRunner: java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN flg=0x1400000... | I am trying to test app in android studio with espresso, but without success. I tried for 2 days finding the solution but I still get the exception : [CODE] this is my gradle: [CODE] and this is my androidTest: [CODE] I have 8 years old laptop with AMD A6-3400 APU processor may that be a case? Because for example I can... | java|android|android-studio|android-espresso | 0 | 2020-02-13T16:51:38.997Z | 2,020 | 2 | 16 | 3 | 314 | 0 | 360 | 89 | 4 | 3 | true | true | false | false | false | false | zero |
60,212,950 | Why do I have so many problems refreshing code in Android emulator | <p>So I have just started learning app development with React Native this past week and so I've been getting into using Android studio emulators to run my apps. I've noticed that when I run the apps on the emulator, it doesn't seem to refresh the code properly. For example I made this very simple app while following a ... | So I have just started learning app development with React Native this past week and so I've been getting into using Android studio emulators to run my apps. I've noticed that when I run the apps on the emulator, it doesn't seem to refresh the code properly. For example I made this very simple app while following a tut... | android|reactjs|react-native|android-studio|emulation | 0 | 2020-02-13T16:54:21.023Z | 2,020 | 2 | 16 | 3 | 109 | 1 | 1,027 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
60,213,035 | How to change line space with a SpannableString? | <p>For a project, I have to edit text in an EditText with some attributes like bold, italic, size... etc. So, I have made a CustomSpan, which implements StyleSpan, with all the attributes I need. Below my code :</p>
<pre><code>class CustomSpan(
val bold: Boolean = false,
val italic: Boolean = false,
val si... | For a project, I have to edit text in an EditText with some attributes like bold, italic, size... etc. So, I have made a CustomSpan, which implements StyleSpan, with all the attributes I need. Below my code : [CODE] But, I also need to change the line space between lines in my EditText. For that I thought to change bot... | java|android|kotlin|spannablestring | 2 | 2020-02-13T16:59:27.960Z | 2,020 | 2 | 16 | 3 | 187 | 1 | 433 | 48 | 4 | 1 | true | false | false | false | false | false | low |
60,213,088 | Room : incorrect result of a query with a date condition | <p>This query is retrieving all the records whatever the date for the pet :</p>
<pre><code>@Query("SELECT * FROM Fooding WHERE pet_Id = :petId AND date(fooding_date) = date(current_timestamp)")
Flowable<List<Fooding>> getDailyFoodingsForPet (Long petId);
</code></pre>
<p>Converters :</p>
<pre><code>priva... | This query is retrieving all the records whatever the date for the pet : [CODE] Converters : [CODE] Entity : [CODE] Does anyone have any idea of the problem ? Edit : this query have the same result : [CODE] | android|android-room | 0 | 2020-02-13T17:02:53.527Z | 2,020 | 2 | 17 | 3 | 30 | 0 | 208 | 56 | 2 | 4 | true | true | false | false | false | false | zero |
60,213,120 | Making a Global List variable to access from any activity | <p>I am working on a shopping car app and need to have the product list and every product stock. for this what I am trying to do is implement a global list variable. I have read about global variables and I could implement it, but can't figure out how a list would be. any suggestions or help on how to implement it wou... | I am working on a shopping car app and need to have the product list and every product stock. for this what I am trying to do is implement a global list variable. I have read about global variables and I could implement it, but can't figure out how a list would be. any suggestions or help on how to implement it would b... | android|arraylist|global-variables | 0 | 2020-02-13T17:04:51.830Z | 2,020 | 2 | 17 | 3 | 65 | 1 | 343 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
60,213,136 | Android notification's names on settings like facebook | <p>I would like to make users able to disable/enable notifications separately by their functionalities from settings app like Facebook or other applications do.</p>
<p>As image, Facebook shows a title for each notification use case (as you can understand from my terrible English I'm Italian, so screenshot is in Italia... | I would like to make users able to disable/enable notifications separately by their functionalities from settings app like Facebook or other applications do. As image, Facebook shows a title for each notification use case (as you can understand from my terrible English I'm Italian, so screenshot is in Italian too), so ... | android|push-notification|notifications|application-settings | 0 | 2020-02-13T17:05:46.857Z | 2,020 | 2 | 17 | 3 | 257 | 1 | 483 | 54 | 4 | 0 | false | false | false | false | false | false | zero |
60,213,280 | Start video call in Hangouts or Duo using intent? | <p>I am looking for a way to start a video call in either Hangouts or Duo.
There seems to be 0 documentation regarding what intents should be used.
Does anyone have an idea?</p> | I am looking for a way to start a video call in either Hangouts or Duo. There seems to be 0 documentation regarding what intents should be used. Does anyone have an idea? | android|hangout|google-duo | 8 | 2020-02-13T17:15:41.640Z | 2,020 | 2 | 17 | 3 | 2,471 | 3 | 170 | 49 | 3 | 0 | false | false | false | false | false | false | medium |
60,213,329 | Hide internet connection bar after five seconds in Flutter | <p>I am a beginner in a Flutter, and I watched a YouTube video about adding the internet connection verification bar, but it is fixed and does not disappear, how can I hide it after a specified time.</p>
<p>This is the connection bar!
<a href="https://i.stack.imgur.com/NQoJN.png" rel="nofollow noreferrer"><img src="htt... | I am a beginner in a Flutter, and I watched a YouTube video about adding the internet connection verification bar, but it is fixed and does not disappear, how can I hide it after a specified time. This is the connection bar! [CODE] I put the code, and this is the video I watched! Can anyone modify the code to make it w... | android-studio|flutter|dart | 0 | 2020-02-13T17:18:57.827Z | 2,020 | 2 | 17 | 3 | 553 | 1 | 340 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
60,213,362 | How to call Android ByteBuffer.putFloat() in JNI | <p>In Android/Java, we use <code>ByteBuffer</code> and can call <code>putFloat()</code>. I am trying to pass a <code>ByteBuffer</code> to a JNI cpp class and I can't figure out how to correctly store the <code>float</code> values. It's been a while since I have used C++...</p>
<p>Android Example of storing a <code>flo... | In Android/Java, we use ByteBuffer and can call putFloat() . I am trying to pass a ByteBuffer to a JNI cpp class and I can't figure out how to correctly store the float values. It's been a while since I have used C++... Android Example of storing a float in ByteBuffer : [CODE] Calling the JNI method in Java/Kotlin: [CO... | java|android|java-native-interface|bytebuffer | 1 | 2020-02-13T17:21:48.670Z | 2,020 | 2 | 17 | 3 | 194 | 0 | 501 | 48 | 4 | 3 | true | true | false | false | false | false | low |
60,213,373 | Switching between apps in same platform using xamarin Implimentation | <p>I have a question in mobile apps using Xamarin. Suppose i have implemented 2 Apps like App1 and App2 in same platform(Exp - Android).</p>
<p>As per the business scenario From the App1 I need to switch to App2 in same platform(Assume both apps deployed in android device). But I am not sure how to do this using the X... | I have a question in mobile apps using Xamarin. Suppose i have implemented 2 Apps like App1 and App2 in same platform(Exp - Android). As per the business scenario From the App1 I need to switch to App2 in same platform(Assume both apps deployed in android device). But I am not sure how to do this using the Xamarin. Cou... | android|xamarin | 0 | 2020-02-13T17:22:36.933Z | 2,020 | 2 | 17 | 3 | 58 | 2 | 347 | 68 | 2 | 0 | false | false | false | false | false | false | zero |
60,213,405 | null object reference when creating a dialog popup | <p>So this is my code below but it keeps giving me an error saying..</p>
<blockquote>
<p>Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference.</p>
</blockquote>
<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id =... | So this is my code below but it keeps giving me an error saying.. Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference. [CODE] So basically this happens when I click on the menu item I want a little popup or dialog to appear. How do I fix this, because I did in... | android|android-studio|android-fragments | 0 | 2020-02-13T17:24:32.697Z | 2,020 | 2 | 17 | 3 | 155 | 0 | 399 | 50 | 3 | 1 | true | true | false | false | false | false | zero |
60,213,450 | Android check file error "Type mismatch: inferred type is Context but Path! was expected" | <p>I am trying to introduce local JSON storage into an app that I am making. I have used this method of JSON storage before, but I have never gotten these errors; <code>Type mismatch: inferred type is Context but Path! was expected</code> and <code>Type mismatch: inferred type is String but LinkOption! was expected</c... | I am trying to introduce local JSON storage into an app that I am making. I have used this method of JSON storage before, but I have never gotten these errors; Type mismatch: inferred type is Context but Path! was expected and Type mismatch: inferred type is String but LinkOption! was expected The errors appear as foll... | java|android|json|file|kotlin | 1 | 2020-02-13T17:27:34.447Z | 2,020 | 2 | 17 | 3 | 372 | 1 | 382 | 89 | 5 | 2 | true | false | false | false | false | false | low |
60,213,458 | Mp android chart, bar chart with bar gradient background | <p>dear community, I'm facing the following problem, I'm creating a bar chart using the MP android Chart library available here: <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">https://github.com/PhilJay/MPAndroidChart</a>.</p>
<p>I'd like to set a gradient background for my bars, using th... | dear community, I'm facing the following problem, I'm creating a bar chart using the MP android Chart library available here: https://github.com/PhilJay/MPAndroidChart . I'd like to set a gradient background for my bars, using the following code I was able to set the gradient background and get the following result. [C... | android|mpandroidchart | 3 | 2020-02-13T17:28:13.387Z | 2,020 | 2 | 17 | 3 | 2,087 | 2 | 692 | 56 | 2 | 1 | true | false | false | false | false | false | low |
60,213,460 | How to investigate Xamarin/libmonosgen-2.0.so native crash? | <p>My latest release is crashing at a rate of about 99 per 1000 devices - significantly higher than the release before it. New crashes come in 2 flavors in libmonosgen: </p>
<p><strong>Cluster 1: libmonosgen-2.0.so</strong></p>
<pre><code>signal 11 (SIGSEGV), code 2 (SEGV_ACCERR)
libmonosgen-2.0.so
*** *** *** *** *... | My latest release is crashing at a rate of about 99 per 1000 devices - significantly higher than the release before it. New crashes come in 2 flavors in libmonosgen: Cluster 1: libmonosgen-2.0.so [CODE] Cluster 2: libmonosgen-2.0.so (mono_class_get_flags) [CODE] Pre-release report is looking all green, and App Center h... | android|xamarin.android|crash|mono|google-play | 4 | 2020-02-13T17:28:26.323Z | 2,020 | 2 | 17 | 3 | 1,208 | 1 | 1,774 | 59 | 5 | 3 | true | false | false | false | false | false | low |
60,213,533 | Trying to debug Android logcat crash logs for React Native app | <p>I have a React Native app that is trying to go to a url as so:</p>
<pre><code>render() {
return (
<View styleName="main-refer">
<WebPage uri="https://stage.example.com/refer/example" title="Referral" text="" noLoad={true} onMessage={(message) => this.onMessage(message)} />
... | I have a React Native app that is trying to go to a url as so: [CODE] is just a wrapper around React Native Webview with some added niceties for my specific implementation. My onMessage method is like so: [CODE] The entire process works in the simulator and on iOS just fine. However when I am trying to do it on my Andr... | android|react-native|adb|logcat | 1 | 2020-02-13T17:33:03.537Z | 2,020 | 2 | 17 | 3 | 2,053 | 0 | 670 | 62 | 4 | 6 | true | true | false | false | false | false | low |
60,213,592 | Android: files saved inside getFilesDir() disappear after application restart | <p>I want to save a file to app-specific storage, like shown in <a href="https://developer.android.com/training/data-storage/app-specific#internal-store-stream" rel="nofollow noreferrer">documentation</a>:</p>
<pre class="lang-java prettyprint-override"><code>String filename = "myfile.txt";
String fileContents = "Hell... | I want to save a file to app-specific storage, like shown in documentation : [CODE] Unfortunately, every time I restart the application all data are lost. How to prevent data from being deleted? Please note I am not interested in using SharedPreferences/External Storage/Database. Android Studio 3.5.3. | android|android-studio|save|storage|missing-data | 0 | 2020-02-13T17:36:43.687Z | 2,020 | 2 | 17 | 3 | 350 | 1 | 302 | 77 | 5 | 1 | true | false | false | false | false | false | zero |
60,213,630 | How to display HTML on EditText? | <p>I am trying to make an Android Application, it is intended to be a notes app, similar to Evernote.
For the ones that have used Evernote (or every other good notes app) you may already know that it allows users to not only save text, but to add images, files, and other formatting features too.<br>
So I came up with t... | I am trying to make an Android Application, it is intended to be a notes app, similar to Evernote. For the ones that have used Evernote (or every other good notes app) you may already know that it allows users to not only save text, but to add images, files, and other formatting features too. So I came up with the idea... | java|android|html | -1 | 2020-02-13T17:38:55.140Z | 2,020 | 2 | 17 | 3 | 67 | 1 | 903 | 32 | 3 | 1 | true | false | false | false | false | true | negative |
60,213,638 | Alternative to Environment.getExternalStoragePublicDirectory(); | <h3>My intention is to save a file available for the user in his internal storages <code>/Documents</code> path.</h3>
<hr />
<p>Since <code>Environment.getExternalStoragePublicDirectory()</code> is deprecated now I am looking for an alternative.
Google tells me following alternatives:</p>
<ul>
<li><code>getExternalFile... | My intention is to save a file available for the user in his internal storages /Documents path. Since Environment.getExternalStoragePublicDirectory() is deprecated now I am looking for an alternative. Google tells me following alternatives: getExternalFilesDir(String type) from Context [LINK] MediaStore.Files ← I don't... | android|storage | 2 | 2020-02-13T17:39:12.973Z | 2,020 | 2 | 17 | 3 | 1,004 | 0 | 884 | 63 | 2 | 0 | false | true | false | false | false | false | low |
60,213,712 | Clear text before edit in Kotlin | <p>I want to clear a field text before tap a text inside. I'm trying to do an Android Test using Kotlin.</p>
<p>The code:</p>
<pre><code>suspend fun navegarMenu(){
clickSafe(R.id.nav_menu)
waitElementAndClick(R.id.tvProfile)
delay(4000)
// I WANT TO CLEAR THE TEXT INSIDE "et.NickName" FIELD B... | I want to clear a field text before tap a text inside. I'm trying to do an Android Test using Kotlin. The code: [CODE] Im this case, I need to clear the field before put "digdindigdin" inside the field. I'm using Espresso JUnit on Android Studio. | android|kotlin|automated-tests | 0 | 2020-02-13T17:45:06.843Z | 2,020 | 2 | 17 | 3 | 128 | 1 | 246 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
60,213,784 | Does Android Studio support Kotlin method breakpoints? | <p>I wasn't able to have the debugger hit method breakpoints unlike the case with Java.
As shown in the below image, Kotlin doesn't recognize method breakpoint. </p>
<p><a href="https://i.stack.imgur.com/nlXKG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nlXKG.png" alt="method breakpoint Kotlin v... | I wasn't able to have the debugger hit method breakpoints unlike the case with Java. As shown in the below image, Kotlin doesn't recognize method breakpoint. Does Kotlin support method breakpoints? If yes how? EDT This issue is not reproduced on normal Intellij but on Android Studio 3.5.1 | android|android-studio|debugging|kotlin | 0 | 2020-02-13T17:49:38.140Z | 2,020 | 2 | 17 | 3 | 681 | 1 | 289 | 54 | 4 | 0 | false | false | false | false | false | false | zero |
60,213,801 | How to secure PHP JSON api endpoint interacting with an android app? | <p>If an app is interacting with server api over https using post method ( JSON objects ), then there is a danger of api endpoint getting exposed and anyone accessing the api.
Is there a way to make sure that api is called <strong>only</strong> from the designated app. </p>
<p>I did some research on the web and came t... | If an app is interacting with server api over https using post method ( JSON objects ), then there is a danger of api endpoint getting exposed and anyone accessing the api. Is there a way to make sure that api is called only from the designated app. I did some research on the web and came to know of: a. manual credenti... | php|android|json|api|apk | 0 | 2020-02-13T17:51:06.710Z | 2,020 | 2 | 17 | 3 | 284 | 2 | 708 | 68 | 5 | 0 | false | false | false | false | false | false | zero |
60,213,997 | Multicasting from Android | <p>I want to use <strong>multicasting on Android</strong> on the local network (Android is the <strong>server/publisher</strong>). The problem is that even if I use the exact example code from <a href="https://www.baeldung.com/java-broadcast-multicast" rel="nofollow noreferrer">baeldung</a> or the one from the book: <... | I want to use multicasting on Android on the local network (Android is the server/publisher ). The problem is that even if I use the exact example code from baeldung or the one from the book: Jeff Friesen - Learn Java for Android Development , the packets do NOT get to any other device on the local network. I use Wires... | java|android|sockets|kotlin|multicast | 2 | 2020-02-13T18:05:40.527Z | 2,020 | 2 | 18 | 3 | 329 | 0 | 1,158 | 25 | 5 | 2 | true | true | false | false | false | false | low |
60,214,032 | how to reduce the gap for radioButton in radioGroup with Theme.MaterialComponents.Light | <p>after change from <code>Theme.AppCompat.Light</code> to <code>Theme.MaterialComponents.Light</code></p>
<pre><code><style name="myRadioButtonTheme" parent="Theme.MaterialComponents.Light"> <!-- Theme.AppCompat.Light -->
<item name="colorControlNormal">@color/radio_bt_color</item>
... | after change from Theme.AppCompat.Light to Theme.MaterialComponents.Light [CODE] the radioGroup shows radioButton item list with bigger gap [CODE] comparing the one using Theme.AppCompat.Light and Theme.MaterialComponents.Light how to reduce the gap between the radio button? | android|android-theme|radio-group|material-components-android | 1 | 2020-02-13T18:07:45.080Z | 2,020 | 2 | 18 | 3 | 244 | 1 | 275 | 87 | 4 | 2 | true | false | false | false | false | false | low |
60,214,115 | How to automate test on reCAPTCHA v2 for Andriod | <p>my situation is this: I'm trying to dev some instrumentations test on my android app and can't pass reCAPTCHA (v2 for Android version) on my login screen.</p>
<p>On reCHAPTCHA FAQs (<a href="https://developers.google.com/recaptcha/docs/faq" rel="nofollow noreferrer">https://developers.google.com/recaptcha/docs/faq<... | my situation is this: I'm trying to dev some instrumentations test on my android app and can't pass reCAPTCHA (v2 for Android version) on my login screen. On reCHAPTCHA FAQs ( https://developers.google.com/recaptcha/docs/faq ) they recomend to configure a test keys pair ( Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZ... | android|testing|automated-tests|recaptcha | 1 | 2020-02-13T18:12:06.267Z | 2,020 | 2 | 18 | 3 | 205 | 0 | 599 | 48 | 4 | 0 | false | true | false | false | false | false | low |
60,214,138 | Alarm manager doesn't reschedule after reboot even when added in on receive | <p>I registered my receiver in manifest with intent filter(action.BOOT_COMPLETED), but after reboot my service called just once, and never called again, Can't figure out what's the problem.</p>
<p>here is my code</p>
<p>main activity</p>
<pre><code>public class MainActivity extends AppCompatActivity {
Button startB... | I registered my receiver in manifest with intent filter(action.BOOT_COMPLETED), but after reboot my service called just once, and never called again, Can't figure out what's the problem. here is my code main activity [CODE] my receiver [CODE] my service [CODE] Manifest [CODE] .............................................. | android|service|broadcastreceiver|alarmmanager|reboot | 2 | 2020-02-13T18:13:23.127Z | 2,020 | 2 | 18 | 3 | 129 | 0 | 370 | 75 | 5 | 4 | true | true | false | false | false | false | low |
60,214,226 | Android Animations - Moving objects closer | <p>I have been trying to animate following <a href="https://i.stack.imgur.com/cOMSS.png" rel="nofollow noreferrer">scenario</a>. Basically I want to start with a number of
<a href="https://developer.android.com/reference/android/widget/ImageView" rel="nofollow noreferrer">ImageViews</a> that are arranged vertically and... | I have been trying to animate following scenario . Basically I want to start with a number of ImageViews that are arranged vertically and spread out across the screen and after a certain action (button-press etc.) they should move closer . It is important to mention that the number of ImageViews can vary depending on t... | android|android-recyclerview|android-animation|objectanimator|item-decoration | 2 | 2020-02-13T18:19:13.393Z | 2,020 | 2 | 18 | 3 | 77 | 1 | 936 | 42 | 5 | 1 | true | false | false | false | false | false | low |
60,214,370 | Remove unwanted popup notifications from android studio | <p>How can I disable unwanted popups on android studio? For example I don't want this popup becouse I can't see logs cause of this:</p>
<p><a href="https://i.stack.imgur.com/Yuq7G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yuq7G.png" alt="enter image description here"></a></p>
<p>I'm using And... | How can I disable unwanted popups on android studio? For example I don't want this popup becouse I can't see logs cause of this: I'm using Android Studio 3.5.3 XUbuntu 19 machine. Thanks for your answers. | android-studio | 2 | 2020-02-13T18:29:47.787Z | 2,020 | 2 | 18 | 3 | 262 | 1 | 204 | 55 | 1 | 0 | false | false | false | false | false | false | low |
60,214,377 | Android Bottom Navigation Activity gives a Null Pointer Exception in onCreate | <p>I added a Bottom Navigation Activity to my project but when i start the relevant activity it gives out a Null Pointer Exception.</p>
<p>It says that the exception is fired at line number 28</p>
<blockquote>
<p>at lk.apiit.eea.mobile.Activities.CompanyProfile.onCreate(CompanyProfile.java:28)</p>
</blockquote>
<p... | I added a Bottom Navigation Activity to my project but when i start the relevant activity it gives out a Null Pointer Exception. It says that the exception is fired at line number 28 at lk.apiit.eea.mobile.Activities.CompanyProfile.onCreate(CompanyProfile.java:28) Following is the Exception and the Code PLease help me ... | android|android-studio|nullpointerexception|bottomnavigationview|appbar | 2 | 2020-02-13T18:30:08.420Z | 2,020 | 2 | 18 | 3 | 1,442 | 2 | 392 | 77 | 5 | 2 | true | false | false | false | false | false | low |
60,214,503 | Where is the geography search type in Tomtom android SDK | <p>I'm trying to do a search with the tomtom sdk in android.</p>
<pre><code>SearchApi searchApi = OnlineSearchApi.create(Activity.this);
searchApi.search(new FuzzySearchQueryBuilder(mSearchBar.getText().toString().trim())
.withPosition(new com.tomtom.online.sdk.common.location.LatLng(myLocation.getLat... | I'm trying to do a search with the tomtom sdk in android. [CODE] My response has results not matching my query with field "Type" = "POI" (Points of interest i assume). I want to display non-points-of-interest locations and show only addresses ("Type" = "Point Address") or cities ("Type" = "Geography") matching my query... | android|dictionary|search|tomtom|tomtom-android-sdk | 0 | 2020-02-13T18:39:23.023Z | 2,020 | 2 | 18 | 3 | 67 | 1 | 344 | 56 | 5 | 1 | true | false | false | false | false | false | zero |
60,214,589 | Writing Firebase database after app is swiped from recent list | <p>I need to write three items of data in Firebase Realtime Database in case the user kill the app
from recent list while it's still running; I implemented a service in order to
update the database when <code>onTaskRemoved</code> is called.
In the manifest the service is declared with the option <code>android:stopWit... | I need to write three items of data in Firebase Realtime Database in case the user kill the app from recent list while it's still running; I implemented a service in order to update the database when onTaskRemoved is called. In the manifest the service is declared with the option android:stopWithTask="false" Here is th... | android|firebase-realtime-database|android-service | 0 | 2020-02-13T18:45:55.260Z | 2,020 | 2 | 18 | 3 | 48 | 2 | 783 | 62 | 3 | 3 | true | false | false | false | false | false | zero |
60,214,629 | Android: Prevent data notifications from popping up on the screen when app is in the background | <p>I'm sending <code>data</code> payloads through <code>FCM</code> and handling them in the <code>onMessageReceived()</code> method of <code>FirebaseMessagingService</code>. The problem is, when the app is in the background, the push notifications seem to be popping up each time the device handles them. I'd like them t... | I'm sending data payloads through FCM and handling them in the onMessageReceived() method of FirebaseMessagingService . The problem is, when the app is in the background, the push notifications seem to be popping up each time the device handles them. I'd like them to be silent similar to how Android delivers notificati... | android|push-notification|xamarin.android|firebase-cloud-messaging | 1 | 2020-02-13T18:49:41.773Z | 2,020 | 2 | 18 | 3 | 1,571 | 3 | 521 | 95 | 4 | 2 | true | false | false | false | false | false | low |
60,214,798 | Room Does not Insert Data into Table in Test | <p>I have a test that I'm trying to test my Room database. When trying to run a test in an inMemory Database, it does not seem like it is inserting data. so the test is failing. </p>
<p>My Table Entity: </p>
<pre><code>@Entity
class EpisodesDownload(
@PrimaryKey(autoGenerate = true)
var id: Long,
val uuid: St... | I have a test that I'm trying to test my Room database. When trying to run a test in an inMemory Database, it does not seem like it is inserting data. so the test is failing. My Table Entity: [CODE] The Dao: [CODE] My test: [CODE] Is it because I am setting my primary key Id = 0 when it is auto incremented? I am not ge... | android|android-room|android-instrumentation | 0 | 2020-02-13T19:01:58.593Z | 2,020 | 2 | 19 | 3 | 57 | 1 | 393 | 44 | 3 | 3 | true | false | false | false | false | false | zero |
60,214,951 | Flutter install updated apk downloaded | <p>I want to run my update apk downloaded from my server to update my Flutter app when PlayStore is not available on an Android device.
There is a method to run a downloaded apk to install it?</p>
<p>I see the <a href="https://pub.dev/packages/install_plugin" rel="nofollow noreferrer">https://pub.dev/packages/install_... | I want to run my update apk downloaded from my server to update my Flutter app when PlayStore is not available on an Android device. There is a method to run a downloaded apk to install it? I see the https://pub.dev/packages/install_plugin package that can be good for me but this conflict with other plugin used into my... | android|flutter|installation|apk | 4 | 2020-02-13T19:12:27.480Z | 2,020 | 2 | 19 | 3 | 1,793 | 1 | 325 | 38 | 4 | 0 | false | false | false | false | false | false | low |
60,214,966 | Android view.animate() just jumps to final position instead of animating | <p>I have a basic test project to isolate this problem. its just a blank Activity, a FrameLayout with a text view in the middle </p>
<pre><code><FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
a... | I have a basic test project to isolate this problem. its just a blank Activity, a FrameLayout with a text view in the middle [CODE] and in my activity I do this [CODE] } but instead of the view slowly rotating to the 45 portion, it just jumps to the final position without actually animating. This used to work like a ch... | android | 0 | 2020-02-13T19:13:33.510Z | 2,020 | 2 | 19 | 3 | 44 | 2 | 441 | 72 | 1 | 3 | true | false | false | false | false | false | zero |
60,214,991 | How to retrieve the score value for every user in firebase to display in a leaderboard | <p>I have a firebase realtime database which stores each users score, tied to their UID. I want to add a leaderboard to my android studio app. I am not sure how to retrieve the score for each user within the database, for a leaderboard. </p>
<p>This is what my database looks like:</p>
<p><a href="https://i.stack.imgu... | I have a firebase realtime database which stores each users score, tied to their UID. I want to add a leaderboard to my android studio app. I am not sure how to retrieve the score for each user within the database, for a leaderboard. This is what my database looks like: Im not sure how to retrieve the points for each u... | java|android|firebase-realtime-database | 0 | 2020-02-13T19:15:34.803Z | 2,020 | 2 | 19 | 3 | 27 | 0 | 584 | 86 | 3 | 1 | true | true | false | false | false | false | zero |
60,215,000 | Android BottomNavigation and Tabs, view disappear after first click | <p>I'm trying to use both BottomNavigationView and Tabs. Tabs change for each navigation item. Here's my <code>MainActivity</code> code:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)... | I'm trying to use both BottomNavigationView and Tabs. Tabs change for each navigation item. Here's my MainActivity code: [CODE] This is my navigation_b class: [CODE] My navigation_b layout: [CODE] When I first click "Navigation B", the tabs works as well, but when I click (for example) "Navigation A" and then "Navigati... | java|android|android-fragments | 0 | 2020-02-13T19:15:58.597Z | 2,020 | 2 | 19 | 3 | 267 | 1 | 371 | 67 | 3 | 3 | true | false | false | false | false | false | zero |
60,215,033 | How can I check if edittext is empty? | <p>I have two edittexts and a calculate button. I will enter two numbers and I want to sum these two numbers when I click on the calculate button.Then, when I click on the button, I want to show this result in another activity through bundle. However, if these edittexts are empty, I take a error such as this app stopp... | I have two edittexts and a calculate button. I will enter two numbers and I want to sum these two numbers when I click on the calculate button.Then, when I click on the button, I want to show this result in another activity through bundle. However, if these edittexts are empty, I take a error such as this app stopped. ... | java|android|android-intent|android-edittext|bundle | 0 | 2020-02-13T19:18:34.133Z | 2,020 | 2 | 19 | 3 | 77 | 2 | 378 | 37 | 5 | 2 | true | false | false | false | false | false | zero |
60,215,147 | React Native - possible for one app to view/query the existing apps on a users device? | <p>I am building an app in React Native, and was wondering if I could check to see if another app is installed on the user's device. Is it possible, or is there a 'permission' that I could prompt user for in order to have access to this?.
Thanks ! </p> | I am building an app in React Native, and was wondering if I could check to see if another app is installed on the user's device. Is it possible, or is there a 'permission' that I could prompt user for in order to have access to this?. Thanks ! | android|ios|react-native | 0 | 2020-02-13T19:26:51.150Z | 2,020 | 2 | 19 | 3 | 38 | 0 | 244 | 86 | 3 | 0 | false | true | false | false | false | false | zero |
60,215,148 | 64 bit Delphi android application was not running in 32 bit mobiles | <p>I'm using Delphi 10.3.3. As per the Google Policy, all the new android apps should be 64 bit. So, I have uploaded the 64 bit android application.</p>
<p>After this few mobiles was not able to run the 64 bit app. IS there any possible was to fix this issue?</p> | I'm using Delphi 10.3.3. As per the Google Policy, all the new android apps should be 64 bit. So, I have uploaded the 64 bit android application. After this few mobiles was not able to run the 64 bit app. IS there any possible was to fix this issue? | android|delphi|delphi-10.3-rio | 2 | 2020-02-13T19:26:52.213Z | 2,020 | 2 | 19 | 3 | 758 | 0 | 249 | 67 | 3 | 0 | false | true | false | false | false | false | low |
60,215,302 | How to properly handle FirebaseAuth async results? | <p>On my Android app I'm trying to implement a simple Sign In / Sign Up using FirebaseAuth. I'm wanted to use Kotlin Coroutines to properly handle the responses from Firebase.
So I added that to my gradle file:</p>
<pre><code>"org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$kotlin_play_services_version"
</code... | On my Android app I'm trying to implement a simple Sign In / Sign Up using FirebaseAuth. I'm wanted to use Kotlin Coroutines to properly handle the responses from Firebase. So I added that to my gradle file: [CODE] After that, I was able to call .await() after a FirebaseAuth request. So here's the code that's responsib... | android|async-await|firebase-authentication|kotlin-coroutines | 1 | 2020-02-13T19:38:13.627Z | 2,020 | 2 | 19 | 3 | 623 | 2 | 1,349 | 50 | 4 | 2 | true | false | false | false | false | false | low |
60,215,468 | Speed up FFmpeg processing time | <p>I'm using FFmpeg on android to:</p>
<p>1- merge 3 videos</p>
<p>2- add audio</p>
<p>3- add logo</p>
<p>4- trim one of the 3 videos</p>
<p>5- change fps for the output</p>
<p>I have implemented the right code but it took 30 min. for (120 fps, 1:17 min) video.
I added the flag ( -preset ultrafast ) and time decr... | I'm using FFmpeg on android to: 1- merge 3 videos 2- add audio 3- add logo 4- trim one of the 3 videos 5- change fps for the output I have implemented the right code but it took 30 min. for (120 fps, 1:17 min) video. I added the flag ( -preset ultrafast ) and time decreased to 6 min. I need the time to be shorter than ... | android|ffmpeg|android-ffmpeg | 0 | 2020-02-13T19:51:48.417Z | 2,020 | 2 | 19 | 3 | 914 | 1 | 433 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
60,215,472 | Place the text of the radio button inside of it | <p>How to place the text of a radio button inside of it?</p>
<p><strong>Motivation:</strong></p>
<p>I created the menu below "hard coding" it, handling all required situations manually, such as when one button is selected, all the other buttons must be unselected.</p>
<p><a href="https://i.stack.imgur.com/j7UDf.png"... | How to place the text of a radio button inside of it? Motivation: I created the menu below "hard coding" it, handling all required situations manually, such as when one button is selected, all the other buttons must be unselected. However, it was a lot of code, and this functionality is exactly what radio groups and ra... | android|radio-button|custom-controls|material-components-android|android-chips | 1 | 2020-02-13T19:52:05.200Z | 2,020 | 2 | 19 | 3 | 224 | 2 | 967 | 47 | 5 | 1 | true | false | false | false | false | false | low |
60,215,634 | ArrayList IndexOfBound exceptions when to get data from firestore database, why? | <p>i have a Recycler View which is filled with 2 arraylist, the first is the card view title, and the second its content, the problem happens in the second arraylist, which receives data from the firestore, for example.</p>
<p>Below is the code for how I fill the arraylist of data I receive from the local cloud and st... | i have a Recycler View which is filled with 2 arraylist, the first is the card view title, and the second its content, the problem happens in the second arraylist, which receives data from the firestore, for example. Below is the code for how I fill the arraylist of data I receive from the local cloud and strings. [COD... | java|android|android-recyclerview | 0 | 2020-02-13T20:04:43.190Z | 2,020 | 2 | 20 | 3 | 141 | 3 | 645 | 80 | 3 | 2 | true | false | false | false | false | false | zero |
60,215,752 | Is there a way to update the data inside the application? Without updating the entire application? | <p>I'm trying to build an application, "Journal for Drivers".
I would like to add new information to the driver in this application. This information will be in text format (or text with images)</p>
<p>My question is, if I want to add a news update to the application, a news for drivers, can it be solved for example b... | I'm trying to build an application, "Journal for Drivers". I would like to add new information to the driver in this application. This information will be in text format (or text with images) My question is, if I want to add a news update to the application, a news for drivers, can it be solved for example by some stor... | android | 1 | 2020-02-13T20:13:55.337Z | 2,020 | 2 | 20 | 3 | 289 | 2 | 492 | 98 | 1 | 0 | false | false | false | false | false | false | low |
60,215,767 | Why does Android bluetooth scanner return the same device multiple times in the result, with two different MAC addresses? | <p>I am working with bluetooth card readers. I noticed that at some points, the bluetooth scanner returns the same device but with a MAC address that differs only in the last digit. This is common for one particular manufacturer I am working with. Does anyone know why this occurs and if there's a way to scan to prevent... | I am working with bluetooth card readers. I noticed that at some points, the bluetooth scanner returns the same device but with a MAC address that differs only in the last digit. This is common for one particular manufacturer I am working with. Does anyone know why this occurs and if there's a way to scan to prevent th... | android | 0 | 2020-02-13T20:14:50.683Z | 2,020 | 2 | 20 | 3 | 367 | 2 | 479 | 121 | 1 | 0 | false | false | false | false | false | false | zero |
60,215,849 | Flutter Screen from routes is loading before Localization | <p>I'm adding flutter to an existing app.</p>
<p>I localized my app, as described <a href="https://flutter.dev/docs/development/accessibility-and-localization/internationalization" rel="nofollow noreferrer">here</a>, and as I will display any flutter screen from legacy code, I decided to use named routes, as described... | I'm adding flutter to an existing app. I localized my app, as described here , and as I will display any flutter screen from legacy code, I decided to use named routes, as described here , but after using it, I realized that localization was loaded after I tried to render screen, so the _localizedValues was null. When ... | android|flutter|dart|localization|in-app | 0 | 2020-02-13T20:20:42.297Z | 2,020 | 2 | 20 | 3 | 182 | 1 | 522 | 57 | 5 | 0 | false | false | false | false | false | false | zero |
60,215,873 | Application crashing when clicking on Highcharts data export menu | <p>I am using Highcharts in my mobile application, and it just stops working (crashes) when I click the highcharts export menu button.</p>
<p>Does anyone know how to solve this problem?</p>
<p><strong>note:</strong> I am using the <em>demo</em> version. </p>
<pre><code> Process: com.ppgcc.mychart, PID: 21923
ja... | I am using Highcharts in my mobile application, and it just stops working (crashes) when I click the highcharts export menu button. Does anyone know how to solve this problem? note: I am using the demo version. [CODE] | java|android|android-studio|highcharts | 0 | 2020-02-13T20:22:29.383Z | 2,020 | 2 | 20 | 3 | 121 | 2 | 217 | 65 | 4 | 1 | true | false | false | false | false | false | zero |
60,215,874 | Get screen content in Android (not take a screenshot) | <p>I'm looking for a way to get the contents of the screen in android but not for taking a screenshot. </p>
<p>A little background, I recently broke up with someone and want to create an app that will "censor" photos of her (ie: just pixelate them). I know how to write a training algo to be able to detect her, and I c... | I'm looking for a way to get the contents of the screen in android but not for taking a screenshot. A little background, I recently broke up with someone and want to create an app that will "censor" photos of her (ie: just pixelate them). I know how to write a training algo to be able to detect her, and I can write a s... | android|image | 1 | 2020-02-13T20:22:33.043Z | 2,020 | 2 | 20 | 3 | 35 | 0 | 910 | 53 | 2 | 0 | false | true | false | false | false | false | low |
60,216,008 | Is it possible to connect to Spotify's MediaBrowserService? | <p>I am writing a voice assistant and would like to be able to launch search results in Spotify. To understand how to connect to Spotify and other apps, I am playing with the <a href="https://github.com/googlesamples/android-media-controller" rel="noreferrer">Google's Media Controller Test app</a>, which is described a... | I am writing a voice assistant and would like to be able to launch search results in Spotify. To understand how to connect to Spotify and other apps, I am playing with the Google's Media Controller Test app , which is described as doing the following: Create a simple MediaController that connects to a MediaBrowserServi... | android|android-service|spotify|google-music|mediabrowserservice | 7 | 2020-02-13T20:31:52.520Z | 2,020 | 2 | 20 | 3 | 838 | 2 | 1,197 | 59 | 5 | 1 | true | false | false | false | false | false | medium |
60,216,063 | How to view, modify database of a existing firebase android project from firebase console/android studio from a different google account? | <p>I have a firebase android project which I had created long back. I have lost the details of the google account which was integrated to and not able to retrieve it. Right now, I tried to connect the project to the firebase with a different google account by changing the <strong>google-services.json</strong> file and ... | I have a firebase android project which I had created long back. I have lost the details of the google account which was integrated to and not able to retrieve it. Right now, I tried to connect the project to the firebase with a different google account by changing the google-services.json file and rebuilt the project ... | android|firebase|android-studio|firebase-realtime-database|firebase-console | 0 | 2020-02-13T20:35:53.887Z | 2,020 | 2 | 20 | 3 | 412 | 1 | 809 | 137 | 5 | 0 | false | false | false | false | false | false | zero |
60,216,249 | java.lang.NullPointerException: Uri must not be null when trying to insert to Telephony.Sms.Conversations | <p>Can't <em>insert</em> a new conversation to <strong>Telephony.Sms.Conversations.CONTENT_URI</strong>.<br>
Keep getting a <strong>Caused by: java.lang.NullPointerException: Uri must not be null</strong> exception.<br>
Even though the uri has a value of <strong>"content://sms/conversations"</strong>.</p>
<p><br /></p... | Can't insert a new conversation to Telephony.Sms.Conversations.CONTENT_URI . Keep getting a Caused by: java.lang.NullPointerException: Uri must not be null exception. Even though the uri has a value of "content://sms/conversations" . Situation - logic flow I receive an SMS message from an unknown number. I insert a con... | android|kotlin|sms | 3 | 2020-02-13T20:50:00.210Z | 2,020 | 2 | 20 | 3 | 1,114 | 1 | 1,897 | 105 | 3 | 2 | true | false | false | false | false | false | low |
60,216,294 | How to programatically minimize a Notification on Android | <p>Android supports minimizing notification so that they only take one line at the bottom. This particularly useful for "sticky" notification which are fronting foreground services. I noticed that some applications pop their notification already Minimized such as Google map and that other Like Samsung Health allow you ... | Android supports minimizing notification so that they only take one line at the bottom. This particularly useful for "sticky" notification which are fronting foreground services. I noticed that some applications pop their notification already Minimized such as Google map and that other Like Samsung Health allow you to ... | android|android-notifications|foreground-service | 4 | 2020-02-13T20:53:34.017Z | 2,020 | 2 | 20 | 3 | 118 | 0 | 542 | 57 | 3 | 0 | false | true | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.