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,094,642 | Android: Installed application hasn't icon on the main screen | <p>I have a simple Android app (Android Studio wizard - Basic Activity). After compilation and installation it successfully runs on my device. But it doesn't have an icon on the <strong>main screen</strong> (even like as Android default icon)! And as result <strong>I can't relaunch application</strong>. </p>
<p>How t... | I have a simple Android app (Android Studio wizard - Basic Activity). After compilation and installation it successfully runs on my device. But it doesn't have an icon on the main screen (even like as Android default icon)! And as result I can't relaunch application . How to resolve this problem? Apps installed from th... | android|icons | 0 | 2020-02-06T12:06:13.340Z | 2,020 | 2 | 12 | 3 | 70 | 1 | 871 | 61 | 2 | 3 | true | false | false | false | false | false | zero |
60,094,709 | RecyclerView Center Item Larger than others and varying size when scrolling | <p>I would like to make a horizontal RecyclerView like this: (<strong>ignore white circle in the centre</strong>)</p>
<p><a href="https://i.stack.imgur.com/sH7Gy.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sH7Gy.gif" alt=""></a></p>
<p>Here the major things are scaling the center item and scali... | I would like to make a horizontal RecyclerView like this: ( ignore white circle in the centre ) Here the major things are scaling the center item and scaling the outgoing item as well. Can I have some reference point as how can I achieve such a view? | android|android-recyclerview | 1 | 2020-02-06T12:10:34.133Z | 2,020 | 2 | 12 | 3 | 672 | 1 | 250 | 75 | 2 | 0 | false | false | false | false | false | false | low |
60,094,746 | Material Components version 1.1.0 flicker when hiding fab/showing menu item in BottomAppBar | <p>I am trying to show a <code>MenuItem</code> when the application's <code>fab</code> is hidden in the <code>BottomAppBar</code>, and make it visible again when I show the <code>fab</code>. When I am hiding the <code>fab</code> and making the <code>MenuItem</code> visible, however, the former flickers shortly (appears... | I am trying to show a MenuItem when the application's fab is hidden in the BottomAppBar , and make it visible again when I show the fab . When I am hiding the fab and making the MenuItem visible, however, the former flickers shortly (appears, disappears, and then appears again and stays). In the dependencies of my Mani... | android|material-design | 2 | 2020-02-06T12:13:06.783Z | 2,020 | 2 | 12 | 3 | 247 | 1 | 1,153 | 91 | 2 | 5 | true | false | false | false | false | false | low |
60,094,770 | how to install android studio 3.5.0 for offline use | <p>I downloaded android studio 3.5, android gradle plugin and follow this setup guideline by google [link] (<a href="https://developer.android.com/studio/intro/studio-config#download_offline" rel="nofollow noreferrer">https://developer.android.com/studio/intro/studio-config#download_offline</a>) in order to install and... | I downloaded android studio 3.5, android gradle plugin and follow this setup guideline by google [link] ( https://developer.android.com/studio/intro/studio-config#download_offline ) in order to install android studio for offline use. But the site is providing android gradle plugin 3.5.0-beta01 and android studio is ask... | android|android-studio|android-gradle-plugin|offline | -1 | 2020-02-06T12:14:23.153Z | 2,020 | 2 | 12 | 3 | 565 | 1 | 527 | 51 | 4 | 0 | false | false | false | false | false | true | negative |
60,094,827 | Center Text inside Button and reduce button padding | <p><a href="https://i.stack.imgur.com/aMl3j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aMl3j.png" alt="pic"></a></p>
<p>My button is "ADD" and as you can see the text doesn't fit inside and it is cut on the buttom part , I think that the white space around the text inside the button is too big ... | My button is "ADD" and as you can see the text doesn't fit inside and it is cut on the buttom part , I think that the white space around the text inside the button is too big and that's why i can't fit it. I don't want to lower its size .. My button in xml: [CODE] | android|xml|button | 1 | 2020-02-06T12:17:54.713Z | 2,020 | 2 | 12 | 3 | 345 | 3 | 264 | 51 | 3 | 1 | true | false | false | false | false | false | low |
60,094,917 | Firebase Authentication keeps crashing | <p>I'm trying to use Firebase phone authentication but it keeps crashing. It appears it has to do with Google Play Services.</p>
<p>Below are the crash logs. </p>
<pre><code>packageName=com.geek.v
versionName=1.0
throwClassName=com.google.firebase.auth.api.internal.zzah
throwMethodName=zzcy
throwLineNumber=25
excepti... | I'm trying to use Firebase phone authentication but it keeps crashing. It appears it has to do with Google Play Services. Below are the crash logs. [CODE] This is my MainActivity where Firebase authentication is used. [CODE] app/build.gradle [CODE] | java|android|firebase|firebase-authentication | 0 | 2020-02-06T12:21:51.330Z | 2,020 | 2 | 12 | 3 | 29 | 0 | 248 | 38 | 4 | 3 | true | true | false | false | false | false | zero |
60,095,115 | How to send data from fragments using viewpager which is in bottomsheet dialog fragment? | <p>I'm getting the response through OK-HTTP request by calling API which contains some students data, but I'm not able to send that data from my fragment which is in view pager and that view pager with tab layout in bottom sheet dialog fragment</p>
<pre><code>public static class AddBottomSheetDialog extends BottomShee... | I'm getting the response through OK-HTTP request by calling API which contains some students data, but I'm not able to send that data from my fragment which is in view pager and that view pager with tab layout in bottom sheet dialog fragment [CODE] now the fragment code that I've written that is shown as below: [CODE] ... | android|android-fragments|android-viewpager|bottom-sheet|android-bottomsheetdialog | 0 | 2020-02-06T12:32:26.053Z | 2,020 | 2 | 12 | 3 | 95 | 0 | 626 | 88 | 5 | 2 | true | true | false | false | false | false | zero |
60,095,118 | Which AndroidManifest.xml to edit in Flutter project? | <p>I notice there are several <code>AndroidManifest.xml</code>s under <code>android/app/src</code>, <code>debug</code>, <code>main</code>, and <code>profile</code> folders all contain one. Which one to edit?</p>
<p><a href="https://i.stack.imgur.com/fCxND.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fCxND... | I notice there are several AndroidManifest.xml s under android/app/src , debug , main , and profile folders all contain one. Which one to edit? | android-studio|flutter | 14 | 2020-02-06T12:32:38.863Z | 2,020 | 2 | 12 | 3 | 5,699 | 3 | 143 | 53 | 2 | 0 | false | false | true | false | true | false | medium |
60,095,146 | java.io.FileNotFoundException gradle.properties (Operation not permitted) | <p>I am installing a ionic Angular & Cordova on new Mac book pro, testing it with ionic starter templates before migrating my project from my old Mac book pro.</p>
<p><br />I am currently using this installation guides :
<br /><a href="https://ionicframework.com/docs/installation/android" rel="nofollow noreferrer"... | I am installing a ionic Angular & Cordova on new Mac book pro, testing it with ionic starter templates before migrating my project from my old Mac book pro. I am currently using this installation guides : https://ionicframework.com/docs/installation/android https://ionicframework.com/docs/building/android . Everything ... | android|macos|cordova|ionic-framework|gradle | 0 | 2020-02-06T12:34:02.450Z | 2,020 | 2 | 12 | 3 | 1,920 | 1 | 983 | 73 | 5 | 5 | true | false | false | false | false | false | zero |
60,095,197 | How can I access the array name in order to get list? | <p>In my project I am trying ti fetch data, the data is inside an Array so I did the steps needed but the Array has a name in the data which I dont know how to pass <code>"listCar"[]</code>.</p>
<p>Here is my code of fetching:</p>
<pre><code>private void getData() {
JsonArrayRequest jsonArrayRequest = new JsonArr... | In my project I am trying ti fetch data, the data is inside an Array so I did the steps needed but the Array has a name in the data which I dont know how to pass "listCar"[] . Here is my code of fetching: [CODE] here is the Log error I get: E/Volley: com.android.volley.ParseError: org.json.JSONException: Value of type ... | java|android|json|android-volley | 0 | 2020-02-06T12:37:20.587Z | 2,020 | 2 | 12 | 3 | 67 | 1 | 462 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
60,095,230 | How to access microphone in Xamarin emulator | <p>Is it possible or is there anyway that I can access the Microphone and use it to test my code?</p>
<p>I have enabled all of this in the extended controls of my emulator for microphone:
<a href="https://i.stack.imgur.com/uX8mc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uX8mc.png" alt="enter i... | Is it possible or is there anyway that I can access the Microphone and use it to test my code? I have enabled all of this in the extended controls of my emulator for microphone: I also have these permissions in my AndroidManifest.xml: [CODE] This is the code: [CODE] This code works when I use a phone to run it, but whe... | xamarin|xamarin.forms|xamarin.android | 0 | 2020-02-06T12:39:08.590Z | 2,020 | 2 | 12 | 3 | 1,363 | 1 | 372 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
60,095,385 | onAdFailedtoLoad: 3 error only on Android version of Flutter app for AdMob | <p>I am trying to load banner, interstitial and rewarded video ads in my app. I have tested my code thoroughly and all my code works with test IDs. I replaced the test ID's with my actual Admob ID's and it works on the iOS version of my app, however when I tested the same on the APK release version of my app on my devi... | I am trying to load banner, interstitial and rewarded video ads in my app. I have tested my code thoroughly and all my code works with test IDs. I replaced the test ID's with my actual Admob ID's and it works on the iOS version of my app, however when I tested the same on the APK release version of my app on my device ... | android|flutter|admob|ads | 3 | 2020-02-06T12:48:55.383Z | 2,020 | 2 | 12 | 3 | 3,397 | 1 | 656 | 74 | 4 | 1 | true | false | true | false | false | false | low |
60,095,480 | Alternative for deprecated TabLayout | <p>I was using a set of regular buttons to change the property a discrete seek bar modifies the value of. Touching one of the buttons would change the value a property, whose setter will then change the min/max of the seekbar. This property is also used in <code>onProgressChanged</code> of the seek bar to determine whi... | I was using a set of regular buttons to change the property a discrete seek bar modifies the value of. Touching one of the buttons would change the value a property, whose setter will then change the min/max of the seekbar. This property is also used in onProgressChanged of the seek bar to determine which property to c... | android|android-layout|android-support-library|android-tablayout | 0 | 2020-02-06T12:53:36.283Z | 2,020 | 2 | 12 | 3 | 681 | 1 | 717 | 36 | 4 | 0 | false | false | false | false | false | false | zero |
60,095,550 | Build release failed Flutter | <p>I'm trying to build apk with flutter. But everytime i run <code>flutter build apk</code> or <code>flutter build apk --release</code> Build always failed with an exception like this.</p>
<pre><code>Running Gradle task 'assembleRelease'...
Removed unused resources: Binary resource data... | I'm trying to build apk with flutter. But everytime i run flutter build apk or flutter build apk --release Build always failed with an exception like this. [CODE] this happend also with a flutter sample apps, maybe there's something wrong with my settings, but i don't know which i need to edit, did someone know how to ... | android|flutter|dart | 2 | 2020-02-06T12:56:45.370Z | 2,020 | 2 | 12 | 3 | 1,185 | 1 | 331 | 28 | 3 | 1 | true | false | false | false | false | false | low |
60,095,555 | How to access single integer from JSONArray | <p>I have converted a jsonobject to jsonarray which contains these numbers seperated by commas <code>[12,20,26,25,89,92,30,16]</code> (Example numbers)
How can I access each number individually and treat it as an integer?</p>
<pre><code>JSONObject JA = new JSONObject(data);
for (int i = 0; i < JA.length(); ... | I have converted a jsonobject to jsonarray which contains these numbers seperated by commas [12,20,26,25,89,92,30,16] (Example numbers) How can I access each number individually and treat it as an integer? [CODE] | java|android|arrays|json | 1 | 2020-02-06T12:57:11.297Z | 2,020 | 2 | 12 | 3 | 60 | 2 | 212 | 43 | 4 | 1 | true | false | false | false | false | false | low |
60,095,803 | Location Updates in Background Android 10 | <p>i have worked with <a href="https://github.com/android/location-samples" rel="nofollow noreferrer">https://github.com/android/location-samples</a> (pending intent one)and everythink works great for old device (level 24) but the background service doesn't work on android 10.
Do you have any ideas why is that so?</p... | i have worked with https://github.com/android/location-samples (pending intent one)and everythink works great for old device (level 24) but the background service doesn't work on android 10. Do you have any ideas why is that so? | android|location|android-10.0 | 0 | 2020-02-06T13:12:02.123Z | 2,020 | 2 | 13 | 3 | 223 | 1 | 228 | 41 | 3 | 0 | false | false | false | false | false | false | zero |
60,095,813 | Execute function after FragmentManager commit | <p>I have a toolbar with text that is updated after an item in my menu is selected.</p>
<p>The problem is that I call the function that handles the title in my toolbar right after my transaction like this:</p>
<pre class="lang-java prettyprint-override"><code>supportFragmentManager.beginTransaction()
.replace... | I have a toolbar with text that is updated after an item in my menu is selected. The problem is that I call the function that handles the title in my toolbar right after my transaction like this: [CODE] However, when my function is called, the Fragment I get is always the one currently displayed and not the new one. [C... | android|android-fragments|kotlin | 2 | 2020-02-06T13:12:40.947Z | 2,020 | 2 | 13 | 3 | 496 | 3 | 446 | 45 | 3 | 2 | true | false | false | false | false | false | low |
60,095,916 | using incremental annotation processing with kapt and maven plugin for kotlin | <p>How can we use incremental annotation processing with maven plugin?</p>
<p>Documentation only tells about gradle:</p>
<p><a href="https://kotlinlang.org/docs/reference/kapt.html#incremental-annotation-processing-since-1330" rel="nofollow noreferrer">https://kotlinlang.org/docs/reference/kapt.html#incremental-anno... | How can we use incremental annotation processing with maven plugin? Documentation only tells about gradle: https://kotlinlang.org/docs/reference/kapt.html#incremental-annotation-processing-since-1330 | java|android|maven|kotlin|kapt | 1 | 2020-02-06T13:18:16.483Z | 2,020 | 2 | 13 | 3 | 241 | 0 | 199 | 77 | 5 | 0 | false | true | false | false | false | false | low |
60,095,921 | Room database Pre-packaged database has an invalid schema | <p>I have a problem with pre-packages room database.
I have a database found on external storage. I have copied this database to be placed on the database directory.
After copying the database, I should use Room database, but unfortunately,
<code>java.lang.IllegalStateException Pre-packaged database has an invalid sc... | I have a problem with pre-packages room database. I have a database found on external storage. I have copied this database to be placed on the database directory. After copying the database, I should use Room database, but unfortunately, java.lang.IllegalStateException Pre-packaged database has an invalid schema thrown... | android|sqlite|android-room | 1 | 2020-02-06T13:18:45.307Z | 2,020 | 2 | 13 | 3 | 2,477 | 2 | 374 | 57 | 3 | 2 | true | false | false | false | false | false | low |
60,095,983 | Is there any other way of creating a time delay in android other than Handler.postDelayed()? | <p>Handler.PostDelayed() works inconsistently for me. 1ms and 10ms delays are the same and I would also need even smaller delays in my project. Are there any other functions which I can use? Thanks!</p> | Handler.PostDelayed() works inconsistently for me. 1ms and 10ms delays are the same and I would also need even smaller delays in my project. Are there any other functions which I can use? Thanks! | android|sleep|timedelay | 1 | 2020-02-06T13:22:10.810Z | 2,020 | 2 | 13 | 3 | 268 | 2 | 195 | 92 | 3 | 0 | false | false | false | false | false | false | low |
60,096,020 | How to have 2 instances of parametrized sharedViewModel? | <pre class="lang-kotlin prettyprint-override"><code>val viewModel: StuffViewModel by sharedViewModel { parametersOf(arguments.id) }
</code></pre>
<p>Now, when I have multiple instanec of the same Fragment class, how can I have new instance for each of it? I thought that's what <code>parametersOf()</code> does, but it ... | [CODE] Now, when I have multiple instanec of the same Fragment class, how can I have new instance for each of it? I thought that's what parametersOf() does, but it doesn't seem to be true. And yes, it has to be sharedViewModel , because of some logic which causes some complex fragment manipulation and the viewmodels ar... | android|android-viewmodel|koin | 1 | 2020-02-06T13:24:24.137Z | 2,020 | 2 | 13 | 3 | 132 | 1 | 508 | 56 | 3 | 3 | true | false | false | false | false | false | low |
60,096,048 | How to add a parent view to a child view programmatically? | <p>I would like to add a <code>HorizontalScrollView</code> as a parent to the child view <code>LinearLayout</code>. Is there a way to add a parent view to a child view programmatically in <code>Android</code> ?</p> | I would like to add a HorizontalScrollView as a parent to the child view LinearLayout . Is there a way to add a parent view to a child view programmatically in Android ? | android | 0 | 2020-02-06T13:26:03.307Z | 2,020 | 2 | 13 | 3 | 503 | 1 | 169 | 58 | 1 | 0 | false | false | false | false | false | false | zero |
60,096,116 | App crashes after passing data from a recyclerview to another activity | <p>2020-02-06 16:24:29.196 2461-2461/com.finix.betsmarttips E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.finix.betsmarttips, PID: 2461
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.finix.betsmarttips/com.finix.betsmarttips.GalleryActivity}: java.lang.NullPointerException: Attemp... | 2020-02-06 16:24:29.196 2461-2461/com.finix.betsmarttips E/AndroidRuntime: FATAL EXCEPTION: main Process: com.finix.betsmarttips, PID: 2461 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.finix.betsmarttips/com.finix.betsmarttips.GalleryActivity}: java.lang.NullPointerException: Attempt to invoke... | android-recyclerview | -1 | 2020-02-06T13:29:16.610Z | 2,020 | 2 | 13 | 3 | 21 | 1 | 2,285 | 70 | 1 | 0 | false | false | false | false | false | true | negative |
60,096,130 | How to Clear the RealmResults<> of a particular Query while Filtering through the Realm in Android? | <p>I am applying filters on realm using RealmResults<>.</p>
<p>I begin to do like this - </p>
<pre><code>RealmResults<data> filteredRealmResults;
List<data> tranfilteredlist;
private OrderedRealmCollectionChangeListener<RealmResults<data>> filteredTransChangeListener =
new Orde... | I am applying filters on realm using RealmResults<>. I begin to do like this - [CODE] Now I want to delete the filteredRealmResults . I did like this - [CODE] After doing this my data in the realm got deleted. So I just try to delete the tranfilteredlist but it throws an exception that it does not support .clear(); I w... | android|realm | 1 | 2020-02-06T13:30:00.823Z | 2,020 | 2 | 13 | 3 | 69 | 1 | 696 | 99 | 2 | 2 | true | false | false | false | false | false | low |
60,096,164 | How to resolve DefaultTrackSelector#getCurrentMappedTrackInfo returning null? | <p>I am using Exoplayer version <code>2.7.2</code>, and I want to iterate over <code>MappedTrackInfo</code> to get all the available <code>TrackGroupArray</code> of a DASH video. But DefaultTrackSelector#getCurrentMappedTrackInfo is returning null.</p>
<p>Here's my code:</p>
<p><strong>PlayerTrackSelector.kt</strong>... | I am using Exoplayer version 2.7.2 , and I want to iterate over MappedTrackInfo to get all the available TrackGroupArray of a DASH video. But DefaultTrackSelector#getCurrentMappedTrackInfo is returning null. Here's my code: PlayerTrackSelector.kt : [CODE] MainActivity.kt [CODE] I have tried with different MPDs aswell. ... | android|kotlin|mpeg-dash|exoplayer2.x | 2 | 2020-02-06T13:31:59.227Z | 2,020 | 2 | 13 | 3 | 1,355 | 1 | 691 | 77 | 4 | 2 | true | false | false | false | false | false | low |
60,096,245 | Is it possible to hardcode your application to (for example) always use scaletype: Centercrop when you add imageviews in Android Studio | <p>As the title states I was wondering if it is possible to hardcode certain elements in your project like for example what I stated in the title.
This could be highly useful if you are using centercrop for imageviews all the time, not to mention all the other options there are!</p>
<p>I am hoping there are more peopl... | As the title states I was wondering if it is possible to hardcode certain elements in your project like for example what I stated in the title. This could be highly useful if you are using centercrop for imageviews all the time, not to mention all the other options there are! I am hoping there are more people who are w... | android|android-studio|kotlin | 0 | 2020-02-06T13:35:57.577Z | 2,020 | 2 | 13 | 3 | 23 | 1 | 466 | 135 | 3 | 0 | false | false | false | false | false | false | zero |
60,096,255 | Android BLE. How to filter Scan by raw advertising data | <p>I have to build an Android App that reads information on a kind of device that only shows up on scan when it's filtered (general scans won't show it). The device is beacon-like, so it only advertises data, which have the info I want on the advertise (it's not connectable).
The filter that the manufacturer gave to me... | I have to build an Android App that reads information on a kind of device that only shows up on scan when it's filtered (general scans won't show it). The device is beacon-like, so it only advertises data, which have the info I want on the advertise (it's not connectable). The filter that the manufacturer gave to me, i... | java|android|bluetooth-lowenergy | 1 | 2020-02-06T13:36:20.257Z | 2,020 | 2 | 13 | 3 | 3,217 | 2 | 1,968 | 55 | 3 | 1 | true | false | true | false | false | false | low |
60,096,274 | Problem with custom layout into another layout, layout doesn't show in app and design mode | <p>So, when i click on button called calendar on main activity it should open new activity (Second screen) with part of calendar which i made (custom_calendar layout). However, it open to me only empty activity. I already tried to make changes in style.xml, clean and rebuild project, but it doesn't change anything.
Lin... | So, when i click on button called calendar on main activity it should open new activity (Second screen) with part of calendar which i made (custom_calendar layout). However, it open to me only empty activity. I already tried to make changes in style.xml, clean and rebuild project, but it doesn't change anything. Link t... | android-studio|layout|customization|android-custom-view|android-xml | 0 | 2020-02-06T13:37:58.983Z | 2,020 | 2 | 13 | 3 | 49 | 1 | 401 | 90 | 5 | 0 | false | false | false | false | false | false | zero |
60,096,322 | How do I sign my new React Native App [Android] with my old Expo key? | <p>I decided to rewrite an app that was previously done with expo. When I did the first version with expo I went with the option to have expo handle that process for me. </p>
<p>My new app is a pure react native app for android and I'd like to submit it to the store but have no way to sign it using whatever expo used ... | I decided to rewrite an app that was previously done with expo. When I did the first version with expo I went with the option to have expo handle that process for me. My new app is a pure react native app for android and I'd like to submit it to the store but have no way to sign it using whatever expo used to previousl... | android|react-native|expo | 2 | 2020-02-06T13:40:34.547Z | 2,020 | 2 | 13 | 3 | 573 | 1 | 327 | 69 | 3 | 0 | false | false | false | false | false | false | low |
60,096,349 | Flutter -- Display image from Firebase -- Cloud Firestore | <p>My app can display image from Firebase. But it takes long time. How can i solve this problem?</p> | My app can display image from Firebase. But it takes long time. How can i solve this problem? | android|flutter|mobile|dart | 0 | 2020-02-06T13:41:49.587Z | 2,020 | 2 | 13 | 3 | 93 | 0 | 93 | 57 | 4 | 0 | false | true | false | false | false | false | zero |
60,096,397 | API data in kotlin fragment | <p>I am trying to use <code>Drawer activity</code>, seems that it has 3 files to just show simple text as <code>This is home Fragment</code> :|</p>
<p>Anyway, I have tracked back all those files and found <code>fragment_home.xml</code>, <code>HomeFragment.kt</code> and <code>HomeViewModel.kt</code></p>
<blockquote>
... | I am trying to use Drawer activity , seems that it has 3 files to just show simple text as This is home Fragment :| Anyway, I have tracked back all those files and found fragment_home.xml , HomeFragment.kt and HomeViewModel.kt Question How should I call for API data trough fragments? Code my code Based on android studi... | android|android-studio|android-fragments|kotlin | 1 | 2020-02-06T13:44:07.620Z | 2,020 | 2 | 13 | 3 | 1,252 | 1 | 780 | 27 | 4 | 4 | true | false | false | false | false | false | low |
60,096,408 | How to add notification Badge count in Android? | <p>I have been learning coding recently and i wanted to develop an android app .I have the vision of what it needs to do but i need some help and i am unable to implement that vision in codes, so seeking some help here. please assist of you can.</p>
<p>The situation here is I created a app with Bottom Navigation Activ... | I have been learning coding recently and i wanted to develop an android app .I have the vision of what it needs to do but i need some help and i am unable to implement that vision in codes, so seeking some help here. please assist of you can. The situation here is I created a app with Bottom Navigation Activity. In the... | javascript|java|android|methods|error-handling | 1 | 2020-02-06T13:44:46.220Z | 2,020 | 2 | 13 | 3 | 60 | 2 | 708 | 47 | 5 | 0 | false | false | false | false | false | false | low |
60,096,418 | MVVM Issues with Kotlin - Getting some error with modularization | <h1>Objective:</h1>
<p>I would like to modularize my code, but I am not well familiarized with Kotlin/Java -- considerable new to both languages, I was coding with React Native.</p>
<p>The following code is how I was making the model-view implementation. If anyone has a better suggestion in how to make a MVVM.</p>
... | Objective: I would like to modularize my code, but I am not well familiarized with Kotlin/Java -- considerable new to both languages, I was coding with React Native. The following code is how I was making the model-view implementation. If anyone has a better suggestion in how to make a MVVM. I try to do direct access a... | android|kotlin|mvvm | 0 | 2020-02-06T13:45:29.227Z | 2,020 | 2 | 13 | 3 | 86 | 1 | 1,708 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
60,096,452 | Manage how views are recycled in RecyclerView | <p>I'm looking for a way to filter my data in a RecyclerView without the state of a given view affects another view when filter is applied. Pratically, I have this problem :
1. I add "Martins" to my friend list by clicking on the add button (image msSxq.png)
list without filter
<a href="https://i.stack.imgur.com/dKbVQ.... | I'm looking for a way to filter my data in a RecyclerView without the state of a given view affects another view when filter is applied. Pratically, I have this problem : 1. I add "Martins" to my friend list by clicking on the add button (image msSxq.png) list without filter I perform a search and I get this (image FGS... | java|android|android-recyclerview | 0 | 2020-02-06T13:47:23.440Z | 2,020 | 2 | 13 | 3 | 67 | 1 | 935 | 45 | 3 | 3 | true | false | false | false | false | false | zero |
60,096,478 | Clearing AutoCompleteTextView if input option is not suggested | <p>I am trying to allow the user to type so he gets the suggestions going, but I do not want to allow him to finish typing it in, instead I want him to select an option. </p>
<p>Reason for this is I need to get the ID (id is an object attribute in this case, not ID of the list element) of the selected option and if th... | I am trying to allow the user to type so he gets the suggestions going, but I do not want to allow him to finish typing it in, instead I want him to select an option. Reason for this is I need to get the ID (id is an object attribute in this case, not ID of the list element) of the selected option and if the item is no... | java|android | 1 | 2020-02-06T13:49:01.823Z | 2,020 | 2 | 13 | 3 | 24 | 0 | 642 | 62 | 2 | 2 | true | true | false | false | false | false | low |
60,096,589 | How to change the circle color of the radio button programmatically? | <p>I have a RadioGroup that will be populated programmatically (I'm using kotlin) and I want to change the circle color of the radio button (try to avoid the accent color solution).</p>
<p>** <strong>XML</strong></p>
<pre><code><RadioGroup
android:id="@+id/radio_group"
android:layout_width="match_parent"
... | I have a RadioGroup that will be populated programmatically (I'm using kotlin) and I want to change the circle color of the radio button (try to avoid the accent color solution). ** XML [CODE] ** Kotlin [CODE] | android|android-layout|kotlin|android-radiobutton | 1 | 2020-02-06T13:54:53.083Z | 2,020 | 2 | 13 | 3 | 177 | 1 | 209 | 68 | 4 | 2 | true | false | false | false | false | false | low |
60,096,639 | hiding the hash in sms for smsRetreiver Android | <p>I am using <a href="https://medium.com/android-dev-hacks/autofill-otp-verification-with-latest-sms-retriever-api-73c788636783" rel="nofollow noreferrer">Secure Android OTP & Account Verification using the SMS Retriever API</a>, In oreder for the service to work My incoming sms should be in the foloowing format: ... | I am using Secure Android OTP & Account Verification using the SMS Retriever API , In oreder for the service to work My incoming sms should be in the foloowing format: [CODE] With the <#> At the begging and the hash in the end, is there a wy to remove this (or at least make it invisible for the user? Thanks! | android|sms-retriever-api | 0 | 2020-02-06T13:57:26Z | -1 | -1 | -1 | -1 | 834 | 1 | 309 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
60,096,750 | Exo Player becomes black when animating the container fragment, How to fix it? | <p>I have an Exoplayer view in a fragment, when I animate the fragment container view from the activity the exo player will become black. <br/> I used <code>setKeepContentOnPlayerReset(true);</code> to keep the last frame and it's working fine. <br/> <br/>But when I call the animate (sliding animation) on fragment con... | I have an Exoplayer view in a fragment, when I animate the fragment container view from the activity the exo player will become black. I used setKeepContentOnPlayerReset(true); to keep the last frame and it's working fine. But when I call the animate (sliding animation) on fragment container view (that's a Frame Layout... | android-fragments|exoplayer|exoplayer2.x|fragment-animation | 3 | 2020-02-06T14:03:24.377Z | 2,020 | 2 | 14 | 3 | 2,296 | 2 | 749 | 78 | 4 | 0 | false | false | false | false | false | false | low |
60,096,889 | The best way to know which fragment we navigated from | <p>Im writing an application which uses a lot of Fragments (with ViewModels). I'm using Navigation Component with nav graph to navigate from one fragment to another by using</p>
<p><code>findNavController().navigate(R.id.myFragment)</code></p>
<p>In some cases I navigate throught the fragments quite often and without a... | Im writing an application which uses a lot of Fragments (with ViewModels). I'm using Navigation Component with nav graph to navigate from one fragment to another by using findNavController().navigate(R.id.myFragment) In some cases I navigate throught the fragments quite often and without any static dependencies. You ca... | android|android-fragments|navigation|fragment | 2 | 2020-02-06T14:11:05.603Z | 2,020 | 2 | 14 | 3 | 419 | 1 | 837 | 53 | 4 | 0 | false | false | false | false | false | false | low |
60,096,921 | Connecting an Android application with database without using PHP | <p>Can we connect an Android application with database without using PHP?
Though I have done it using PHP but it gets hectic So Is there any other way?</p> | Can we connect an Android application with database without using PHP? Though I have done it using PHP but it gets hectic So Is there any other way? | php|android | -3 | 2020-02-06T14:12:55.483Z | 2,020 | 2 | 14 | 3 | 57 | 1 | 148 | 65 | 2 | 0 | false | false | false | false | false | true | negative |
60,097,173 | how can i change text "cancel" in time picker to anther text in android kotlin? | <pre><code> class DatePickerFragment : DialogFragment(), DatePickerDialog.OnDateSetListener {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val c: Calendar = Calendar.getInstance()
val year: Int = c.get(Calendar.YEAR)
val month: Int = c.get(Calendar.MON... | [CODE] Edit: All code after trying answer: [CODE] | android|kotlin|android-datepicker | 1 | 2020-02-06T14:24:45.500Z | 2,020 | 2 | 14 | 3 | 245 | 1 | 49 | 79 | 3 | 2 | true | false | false | false | false | false | low |
60,097,199 | How to Manage Multiple Private Apps on Multiple play store of different customers using Android Management Apis? | <p>Hi Based on Documentation <a href="https://developers.google.com/android/management/apps" rel="nofollow noreferrer">https://developers.google.com/android/management/apps</a></p>
<p>It's not clear how multiple play store accounts can be used, with Single Enterprise that is created using Android Management API's</p>... | Hi Based on Documentation https://developers.google.com/android/management/apps It's not clear how multiple play store accounts can be used, with Single Enterprise that is created using Android Management API's Suppose we build a solution using Android Management API's and now we have many customers each one will have ... | android|android-management-api|android-enterprise|android-enterprise-features | 1 | 2020-02-06T14:26:26.193Z | 2,020 | 2 | 14 | 3 | 371 | 1 | 1,093 | 112 | 4 | 0 | false | false | false | false | false | false | low |
60,097,268 | what to do about different resolution in android layout? | <p>I designed my layout on emulator with resolution 1920*1080 and all thing were good but now I install on my device with resolution 1280*720 and it's not good and all thing (ImageView and TextView) seems longer than 1920*1080 resolution.although I use from <code>dp</code> for ImageView and <code>sp</code> for TextView... | I designed my layout on emulator with resolution 1920*1080 and all thing were good but now I install on my device with resolution 1280*720 and it's not good and all thing (ImageView and TextView) seems longer than 1920*1080 resolution.although I use from dp for ImageView and sp for TextView but they are longer.I must d... | android|android-layout | 1 | 2020-02-06T14:29:54.277Z | 2,020 | 2 | 14 | 3 | 131 | 1 | 424 | 56 | 2 | 0 | false | false | false | false | false | false | low |
60,097,408 | Facebook login: key hash does not match any stored key hashes | <p>I am working on a ReactNative app and trying to implement Facebook login. <br/>
So I generated the hash key with the following commande: <br/></p>
<p><code>keytool -exportcert -alias androiddebugkey -keystore "C:\Users\user\.android\debug.keystore" | C:\openssl-0.9.8e_X64\bin\openssl sha1 -binary | C:\openssl-0.9.8... | I am working on a ReactNative app and trying to implement Facebook login. So I generated the hash key with the following commande: keytool -exportcert -alias androiddebugkey -keystore "C:\Users\user\.android\debug.keystore" | C:\openssl-0.9.8e_X64\bin\openssl sha1 -binary | C:\openssl-0.9.8e_X64\bin\openssl base64 I pu... | android|facebook|react-native | 0 | 2020-02-06T14:36:52.683Z | 2,020 | 2 | 14 | 3 | 98 | 0 | 573 | 61 | 3 | 0 | false | true | false | false | false | false | zero |
60,097,477 | Codename One App Subscription submitReceipt not called | <p>We are making use of Renewable subscriptions in one of our apps and for some reason the Submit Receipts method on the Receipt Store is not being fired after the native OS completes its steps.</p>
<p>Here is a spinet of our code,</p>
<pre><code>iap = Purchase.getInAppPurchase();
ReceiptStore store = new Re... | We are making use of Renewable subscriptions in one of our apps and for some reason the Submit Receipts method on the Receipt Store is not being fired after the native OS completes its steps. Here is a spinet of our code, [CODE] Any idea what we are doing wrong. | android|ios|codenameone | 1 | 2020-02-06T14:40:14.493Z | 2,020 | 2 | 14 | 3 | 28 | 0 | 262 | 54 | 3 | 1 | true | true | false | false | false | false | low |
60,097,599 | Html Content with rgb color not displaying in android but in ios(apple) work perfectly | <p><strong>This is work perfect</strong> </p>
<pre><code>val htmlContent = "<p><span style=\"background-color: #008080;\">Heloo This is new <span style=\"color: #0000ff;\">document</span>&nbsp; <span style=\"background-color: #ffffff;\">&nbsp;TEXTT HHHH<strong>Hhhhhhhh<... | This is work perfect [CODE] But When I trying to set this below Html content not working in android but in ios work perfectly [CODE] Kotlin code [CODE] | android|html|ios|kotlin|textview | 3 | 2020-02-06T14:46:40.373Z | 2,020 | 2 | 14 | 3 | 1,153 | 3 | 151 | 86 | 5 | 3 | true | false | false | false | false | false | low |
60,097,667 | Retrieve Blood Glucose Data using Google Fit HistoryAPI | <p>I'm trying to retrieve Blood Glucose Data using the Google Fit HistoryAPI. I used the HistoryAPI example for getting the step count (<a href="https://github.com/googlearchive/android-fit/tree/master/BasicHistoryApi" rel="nofollow noreferrer">https://github.com/googlearchive/android-fit/tree/master/BasicHistoryApi</a... | I'm trying to retrieve Blood Glucose Data using the Google Fit HistoryAPI. I used the HistoryAPI example for getting the step count ( https://github.com/googlearchive/android-fit/tree/master/BasicHistoryApi ) and tried to modify it so that I get blood glucose data instead of the step count. I changed the fitnessOptions... | android|google-fit | 1 | 2020-02-06T14:49:44.983Z | 2,020 | 2 | 14 | 3 | 217 | 0 | 544 | 55 | 2 | 2 | true | true | false | false | false | false | low |
60,097,683 | Java Android getContentResolver().query for specific Camera folder to get cursor in Android API level <= 28 devices | <p>I want to get the last taken image from the Camera folder. I don't want to get last screenshot or anything else. I just want to take the last image of the Camera folder. </p>
<p>This code works, but if there is a folder named "Cameras" or "xxx..Camera..xxx", the program also fetches the data of those folders.</p>
... | I want to get the last taken image from the Camera folder. I don't want to get last screenshot or anything else. I just want to take the last image of the Camera folder. This code works, but if there is a folder named "Cameras" or "xxx..Camera..xxx", the program also fetches the data of those folders. [CODE] But I don'... | java|android|mediastore|android-9.0-pie | 0 | 2020-02-06T14:50:27.887Z | 2,020 | 2 | 14 | 3 | 387 | 1 | 497 | 115 | 4 | 1 | true | false | false | false | false | false | zero |
60,097,695 | Get realtime data change update when data changes on Firebase Realtime Database | <p>I have written this code to fetch the data. But I want to fetch updates without restarting the activity as data changes in real-time in the database.</p>
<p>I want to show data dynamically:</p>
<pre><code>FirebaseDB.batch.child(batch).addListenerForSingleValueEvent(new ValueEventListener() {
@Override
... | I have written this code to fetch the data. But I want to fetch updates without restarting the activity as data changes in real-time in the database. I want to show data dynamically: [CODE] | java|android|firebase|firebase-realtime-database | 1 | 2020-02-06T14:50:52.617Z | 2,020 | 2 | 14 | 3 | 2,309 | 2 | 189 | 79 | 4 | 1 | true | false | false | false | false | false | low |
60,097,720 | How to change icon of Secondary Toolbaritem Xamarin Forms | <p>I am trying to set a custom icon to a "Secondary" Order <em>Toolbaritem</em> on a ContentPage, but the icon is rendered as the 3-dot /dotted-list icon on Android every time (haven't deployed to iOS, no reason to suspect it's any different).</p>
<p>My code is simply</p>
<pre><code><Toolbaritem Order="Secondary"
... | I am trying to set a custom icon to a "Secondary" Order Toolbaritem on a ContentPage, but the icon is rendered as the 3-dot /dotted-list icon on Android every time (haven't deployed to iOS, no reason to suspect it's any different). My code is simply [CODE] I want to keep the drop-down list function of the Toolbaritem. | c#|android|visual-studio|xaml|xamarin.forms | 1 | 2020-02-06T14:52:18.557Z | 2,020 | 2 | 14 | 3 | 1,539 | 1 | 319 | 57 | 5 | 1 | true | false | false | false | false | false | low |
60,097,773 | permission denied for window type 2038 - Android TV | <p>I am attempting to develop floating "widgets" for an android TV (android 8) and every time I try to run the app I'm prompted with:</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.floatingwidget2020, PID: 11548
java.lang.RuntimeException: Unable to create service com.example.floatingwidge... | I am attempting to develop floating "widgets" for an android TV (android 8) and every time I try to run the app I'm prompted with: [CODE] When I initially run the emulator the console prompts with: [CODE] Snippet of what I believe to be resulting in the issue: [CODE] and in AndroidManifest.xml: [CODE] When I change fla... | android|android-8.0-oreo|android-tv | 0 | 2020-02-06T14:54:35.673Z | 2,020 | 2 | 14 | 3 | 1,318 | 1 | 436 | 51 | 3 | 4 | true | false | false | false | false | false | zero |
60,097,919 | Android: Is there a way to hide MainActivity layout elements in fragments? | <p>My MainActivity layout includes a bottom navigation bar because I would like to use this as the main navigation components within my application's fragments. However, I have a login page which I do not want the navigation bar to be visible on. Since the fragment is being created from the MainActivity, it inherits th... | My MainActivity layout includes a bottom navigation bar because I would like to use this as the main navigation components within my application's fragments. However, I have a login page which I do not want the navigation bar to be visible on. Since the fragment is being created from the MainActivity, it inherits the n... | java|android|xml|android-fragments|bottomnavigationview | 0 | 2020-02-06T15:02:27.610Z | 2,020 | 2 | 15 | 3 | 318 | 2 | 1,577 | 74 | 5 | 0 | false | false | false | false | false | false | zero |
60,098,102 | Can't figure out how to build Firefox for Android | <p>I'm trying to build Firefox for Android (Fennec) as close as possible to the release one would download from the Google Play Store.
I've searched for a guide and found that most resources link to <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_b... | I'm trying to build Firefox for Android (Fennec) as close as possible to the release one would download from the Google Play Store. I've searched for a guide and found that most resources link to https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build which s... | android|firefox|build|fennec | 1 | 2020-02-06T15:11:04.333Z | 2,020 | 2 | 15 | 3 | 272 | 1 | 862 | 49 | 4 | 1 | true | false | false | false | false | false | low |
60,098,166 | Appium can't scroll in Android App when starting on clickable element | <h1>My situation</h1>
<p>I want to write UI-tests for an Android App and therefore I need to <strong>scroll</strong> in some of the App's fragments. The tests are written in Kotlin, Appium version is v1.15.1 .</p>
<h1>My problem</h1>
<p>I use the standard approach for scrolling(see below) and it works fine, as long ... | My situation I want to write UI-tests for an Android App and therefore I need to scroll in some of the App's fragments. The tests are written in Kotlin, Appium version is v1.15.1 . My problem I use the standard approach for scrolling(see below) and it works fine, as long as the coordinates of my starting point don't fa... | appium-android|android-scroll|appium-desktop | 0 | 2020-02-06T15:14:10.440Z | 2,020 | 2 | 15 | 3 | 872 | 1 | 703 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
60,098,216 | FATAL EXCEPTION: main, Error inflating class fragment, android.view.InflateException | <p>I am trying to make a map application. Using a button to link to the MapActivity class but the application crashes immediately when I press the button. Please advise, if more information is needed to solve the error please feel free to request from me.</p>
<p>MapActivity.java</p>
<pre><code>@Override
protected... | I am trying to make a map application. Using a button to link to the MapActivity class but the application crashes immediately when I press the button. Please advise, if more information is needed to solve the error please feel free to request from me. MapActivity.java [CODE] activity_map [CODE] content_map.xml [CODE] ... | java|android|fatal-error | 0 | 2020-02-06T15:16:54.160Z | 2,020 | 2 | 15 | 3 | 79 | 1 | 348 | 84 | 3 | 3 | true | false | false | false | false | false | zero |
60,098,269 | Testing Observable Field Changes within a Coroutine | <p>I am writing unit tests and I have this particular case when I change observable value before executing a suspend function and then right after. I would like to write a unit test to check if the value was changes twice correctly. </p>
<p>Here is the method:</p>
<pre><code> fun doSomething() {
viewModel... | I am writing unit tests and I have this particular case when I change observable value before executing a suspend function and then right after. I would like to write a unit test to check if the value was changes twice correctly. Here is the method: [CODE] When writing a test I am calling doSomething() but I am unsure ... | android|unit-testing|kotlin|kotlin-coroutines | 1 | 2020-02-06T15:19:41.407Z | 2,020 | 2 | 15 | 3 | 719 | 1 | 510 | 51 | 4 | 2 | true | false | false | false | false | false | low |
60,098,355 | How sticky service runs when application is not alive? | <p>I have found that Service is run in Main Thread i.e. UI Thread in Android whereas Intent Service runs in a new worker thread(Reference link: <a href="https://stackoverflow.com/questions/7771323/what-is-the-difference-between-an-intentservice-and-a-service">What is the difference between an IntentService and a Servic... | I have found that Service is run in Main Thread i.e. UI Thread in Android whereas Intent Service runs in a new worker thread(Reference link: What is the difference between an IntentService and a Service? ). My question is if I killed the application then the main thread of that app should be closed. Then how a sticky s... | android | 1 | 2020-02-06T15:23:15.110Z | 2,020 | 2 | 15 | 3 | 40 | 0 | 346 | 54 | 1 | 0 | false | true | false | false | false | false | low |
60,098,451 | Place Call Using Self-Managed ConnectionService Not Working on Samsung | <p>We are currently building a VOIP calling application with the intention of it primarily being used on Samsung tablets. However, we are having issues with one. </p>
<p>In total we have 4 Samsung tablets; SM-T395, SM-T390, SM-T590, and the SM-T290. Of these, we are only having issues with the SM-T290.</p>
<p>We have... | We are currently building a VOIP calling application with the intention of it primarily being used on Samsung tablets. However, we are having issues with one. In total we have 4 Samsung tablets; SM-T395, SM-T390, SM-T590, and the SM-T290. Of these, we are only having issues with the SM-T290. We have implemented a self-... | android|voip|samsung-mobile | 2 | 2020-02-06T15:28:01.460Z | 2,020 | 2 | 15 | 3 | 445 | 0 | 1,701 | 70 | 3 | 0 | false | true | false | false | false | false | low |
60,098,563 | Lock screen (similar to pressing power button) on Android using Flutter | <p>I'm creating an app and wanted to programmatically lock the device once the user taps a button.</p>
<p>I've searched online about this and the only stuff I found was lock screen orientation or some APIs to create a Lock-screen app.</p>
<p>I just wondering if a simple thing like <code>thisDevice.lock();</code> or <... | I'm creating an app and wanted to programmatically lock the device once the user taps a button. I've searched online about this and the only stuff I found was lock screen orientation or some APIs to create a Lock-screen app. I just wondering if a simple thing like thisDevice.lock(); or AndroidStuff.powerMgmt.lockScreen... | android|flutter|dart | 2 | 2020-02-06T15:34:10.083Z | 2,020 | 2 | 15 | 3 | 476 | 0 | 388 | 71 | 3 | 0 | false | true | false | false | false | false | low |
60,098,765 | compare background color of layout in android application with kotlin | <p>I want to make an if statement in which I will compare the color of my layout background color,with kotlin something like this:</p>
<pre><code> val viewPaint = (background.getBackground() as PaintDrawable).paint
val colorARGB = viewPaint.color
if(colorARGB == Color.GREEN){
btn_touch.setOnClickL... | I want to make an if statement in which I will compare the color of my layout background color,with kotlin something like this: [CODE] It's not working how can i compare background color with kotlin ? | android|android-studio|android-layout|kotlin | 1 | 2020-02-06T15:45:52.220Z | 2,020 | 2 | 15 | 3 | 587 | 2 | 200 | 69 | 4 | 1 | true | false | false | false | false | false | low |
60,098,889 | android XML preview not showing after migrating to androidx | <p>I am working on a project and I recently update whole project to androidx using refactor > migrate to andoidx, but now it is not showing XML Design preview just saying "waiting for build to finish" although there isn't any error I build apk and checked but app running fine just preview not showing.</p>
<p>following... | I am working on a project and I recently update whole project to androidx using refactor > migrate to andoidx, but now it is not showing XML Design preview just saying "waiting for build to finish" although there isn't any error I build apk and checked but app running fine just preview not showing. following is code of... | android | 0 | 2020-02-06T15:52:38.097Z | 2,020 | 2 | 15 | 3 | 114 | 0 | 377 | 59 | 1 | 3 | true | true | false | false | false | false | zero |
60,098,903 | Retrofit @Path sending query instead | <p>I am using Retrofit in my project and this code to update records in a database: </p>
<pre><code>@PATCH("/api/payments/{id}/")
Call<Payment> updatePayment(@Path("id") int id, @Body Payment payment);
</code></pre>
<p>the problem is, retrofit is supposed to send the request like this:</p>
<p><a href="https://... | I am using Retrofit in my project and this code to update records in a database: [CODE] the problem is, retrofit is supposed to send the request like this: https://example.herokuapp.com/api/payments/4/ which is how the @Path tag should send the request requests are sent as if the were @Query tag queries, for example: h... | android|retrofit|proguard|okhttp | 0 | 2020-02-06T15:53:34.417Z | 2,020 | 2 | 15 | 3 | 37 | 0 | 394 | 36 | 4 | 1 | true | true | false | false | false | false | zero |
60,099,072 | How to change background of Spinner drop down window? | <p>I set custom <code>layout_dropdown_menu_popup_item</code> with dark background but still there is white color at the top and bottom of popup window</p>
<p><a href="https://i.stack.imgur.com/X6HL3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X6HL3.png" alt="enter image description here"></a></p... | I set custom layout_dropdown_menu_popup_item with dark background but still there is white color at the top and bottom of popup window [CODE] R.layout.layout_dropdown_menu_popup_item: [CODE] | android|android-arrayadapter|android-spinner | 0 | 2020-02-06T16:01:06.437Z | 2,020 | 2 | 16 | 3 | 26 | 0 | 190 | 53 | 3 | 2 | true | true | false | false | false | false | zero |
60,099,118 | Initializing structs over 12 bytes gets SIGILL | <p>I'm trying to run a cross compiled executable on the following emulator</p>
<p><code>system-images;android-21;google_apis;armeabi-v7a</code></p>
<p>I have the following <em>Makefile</em></p>
<pre><code>NDK=/usr/local/android-sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64
bam: bam.c
$(NDK)/bin/clan... | I'm trying to run a cross compiled executable on the following emulator system-images;android-21;google_apis;armeabi-v7a I have the following Makefile [CODE] The following bam.c crashes on the initialization of bar . [CODE] in the following way [CODE] When i remove the last char field so the bam.c looks like this [CODE... | android|crash|clang|cross-compiling|armv7 | 0 | 2020-02-06T16:03:54.410Z | 2,020 | 2 | 16 | 3 | 50 | 1 | 708 | 46 | 5 | 5 | true | false | false | false | false | false | zero |
60,099,127 | sql query returns no result with many to many relation | <p>I'd like to start with explaining what's my db looks like. I have the item table which is in relation many to many with two other tables tag and keyword. </p>
<pre><code>table: item
columns: id, name, subcategory, category
</code></pre>
<pre><code>table: item_tag_join
columns: itemId, tagId
</code></pre>
<pre><co... | I'd like to start with explaining what's my db looks like. I have the item table which is in relation many to many with two other tables tag and keyword. [CODE] [CODE] [CODE] [CODE] [CODE] Now, what I want to do is I want to search through the keyword.name, tag.name, item.name, item.category and item.subcategory and re... | sql|sqlite|android-sqlite | 0 | 2020-02-06T16:04:19.393Z | 2,020 | 2 | 16 | 3 | 46 | 1 | 784 | 54 | 3 | 6 | true | false | false | false | false | false | zero |
60,099,219 | Why my android program works fine on 4.4.3 version but doesnt work on 10.0 | <p>On the phone string is empty, why thats happend?
Phone is android version 10, nox is 4.4.3 if thats matters?</p>
<p>I try more codes for read web page but result is same, i dont know why its happend?</p>
<pre><code>class GetData extends AsyncTask<String, Void, String> {
@Override
protected String d... | On the phone string is empty, why thats happend? Phone is android version 10, nox is 4.4.3 if thats matters? I try more codes for read web page but result is same, i dont know why its happend? [CODE] } | java|android | 0 | 2020-02-06T16:09:54.610Z | 2,020 | 2 | 16 | 3 | 42 | 2 | 201 | 74 | 2 | 1 | true | false | false | false | false | false | zero |
60,099,300 | Android : How do you get activities to talk with a service smoothly | <p>I am fairly new to Android and java so, bear with me.</p>
<p>I am working on an app that's basically a VOIP app.
The design is quite simple : </p>
<ul>
<li>A "Foreground" service : it handles audio, connectivity, etc ... </li>
<li>A few repositories that store the data (mostly they are MutableLiveData)</li>
<li>A ... | I am fairly new to Android and java so, bear with me. I am working on an app that's basically a VOIP app. The design is quite simple : A "Foreground" service : it handles audio, connectivity, etc ... A few repositories that store the data (mostly they are MutableLiveData) A few ViewModels that basically just act as mid... | android|service|android-livedata|aidl | 0 | 2020-02-06T16:15:37.333Z | 2,020 | 2 | 16 | 3 | 61 | 0 | 1,305 | 67 | 4 | 0 | false | true | false | false | false | false | zero |
60,099,321 | Input Stream & Input Stream Reader | <pre class="lang-java prettyprint-override"><code>try{
url = new URL(urls[0]);
connection = (HttpURLConnection) url.openConnection();
connection.connect();
InputStream in = connection.getInputStream();
InputStreamReader reader = new InputStreamReader(in);
int data = reader.read();
while(d... | [CODE] Can anyone please explain me the functioning of this code! Because I'm not getting why we use an integer here to store the stream values and how is the while loop is working here. | java|android | 1 | 2020-02-06T16:16:32.800Z | 2,020 | 2 | 16 | 3 | 62 | 2 | 186 | 34 | 2 | 1 | true | false | false | false | false | false | low |
60,099,385 | "java.lang.IllegalStateException: Not allowed to start service Intent" when restarting my application? | <p>I have extended my <code>Application</code> class and start some background services there. This is my <code>Application</code> class:</p>
<pre><code>override fun onCreate() {
super.onCreate()
startService(Intent(this, SocketService::class.java))
startService(Intent(this, MonitoringService::... | I have extended my Application class and start some background services there. This is my Application class: [CODE] Everything goes well when I start my application for the first time. However, if I destroy all my activities when swipping up on them and then try to start my application again, I get the following except... | android | 1 | 2020-02-06T16:20:13.067Z | 2,020 | 2 | 16 | 3 | 820 | 0 | 766 | 102 | 1 | 1 | true | true | false | false | false | false | low |
60,099,475 | How to enable usb debugging mode? | <p>I forgot my mobile pattern and now i wanna recover without factory reset of my device.
The developer options is turned off and I cannot turn on usb debugging as well.
How do I enable usb debugging and remove my pattern?
I cant even run adb commands, because when i run adb devices I don't see any devices listed ther... | I forgot my mobile pattern and now i wanna recover without factory reset of my device. The developer options is turned off and I cannot turn on usb debugging as well. How do I enable usb debugging and remove my pattern? I cant even run adb commands, because when i run adb devices I don't see any devices listed there. | android|adb|forgot-password|usb-debugging | 0 | 2020-02-06T16:24:55.823Z | 2,020 | 2 | 16 | 3 | 4,780 | 3 | 318 | 33 | 4 | 0 | false | false | true | false | false | false | zero |
60,099,591 | I am getting "failed to open APK: I/O error." when running a xamarin forms app | <p>I am just learning Xamarin forms and I just changed the MainPage.xaml </p>
<pre><code> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/201... | I am just learning Xamarin forms and I just changed the MainPage.xaml [CODE] When I run the app using android emulator I got the error error APT2096: failed to open APK: I/O error. I am also getting this in console output Unable to open 'C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar': No s... | android|xamarin|xamarin.forms | 0 | 2020-02-06T16:32:10.080Z | 2,020 | 2 | 16 | 3 | 2,641 | 1 | 341 | 78 | 3 | 1 | true | false | true | false | false | false | zero |
60,099,727 | Equivalent SQL lite Query in ObjectBox | <p>I have the following SQLlite query, that is supposed to display the Barcode and Sum the Quantity of the barcodes between a specific date range. The SQLite query is shown below:</p>
<pre><code> public Cursor getResult(Date start, Date end)
String[] selectionArgs = new String[]{String.valueOf(start.getTime()), ... | I have the following SQLlite query, that is supposed to display the Barcode and Sum the Quantity of the barcodes between a specific date range. The SQLite query is shown below: [CODE] I am now trying to convert the same query to use ObjectBox. See the data class and function that follow: The SalesProjections class is a... | android|sqlite|kotlin|objectbox | 1 | 2020-02-06T16:40:24.273Z | 2,020 | 2 | 16 | 3 | 149 | 0 | 652 | 38 | 4 | 3 | true | true | false | false | false | false | low |
60,099,785 | TensorFlow Lite 2.0 advanced GPU using on Android with C++ | <p>I am new in TensorFlow. I built TensorFlow Lite libraries from sources. I try to use TensorFlow for face recognition. This one a part of my project. And I have to use GPU memory for input/output e.g. input data: opengl texture, output data: opengl texture. Unfortunately, this information is outdated: <a href="https:... | I am new in TensorFlow. I built TensorFlow Lite libraries from sources. I try to use TensorFlow for face recognition. This one a part of my project. And I have to use GPU memory for input/output e.g. input data: opengl texture, output data: opengl texture. Unfortunately, this information is outdated: https://www.tensor... | android|c++|tensorflow2.0 | 2 | 2020-02-06T16:43:51.090Z | 2,020 | 2 | 16 | 3 | 804 | 1 | 594 | 58 | 3 | 1 | true | false | false | false | false | false | low |
60,099,809 | Android Data Binding Error : Compilation Error while importing the class with same name as java.lang.Error in layout file | <p>In my code, I have created a sealed Resource class with Success, Error & Loading status like below:</p>
<pre><code>package com.sample.githubsample.vo
sealed class Resource<T>(val data: T?, val message: String? = null)
class Success<T>(data: T?) : Resource<T>(data)
class Error<T>(data:... | In my code, I have created a sealed Resource class with Success, Error & Loading status like below: [CODE] I am trying to use Resource class in my xml layout to manipulate view's visibility. Following is my layout file (trending_fragment.xml) : [CODE] However I am getting following error: [CODE] If I rename my Error cl... | android|kotlin|android-databinding|android-architecture-components | 2 | 2020-02-06T16:45:22.467Z | 2,020 | 2 | 16 | 3 | 779 | 0 | 574 | 121 | 4 | 3 | true | true | false | false | false | false | low |
60,099,885 | Android studio layout editor. Waiting for build to finish | <p>Android studio layout preview is stuck in waiting for build to finish even though there is no build happening. I have invalidate and restarted android studio. I have uninstalled and reinstalled. It is still having the same issue. I noticed this began after I created an xml file with constraintLayout. I have since re... | Android studio layout preview is stuck in waiting for build to finish even though there is no build happening. I have invalidate and restarted android studio. I have uninstalled and reinstalled. It is still having the same issue. I noticed this began after I created an xml file with constraintLayout. I have since remov... | android|android-studio|android-constraintlayout|android-layout-editor | -1 | 2020-02-06T16:49:31.913Z | 2,020 | 2 | 16 | 3 | 469 | 3 | 348 | 57 | 4 | 0 | false | false | false | false | false | true | negative |
60,099,935 | Checking a MenuItem in a BottomNavigatorBar in Kotlin | <p>I want in my app a button that when pressed sucessfully navigates as if the user had pressed the second available button that is the BottomNavigatorBar.</p>
<p>I've mostly achieved the desired behavior by defining an static function which when called from another fragment if mostly imitates the sam behavior that wo... | I want in my app a button that when pressed sucessfully navigates as if the user had pressed the second available button that is the BottomNavigatorBar. I've mostly achieved the desired behavior by defining an static function which when called from another fragment if mostly imitates the sam behavior that would happen ... | android|kotlin|menuitem|bottomnavigationview | 1 | 2020-02-06T16:52:39.170Z | 2,020 | 2 | 16 | 3 | 72 | 1 | 839 | 53 | 4 | 1 | true | false | false | false | false | false | low |
60,100,016 | Flutter : RawKeyboard listener is not removing | <p>I am using <code>RawKeyboard.instance.addListener(keyboardListener);</code> to listen to keypress events in flutter app.</p>
<p>When I go back to previous page and come back again, It adds another listener and it executes the code twice (it will keep adding new listener every time we come back to this page)</p>
<p... | I am using RawKeyboard.instance.addListener(keyboardListener); to listen to keypress events in flutter app. When I go back to previous page and come back again, It adds another listener and it executes the code twice (it will keep adding new listener every time we come back to this page) To avoid this behaviour I added... | android|flutter | 2 | 2020-02-06T16:57:01.833Z | 2,020 | 2 | 16 | 3 | 241 | 0 | 505 | 46 | 2 | 1 | true | true | false | false | false | false | low |
60,100,046 | Android Camera2 API, how does one get the preview image to cover the whole screen using transformation matrices? | <p>Consider the following code:</p>
<pre><code> @Override
public void onSurfaceTextureUpdated(SurfaceTexture surface) {
int rotation = getWindowManager().getDefaultDisplay().getRotation();
if (rotation != prevRotation) {
int angle = ORIENTATIONS_REAL.get(rotation);
Lo... | Consider the following code: [CODE] Here's some of the definitions: [CODE] Note that sensorOrientation is set when from CameraCharacteristics in the opening routine. I was having fits trying to get the orientation to display correctly on a Samsung Galaxy S7. Turns out that the sensor is rotated 90° from the handset. Th... | android|matrix|camera|transform|orientation | 0 | 2020-02-06T16:59:20.647Z | 2,020 | 2 | 16 | 3 | 807 | 1 | 1,464 | 112 | 5 | 2 | true | false | false | false | false | false | zero |
60,100,218 | What are the different methods to show Appium logs with Python in Windows? | <p>I am trying to understand how to display the logs of Appium server for my python code.</p>
<p>First of all, I educated myself more about python logs And I made some experiments with 3 ways to sart Appium server before to come to you.</p>
<p>1)I tried by this way:</p>
<pre><code>appium_service = AppiumService()
ap... | I am trying to understand how to display the logs of Appium server for my python code. First of all, I educated myself more about python logs And I made some experiments with 3 ways to sart Appium server before to come to you. 1)I tried by this way: [CODE] But I don't see any log. I guess I need to modify the python fi... | python-3.x|appium|appium-android|python-appium|appium-desktop | 0 | 2020-02-06T17:08:58.747Z | 2,020 | 2 | 17 | 3 | 1,015 | 0 | 1,158 | 74 | 5 | 1 | true | true | false | false | false | false | zero |
60,100,306 | How can I use Data Binding with ProgressBar? | <p>I'm trying to use <code>DataBinding</code> for a <code>ProgressBar</code>, but I didn't know how</p>
<p>this is my xml code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://sc... | I'm trying to use DataBinding for a ProgressBar , but I didn't know how this is my xml code [CODE] as you see I added the layout, data and variable to xml code What I have to do in the model now? Thank you so much <3 | android|android-databinding|android-progressbar | 3 | 2020-02-06T17:14:38.240Z | 2,020 | 2 | 17 | 3 | 2,073 | 1 | 216 | 44 | 3 | 1 | true | false | false | false | false | false | low |
60,100,311 | how to add multiple images into firebase database | <p>How can I add multiple images into Firebase Realtime Database</p>
<h1> My Code </h1>
<pre><code>private void uploadProductToFirebase() {
final StorageReference imageFilePath = ProductImagesRef;
for (int uploadCount = 0; uploadCount<ImageList.size(); uploadCount++){
Uri IndividualIm... | How can I add multiple images into Firebase Realtime Database My Code [CODE] If i add these three images only the 3rd image is stored into database. What should I change to be able to upload 3 images to the Firebase Storage and Firebase RealTime Database? | java|android|firebase|firebase-storage | -1 | 2020-02-06T17:14:51.513Z | 2,020 | 2 | 17 | 3 | 464 | 1 | 255 | 49 | 4 | 1 | true | false | false | false | false | true | negative |
60,100,364 | How to show the Radio Button icon on the left side in a Popup Menu group? | <p>I have a Radio Button group in Popup Menu:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:id="@+id/mode_group"
android:checkableBehavior="single">
<item android:id="@+id/red"
... | I have a Radio Button group in Popup Menu: [CODE] It shows the icon to the right of the title: Is it possible to configure it to show the icon on the left side? | android|android-radiobutton | 0 | 2020-02-06T17:18:12.107Z | 2,020 | 2 | 17 | 3 | 1,286 | 1 | 160 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
60,100,402 | Android - How to get usage/screen time for each app? | <p>I downloaded an app that records screen time for your phone and each of your apps, but to my surprise, the app had detailed screen time for the current day and the previous week, even though I just installed the app for the first time. My current guess is that screen time is actually recorded by Android System, so m... | I downloaded an app that records screen time for your phone and each of your apps, but to my surprise, the app had detailed screen time for the current day and the previous week, even though I just installed the app for the first time. My current guess is that screen time is actually recorded by Android System, so my q... | android | 1 | 2020-02-06T17:20:48.027Z | 2,020 | 2 | 17 | 3 | 403 | 1 | 357 | 52 | 1 | 0 | false | false | false | false | false | false | low |
60,100,601 | How to create a custom animated launch screen in flutter | <p>I want to create a launch screen with minimal animations(like rotating an image). From the documentation found <a href="https://flutter.dev/docs/development/ui/splash-screen/android-splash-screen#implement-the-splashscreen-interface" rel="nofollow noreferrer">here</a> I thought it was possible to do so, using the me... | I want to create a launch screen with minimal animations(like rotating an image). From the documentation found here I thought it was possible to do so, using the method mentioned under the 'Creating a custom SplashScreen' section. But I have no idea where to start. I first created a flutter java project using [CODE] Th... | android|animation|flutter|dart|splash-screen | 7 | 2020-02-06T17:33:08.470Z | 2,020 | 2 | 17 | 3 | 3,259 | 1 | 1,326 | 56 | 5 | 6 | true | false | true | false | false | false | medium |
60,100,603 | How to add additional iOS simulator for flutter? | <p>Currently I'm using Android Studio with Flutter's plugin. And I had no issues with running app on only available iOS simulator. Still, I want to add additional simulators to have possibility test different screen sizes. Please advice.</p>
<pre><code>% flutter doctor
Doctor summary (to see all details, run flutter d... | Currently I'm using Android Studio with Flutter's plugin. And I had no issues with running app on only available iOS simulator. Still, I want to add additional simulators to have possibility test different screen sizes. Please advice. [CODE] | xcode|android-studio|flutter | 1 | 2020-02-06T17:33:12.707Z | 2,020 | 2 | 17 | 3 | 687 | 1 | 241 | 48 | 3 | 1 | true | false | false | false | false | false | low |
60,100,705 | LiveData Observer Called on initialization & ObserveOnce not working | <p>I'm trying to use android live data to observe completion status of an async task in my viewmodel from my fragment. So i considered using ObserveOnce from this post <a href="https://stackoverflow.com/questions/47854598/livedata-remove-observer-after-first-callback">LiveData remove Observer after first callback</a></... | I'm trying to use android live data to observe completion status of an async task in my viewmodel from my fragment. So i considered using ObserveOnce from this post LiveData remove Observer after first callback [CODE] The problem here is that this observeOnce is called immediately after initilization, and is always sho... | android-livedata | 0 | 2020-02-06T17:38:47.867Z | 2,020 | 2 | 17 | 3 | 778 | 1 | 370 | 68 | 1 | 1 | true | false | false | false | false | false | zero |
60,100,747 | Android: How to prevent lag or animation skip on Fragment transaction when inflating RecyclerView inside? | <p>I am working with some fragments but the transition animations when switching from one to another is very laggy and sometimes it even skips the entire animation (which I've read that sometimes is an outcome of poor fragment performance).</p>
<p>The very intriguing thing is that all my data fetching and computation ... | I am working with some fragments but the transition animations when switching from one to another is very laggy and sometimes it even skips the entire animation (which I've read that sometimes is an outcome of poor fragment performance). The very intriguing thing is that all my data fetching and computation in that fra... | android|animation|fragment|fragmentmanager|fragmenttransaction | 15 | 2020-02-06T17:41:19.530Z | 2,020 | 2 | 17 | 3 | 5,034 | 1 | 1,565 | 105 | 5 | 0 | false | false | true | false | true | false | medium |
60,100,767 | Force Flutter PopupMenuButton to repaint when locale (language is changed) | <p>Does anybody know how do I get the list of CheckedPopupMenuItems to repaint (they obviously represent the list with options PopupMenuButton shows when pressed) when the list opened and visible at the very moment when I choose to change the locale/language of the android device?</p>
<p>For now when I do this everyth... | Does anybody know how do I get the list of CheckedPopupMenuItems to repaint (they obviously represent the list with options PopupMenuButton shows when pressed) when the list opened and visible at the very moment when I choose to change the locale/language of the android device? For now when I do this everything on the ... | android|ios|flutter|popupmenubutton | 1 | 2020-02-06T17:42:21.230Z | 2,020 | 2 | 17 | 3 | 249 | 2 | 483 | 74 | 4 | 0 | false | false | false | false | false | false | low |
60,100,794 | Identify tabs by index in TabLayout | <p>I'm creating tabs dynamically with names and their corresponding id's I'm getting from a web API:</p>
<pre><code> private fun getCategories() {
val url = "http://192.168.1.45/companyweb/get_categories"
val rq = Volley.newRequestQueue(this)
val jar = JsonArrayRequest(Request.Method.GET,url... | I'm creating tabs dynamically with names and their corresponding id's I'm getting from a web API: [CODE] Once one of the tab is selected by the user, I would like to have a way to know to which category it corresponds. But the only thing I can get is its R.id such as: [CODE] I'm using the navigation tabs listener: [COD... | android|android-tablayout | 1 | 2020-02-06T17:44:31.040Z | 2,020 | 2 | 17 | 3 | 74 | 1 | 495 | 35 | 2 | 3 | true | false | false | false | false | false | low |
60,100,916 | Xamarin.Forms gRPC Error starting gRPC call: unexpected end of stream on Connection | <p>i programming an Application for my study.</p>
<p>I try to use gRPC in Xamarin.Forms.</p>
<p>The gRPC is in a seperate Libyry (.NET Standart 2.1).
If i use the code in WPF-Core Project every thing works fine.</p>
<p>But if I try to use the same in my Xamarin.Forms-Project the Connection don't work.</p>
<p>if I u... | i programming an Application for my study. I try to use gRPC in Xamarin.Forms. The gRPC is in a seperate Libyry (.NET Standart 2.1). If i use the code in WPF-Core Project every thing works fine. But if I try to use the same in my Xamarin.Forms-Project the Connection don't work. if I use the connectionString " http://my... | c#|android|xamarin.forms|grpc | 1 | 2020-02-06T17:53:45.657Z | 2,020 | 2 | 17 | 3 | 614 | 2 | 674 | 83 | 4 | 3 | true | false | false | false | false | false | low |
60,101,001 | How to get all the docs from a subcollection in Firestore | <p>I have a structure like this:</p>
<pre><code>A (collection): {a (doc): {B (collection): {b (doc)}}}
</code></pre>
<p>I need to get the "b" from all the "a".</p>
<p>I don't need the relation between them, I only need all the "b".</p>
<p>I'm working in Android Studio with Java.</p> | I have a structure like this: [CODE] I need to get the "b" from all the "a". I don't need the relation between them, I only need all the "b". I'm working in Android Studio with Java. | java|android|google-cloud-firestore | 0 | 2020-02-06T17:58:53.907Z | 2,020 | 2 | 17 | 3 | 29 | 1 | 182 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
60,101,040 | Strange rotation behavior. Activity updated after rotation, but none of the standard activity lifecycle methods are invoked | <p><strong>Note:</strong> Everything written below is tested in an emulator and on a real device, on different Android versions (7 and 9) and different projects (Kotlin).</p>
<p>When I quick rotate devices from landscape mode (ROTATION_90) immediately to reverse landscape (ROTATION_270) all activity is redrawn correct... | Note: Everything written below is tested in an emulator and on a real device, on different Android versions (7 and 9) and different projects (Kotlin). When I quick rotate devices from landscape mode (ROTATION_90) immediately to reverse landscape (ROTATION_270) all activity is redrawn correctly, but none of the standard... | android|rotation|orientation|screen-orientation|screen-rotation | 2 | 2020-02-06T18:02:09.347Z | 2,020 | 2 | 18 | 3 | 43 | 0 | 859 | 123 | 5 | 0 | false | true | false | false | false | false | low |
60,101,131 | Android - detect if app is running on watch or mobile phone | <p>I have an app which client use on a mobile phone or watches with Android (NOT Wear OS). The watches have "standard" Android OS (Example: <a href="https://www.aliexpress.com/item/32980744300.html" rel="nofollow noreferrer">https://www.aliexpress.com/item/32980744300.html</a>).</p>
<p>I want somehow detect if the app... | I have an app which client use on a mobile phone or watches with Android (NOT Wear OS). The watches have "standard" Android OS (Example: https://www.aliexpress.com/item/32980744300.html ). I want somehow detect if the app is running on phone or watches. I tried: [CODE] But it's not working. Do you have some other tips?... | android|android-watch | 1 | 2020-02-06T18:08:36.977Z | 2,020 | 2 | 18 | 3 | 111 | 0 | 333 | 59 | 2 | 1 | true | true | false | false | false | false | low |
60,101,311 | activity with a static frame | <p>i wanna make an activity with a keyboard <a href="https://i.stack.imgur.com/6jNTe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jNTe.png" alt="enter image description here"></a></p>
<p>i'm using a barcode scanner for read qr codes and ean and the data get matched in a db and the result is on t... | i wanna make an activity with a keyboard i'm using a barcode scanner for read qr codes and ean and the data get matched in a db and the result is on the white part, i change the textview with the "1" if i press the enter key i wanna show in the white part a menu or a history of the data read from the scanner without ch... | java|android | 0 | 2020-02-06T18:22:29.577Z | 2,020 | 2 | 18 | 3 | 28 | 0 | 1,303 | 28 | 2 | 0 | false | true | false | false | false | false | zero |
60,101,643 | Elevation not working in Toolbar when a logo is used | <p>The <strong>elevation</strong> of my <strong>toolbar</strong> is not working when I use a <strong>Logo</strong>.</p>
<p><strong>XML</strong> of my toolbar:</p>
<pre><code><android.support.v7.widget.Toolbar
android:id="@+id/toolbarPrincipal"
android:layout_width="match_parent"
android:layout_height="... | The elevation of my toolbar is not working when I use a Logo . XML of my toolbar: [CODE] toolbar with Logo [CODE] But when I don't use a Logo it apears [CODE] toolbar without Logo | java|android|toolbar|elevation|android-elevation | 0 | 2020-02-06T18:45:48.323Z | 2,020 | 2 | 18 | 3 | 69 | 0 | 179 | 52 | 5 | 3 | true | true | false | false | false | false | zero |
60,101,741 | Should I Include a Disclaimer in My Android Application (Speech Disabled App) | <p>I created an application which I haven't uploaded to play store. The application is meant to aid individuals with speech disability to communicate. So the app includes a bunch of phrases. the user will press a button, and the app will speak the phrase using text 2 speech. So that's the core function of the app. My c... | I created an application which I haven't uploaded to play store. The application is meant to aid individuals with speech disability to communicate. So the app includes a bunch of phrases. the user will press a button, and the app will speak the phrase using text 2 speech. So that's the core function of the app. My conc... | android|android-studio | 0 | 2020-02-06T18:53:49.843Z | 2,020 | 2 | 18 | 3 | 447 | 1 | 827 | 77 | 2 | 0 | false | false | false | false | false | false | zero |
60,101,775 | Why did Firebase Realtime Database create empty child entries? | <p>I'm trying to create a simple app that takes in a comment and then posts the comment in a RecyclerView. But Firebase is creating thousands of empty children. I'm not sure why this is happening and would appreciate any help.</p>
<p>Here is a picture of what Firebase is doing.
<a href="https://i.stack.imgur.com/HEq7X... | I'm trying to create a simple app that takes in a comment and then posts the comment in a RecyclerView. But Firebase is creating thousands of empty children. I'm not sure why this is happening and would appreciate any help. Here is a picture of what Firebase is doing. Here is the method i'm using [CODE] Here is my Post... | android|firebase|firebase-realtime-database | 0 | 2020-02-06T18:56:08.957Z | 2,020 | 2 | 18 | 3 | 179 | 1 | 333 | 62 | 3 | 2 | true | false | false | false | false | false | zero |
60,101,818 | UI not updating even though function is getting called (¿race condition?) | <p>I have a class <code>BluetoothService</code> which uses threads to do it's tasks. I make an instance of it in my <code>MainActivity</code>, inside the companion object. With that, I can also use the same instance of the class in <code>NotificationListener</code>, which is as <code>NotificationListenerService</code>.... | I have a class BluetoothService which uses threads to do it's tasks. I make an instance of it in my MainActivity , inside the companion object. With that, I can also use the same instance of the class in NotificationListener , which is as NotificationListenerService . Because of being a NotificationListenerService , it... | android|kotlin | 0 | 2020-02-06T18:58:44.540Z | 2,020 | 2 | 18 | 3 | 91 | 1 | 2,164 | 73 | 2 | 5 | true | false | false | false | false | false | zero |
60,101,819 | Is it possible to use Kotlin code in iphone? | <p>Android Studio 3.5.
Write my custom module on Kotlin.
On Android it's work fine.
Nice.</p>
<p>Is it possible to use my module in iPhone? E.g. like library or dependency or smt. else?</p> | Android Studio 3.5. Write my custom module on Kotlin. On Android it's work fine. Nice. Is it possible to use my module in iPhone? E.g. like library or dependency or smt. else? | android|iphone|kotlin | 0 | 2020-02-06T18:58:51.200Z | 2,020 | 2 | 18 | 3 | 98 | 1 | 175 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
60,101,917 | How to play video on Next button clicked in android studio | <p>I have array list of videos so users can watch video in android app. I would like to add Next and Previous button for playing next or previous video after current video is ended. I googled it but to no avail. I need your help. Thanks in advance. </p> | I have array list of videos so users can watch video in android app. I would like to add Next and Previous button for playing next or previous video after current video is ended. I googled it but to no avail. I need your help. Thanks in advance. | java|android|kotlin | -1 | 2020-02-06T19:05:30.207Z | 2,020 | 2 | 19 | 3 | 303 | 1 | 245 | 58 | 3 | 0 | false | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.