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,189,293 | How to disable the back button press in fragment but allow the fragment itself to implement the back pressing logics | <p>I have the following XML - </p>
<pre><code><androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintLeft_toRightOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_to... | I have the following XML - [CODE] Which looks like this - (This is not the entire XML as shown in the picture, but only the one relevant to the question) The way it works is that for every FrameLayout you see in the XML I inflate another Fragment inside it, in turns for each stage respectively. Inside each fragment, wh... | android|stack|fragment|onbackpressed | 0 | 2020-02-12T13:18:10.447Z | 2,020 | 2 | 13 | 2 | 44 | 2 | 842 | 116 | 4 | 2 | true | false | false | false | false | false | zero |
60,189,305 | While fetching data and storing it into sqlite db the UI of my app freezes | <p>Hello My app is freezes ui for some seconds while it is fetching data from network and stores it in db and then shows it in recyclerview. For fetching data from network I am using retrofit and for storing it and fetching form db Room library. Both with the help of MVVM pattern. Is there a way to remoove the UI freez... | Hello My app is freezes ui for some seconds while it is fetching data from network and stores it in db and then shows it in recyclerview. For fetching data from network I am using retrofit and for storing it and fetching form db Room library. Both with the help of MVVM pattern. Is there a way to remoove the UI freeze? ... | android|retrofit2|android-room | 0 | 2020-02-12T13:18:45.200Z | 2,020 | 2 | 13 | 2 | 148 | 3 | 524 | 74 | 3 | 4 | true | false | false | false | false | false | zero |
60,189,354 | Objectbox delete Entity and remove ToOne<> link to it in another Entity. App now only works on first build variant when the change was made | <p>In my app I have the two Entities <code>CardEntity</code> and <code>DeckCard</code>. I want to remove <code>CardEntity</code> completely, and update <code>DeckCard</code> to no longer reference it.</p>
<pre><code>public class CardEntity extends BaseEntity {
private char letter;
private int bonus;
publ... | In my app I have the two Entities CardEntity and DeckCard . I want to remove CardEntity completely, and update DeckCard to no longer reference it. [CODE] and [CODE] I want to remove CardEntity entirely and replace DeckCard with [CODE] This works fine, as expected. However, it only works on whatever Build Variant I had ... | android|objectbox | 0 | 2020-02-12T13:21:40.587Z | 2,020 | 2 | 13 | 2 | 434 | 1 | 894 | 139 | 2 | 4 | true | false | false | false | false | false | zero |
60,189,453 | Appium Grid- Exception coming as: ’Error communicating with the remote browser. It may have died.’ in one of the devices | <p>I am using Appium grid for parallel testing. I am running test cases on two devices connected as nodes to a single machine in which the Hub is running locally.
Test runs well in any one of the devices. However, on the other device, the App just gets installed and launched but there is no further UI action.
The error... | I am using Appium grid for parallel testing. I am running test cases on two devices connected as nodes to a single machine in which the Hub is running locally. Test runs well in any one of the devices. However, on the other device, the App just gets installed and launched but there is no further UI action. The error fo... | android|appium|appium-android | 0 | 2020-02-12T13:26:54.187Z | 2,020 | 2 | 13 | 2 | 62 | 0 | 602 | 120 | 3 | 2 | true | true | false | false | false | false | zero |
60,189,588 | Unable to launch android emulator on Mac OS X, fails with image not found error | <p>Pre-reqs:
OS: Mac OS X,
Product version: 10.10.5,
Android Studio: 2.2.3 for MAC</p>
<p>Background:
1. Installed android studio in Mac
2. Created a emulator in AVD manager
3. When I launch emulator from terminal, I see below issue</p>
<p><strong>Output:</strong></p>
<pre><code>mac1deblr:~ root# cd /private/var/roo... | Pre-reqs: OS: Mac OS X, Product version: 10.10.5, Android Studio: 2.2.3 for MAC Background: 1. Installed android studio in Mac 2. Created a emulator in AVD manager 3. When I launch emulator from terminal, I see below issue Output: [CODE] Config details for reference: My env variables in MAC as below [CODE] Emulator is ... | android|macos|android-studio|avd|dyld | 4 | 2020-02-12T13:34:25.837Z | 2,020 | 2 | 13 | 2 | 579 | 0 | 436 | 79 | 5 | 3 | true | true | false | false | false | false | low |
60,189,605 | app crashes when inflating second navigation host | <p>app crashes when starting a new activity with a navigation host.
so my app contains two activities with a navigation graph and a navigation host each, when trying to inflate the second navigation host my app crashes.
i cant seem to find any help online regarding the use of multiple activities with a navigation host ... | app crashes when starting a new activity with a navigation host. so my app contains two activities with a navigation graph and a navigation host each, when trying to inflate the second navigation host my app crashes. i cant seem to find any help online regarding the use of multiple activities with a navigation host eac... | android|kotlin|android-activity|navigation | 2 | 2020-02-12T13:35:34.190Z | 2,020 | 2 | 13 | 2 | 458 | 1 | 549 | 49 | 4 | 6 | true | false | false | false | false | false | low |
60,189,624 | How to draw arc with starting text | <p>I have to create an arc using canvas and add text in the start position of arc, but it does not look proper. Please see the image my text is cut off the top position, My text display linear not curve.</p>
<p><a href="https://i.stack.imgur.com/JrlTD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | I have to create an arc using canvas and add text in the start position of arc, but it does not look proper. Please see the image my text is cut off the top position, My text display linear not curve. My Code [CODE] | java|android|kotlin|canvas | 1 | 2020-02-12T13:36:26.823Z | 2,020 | 2 | 13 | 2 | 465 | 2 | 215 | 34 | 4 | 1 | true | false | false | false | false | false | low |
60,189,652 | addMarker and moveCamera invalid declarations | <p>I am implementing a map that needs to show your current location when ran. So far I have had no issues but today when following a tutorial on how to set your Lat and Lng I am having trouble initializing map markers for my project. addMarker and moveCamera cannot be resolved. I am using API 29 and maybe that is the p... | I am implementing a map that needs to show your current location when ran. So far I have had no issues but today when following a tutorial on how to set your Lat and Lng I am having trouble initializing map markers for my project. addMarker and moveCamera cannot be resolved. I am using API 29 and maybe that is the prob... | java|android | 0 | 2020-02-12T13:38:17.907Z | 2,020 | 2 | 13 | 2 | 51 | 1 | 736 | 45 | 2 | 2 | true | false | false | false | false | false | zero |
60,189,685 | How do we connect two spinners on Kotlin? | <h3>What I want to do</h3>
<p>I'm trying to connect one spinner to another spinner on Kotlin with using the code on the former stack overflow question <a href="https://stackoverflow.com/questions/29474829/how-to-make-spinner-depends-on-another-spinner">how to make spinner depends on another spinner</a>.</p>
<h3>Probl... | What I want to do I'm trying to connect one spinner to another spinner on Kotlin with using the code on the former stack overflow question how to make spinner depends on another spinner . Problem The original code from the former program was written in Java and Android Studio converted it to Kotlin automatically. Howev... | android|xml|android-studio|kotlin|android-spinner | 0 | 2020-02-12T13:39:53.513Z | 2,020 | 2 | 13 | 2 | 882 | 3 | 621 | 41 | 5 | 5 | true | false | false | false | false | false | zero |
60,189,738 | missing platform exception error for shared preferences and flutter toast plugin in iOS flutter | <p>I uploaded my application on play store but, when I create IPA for flutter app, then I received these two errors:</p>
<blockquote>
<p>Unhandled Exception: MissingPluginException(No implementation found
for method showToast on channel Ponnam Karthik/flutter toast)</p>
<p>Unhandled Exception: MissingPluginException(No... | I uploaded my application on play store but, when I create IPA for flutter app, then I received these two errors: Unhandled Exception: MissingPluginException(No implementation found for method showToast on channel Ponnam Karthik/flutter toast) Unhandled Exception: MissingPluginException(No implementation found for meth... | android|ios|flutter|dart | 0 | 2020-02-12T13:43:29.320Z | 2,020 | 2 | 13 | 2 | 2,620 | 3 | 577 | 95 | 4 | 2 | true | false | true | false | false | false | zero |
60,189,780 | How to dynamically set a imageView from a file? | <p>I need to set a imageView dynamically. The image is at drawable. This code is ok:</p>
<pre><code>Bitmap bm2 = BitmapFactory.decodeResource(getResources(), R.drawable.image1);
img_pergunta.setImageBitmap(bm2);
</code></pre>
<p>The problem is that I need to start from string, but this code doesn´t work:</p>
<pre><... | I need to set a imageView dynamically. The image is at drawable. This code is ok: [CODE] The problem is that I need to start from string, but this code doesn´t work: [CODE] How do I solve it? | android|imageview | 0 | 2020-02-12T13:45:09.387Z | 2,020 | 2 | 13 | 2 | 58 | 3 | 191 | 47 | 2 | 2 | true | false | false | false | false | false | zero |
60,189,827 | I´m trying to call other activity with MenuItem | <p>I`m trying to call other activity with onCreateOptionsMenu and onOptionsItemSelected, but i dont know is imposible to debug and it doesn´t do the action, i have
<pre><code> @Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.login_... | I`m trying to call other activity with onCreateOptionsMenu and onOptionsItemSelected, but i dont know is imposible to debug and it doesn´t do the action, i have [CODE] And the MenuItem [CODE] thank you so much... | java|android|android-activity|oncreateoptionsmenu | -1 | 2020-02-12T13:47:40.957Z | 2,020 | 2 | 13 | 2 | 20 | 1 | 212 | 47 | 4 | 2 | true | false | false | false | false | true | negative |
60,189,866 | When making API call LiveData returns old value first and then the new one | <p>I am using <code>LiveData</code> and <code>RoomDB</code> and my problem is that when I put the <code>observe()</code> on my <code>LiveData</code> and then make the request to fetch updates from the server, it first gives me the previous value that it had requested before and then once the request is done it gives me... | I am using LiveData and RoomDB and my problem is that when I put the observe() on my LiveData and then make the request to fetch updates from the server, it first gives me the previous value that it had requested before and then once the request is done it gives me the new value that it got from the server. When no pre... | android|api|repository|viewmodel|android-livedata | 2 | 2020-02-12T13:49:52.833Z | 2,020 | 2 | 13 | 2 | 386 | 0 | 1,280 | 74 | 5 | 5 | true | true | false | false | false | false | low |
60,189,931 | Camera2 API return Camera is error 4 only on SDK 29 | <p>I have implemented in my Android application a customization of the camera intent, the basic source code is derived to the officials google github repository. </p>
<p>The only difference is the implementation of the manual management of the flash, this implementation make my life hard, because in certain cases an e... | I have implemented in my Android application a customization of the camera intent, the basic source code is derived to the officials google github repository. The only difference is the implementation of the manual management of the flash, this implementation make my life hard, because in certain cases an exception is ... | android|android-camera2 | 2 | 2020-02-12T13:52:57.920Z | 2,020 | 2 | 13 | 2 | 523 | 1 | 597 | 51 | 2 | 2 | true | false | false | false | false | false | low |
60,190,024 | Is Android Automotives Car API only meant for OEMs? | <p>The AOSP Automotive documentation states that third party apps should use the <strong><em>Car API</em></strong><code>("VehicleNetworkService. Controls vehicle HAL with built-in security. Access restricted to system components only (non-system components such as third party apps should use car API instead)"</code>,<c... | The AOSP Automotive documentation states that third party apps should use the Car API ("VehicleNetworkService. Controls vehicle HAL with built-in security. Access restricted to system components only (non-system components such as third party apps should use car API instead)" , https://source.android.com/devices/automo... | android-automotive | 0 | 2020-02-12T13:57:54.847Z | 2,020 | 2 | 13 | 2 | 846 | 2 | 717 | 51 | 1 | 0 | false | false | false | false | false | false | zero |
60,190,027 | Does MotionLayout support Shared Element Transitions between fragments? | <p>I'm considering refactoring my code to use MotionLayout for animations, but at the moment it relies heavily on shared element transitions. Is this supported by MotionLayout?</p>
<p>I can't seem to find any info about this online. I've found a tweet that states that MotionLayout doesn't handle Shared Element Transit... | I'm considering refactoring my code to use MotionLayout for animations, but at the moment it relies heavily on shared element transitions. Is this supported by MotionLayout? I can't seem to find any info about this online. I've found a tweet that states that MotionLayout doesn't handle Shared Element Transition between... | android|android-fragments|shared-element-transition|android-motionlayout | 1 | 2020-02-12T13:58:09.837Z | 2,020 | 2 | 13 | 2 | 2,144 | 1 | 361 | 71 | 4 | 0 | false | false | false | false | false | false | low |
60,190,084 | Android Studio can't find property XMLConstants.ACCESS_EXTERNAL_DTD | <p>I'm having a very similar issue to this post - <a href="https://stackoverflow.com/questions/53299280/java-and-xerces-cant-find-property-xmlconstants-access-external-dtd">Java and Xerces: can't find property XMLConstants.ACCESS_EXTERNAL_DTD</a> - but with working on Android Studio IDE.</p>
<p>I'm also trying to ... | I'm having a very similar issue to this post - Java and Xerces: can't find property XMLConstants.ACCESS_EXTERNAL_DTD - but with working on Android Studio IDE. I'm also trying to fix the same issue about disabling XML external entity (XXE) processing that gets raised as a vulnerability in our SonarCloud analysis (se... | java|android|xml|android-studio | 2 | 2020-02-12T14:01:13.213Z | 2,020 | 2 | 14 | 2 | 1,628 | 1 | 1,143 | 67 | 4 | 1 | true | false | false | false | false | false | low |
60,190,103 | How can I debounce a setOnClickListener for 1 second using Kotlin Coroutines? | <p>When user taps fast on the button the showDialog() method displays multiple times on top of each other, so when you dismiss it there is another one behind it. I am looking for a way to ignore the second tap for 1 second without using a handler or check the previous tap's time.</p>
<pre><code>//Button that opens a d... | When user taps fast on the button the showDialog() method displays multiple times on top of each other, so when you dismiss it there is another one behind it. I am looking for a way to ignore the second tap for 1 second without using a handler or check the previous tap's time. [CODE] I am looking for a solution using K... | android|kotlin|kotlin-coroutines|debounce|kotlin-flow | 16 | 2020-02-12T14:02:08.390Z | 2,020 | 2 | 14 | 2 | 13,269 | 4 | 380 | 77 | 5 | 1 | true | false | true | true | true | false | medium |
60,190,136 | Android kotlin two ways Databinding problem | <p>I'm trying to use databinding in recycler view and i have problem.
on data-variable i can't choose my real type (instead, i can choose type as default package.
and then i cannot access to my variable on my adapter class.
i got the error on adapter on line:
binding.curMovie = movie.
the error i get is:
cannot access ... | I'm trying to use databinding in recycler view and i have problem. on data-variable i can't choose my real type (instead, i can choose type as default package. and then i cannot access to my variable on my adapter class. i got the error on adapter on line: binding.curMovie = movie. the error i get is: cannot access cla... | android|kotlin|data-binding | 0 | 2020-02-12T14:04:15.053Z | 2,020 | 2 | 14 | 2 | 111 | 1 | 487 | 43 | 3 | 3 | true | false | false | false | false | false | zero |
60,190,148 | Error trying to login in with Firebase with Facebook Sign In Credential | <h1>Objective</h1>
<p>Integrate Facebook Login to my Flutter app. Manage to integrate it with the existing Firebase
configuration (Google Sign In Auth and Firestore Database). </p>
<h1>Step by Step to reproduce my error:</h1>
<p>1) I have created a new app on Facebook Developers and follow up the step by step to co... | Objective Integrate Facebook Login to my Flutter app. Manage to integrate it with the existing Firebase configuration (Google Sign In Auth and Firestore Database). Step by Step to reproduce my error: 1) I have created a new app on Facebook Developers and follow up the step by step to configure my app to call the Facebo... | android|facebook|flutter | 3 | 2020-02-12T14:04:46.950Z | 2,020 | 2 | 14 | 2 | 694 | 0 | 1,449 | 71 | 3 | 1 | true | true | false | false | false | false | low |
60,190,268 | Error while compile Flutter example project Gradle Zip? | <p>i create flutter project with "Flutter create myapp" and "cd myapp", and the next i'll try run Flutter Run, but my output is:</p>
<p><a href="https://i.stack.imgur.com/LGqVM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LGqVM.png" alt="enter image description here"></a></p>
<p>I have a current... | i create flutter project with "Flutter create myapp" and "cd myapp", and the next i'll try run Flutter Run, but my output is: I have a current stable version of Flutter and the recent sdk Android Q published. This is my flutter doctor -v: [CODE] | gradle|flutter|android-gradle-plugin | 0 | 2020-02-12T14:10:59.877Z | 2,020 | 2 | 14 | 2 | 61 | 0 | 245 | 55 | 3 | 1 | true | true | false | false | false | false | zero |
60,190,502 | Strange NPE: primitive field null inside instance method | <p>I'm having a strange NPE with the following stacktrace:</p>
<pre><code>Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int com.foo.gvpclient.x.c' on a null object reference
at com.foo.gvpclient.GVPConfiguration.getDeviceTypeAsString(GVPConfiguration.java:507)
at com.foo.gv... | I'm having a strange NPE with the following stacktrace: [CODE] This is getDeviceTypeAsString() method: [CODE] where mDeviceType is declared as [CODE] Please correct me if I'm wrong but there's nothing here that can be null. For the sake of completion, the method is called from here: [CODE] Again, correct me if I'm wron... | java|android | 0 | 2020-02-12T14:22:46.457Z | 2,020 | 2 | 14 | 2 | 47 | 1 | 564 | 56 | 2 | 4 | true | false | false | false | false | false | zero |
60,190,614 | Filter a column in logs using an interpolated string with awk | <p>I have adb logs from Android phone that looks like this:</p>
<pre><code>02-11 18:16:54.737 24875 24875 I MultiDex: VM with version 2.1.0 has multidex support
</code></pre>
<p>Third element is a pid. </p>
<p>What I do is first I grab the pids</p>
<pre class="lang-sh prettyprint-override"><code>list="/"`adb shell ... | I have adb logs from Android phone that looks like this: [CODE] Third element is a pid. What I do is first I grab the pids [CODE] This provide me something like /77|471|472|473|474|491|499|503|505|506|507|537|627/ Then I try to filter logs: [CODE] But I get nothing displayed. If I do : [CODE] I have output. Why I have ... | android|bash|awk | 1 | 2020-02-12T14:29:29.363Z | 2,020 | 2 | 14 | 2 | 30 | 1 | 383 | 61 | 3 | 4 | true | false | false | false | false | false | low |
60,190,674 | Get all permissions during app installation | <p>I need to develop an android application to grant all permissions before installing app
Please let me know how to edit apk file to grant all permissions before installing</p> | I need to develop an android application to grant all permissions before installing app Please let me know how to edit apk file to grant all permissions before installing | android|apk | 0 | 2020-02-12T14:32:23.277Z | 2,020 | 2 | 14 | 2 | 384 | 1 | 170 | 43 | 2 | 0 | false | false | false | false | false | false | zero |
60,190,814 | Firebase Push Notifications based on app state | <p>I am currently working on push notification handling with Firebase Cloud Messaging.
Everything I implemented is working fine, I'm receiving my push notifications as I want (regarding either my app is in foreground, background or killed)
But my question is:</p>
<p>(gonna present my problem in steps for easier readi... | I am currently working on push notification handling with Firebase Cloud Messaging. Everything I implemented is working fine, I'm receiving my push notifications as I want (regarding either my app is in foreground, background or killed) But my question is: (gonna present my problem in steps for easier reading) My appli... | android|firebase|android-intent|push-notification|firebase-cloud-messaging | 1 | 2020-02-12T14:40:36.400Z | 2,020 | 2 | 14 | 2 | 225 | 0 | 1,542 | 46 | 5 | 4 | true | true | false | false | false | false | low |
60,190,922 | How to access directly internet on WearOS app | <p>I am looking for My data on wear OS app to send to my external apache server with php and mysql.</p>
<p>Ultimately I need watch sensor data in MySQL database, So i created a POST request page using php. How do I send POST request?</p>
<p>Note: I am not using mobile phone between WearOS app and My server. WearOS is... | I am looking for My data on wear OS app to send to my external apache server with php and mysql. Ultimately I need watch sensor data in MySQL database, So i created a POST request page using php. How do I send POST request? Note: I am not using mobile phone between WearOS app and My server. WearOS is connected to inter... | java|android|database|kotlin|wear-os | 1 | 2020-02-12T14:46:39.667Z | 2,020 | 2 | 14 | 2 | 201 | 1 | 500 | 45 | 5 | 0 | false | false | false | false | false | false | low |
60,191,002 | How to do http post for image in nativescript-angular | <p>so I'm trying to upload an image from the user's gallery to my API. Currently, I can select the image from the gallery but it's not letting me pass that selected image into another function to send it to the API. There is no problem with the API, that has been tested. I am using the "nativescript-imagepicker" plugin... | so I'm trying to upload an image from the user's gallery to my API. Currently, I can select the image from the gallery but it's not letting me pass that selected image into another function to send it to the API. There is no problem with the API, that has been tested. I am using the "nativescript-imagepicker" plugin Th... | android|angular|typescript|nativescript | 0 | 2020-02-12T14:49:57.427Z | 2,020 | 2 | 14 | 2 | 1,099 | 1 | 794 | 53 | 4 | 3 | true | false | false | false | false | false | zero |
60,191,003 | Make android device work as bluetooth keyboard | <p>I know this question has been answered before but is it possible to emulate an Android device as a generic Bluetooth keyboard for any connected device. It can be any other Android phone, Smart TV, PS, etc i.e. one solution for all type of devices. </p>
<p>If no why?</p> | I know this question has been answered before but is it possible to emulate an Android device as a generic Bluetooth keyboard for any connected device. It can be any other Android phone, Smart TV, PS, etc i.e. one solution for all type of devices. If no why? | android|bluetooth|keyboard | 0 | 2020-02-12T14:50:00.803Z | 2,020 | 2 | 14 | 2 | 47 | 0 | 258 | 46 | 3 | 0 | false | true | false | false | false | false | zero |
60,191,126 | How to enable new Places autocomplete API | <p>I already have Map API enabled. Do I need a separate Places API key? Mine is showing that Places API is enabled, but no key is there.</p>
<p>Also, as far as I know, both goes under <code>android:name="com.google.android.geo.API_KEY"</code></p> | I already have Map API enabled. Do I need a separate Places API key? Mine is showing that Places API is enabled, but no key is there. Also, as far as I know, both goes under android:name="com.google.android.geo.API_KEY" | android|google-maps-android-api-2 | 0 | 2020-02-12T14:56:15.570Z | 2,020 | 2 | 14 | 2 | 52 | 1 | 219 | 41 | 2 | 0 | false | false | false | false | false | false | zero |
60,191,185 | Force stop loop function in IntentService | <p>There a function in my intent service that works like a countdown. It is called <code>counter</code>.</p>
<p>What should be added to IntentService or directly into <code>counter</code> to stop this loop after some action in MainActivity? </p>
<pre><code>class IntentServiceExample : IntentService("Loop_test") {
... | There a function in my intent service that works like a countdown. It is called counter . What should be added to IntentService or directly into counter to stop this loop after some action in MainActivity? [CODE] | android|kotlin|android-intent|intentservice | 0 | 2020-02-12T14:59:40.400Z | 2,020 | 2 | 14 | 2 | 108 | 2 | 212 | 41 | 4 | 1 | true | false | false | false | false | false | zero |
60,191,207 | How to pass and use data from react native to native android or ios? | <p>I need to pass some data form react native to both native android and ios.</p>
<p>How can I do that?</p>
<p>thank you,</p> | I need to pass some data form react native to both native android and ios. How can I do that? thank you, | android|ios|react-native | 1 | 2020-02-12T15:00:49.220Z | 2,020 | 2 | 15 | 2 | 3,117 | 3 | 104 | 68 | 3 | 0 | false | false | true | false | false | false | low |
60,191,284 | Connecting to specific wifi in android 10 | <p>I'm trying to connect to a specific wifi network in android 10. I already have the credentials available to me, and i'm adding the network suggestion:</p>
<pre><code>val suggestion = WifiNetworkSuggestion.Builder()
.setSsid("ssid")
.setWpa2Passphrase("password")
.build()
wifiManager.removeNetworkSugge... | I'm trying to connect to a specific wifi network in android 10. I already have the credentials available to me, and i'm adding the network suggestion: [CODE] I'm able to see the notification (though only the first time the app requests this, which makes sense for the most part, since it's asking for permission really t... | android|wifi|networkmanager | 2 | 2020-02-12T15:04:38.117Z | 2,020 | 2 | 15 | 2 | 1,592 | 1 | 1,091 | 41 | 3 | 1 | true | false | false | false | false | false | low |
60,191,358 | Cannot retrieve any values using equalTo() query Firebase | <p>I'm building a chat app and this is what my Database looks like:
<img src="https://i.stack.imgur.com/26W4Z.jpg" alt="Please, click here to see"></p>
<p>So, I currently have a <code>users</code> node as well as a <code>chats</code> node.</p>
<p>The <code>users</code> node saves the last <strong>last login date</str... | I'm building a chat app and this is what my Database looks like: So, I currently have a users node as well as a chats node. The users node saves the last last login date and the chats Ids that the user is currently part of. In the chats node, it is saved the User Ids that make part of the conversation as well as the me... | android|firebase|kotlin|firebase-realtime-database | 1 | 2020-02-12T15:08:21.390Z | 2,020 | 2 | 15 | 2 | 73 | 1 | 1,164 | 57 | 4 | 2 | true | false | false | false | false | false | low |
60,191,561 | API for Android to Receive Weather Alert Triggers? | <p>I am developing an Android weather application for a class project with a team, and one of the features we'd like to include is to get emergency weather alerts/warnings. Some of the resources I've considered are:</p>
<ul>
<li><strong>Wireless Emergency Alert (WEA):</strong> I can't find any resources on trigger eve... | I am developing an Android weather application for a class project with a team, and one of the features we'd like to include is to get emergency weather alerts/warnings. Some of the resources I've considered are: Wireless Emergency Alert (WEA): I can't find any resources on trigger events or listeners when an Android d... | android|alert|weather|weather-api | 1 | 2020-02-12T15:19:19.003Z | 2,020 | 2 | 15 | 2 | 304 | 0 | 1,519 | 50 | 4 | 0 | false | true | false | false | false | false | low |
60,191,598 | I want to share link to whatsapp from my android app | <p>I turn a website into android app with the help of WebView and I want to share my product link to WhatsApp but every time I click on button to share on WhatsApp it is showing error in android app but working fine on website<a href="https://i.stack.imgur.com/RR4VW.jpg" rel="nofollow noreferrer">enter image descriptio... | I turn a website into android app with the help of WebView and I want to share my product link to WhatsApp but every time I click on button to share on WhatsApp it is showing error in android app but working fine on website enter image description here | android|communication|whatsapp | 0 | 2020-02-12T15:21:18.180Z | 2,020 | 2 | 15 | 2 | 130 | 1 | 252 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
60,191,801 | Navigation components - Mocking Navcontroller graph | <p>I'm using navigation components and I'm trying to test my <code>Fragment</code> with instrumented test. The fragment has a custom toolbar initialized in <code>onViewCreated</code> method by an extension function.</p>
<pre class="lang-kotlin prettyprint-override"><code>override fun onViewCreated(view: View, savedIns... | I'm using navigation components and I'm trying to test my Fragment with instrumented test. The fragment has a custom toolbar initialized in onViewCreated method by an extension function. [CODE] During the initialization of the scenario in my instrumented test, the test crashes due to a null graph on the Nav Controller.... | android|android-espresso|android-testing|android-architecture-navigation | 2 | 2020-02-12T15:32:29.173Z | 2,020 | 2 | 15 | 2 | 1,814 | 1 | 462 | 51 | 4 | 2 | true | false | false | false | false | false | low |
60,191,806 | How to fix: "E/AndroidRuntime: FATAL EXCEPTION: main"? | <p>I am developing an application, and every time I run it, my app crashes. When I look in <strong>Stack trace</strong> I receive this message.</p>
<hr>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: fast.com, PID: 17032
java.lang.RuntimeException: Unable to start activity ComponentInfo{fast.com/... | I am developing an application, and every time I run it, my app crashes. When I look in Stack trace I receive this message. [CODE] When I look to Stack Trace I understand nothing. If you have some time please answer because I really need it. | java|android|crash | 1 | 2020-02-12T15:32:41.207Z | 2,020 | 2 | 15 | 2 | 17,342 | 2 | 241 | 54 | 3 | 1 | true | false | true | true | false | false | low |
60,191,822 | Places autocomplete returns null point exception | <p>I am trying to put places autocomplete on my code, this is inside MainActivity:</p>
<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_searchplace:
// Initialize the AutocompleteSupportFragment.
Places.initialize(ge... | I am trying to put places autocomplete on my code, this is inside MainActivity: [CODE] and this is my xml (fragment_searchplace.xml)file: [CODE] When clicking the menu item, I am getting error: [CODE] What I am doing wrong here? xml updated after @santalu's answer I have updated the xml file as: [CODE] There is no more... | android | 0 | 2020-02-12T15:33:39.267Z | 2,020 | 2 | 15 | 2 | 188 | 1 | 397 | 48 | 1 | 4 | true | false | false | false | false | false | zero |
60,191,956 | How to parse nested Object model in retrofit | <p>Here is what we get from our API</p>
<pre><code>{
"result": true,
"message": "Login successful",
"objects": [
{
"token": "XXXXXXXXXXXXXXXXXXXX",
...
}
]
}
</code></pre>
<p>and I have 2 model for this json.</p>
<p>First is our <strong>base model</strong> (it ... | Here is what we get from our API [CODE] and I have 2 model for this json. First is our base model (it is static for each endpoint) : [CODE] Second is our nested model class (which is different for each endpoint) [CODE] Is there any way to tell the retrofit that each endpoint use my base model and also use a specific ne... | android|kotlin|retrofit | 1 | 2020-02-12T15:39:54.600Z | 2,020 | 2 | 15 | 2 | 136 | 1 | 371 | 44 | 3 | 3 | true | false | false | false | false | false | low |
60,192,025 | APDU commands for card personalisation | <p>I'm trying to execute a simple <code>CommitPerso</code> APDU command</p>
<pre><code> String APDU_COMMAND =
"90" // CLA 90h
+ " 01" // INS (command for writePerso (01h sample data for privacy))
+ " 00" // P1: 00h
... | I'm trying to execute a simple CommitPerso APDU command [CODE] I'm getting 62531 response code. Any help would be appreciated. Edit: I am using Mifare Plus SE 1K cards and Pinetree reader which supports Mifare PLUS cards. I'm using SDK provided by the same reader called SmartPeak following way to sent APDU commands: [C... | android|nfc|smartcard|apdu|mifare | 0 | 2020-02-12T15:43:32.810Z | 2,020 | 2 | 15 | 2 | 299 | 0 | 359 | 38 | 5 | 2 | true | true | false | false | false | false | zero |
60,192,035 | Android Things console not allowing me to create a build | <p>I'm trying to build my first Android Things application.
To run it on my Raspberry Pi I need to create a build with my application.
The problem happens when I try to add my application to the build. It says "Permission denied". I've tried with two different Google accounts.</p>
<p>Does anyone know what could be th... | I'm trying to build my first Android Things application. To run it on my Raspberry Pi I need to create a build with my application. The problem happens when I try to add my application to the build. It says "Permission denied". I've tried with two different Google accounts. Does anyone know what could be the reason? Is... | android|raspberry-pi|android-things|android-things-console | 0 | 2020-02-12T15:43:56.520Z | 2,020 | 2 | 15 | 2 | 109 | 1 | 406 | 56 | 4 | 0 | false | false | false | false | false | false | zero |
60,192,078 | Android Kotlin Volley upload image and post other values at the same time? | <p>I am using the code in this tutorial
<a href="https://medium.com/better-programming/how-to-upload-an-image-file-to-your-server-using-volley-in-kotlin-a-step-by-step-tutorial-23f3c0603ec2" rel="nofollow noreferrer">Upload an Image or File to Your Server Using Volley in Kotlin</a></p>
<p>The code works I can upload a... | I am using the code in this tutorial Upload an Image or File to Your Server Using Volley in Kotlin The code works I can upload an image but I also need to post other values together with the image in the same request. Following is the code which perform the upload. How do I add the other post values to the request? [CO... | android|post|kotlin|android-volley|image-uploading | 0 | 2020-02-12T15:45:57.550Z | 2,020 | 2 | 15 | 2 | 941 | 1 | 323 | 74 | 5 | 1 | true | false | false | false | false | false | zero |
60,192,168 | Null data in hashmap kotlin | <p>I want to insert data into a <code>HashMap</code>. key is an <code>Integer</code> and value is a <code>String</code>. Value is received from external source. </p>
<p>I'm putting the received key and value into the <code>Hashmap</code> but when I try to print the value I'm getting <code>null</code>.</p>
<p>Why is t... | I want to insert data into a HashMap . key is an Integer and value is a String . Value is received from external source. I'm putting the received key and value into the Hashmap but when I try to print the value I'm getting null . Why is this happening? [CODE] | android|kotlin|hashmap | 2 | 2020-02-12T15:49:36.053Z | 2,020 | 2 | 15 | 2 | 1,406 | 1 | 259 | 27 | 3 | 1 | true | false | false | false | false | false | low |
60,192,263 | Android emulator can no longer connect to localhost | <p>I have a server on my computer running on <code>localhost:8080</code>, previously I was able to access this in the Android emulator under <code>10.0.2.2:8080</code> and it worked great. I went to load it again at some point today and it no longer works. No configuration has changed to my knowledge. </p>
<p>I can st... | I have a server on my computer running on localhost:8080 , previously I was able to access this in the Android emulator under 10.0.2.2:8080 and it worked great. I went to load it again at some point today and it no longer works. No configuration has changed to my knowledge. I can still access localhost when I use a bro... | android|networking|localhost|emulation | 0 | 2020-02-12T15:54:17.800Z | 2,020 | 2 | 15 | 2 | 30 | 1 | 499 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
60,192,282 | Pass a byte array to Android plugin in Unity3D C# script | <p>I am trying to write an Android plugin (.aar) for Unity3D and pass a byte array out of C# to a Java method, which is supposed to fill it with data.</p>
<pre><code>//C# code:
byte[] buffer = new byte[1024];
int bytesRead = myJavaObject.Call<int>( "read", buffer );
//buffer contains only zeros
</code></pre>
<p... | I am trying to write an Android plugin (.aar) for Unity3D and pass a byte array out of C# to a Java method, which is supposed to fill it with data. [CODE] [CODE] What I get in my logcat is this: 2020-02-12 16:41:22.717 23831-23855/? W/Unity: AndroidJNIHelper.GetSignature: using Byte parameters is obsolete, use SByte pa... | java|c#|android|unity3d | 1 | 2020-02-12T15:55:27.633Z | 2,020 | 2 | 15 | 2 | 796 | 0 | 592 | 56 | 4 | 2 | true | true | false | false | false | false | low |
60,192,329 | How to set value of integer inside of TextView element? | <h2>What do I want to achieve?</h2>
<ul>
<li>I want to have a <code>TextView</code> element updating every time the new value for <code>int x</code> and <code>int y</code> is generated.</li>
<li>I want that <code>Correct answer</code> text and <code>False answer</code> text would be displayed not in the log, but as a ... | What do I want to achieve? I want to have a TextView element updating every time the new value for int x and int y is generated. I want that Correct answer text and False answer text would be displayed not in the log, but as a textView element too. What do I have? Entire code counting x * y (the answer is z ) Code gene... | java|android|xml | 1 | 2020-02-12T15:57:59.237Z | 2,020 | 2 | 15 | 2 | 56 | 2 | 728 | 55 | 3 | 2 | true | false | false | false | false | false | low |
60,192,341 | Button in dialog always return null in onStart() in a Fragment | <p>I have Dialog in Fragment. when I click on the OK button inside the dialog, I get <code>null object reference error</code>.</p>
<pre class="lang-kotlin prettyprint-override"><code>fun showDialog(){
//get Dialog : Numbers
val dialogView = LayoutInflater.from(context)
.inflate(R.layout.dial... | I have Dialog in Fragment. when I click on the OK button inside the dialog, I get null object reference error . [CODE] Logcat [CODE] | android|android-fragments|kotlin|android-dialog | 1 | 2020-02-12T15:58:29.877Z | 2,020 | 2 | 15 | 2 | 163 | 1 | 132 | 62 | 4 | 2 | true | false | false | false | false | false | low |
60,192,376 | Glide load an image from an URl | <p>I'm trying to use Glide to load an image from an Url:</p>
<pre><code>Glide.with(getContext()).load(urlImage).error(R.drawable.ic_profile_default).into(imgUser);
</code></pre>
<p>This is the error I get:</p>
<pre><code>W/Glide: Load failed for https:www.cerberusenlinea.com/images/profile/16/13/HOLCIM.jpeg with siz... | I'm trying to use Glide to load an image from an Url: [CODE] This is the error I get: [CODE] | java|android|android-glide | 0 | 2020-02-12T16:00:00.410Z | 2,020 | 2 | 16 | 2 | 662 | 2 | 92 | 31 | 3 | 2 | true | false | false | false | false | false | zero |
60,192,412 | My algorithm never met the requirements to start an Activity? | <p>I created an Android game, but it isn't working how it should. </p>
<p><strong>Main idea</strong> </p>
<p>User clicks <code>CheckedTextView</code> three times and after the third click, a second <code>Activity</code> is started.</p>
<p><strong>Problem</strong> </p>
<p>Second <code>Activity</code> isn't starting.... | I created an Android game, but it isn't working how it should. Main idea User clicks CheckedTextView three times and after the third click, a second Activity is started. Problem Second Activity isn't starting. ] Code with an algorithm: [CODE] | java|android | 0 | 2020-02-12T16:01:32.007Z | 2,020 | 2 | 16 | 2 | 52 | 1 | 242 | 61 | 2 | 1 | true | false | false | false | false | false | zero |
60,192,605 | setOnCheckedChangeListener cannot resolve symbol in Check Box | <p>I'm trying to make a button that is disabled until you check the checkbox</p>
<pre><code>Button mButton=(Button)findViewById( R.id.registerBut);
CheckBox mCheckBox= findViewById( R.id.checkBox);
mCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(... | I'm trying to make a button that is disabled until you check the checkbox [CODE] setOnCheckedChangeListener and CompoundButton buttonView says- " cannot resolve symbol " , new OnCheckedChangeListene says - " Invalid method declaration; return type required " If you could please help me solve this. Thanks in advance :D | android|checkbox|cannot-find-symbol | 0 | 2020-02-12T16:11:33.957Z | 2,020 | 2 | 16 | 2 | 571 | 1 | 319 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
60,192,635 | custom markers in google map api | <p>iam currently working on a google map api app</p>
<p>here is my code</p>
<pre><code>package com.example.myapplication;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.fr... | iam currently working on a google map api app here is my code [CODE] now i have 2 question , first how can i add buttons on the map ? not below and not above , same as google map application second how can i add custom marker , for example here is this app app enter image description here how can i reach that ? thank y... | android|google-maps|android-studio | -2 | 2020-02-12T16:13:03.557Z | 2,020 | 2 | 16 | 2 | 209 | 1 | 322 | 32 | 3 | 1 | true | false | false | false | false | true | negative |
60,192,679 | How to implement Google In App Billing for providing access to premium content in Firebase to only paid users | <p>I'm developing an app which uses Google In-App Billing (IAB) for users to subscribe to the app. Available subscription options are 1 month, 6 months and 1 year.</p>
<p>It also uses Firebase Authentication with Google and Email/Password sign in options.</p>
<p>I have created a <code>collection</code> named <code>us... | I'm developing an app which uses Google In-App Billing (IAB) for users to subscribe to the app. Available subscription options are 1 month, 6 months and 1 year. It also uses Firebase Authentication with Google and Email/Password sign in options. I have created a collection named users where each document represents a u... | android|firebase|firebase-authentication|in-app-subscription | 5 | 2020-02-12T16:15:20.380Z | 2,020 | 2 | 16 | 2 | 245 | 0 | 2,434 | 109 | 4 | 0 | false | true | false | false | false | false | low |
60,192,891 | Text selection depending on the phone | <p>In my app, I have an EditText where the user can select a part of the text. The problem is that the selection behavior is different depending on the phone : with one, the user can select normally, but with another one the user must tap on the text indicator and then tap on "Select All".</p>
<p>How can I set the beh... | In my app, I have an EditText where the user can select a part of the text. The problem is that the selection behavior is different depending on the phone : with one, the user can select normally, but with another one the user must tap on the text indicator and then tap on "Select All". How can I set the behavior like ... | android|android-edittext | 2 | 2020-02-12T16:25:35.507Z | 2,020 | 2 | 16 | 2 | 171 | 1 | 675 | 37 | 2 | 1 | true | false | false | false | false | false | low |
60,192,982 | Can't build an app just created using react-native-cli | <p>I've set up my app using yarn, when I try to build the App (with no modifications) using <code>react-native run-android</code> the terminal returns me with the following:</p>
<p><code>error Failed to install the app. Make sure you have the Android development environment set up</code></p>
<p>It's worth to say that... | I've set up my app using yarn, when I try to build the App (with no modifications) using react-native run-android the terminal returns me with the following: error Failed to install the app. Make sure you have the Android development environment set up It's worth to say that I'm running an emulated device through Andro... | android|react-native|android-emulator | 0 | 2020-02-12T16:29:36.157Z | 2,020 | 2 | 16 | 2 | 58 | 0 | 701 | 54 | 3 | 1 | true | true | false | false | false | false | zero |
60,193,053 | Create MaterialButtonToggleGroup including MaterialButton(s) with customized style programmatically in Android | <p>I'm trying to create a MaterialButtonToggleGroup with material buttons inside it and I wanna do that with custom styles.</p>
<p>I was able to create that using xml, however, I need to achieve the same result programmatically </p>
<p>here's what I did with xml (I'm using LinearLayout as a root view):</p>
<pre><cod... | I'm trying to create a MaterialButtonToggleGroup with material buttons inside it and I wanna do that with custom styles. I was able to create that using xml, however, I need to achieve the same result programmatically here's what I did with xml (I'm using LinearLayout as a root view): [CODE] and the code for the styles... | android|android-layout|android-button|material-components-android|android-togglebutton | 2 | 2020-02-12T16:33:28.363Z | 2,020 | 2 | 16 | 2 | 1,425 | 2 | 360 | 110 | 5 | 2 | true | false | false | false | false | false | low |
60,193,116 | Issue submitting data to HubSpot from iOS app | <p>I have this code in iOS that combines a string of values together to submit to hubpot. Everything submits and creates a contact record record except for the product string. Here is the code I have writtne in swift.</p>
<pre><code>let params: [String:String] = [
"email": self.emailTextField.text ?? "",
"firs... | I have this code in iOS that combines a string of values together to submit to hubpot. Everything submits and creates a contact record record except for the product string. Here is the code I have writtne in swift. [CODE] Hubspot states you need to append a semi-colon before each entry to submit a string of values. The... | android|ios|swift|hubspot|hubspot-crm | 1 | 2020-02-12T16:37:17.610Z | 2,020 | 2 | 16 | 2 | 57 | 1 | 895 | 45 | 5 | 1 | true | false | false | false | false | false | low |
60,193,155 | How can i see The full Inner Working of an OkHttp Client? Retrofit Socket Closed Time Out | <p>Hello thank you very much for your time, I am having an unknown issue with retrofit, the only lead I have is a socket closed/timeout message, so I think I may help me to have more info on how the okhttp client and retrofit works, and since I understand sockets have to do more with HTTP clients I would like to know m... | Hello thank you very much for your time, I am having an unknown issue with retrofit, the only lead I have is a socket closed/timeout message, so I think I may help me to have more info on how the okhttp client and retrofit works, and since I understand sockets have to do more with HTTP clients I would like to know more... | android|sockets|websocket|okhttp | 3 | 2020-02-12T16:39:31.597Z | 2,020 | 2 | 16 | 2 | 1,558 | 1 | 6,029 | 89 | 4 | 4 | true | false | false | false | false | false | low |
60,193,411 | Applying Dark Theme in Android Studio to every activity | <p>So I know how to use a switch to activate and deactivate Dark Theme in Android Studio. I currently have that feature in a settings activity I created. I can't seem to find an answer to how I can apply that to all my activities though. So if there is a way to do this I would love to know how I could go about setting ... | So I know how to use a switch to activate and deactivate Dark Theme in Android Studio. I currently have that feature in a settings activity I created. I can't seem to find an answer to how I can apply that to all my activities though. So if there is a way to do this I would love to know how I could go about setting thi... | android-studio|android-dark-theme|android-darkmode | 1 | 2020-02-12T16:53:46.880Z | 2,020 | 2 | 16 | 2 | 81 | 0 | 325 | 55 | 3 | 0 | false | true | false | false | false | false | low |
60,193,473 | Launch an activity without keeping it in the backstack | <p>I am trying to open <strong>activity flow</strong> as follow, what would be the correct/best approach to open flow of activity from Anywhere in Android app?</p>
<p><strong>Receive Push notification when user is on Activity A(app is in foreground) ---> Activity 1 opens, which will lead to activity 2 and activity 3.... | I am trying to open activity flow as follow, what would be the correct/best approach to open flow of activity from Anywhere in Android app? Receive Push notification when user is on Activity A(app is in foreground) ---> Activity 1 opens, which will lead to activity 2 and activity 3. After finishing/closing activity 3 u... | android|android-activity | 1 | 2020-02-12T16:57:55.610Z | 2,020 | 2 | 16 | 2 | 248 | 1 | 402 | 54 | 2 | 0 | false | false | false | false | false | false | low |
60,193,494 | Get the name of image used in ImageButton | <p>I have an <code>Integer</code> array containing the <code>id</code> of finite number of images. I have an <code>ImageButton</code> in which I am embedding an image randomly from the above array once the <code>ImageButton</code> is clicked. Since the images are embedded randomly, I want to know the name of the image ... | I have an Integer array containing the id of finite number of images. I have an ImageButton in which I am embedding an image randomly from the above array once the ImageButton is clicked. Since the images are embedded randomly, I want to know the name of the image which is currently applied to the ImageButton every tim... | android | 0 | 2020-02-12T16:59:01.440Z | 2,020 | 2 | 16 | 2 | 29 | 1 | 408 | 41 | 1 | 1 | true | false | false | false | false | false | zero |
60,193,729 | If statement, Android Studio with Firebase | <p>So I am trying to send data back to my Firebase Database with only users that have signed up and logged in. I have written a code to send the data but i am trying to write an else if statement that a message in this case a Toast appears if they have not signed up. I am struggling to write a code for that.</p>
<pre>... | So I am trying to send data back to my Firebase Database with only users that have signed up and logged in. I have written a code to send the data but i am trying to write an else if statement that a message in this case a Toast appears if they have not signed up. I am struggling to write a code for that. [CODE] | android|firebase-authentication|database-connection | -1 | 2020-02-12T17:12:29.933Z | 2,020 | 2 | 17 | 2 | 240 | 2 | 313 | 42 | 3 | 1 | true | false | false | false | false | true | negative |
60,193,763 | How to get the event count for the current Android user using Fabric's Answers or Google Analytics? | <p>I have an app logging a custom event into Fabric's Answers as follows:</p>
<pre><code>Answers.getInstance().logCustom(new CustomEvent("AnEvent");
</code></pre>
<p>Using Answers API for apps, is it possible to query the total number of occurences of this event for the current user ?</p>
<p>If not possible with Ans... | I have an app logging a custom event into Fabric's Answers as follows: [CODE] Using Answers API for apps, is it possible to query the total number of occurences of this event for the current user ? If not possible with Answers, is it possible with Google Analytics for Firebase ? | android|google-analytics-firebase|fabric.io|fabric-answers | 0 | 2020-02-12T17:15:02.673Z | 2,020 | 2 | 17 | 2 | 344 | 1 | 279 | 99 | 4 | 1 | true | false | false | false | false | false | zero |
60,193,769 | What's the best way to limit EditText number value in Android studio? | <p>What's the best way to limit EditText value in Android studio? I want people can input numbers from 1-10 not zero, not 11 or other. I want only from 1 to 10 number value can input in edit text. if people input more then 10 then how can I control this in java?</p> | What's the best way to limit EditText value in Android studio? I want people can input numbers from 1-10 not zero, not 11 or other. I want only from 1 to 10 number value can input in edit text. if people input more then 10 then how can I control this in java? | java|android|android-studio|input|android-edittext | 1 | 2020-02-12T17:15:32.240Z | 2,020 | 2 | 17 | 2 | 33 | 0 | 259 | 69 | 5 | 0 | false | true | false | false | false | false | low |
60,193,815 | First test is only running as expected in appium | <p>When i try to run the tests in appium server using android studio emulator, only first test(Preference is clicking) is running as expected and after the control is going back to main menu and opening the application again (i.e from first page) and tries to find the element present in the second test(3. preference de... | When i try to run the tests in appium server using android studio emulator, only first test(Preference is clicking) is running as expected and after the control is going back to main menu and opening the application again (i.e from first page) and tries to find the element present in the second test(3. preference depen... | selenium|appium|appium-android | 0 | 2020-02-12T17:18:25.250Z | 2,020 | 2 | 17 | 2 | 28 | 0 | 445 | 48 | 3 | 1 | true | true | false | false | false | false | zero |
60,193,835 | Android change orientation programmatically? | <p>I have a single activity app. Most of the time screen must be in portrait orientation unless it shows video in full screen (I`m expecting to use ExoPlayer). So if I lock the orientation in manifest how can I rotate activity or player view itself?</p> | I have a single activity app. Most of the time screen must be in portrait orientation unless it shows video in full screen (I`m expecting to use ExoPlayer). So if I lock the orientation in manifest how can I rotate activity or player view itself? | android|exoplayer|exoplayer2.x | 1 | 2020-02-12T17:19:13.750Z | 2,020 | 2 | 17 | 2 | 2,260 | 1 | 246 | 44 | 3 | 0 | false | false | false | false | false | false | low |
60,193,860 | NativeScript: java.lang.OutOfMemoryError when loading or taking pictures | <p>I am building an app for work which loads a picture, either from the gallery or the camera itself, and then displays the image. It works for the first 4-6 images, but then without fail it gives me the <code>java.lang.OutOfMemoryError</code> shown below.</p>
<p>I have searched the forms and have attempted to use <co... | I am building an app for work which loads a picture, either from the gallery or the camera itself, and then displays the image. It works for the first 4-6 images, but then without fail it gives me the java.lang.OutOfMemoryError shown below. I have searched the forms and have attempted to use global.gc() as well as addi... | android|sqlite|nativescript|nativescript-angular | 0 | 2020-02-12T17:20:52.267Z | 2,020 | 2 | 17 | 2 | 287 | 0 | 975 | 72 | 4 | 3 | true | true | false | false | false | false | zero |
60,193,926 | How to send reminders via Whatsapp through my Andriod app? | <p>I am starting an Android app project, which consists of a sort of planner. I want to send reminders of certain user-chosen activities via Whatsapp. I was told that Any.do has these, but I do not know how that can be done.</p>
<p>Any ideas?</p> | I am starting an Android app project, which consists of a sort of planner. I want to send reminders of certain user-chosen activities via Whatsapp. I was told that Any.do has these, but I do not know how that can be done. Any ideas? | android|kotlin|whatsapp | 0 | 2020-02-12T17:24:27.037Z | 2,020 | 2 | 17 | 2 | 38 | 1 | 232 | 58 | 3 | 0 | false | false | false | false | false | false | zero |
60,194,240 | Firebase Cloud Firestore: Query isn't updating ArrayList in Android | <p>I am using the following query:</p>
<pre><code>db.collection("Example")
.whereEqualTo("UserId", currentUser.getUid())
.orderBy("timestamp", Query.Direction.ASCENDING)
.get()
.addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
... | I am using the following query: [CODE] As the query is iterating through results, I would like it to add the results to an array. However, when I run the code and attempt to print the content of the array list, I am getting and IndexOutOfBounds exception despite me looking at userTextArrayList.get(0); which should cont... | java|android|firebase|google-cloud-firestore | -1 | 2020-02-12T17:44:48.353Z | 2,020 | 2 | 17 | 2 | 137 | 1 | 1,399 | 67 | 4 | 1 | true | false | false | false | false | true | negative |
60,194,248 | How to view Adobe Launch data from Android app? | <p>I want to see analytics in my android application, but am struggling to set Adobe Launch and Analytics up.</p>
<p>I have Mobile Core and Analytics set up in the app itself. And it isn't producing any errors on run.</p>
<pre><code>MobileCore.setApplication(this)
MobileCore.setLogLevel(LoggingMode.DEBUG)
... | I want to see analytics in my android application, but am struggling to set Adobe Launch and Analytics up. I have Mobile Core and Analytics set up in the app itself. And it isn't producing any errors on run. [CODE] And have created the property in Adobe Launch adding the relevant extensions needed, setting up environme... | android|adobe|analytics|adobe-analytics|adobe-launch | 0 | 2020-02-12T17:45:25.367Z | 2,020 | 2 | 17 | 2 | 305 | 4 | 521 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
60,194,280 | List all files inside an Firebase Storage folder on Android | <p>I am trying to get the list of all files present in a Firebase Storage folder (with files of subfolders...etc...) but but I am having some problems. As Firebase Storage does not support this functionality I have to code it myself, I wrote the code below, it works but when I call it unfortunately the result is not th... | I am trying to get the list of all files present in a Firebase Storage folder (with files of subfolders...etc...) but but I am having some problems. As Firebase Storage does not support this functionality I have to code it myself, I wrote the code below, it works but when I call it unfortunately the result is not the r... | android|firebase|firebase-storage | 0 | 2020-02-12T17:47:20.740Z | 2,020 | 2 | 17 | 2 | 366 | 1 | 765 | 59 | 3 | 5 | true | false | false | false | false | false | zero |
60,194,299 | Kotlin Flow execute two API calls in parallel and collect each result as it arrives | <p>I am trying to implement cache then network strategy for my API call using <code>Kotlin</code> <code>Flows</code>.
Here is what I am trying right now</p>
<pre><code>flowOf(
remoteDataSource.getDataFromCache() // suspending function returning Flow<Data>
.catch { error -> Timber.e(error) },
remoteDataSo... | I am trying to implement cache then network strategy for my API call using Kotlin Flows . Here is what I am trying right now [CODE] Problem here is collect is only called when getDataFromServer returns. My expectation is that I should get first event from cache and then second event from server after a few milliseconds... | android|kotlin|reactive-programming|kotlin-coroutines|kotlin-flow | 13 | 2020-02-12T17:48:50.700Z | 2,020 | 2 | 17 | 2 | 8,690 | 3 | 666 | 83 | 5 | 2 | true | false | true | false | true | false | medium |
60,194,475 | How can I choose from files in local storage instead of from a hardcoded file in res/raw? | <p>I'm trying to write an app that will take an XML file and convert it to HTML using XSLT.</p>
<p>The structure of the XML files will always be the same, but the data inside will change. </p>
<p>I have managed to get it to work using an XML file hardcoded in res/raw.</p>
<p>How can I change the app so that I can ch... | I'm trying to write an app that will take an XML file and convert it to HTML using XSLT. The structure of the XML files will always be the same, but the data inside will change. I have managed to get it to work using an XML file hardcoded in res/raw. How can I change the app so that I can choose an XML file from the lo... | android|html|xml|file|xslt | 0 | 2020-02-12T18:01:12.447Z | 2,020 | 2 | 18 | 2 | 60 | 1 | 556 | 89 | 5 | 3 | true | false | false | false | false | false | zero |
60,194,502 | Android Emulator: Google Play Services tab hanging on loading | <p>I've recreated emulators to see if it makes a difference, I've attempted to start with a lower Andriod version on a different device, both Arm and X86 architecture emulators - but each has this problem.</p>
<p>The outcome I'm hoping for is maps working on an android app (which works on a physical device), just not ... | I've recreated emulators to see if it makes a difference, I've attempted to start with a lower Andriod version on a different device, both Arm and X86 architecture emulators - but each has this problem. The outcome I'm hoping for is maps working on an android app (which works on a physical device), just not on any emul... | android|android-emulator|google-play-services | 2 | 2020-02-12T18:02:58.550Z | 2,020 | 2 | 18 | 2 | 113 | 0 | 601 | 61 | 3 | 0 | false | true | false | false | false | false | low |
60,194,536 | Android studio Speech to text offline mode not working | <p>I am trying to get speech to text working offline on an Android app I am developing in Android Studio. Here is the code I use to set up the speech recognizer. </p>
<pre><code> public void openSpeechMode(View view) {
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.put... | I am trying to get speech to text working offline on an Android app I am developing in Android Studio. Here is the code I use to set up the speech recognizer. [CODE] This works fine when I am online, but when I am offline it does not work. I read that I need to ensure that I follow these steps below on my Android devic... | android|android-studio|speech-to-text|offline-mode | 3 | 2020-02-12T18:05:09.270Z | 2,020 | 2 | 18 | 2 | 833 | 1 | 712 | 54 | 4 | 2 | true | false | false | false | false | false | low |
60,194,539 | Why my variables are set to null after i volley call is succeed | <p>I do not why my private variable values are getting to null after the Volley request</p>
<p>When i am printing the values in onResponse, i am getting required values, but after volley request is completed, I am getting null. </p>
<pre><code>ListView userListView;
StringRequest stringRequest=null;
ProgressDialog pr... | I do not why my private variable values are getting to null after the Volley request When i am printing the values in onResponse, i am getting required values, but after volley request is completed, I am getting null. [CODE] | android-studio|android-volley | 0 | 2020-02-12T18:05:16.123Z | 2,020 | 2 | 18 | 2 | 20 | 1 | 224 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
60,194,596 | Custom CheckBox with default style | <p>I need to create a custom CheckBox with default material style.</p>
<p>My class is defined like so</p>
<pre><code>class CustomCheckBox @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : CheckBox(context, attrs, defStyleAttr) {
}
</code></pre>
<p>If I l... | I need to create a custom CheckBox with default material style. My class is defined like so [CODE] If I look at the default CheckBox's properties they have the following attributes defined [CODE] but the derived widget does not have them. How can I apply these to the derived class? Update I've tried to extend MaterialC... | android|kotlin|checkbox|material-design|android-custom-view | 0 | 2020-02-12T18:10:01.713Z | 2,020 | 2 | 18 | 2 | 283 | 1 | 538 | 34 | 5 | 3 | true | false | false | false | false | false | zero |
60,194,672 | Android google play console error APK TRANSMIT USER DATA UNSECURELY | <p>My app uses user current location and address details, Once I completed my app I uploaded it to play store it works fine, I released three to four build without any issues. Last week I uploaded an APK and It's rejected from google play console and I got this below error</p>
<p><a href="https://i.stack.imgur.com/n6q... | My app uses user current location and address details, Once I completed my app I uploaded it to play store it works fine, I released three to four build without any issues. Last week I uploaded an APK and It's rejected from google play console and I got this below error Then I changed my backend api call from http:// t... | android|cryptography|google-play|google-play-console | 7 | 2020-02-12T18:15:56.847Z | 2,020 | 2 | 18 | 2 | 2,587 | 1 | 575 | 67 | 4 | 0 | false | false | false | false | false | false | medium |
60,194,810 | fetching data from firebase and returning it to the main thread | <p>Currently Running into an issue where I'm fetching data from firebase. I know it is because Firebase is asynchronous, so when I make my firebase call, it is executed on its own thread, and the current thread that it was called on continues to execute. I'm populating a list of objects with the data from firebase and ... | Currently Running into an issue where I'm fetching data from firebase. I know it is because Firebase is asynchronous, so when I make my firebase call, it is executed on its own thread, and the current thread that it was called on continues to execute. I'm populating a list of objects with the data from firebase and I r... | java|android|firebase|google-cloud-firestore | 0 | 2020-02-12T18:26:27.317Z | 2,020 | 2 | 18 | 2 | 775 | 3 | 719 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
60,194,884 | Is there a way to set Maximum Date of Android calendar 2 months from the current date | <p>I tried getting the current date and then calculate the monthly age but that did not work out quite well. The code is below.</p>
<p>Here am displaying the calendar:</p>
<pre><code> edAnimalDob.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
... | I tried getting the current date and then calculate the monthly age but that did not work out quite well. The code is below. Here am displaying the calendar: [CODE] Here am trying to calculate the monthly age : [CODE] Since this method did not work, I think the solution will be to just display the calendar with a MaxDa... | android|android-studio|android-calendar | 0 | 2020-02-12T18:31:43.487Z | 2,020 | 2 | 18 | 2 | 163 | 1 | 410 | 85 | 3 | 2 | true | false | false | false | false | false | zero |
60,194,894 | Why is my grid layout screwed up in android studio? | <p>I am just starting with android development. I have a grid view but two buttons on the bottom row of the grid layout have a very fine margin on top of them, which I am trying to eliminate. Even if I use the design tool and try to drag the buttons up a slim amount, they reset and go right back to having a thin layout... | I am just starting with android development. I have a grid view but two buttons on the bottom row of the grid layout have a very fine margin on top of them, which I am trying to eliminate. Even if I use the design tool and try to drag the buttons up a slim amount, they reset and go right back to having a thin layout on... | android|xml|android-layout | 1 | 2020-02-12T18:32:20.130Z | 2,020 | 2 | 18 | 2 | 59 | 2 | 512 | 51 | 3 | 1 | true | false | false | false | false | false | low |
60,195,059 | how can i copy multiple string values into the clipboard in android? | <p>how can I copy multiple string value into the clipboard in the android? I want to copy all the textView values at once. here I try this but it won't work. I don't know where I made mistake. help me. </p>
<pre><code>public void CopyData(){
String CopyDay =textViewDay.getText().toString().trim();
String CopyM... | how can I copy multiple string value into the clipboard in the android? I want to copy all the textView values at once. here I try this but it won't work. I don't know where I made mistake. help me. [CODE] | java|android|copy|clipboard | 1 | 2020-02-12T18:46:39.910Z | 2,020 | 2 | 18 | 2 | 317 | 0 | 205 | 68 | 4 | 1 | true | true | false | false | false | false | low |
60,195,305 | Passing large data between activities in Kotlin | <p>I'm trying to pass large data from one activity to another. For business reasons, I cannot save this data to persistent storage and need it to stay in memory.</p>
<p>Up until now, I've been using Intents to pass <code>Serializable</code> data, but with larger data, I've been receiving <code>TranstactionTooLarge</co... | I'm trying to pass large data from one activity to another. For business reasons, I cannot save this data to persistent storage and need it to stay in memory. Up until now, I've been using Intents to pass Serializable data, but with larger data, I've been receiving TranstactionTooLarge exceptions/crashes. What are my o... | android|kotlin | 1 | 2020-02-12T19:07:39.563Z | 2,020 | 2 | 19 | 2 | 521 | 2 | 500 | 47 | 2 | 0 | false | false | false | false | false | false | low |
60,195,416 | Open APK file from application on API 24 and above | <p>I need to open intent with apk file that is downloaded from remote host. On API below 24 everything worked fine and still seems to be ok. Right now I have to target API 29 which is causing me some problems.</p>
<p>When I am trying to open apk file on device with Android 10 everything I got from logs is:</p>
<pre><... | I need to open intent with apk file that is downloaded from remote host. On API below 24 everything worked fine and still seems to be ok. Right now I have to target API 29 which is causing me some problems. When I am trying to open apk file on device with Android 10 everything I got from logs is: [CODE] I tried to add ... | android|gradle|android-fileprovider|fileprovider | 0 | 2020-02-12T19:15:30.273Z | 2,020 | 2 | 19 | 2 | 228 | 1 | 1,189 | 50 | 4 | 4 | true | false | false | false | false | false | zero |
60,195,562 | ToolBar label and TabLayout not formatted correctly | <p>I need to create a header on a fragment that looks like this:
<a href="https://i.stack.imgur.com/3oesk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3oesk.png" alt="enter image description here"></a></p>
<p>But my xml must not be correct as I'm getting margins I did not specify</p>
<h2>Layout ... | I need to create a header on a fragment that looks like this: But my xml must not be correct as I'm getting margins I did not specify Layout for the fragment [CODE] what that layout produces is this, with the tabLayout below the label but with a margin on the left and top I did not specify: What do I need to do with my... | android | -1 | 2020-02-12T19:26:14.713Z | 2,020 | 2 | 19 | 2 | 21 | 1 | 573 | 51 | 1 | 1 | true | false | false | false | false | true | negative |
60,195,580 | Stable Id vs DiffCallback for RecyclerView | <p>I have a custom class for data shown in my RecyclerView. Each object and thus each row has a unique id value for <code>id</code> field in the class.</p>
<p>Whenever I refresh data, the list gets cleared, repopulated and <code>notifyDataSetChanged()</code> is called. This causes for blinking effect.</p>
<p>During t... | I have a custom class for data shown in my RecyclerView. Each object and thus each row has a unique id value for id field in the class. Whenever I refresh data, the list gets cleared, repopulated and notifyDataSetChanged() is called. This causes for blinking effect. During these refreshes, although id stays the same, s... | android|android-recyclerview | 1 | 2020-02-12T19:27:13.403Z | 2,020 | 2 | 19 | 2 | 345 | 1 | 674 | 42 | 2 | 0 | false | false | false | false | false | false | low |
60,195,615 | Converting date from one format to another causes exception | <p>I am getting a date in this format:</p>
<blockquote>
<p>Fri Feb 28 00:00:00 GMT+01:00 2020</p>
</blockquote>
<p>I need to convert this date to format <code>yyyy-mm-dd</code></p>
<p>To get this format conversion I am doing as follows:</p>
<pre class="lang-java prettyprint-override"><code>String date = dateClick... | I am getting a date in this format: Fri Feb 28 00:00:00 GMT+01:00 2020 I need to convert this date to format yyyy-mm-dd To get this format conversion I am doing as follows: [CODE] I am getting following exception at line String newFormat = formatter.format(testDate); This is the exception message: java.lang.NullPointer... | android|simpledateformat | 0 | 2020-02-12T19:30:13.083Z | 2,020 | 2 | 19 | 2 | 44 | 1 | 504 | 59 | 2 | 1 | true | false | false | false | false | false | zero |
60,195,771 | Is there a limit for the byte size on a response Body using retrofit? | <p>I wanted to know if the byte size of a Json Response body can cause an issue using a retrofit.</p>
<p>Right now I am having a kind of random issue with a callback using retrofit with the default OkHttp Client, Everything shows as okay on the Http Interceptor Logs but in code, it takes the call as a Failure and thro... | I wanted to know if the byte size of a Json Response body can cause an issue using a retrofit. Right now I am having a kind of random issue with a callback using retrofit with the default OkHttp Client, Everything shows as okay on the Http Interceptor Logs but in code, it takes the call as a Failure and throws a simple... | android|sockets|retrofit|retrofit2|okhttp | 1 | 2020-02-12T19:42:37.517Z | 2,020 | 2 | 19 | 2 | 3,964 | 1 | 2,417 | 69 | 5 | 5 | true | false | true | false | false | false | low |
60,195,888 | NotificationCompat.Builder setContentText() does not show CSS colour in dark mode | <p>I am displaying text on the second line of my notification using <code>builder.setContentText(txt)</code>, where the <code>txt</code> is actually styled text based on html including CSS colours, to produce coloured text.</p>
<p>The code I'm using is:</p>
<pre><code>NotificationCompat.Builder builder = new Notifica... | I am displaying text on the second line of my notification using builder.setContentText(txt) , where the txt is actually styled text based on html including CSS colours, to produce coloured text. The code I'm using is: [CODE] and the log output (to show the html/css content) is: [CODE] When the system (running Android ... | android|android-notifications | 0 | 2020-02-12T19:51:19.100Z | 2,020 | 2 | 19 | 2 | 192 | 1 | 525 | 81 | 2 | 2 | true | false | false | false | false | false | zero |
60,195,979 | BufferedReader with Socket not receiving anything | <p>I am trying to do a remote for my pc, using an android app and a java program on my pc.
I use a socket on port 8000, it connects without problems but when it comes to reading the message sent from my android phone, it doesn't do anything. Here is the code:
pc/Main.java</p>
<pre class="lang-java prettyprint-override... | I am trying to do a remote for my pc, using an android app and a java program on my pc. I use a socket on port 8000, it connects without problems but when it comes to reading the message sent from my android phone, it doesn't do anything. Here is the code: pc/Main.java [CODE] android/Main.java [CODE] android/main.xml (... | java|android | 1 | 2020-02-12T19:57:55.380Z | 2,020 | 2 | 19 | 2 | 58 | 1 | 628 | 49 | 2 | 4 | true | false | false | false | false | false | low |
60,195,990 | Java client not connecting to NodeJS Socket.IO server | <p>I'm trying to implement a simple socket.io client in my android application to connect to a server hosted on my computer.
With some examples I've managed to connect with the android app to <a href="https://socket-io-chat.now.sh/" rel="nofollow noreferrer">https://socket-io-chat.now.sh/</a>, so I think the code shoul... | I'm trying to implement a simple socket.io client in my android application to connect to a server hosted on my computer. With some examples I've managed to connect with the android app to https://socket-io-chat.now.sh/ , so I think the code should be right. The problem is that if I clone the chat example's repo and I ... | android|node.js|websocket|socket.io|socket.io-java-client | 0 | 2020-02-12T19:58:48.167Z | 2,020 | 2 | 19 | 2 | 593 | 0 | 1,067 | 53 | 5 | 1 | true | true | false | false | false | false | zero |
60,196,022 | How do I fix a null Cursor - android studio | <p>I would really appreciate some help! I am working on a project and I am stuck at this part!</p>
<p>Log cat:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndex(java.lang.String)' on a null object reference
at com.example.workhours.NotesCusto... | I would really appreciate some help! I am working on a project and I am stuck at this part! Log cat: [CODE] code: [CODE] | java|sqlite|android-studio|android-layout | 0 | 2020-02-12T20:01:40.220Z | 2,020 | 2 | 20 | 2 | 141 | 1 | 120 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
60,196,158 | Using `navigation.navigateUp` incorrectly displays burger menu | <p>I have an activity that is setup to work with Android Jetpack's <a href="https://developer.android.com/reference/androidx/navigation/ui/NavigationUI" rel="nofollow noreferrer"><code>NavigationUI</code></a>. This works well and I can navigate correctly except that if I navigate down 2 times, when I navigate up once, ... | I have an activity that is setup to work with Android Jetpack's NavigationUI . This works well and I can navigate correctly except that if I navigate down 2 times, when I navigate up once, the app bar will shows the burger even though there's still one fragment in the childFragmentManager 's backstack. Example: I navig... | android|android-jetpack-navigation | 0 | 2020-02-12T20:11:03.640Z | 2,020 | 2 | 20 | 2 | 116 | 1 | 620 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
60,196,353 | How to accept programmatically a ringing call in Android 8.0? | <p>Is it possible to answer a ringing call programmatically on Android 8.0 (without human interaction) ? I used some methods from older releases, but they didn't work (for example the ITelephony Interface solution)...</p> | Is it possible to answer a ringing call programmatically on Android 8.0 (without human interaction) ? I used some methods from older releases, but they didn't work (for example the ITelephony Interface solution)... | java|android|android-studio | 1 | 2020-02-12T20:24:59.440Z | 2,020 | 2 | 20 | 2 | 39 | 1 | 214 | 61 | 3 | 0 | false | false | false | false | false | false | low |
60,196,379 | Animated (textView) keeps cancelling when swiping between fragments within Fragment State Adapter | <ul>
<li>I am developing an app on android studio (Java)</li>
<li>I have created a tabLayout that swipes between two fragments using a viewPager2 + Fragment State Adapter</li>
<li>On fragment02, I have animated a textView.</li>
<li>When I swipe onto the fragment the animation plays on loop, as it should.</li>
<li>Howev... | I am developing an app on android studio (Java) I have created a tabLayout that swipes between two fragments using a viewPager2 + Fragment State Adapter On fragment02, I have animated a textView. When I swipe onto the fragment the animation plays on loop, as it should. However, if I swipe off the fragment and then back... | java|android|android-studio|android-fragments|android-viewpager2 | 0 | 2020-02-12T20:27:41.137Z | 2,020 | 2 | 20 | 2 | 78 | 1 | 522 | 97 | 5 | 4 | true | false | false | false | false | false | zero |
60,196,415 | How to reset CheckBox buttonDrawable to default | <p>When I add a CheckBox to a layout it has some button drawable assigned by default, particularly Android Studio shows it in the attributes pannel as</p>
<pre><code>button: @android:drawable/btn_check_material_anim
</code></pre>
<p>If I change it to some other drawable, how can I reset it back to the default one pro... | When I add a CheckBox to a layout it has some button drawable assigned by default, particularly Android Studio shows it in the attributes pannel as [CODE] If I change it to some other drawable, how can I reset it back to the default one programmically? | android|android-layout|android-checkbox | 1 | 2020-02-12T20:31:05.867Z | 2,020 | 2 | 20 | 2 | 399 | 1 | 252 | 47 | 3 | 1 | true | false | false | false | false | false | low |
60,196,593 | Does Xamarin support class library project reference nesting, generating an AndroidManifest.xml for components in nested references? | <p>Does Xamarin support multiple levels of project reference nesting, where the referenced project includes Android components intended for the AndroidManifest.xml?</p>
<p>For example: AndoidXamarin App > ClassLibrary1 > (which declares a Service) ClassLibrary2 (which also declares a Service):</p>
<pre><code>// Class... | Does Xamarin support multiple levels of project reference nesting, where the referenced project includes Android components intended for the AndroidManifest.xml? For example: AndoidXamarin App > ClassLibrary1 > (which declares a Service) ClassLibrary2 (which also declares a Service): [CODE] [CODE] [CODE] | xamarin|xamarin.android|android-manifest | 1 | 2020-02-12T20:46:19.993Z | 2,020 | 2 | 20 | 2 | 93 | 0 | 305 | 132 | 3 | 3 | true | true | false | false | false | false | low |
60,196,688 | How to add index in descending order on a column in androidx room? | <p>Let's say I have an entity users --</p>
<pre><code>@Entity()
class Users(
val firstName: String,
val lastName: String
)
</code></pre>
<p>Now I want to create a composite index on this entity (table) like this (firstName DESC, lastName DESC). I can do this with sqlite command like this --</p>
<pre><code>CR... | Let's say I have an entity users -- [CODE] Now I want to create a composite index on this entity (table) like this (firstName DESC, lastName DESC). I can do this with sqlite command like this -- [CODE] But I'm not able to do this with indices property in @Entity annotation. I tried doing this -- [CODE] But it results i... | sqlite|kotlin|android-room | 1 | 2020-02-12T20:53:55.923Z | 2,020 | 2 | 20 | 2 | 159 | 0 | 505 | 66 | 3 | 3 | true | true | false | false | false | false | low |
60,196,733 | Android Studio: Cannot resolve symbol ‘RequestConfiguration’ | <p>I am modifying an android app, which used to work, but the test ad is no longer loaded and in the Android Studio log I see:</p>
<p><em>Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("8B…D76C") to get test ads on this device.</em></p>
<p>I tried to add that to the code, but I get a “Cannot resolv... | I am modifying an android app, which used to work, but the test ad is no longer loaded and in the Android Studio log I see: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("8B…D76C") to get test ads on this device. I tried to add that to the code, but I get a “Cannot resolve symbol ‘RequestConfigurati... | android|admob | 3 | 2020-02-12T20:57:20.837Z | 2,020 | 2 | 20 | 2 | 5,506 | 3 | 484 | 60 | 2 | 1 | true | false | true | false | false | false | low |
60,196,787 | Align chat bubble to the left of the RecyclerView | <p>I'm creating a chat app and I have everything set to go, the problem is, when I'm displaying my text in the RecyclerView, the <code>friend</code> chat bubble aligns like the text the user sends. How can I align it to the left of the recyclerview?
I have 2 different layots, one for each bubble, and one recyclerview a... | I'm creating a chat app and I have everything set to go, the problem is, when I'm displaying my text in the RecyclerView, the friend chat bubble aligns like the text the user sends. How can I align it to the left of the recyclerview? I have 2 different layots, one for each bubble, and one recyclerview adapter. This is ... | android|xml|kotlin|android-recyclerview | 1 | 2020-02-12T21:01:37.837Z | 2,020 | 2 | 21 | 2 | 616 | 1 | 556 | 49 | 4 | 3 | true | false | false | false | false | false | low |
60,196,795 | How do I load a YAML styling file into HERE SDK Premium (Android) | <p>I am currently developing an Android mapping application using HERE SDK Premium (I need the offline capability).</p>
<p>However when it comes to map styling, while using the SDK Lite makes it trivially easy (create the YAML file using the online style editor then load it into the app), the Premium SDK does not seem... | I am currently developing an Android mapping application using HERE SDK Premium (I need the offline capability). However when it comes to map styling, while using the SDK Lite makes it trivially easy (create the YAML file using the online style editor then load it into the app), the Premium SDK does not seem to have th... | android|yaml|here-api | 1 | 2020-02-12T21:02:26.757Z | 2,020 | 2 | 21 | 2 | 65 | 1 | 621 | 65 | 3 | 0 | false | false | 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.