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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59,930,041 | how to make whole layout up of android keyboard | <p>I have layout design and when I clicked on Edittext to write something the layout didn't up to show me the success button like the image.
<a href="https://i.stack.imgur.com/pLHed.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pLHed.png" alt="enter image description here"></a></p>
<p>so I need t... | I have layout design and when I clicked on Edittext to write something the layout didn't up to show me the success button like the image. so I need to up my layout when keyboard display and I need to know how I can remove keyboard when I click on the layout or another widget. my layout: [CODE] Thanks for U help. | android | 0 | 2020-01-27T11:16:00.427Z | 2,020 | 1 | 11 | 0 | 37 | 1 | 313 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
59,930,107 | Android Studio: create another activity (package name is not set to a valid package name) | <p>My android application has a package <code>spectorsky</code> placed directly in <code>java1</code> catalog. Incide this package, there is launched activity <code>MainActivity</code>, and I need to create additional activity in the same package. </p>
<p>However when I call <code>New activity</code> dialog and type <... | My android application has a package spectorsky placed directly in java1 catalog. Incide this package, there is launched activity MainActivity , and I need to create additional activity in the same package. However when I call New activity dialog and type spectorky as a package name, error package name is not set to a ... | android|android-studio-3.5 | 0 | 2020-01-27T11:19:57.767Z | 2,020 | 1 | 11 | 0 | 322 | 1 | 613 | 89 | 2 | 0 | false | false | false | false | false | false | zero |
59,930,121 | Make multiple parts of string bold in a textview dynamically in kotlin | <p>I multiple strings in the following format.<br>
- "the *quick* brown fox *jumps* over the lazy *dog* "
I want to show them as<br>
- "the <strong>quick</strong> brown fox <strong>jumps</strong> over the lazy <strong>dog</strong> "</p>
<p>in a recyclerview adapter
how can that be done I have no clue how to begin.</... | I multiple strings in the following format. - "the *quick* brown fox *jumps* over the lazy *dog* " I want to show them as - "the quick brown fox jumps over the lazy dog " in a recyclerview adapter how can that be done I have no clue how to begin. | android|textview | 0 | 2020-01-27T11:21:21.500Z | 2,020 | 1 | 11 | 0 | 120 | 1 | 246 | 70 | 2 | 0 | false | false | false | false | false | false | zero |
59,930,234 | How can I make all HTTP requests from my Android application accept a given certificate authority? | <p>I have a server running HTTPS with a certificate from my own certificate authority. I have the CA certificate as a <code>.pem</code> file (for example, I can pass this to CURL with <code>--cacert</code> to get it to talk to my server).</p>
<p>I'm writing an Android application which will need to talk to this server... | I have a server running HTTPS with a certificate from my own certificate authority. I have the CA certificate as a .pem file (for example, I can pass this to CURL with --cacert to get it to talk to my server). I'm writing an Android application which will need to talk to this server. I need to be able to somehow give i... | android|https|ssl-certificate|certificate-authority | 0 | 2020-01-27T11:27:44.300Z | 2,020 | 1 | 11 | 0 | 521 | 1 | 1,188 | 98 | 4 | 0 | false | false | false | false | false | false | zero |
59,930,235 | Is there an Alternative for AsyncTask using HttpUrlConnection | <p>Using AsyncTask freezes my whole app. i have an icon that rotates while the Http action is happening in the background. but the app just freezes till it finishes that action. Is there an alternative?</p>
<p>The below class sends the JSON to the server, the server has multiple endpoints and stuff like that. now when... | Using AsyncTask freezes my whole app. i have an icon that rotates while the Http action is happening in the background. but the app just freezes till it finishes that action. Is there an alternative? The below class sends the JSON to the server, the server has multiple endpoints and stuff like that. now when calling cl... | java|android | -2 | 2020-01-27T11:27:45.637Z | 2,020 | 1 | 11 | 0 | 201 | 1 | 404 | 61 | 2 | 1 | true | false | false | false | false | true | negative |
59,930,291 | Error: Program type already present: com.google.gson.JsonNull how to find the duplicated lib | <p>In my app if ran via the cable to the tab it is working perefectly but when creating a singed apk i got error
Error: Program type already present: com.google.gson.JsonNull</p>
<p>here is the gradle dependancies that are used for the application development</p>
<pre><code> defaultConfig {
multiDexEnab... | In my app if ran via the cable to the tab it is working perefectly but when creating a singed apk i got error Error: Program type already present: com.google.gson.JsonNull here is the gradle dependancies that are used for the application development [CODE] Please help me with explain how can I catch the duplicated lib ... | android|duplicates|gson | 1 | 2020-01-27T11:31:28.663Z | 2,020 | 1 | 11 | 0 | 57 | 1 | 341 | 92 | 3 | 1 | true | false | false | false | false | false | low |
59,930,498 | how can i solve Duplicate class com.android.volley.AuthFailureError found in modules jetified-volley-1.1.1-runtime.jar | <p>this is the error </p>
<pre><code>Duplicate class com.android.volley.AuthFailureError found in modules jetified-volley-1.1.1-runtime.jar (com.android.volley:volley:1.1.1) and volley.jar (volley.jar)
Duplicate class com.android.volley.BuildConfig found in modules jetified-volley-1.1.1-runtime.jar (com.android.volley... | this is the error [CODE] This is my build.gradle [CODE] | android | 2 | 2020-01-27T11:44:05.317Z | 2,020 | 1 | 11 | 0 | 680 | 1 | 55 | 118 | 1 | 2 | true | false | false | false | false | false | low |
59,930,506 | Error: Can't create handler inside thread that has not called Looper.prepare() when trying to bridging React Native to Java | <p>I have a problem when trying to bridging my React Native Project to Java. Here is my code: </p>
<p>my ReactContextBaseJavaModule :</p>
<pre><code>public class analyticsEvent extends ReactContextBaseJavaModule{
private static ReactApplicationContext reactContext;
mFirebaseAnalyticsClass classEvent = new mFirebaseA... | I have a problem when trying to bridging my React Native Project to Java. Here is my code: my ReactContextBaseJavaModule : [CODE] } my Package: [CODE] MainApplication: [CODE] } When i tried to add module, it always give me the "Looper.prepare()" error. Many people said that i have to use Handler, but i don't know where... | android|react-native | 0 | 2020-01-27T11:44:39.603Z | 2,020 | 1 | 11 | 0 | 256 | 0 | 378 | 123 | 2 | 3 | true | true | false | false | false | false | zero |
59,930,574 | Unity 3d, sphere transform into cube when I tap on screen | <p>I've tried to create a simple script to exercise with unity 3d, but I have this problem.
On the <strong>void start</strong> I create a simple 3d sphere, and when I click on the screen, the sphere
should transform in a another object (for example a cube). I've tried to create a <strong>Empty Game Object</strong> an... | I've tried to create a simple script to exercise with unity 3d, but I have this problem. On the void start I create a simple 3d sphere, and when I click on the screen, the sphere should transform in a another object (for example a cube). I've tried to create a Empty Game Object and create this script for change the obj... | c#|android|unity3d | 1 | 2020-01-27T11:48:54.203Z | 2,020 | 1 | 11 | 0 | 1,147 | 1 | 588 | 57 | 3 | 1 | true | false | false | false | false | false | low |
59,930,631 | Dialog Fragment is not appearing after device is rotated | <p>i have a dialog fragment when i rotate the device the dialogFragment is not appearing.<br>
please look at the images to better understand</p>
<p>[![this is how the dialog looks][1]][1]</p>
<p>[![this is how i want to be][2]][2]</p>
<p>launching the dialog</p>
<pre><code>ft = activity.supportFragmentManager.begin... | i have a dialog fragment when i rotate the device the dialogFragment is not appearing. please look at the images to better understand [![this is how the dialog looks][1]][1] [![this is how i want to be][2]][2] launching the dialog [CODE] | android|kotlin|fragment|dialogfragment | 0 | 2020-01-27T11:52:25.450Z | 2,020 | 1 | 11 | 0 | 68 | 2 | 237 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
59,930,632 | Navigation Stack Destroyed after onResume()? | <p>I'm having a odd experience with the onResume() in my app</p>
<p>Here's a small Screen recording(not sure how to post it here)
<a href="https://vimeo.com/387615558?ref=em-share" rel="nofollow noreferrer">https://vimeo.com/387615558?ref=em-share</a></p>
<p>Here is a Sample project to Recreate the Issue
<a href="ht... | I'm having a odd experience with the onResume() in my app Here's a small Screen recording(not sure how to post it here) https://vimeo.com/387615558?ref=em-share Here is a Sample project to Recreate the Issue https://github.com/Lirian21/SampleApp I get breakpoints to stop and I get the Method to run but for some reason,... | c#|xamarin.forms|android-lifecycle | 2 | 2020-01-27T11:52:26.493Z | 2,020 | 1 | 11 | 0 | 313 | 1 | 1,215 | 44 | 3 | 4 | true | false | false | false | false | false | low |
59,930,633 | Not able to receive FCM push notifications on android with correct google-services.json file | <p>I'm using the right google-services.json file but unable to receive notifications. It was working fine before. I tried with Postman but it says mismatchSenderID. I checked and verified each and everything is correct but still not receiving Push Notification. Any help will be appreciated.</p> | I'm using the right google-services.json file but unable to receive notifications. It was working fine before. I tried with Postman but it says mismatchSenderID. I checked and verified each and everything is correct but still not receiving Push Notification. Any help will be appreciated. | android|firebase|push-notification|firebase-cloud-messaging | 3 | 2020-01-27T11:52:30.303Z | 2,020 | 1 | 11 | 0 | 448 | 1 | 288 | 92 | 4 | 0 | false | false | false | false | false | false | low |
59,930,666 | How to use retrofit to transfer parameters in parameters? | <p>On the site jsonschema2pojo described the data that I need to transfer.
Using retrofit forward json body. I don’t understand how to <strong>put</strong> the data in the <strong>Delivery class?</strong></p>
<p>The request body itself is as follows:</p>
<pre><code>{
"phone": "",
"delivery":
{
"lat" : "",
"lon" :... | On the site jsonschema2pojo described the data that I need to transfer. Using retrofit forward json body. I don’t understand how to put the data in the Delivery class? The request body itself is as follows: [CODE] Making a request. [CODE] Pojo: NewOrderRequest Model [CODE] Pojo : Delivery Model [CODE] Can someone pleas... | android|retrofit2 | 0 | 2020-01-27T11:54:36.123Z | 2,020 | 1 | 11 | 0 | 37 | 1 | 351 | 57 | 2 | 4 | true | false | false | false | false | false | zero |
59,930,674 | Id problem with Gson and Room in android (Sending json to client) | <p>I have a problem with Gson and Room with id!
I send data with json(library Gson and JSON) to client (Android app) with Room database implementation , I send client data to android with ids look like :</p>
<pre><code>{"map":{"date":"2020-01-15 15:13:42.0","botType":1,"botName":"ds","id":62,"userId":1,"accountKey":"d... | I have a problem with Gson and Room with id! I send data with json(library Gson and JSON) to client (Android app) with Room database implementation , I send client data to android with ids look like : [CODE] and I need save exactly save with id in client database but the room generate a new id for this object, what can... | android|gson|android-room | 2 | 2020-01-27T11:55:24.327Z | 2,020 | 1 | 11 | 0 | 173 | 1 | 632 | 65 | 3 | 4 | true | false | false | false | false | false | low |
59,930,691 | IBM Worklight's JSonStore doesn't work on React Native | <p>I want to use IBM Worklight JSONStore in my React Native application. Although I follow the instructions in <a href="https://www.npmjs.com/package/react-native-ibm-mobilefirst" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-ibm-mobilefirst</a> and <a href="https://www.npmjs.com/package/react-na... | I want to use IBM Worklight JSONStore in my React Native application. Although I follow the instructions in https://www.npmjs.com/package/react-native-ibm-mobilefirst and https://www.npmjs.com/package/react-native-ibm-mobilefirst-jsonstore web links, run-android When I run the command, I get the following error. Since ... | android|react-native|ibm-mobilefirst|jsonstore | 0 | 2020-01-27T11:56:24.993Z | 2,020 | 1 | 11 | 0 | 120 | 0 | 535 | 54 | 4 | 1 | true | true | false | false | false | false | zero |
59,930,846 | Start a Service without loading UI using JobScheduler | <p>I have built an Application that sends some data to a Server. I am using a Job Scheduler Service that starts this service needed for the Application. It works fine when the Application is in Foreground or Background. But once the Application is Killed, the JobScheduler works fine but it is unable to start the servic... | I have built an Application that sends some data to a Server. I am using a Job Scheduler Service that starts this service needed for the Application. It works fine when the Application is in Foreground or Background. But once the Application is Killed, the JobScheduler works fine but it is unable to start the service t... | android|android-studio|android-service|android-jobscheduler|android-background | 1 | 2020-01-27T12:06:02.657Z | 2,020 | 1 | 12 | 0 | 188 | 0 | 559 | 53 | 5 | 0 | false | true | false | false | false | false | low |
59,930,862 | Main activity exits when requested for permission | <p>I have a splash activity as my main activity which requests some permissions or finishes(If some circumstances are satisfied). The problem is when I run app on my <code>OnePlus</code> phone with android 9 it works totally fine but when I run it on my <code>Samsung galaxy s5</code> with android 6.0.1 (I think is bett... | I have a splash activity as my main activity which requests some permissions or finishes(If some circumstances are satisfied). The problem is when I run app on my OnePlus phone with android 9 it works totally fine but when I run it on my Samsung galaxy s5 with android 6.0.1 (I think is better to be noted that has root ... | java|android | 0 | 2020-01-27T12:07:31.347Z | 2,020 | 1 | 12 | 0 | 140 | 0 | 770 | 49 | 2 | 2 | true | true | false | false | false | false | zero |
59,930,972 | PID: 12181 java.util.ConcurrentModificationException | <p>I am working on shopping application, If I add one product to cart then add another product to cart, and if I again add first product to cart two products with same name were added to cart, I am trying to modify same product by adding quantity and rate of new product to original.</p>
<pre><code> if (allselectedV... | I am working on shopping application, If I add one product to cart then add another product to cart, and if I again add first product to cart two products with same name were added to cart, I am trying to modify same product by adding quantity and rate of new product to original. [CODE] I am getting ConcurrentModificat... | android|kotlin|arraylist | 0 | 2020-01-27T12:14:12.827Z | 2,020 | 1 | 12 | 0 | 34 | 0 | 370 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
59,931,090 | Android crash on activity start in com.google.android.gms.measurement.internal | <p>I have Firebase Crashlytics in my app, and recently I started receive strange crashes somewhere in <code>com.google.android.gms.measurement.internal.</code></p>
<p>Crashes spread evenly on Os levels and devices and only their common feature in "Proximity On"<br>
according to Firebase.</p>
<p>Maybe this is correlat... | I have Firebase Crashlytics in my app, and recently I started receive strange crashes somewhere in com.google.android.gms.measurement.internal. Crashes spread evenly on Os levels and devices and only their common feature in "Proximity On" according to Firebase. Maybe this is correlated somehow with update to com.google... | android|firebase|firebase-performance | 2 | 2020-01-27T12:21:27.203Z | 2,020 | 1 | 12 | 0 | 422 | 0 | 457 | 78 | 3 | 1 | true | true | false | false | false | false | low |
59,931,125 | FirebaseInstanceId.Instance.Token is depricated and returns null in Xamarin.Android using Xamarin.Firebase.Messaging | <p>I'm working on a Xamarin.Android project using <a href="https://www.nuget.org/packages/Xamarin.Firebase.Messaging/71.1740.0" rel="noreferrer">Xamarin.Firebase.Messaging v71.1740</a> nuget plugin,</p>
<p>I'm trying to get the FCM Token that was already generated in the <code>FirebaseMessagingService</code> extended ... | I'm working on a Xamarin.Android project using Xamarin.Firebase.Messaging v71.1740 nuget plugin, I'm trying to get the FCM Token that was already generated in the FirebaseMessagingService extended class method, [CODE] using, [CODE] But this returns null and it listed as obsolete too. | xamarin|xamarin.forms|xamarin.android|firebase-cloud-messaging | 10 | 2020-01-27T12:23:34.953Z | 2,020 | 1 | 12 | 0 | 8,242 | 3 | 284 | 116 | 4 | 2 | true | false | true | false | true | false | medium |
59,931,327 | java.util.concurrent.ExecutionException: com.google.gson.JsonSyntaxException: 2020-01-15 15:13:42.0 | <p>I send data with Gson and convert the JSON to object with Gson Library.</p>
<p><strong>JSON Data</strong> - </p>
<pre><code>{
"map":{
"date":"2020-01-15 15:13:42.0",
"botType":1,
"botName":"ds",
"id":62,
"userId":1,
"accountKey":"dcab171a-b6cc-4583-b5fc-3e996100725a",
"... | I send data with Gson and convert the JSON to object with Gson Library. JSON Data - [CODE] and data Convert class is : [CODE] I have problem with get data from server in android and error like that : [CODE] the sender Code : [CODE] | java|android|gson | 2 | 2020-01-27T12:37:35.307Z | 2,020 | 1 | 12 | 0 | 252 | 2 | 231 | 99 | 3 | 4 | true | false | false | false | false | false | low |
59,931,335 | SDK manager Android studio 3.5.3 | <p>hello I just install Android studio 3.5.3 for Mac and I want to install google repository and Google USB but I can not find them in SDK Manager </p>
<p><a href="https://i.stack.imgur.com/9Btut.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Btut.png" alt="enter image description here"></a></p>
... | hello I just install Android studio 3.5.3 for Mac and I want to install google repository and Google USB but I can not find them in SDK Manager thank you | android|android-studio|sdk | 1 | 2020-01-27T12:38:02.360Z | 2,020 | 1 | 12 | 0 | 470 | 1 | 153 | 32 | 3 | 0 | false | false | false | false | false | false | low |
59,931,397 | Rect native exactly same header on ios and android? | <p>I'm working on a reactnative project and i have to make 2 apps with exactly same topbar on ios and android
Is it possible ? Even if it's not a native header
Or maybe i have to custom android topbar so that seems same than ios ?</p>
<p>Thanks in advance!
Maxime</p> | I'm working on a reactnative project and i have to make 2 apps with exactly same topbar on ios and android Is it possible ? Even if it's not a native header Or maybe i have to custom android topbar so that seems same than ios ? Thanks in advance! Maxime | android|ios|react-native | 0 | 2020-01-27T12:41:40.997Z | 2,020 | 1 | 12 | 0 | 451 | 1 | 253 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
59,931,606 | NativeScript Google Maps Api - Google Maps appearing too small | <p>I am writing an app with NativeScript v6 and Angular 8.</p>
<p>tns --version
6.1.2</p>
<p>I am using <a href="https://github.com/dapriett/nativescript-google-maps-sdk" rel="nofollow noreferrer">this plugin</a> to try to display Google Maps.</p>
<p>The map appears and no errors are thrown but the map is too small ... | I am writing an app with NativeScript v6 and Angular 8. tns --version 6.1.2 I am using this plugin to try to display Google Maps. The map appears and no errors are thrown but the map is too small and I can't see the markers. Here is my code snippet: component: [CODE] template: [CODE] | android|google-maps|nativescript | 0 | 2020-01-27T12:54:30.083Z | 2,020 | 1 | 12 | 0 | 469 | 1 | 284 | 62 | 3 | 2 | true | false | false | false | false | false | zero |
59,931,629 | App can't open with React Native 0.57.7 and 64bit arm architecture. 32 bit working fine | <p><strong>React Native app can't open with RN 0.57.7 and 64bit arm architecture.</strong> 32 bit working fine. and also <code>gradlew bundleRelease</code> can't create bundle file.</p>
<p><code>react-native run-android</code> running successfully but app can't open. here is my build gradle file:</p>
<pre><code>split... | React Native app can't open with RN 0.57.7 and 64bit arm architecture. 32 bit working fine. and also gradlew bundleRelease can't create bundle file. react-native run-android running successfully but app can't open. here is my build gradle file: [CODE] if splits and applicationVariants i'll update only 32 bit arm archit... | android|react-native | 0 | 2020-01-27T12:55:52.750Z | 2,020 | 1 | 12 | 0 | 357 | 1 | 443 | 87 | 2 | 1 | true | false | false | false | false | false | zero |
59,931,704 | Circular Reveal Activity Transition (Wrong Position) | <p>I want to switch between activities from android application. I thought the best option in this was circular revereaal animation. After some research I found some resources. It works very well but I want it to open exactly where I press the button. The transition animation opens from the center and top of the screen... | I want to switch between activities from android application. I thought the best option in this was circular revereaal animation. After some research I found some resources. It works very well but I want it to open exactly where I press the button. The transition animation opens from the center and top of the screen. I... | java|android|animation|android-activity | 1 | 2020-01-27T13:01:04.750Z | 2,020 | 1 | 13 | 0 | 330 | 0 | 456 | 52 | 4 | 4 | true | true | false | false | false | false | low |
59,931,783 | How to pre populate a image for taking picture in camera using Appium | <p>How can we automate the below scenario in Appium, where I need to take picture manually from the camera and then the app renders the image whether the image taken is right identity or not. how to prepopulate the images for this case instead of manually taking the picture.</p> | How can we automate the below scenario in Appium, where I need to take picture manually from the camera and then the app renders the image whether the image taken is right identity or not. how to prepopulate the images for this case instead of manually taking the picture. | android|selenium|appium|appium-android|appium-desktop | 1 | 2020-01-27T13:06:36.880Z | 2,020 | 1 | 13 | 0 | 155 | 0 | 272 | 69 | 5 | 0 | false | true | false | false | false | false | low |
59,931,786 | How to continuously run a task in background and foreground? | <p>I am running a function in the background but I would like to keep running it when I come to the foreground without restarting. Is that possible in the first place?
I am doing that in RN (android).</p>
<p>Below I am posting the code from BackgroundService code
<strong>Edit:</strong></p>
<pre><code>public class Ba... | I am running a function in the background but I would like to keep running it when I come to the foreground without restarting. Is that possible in the first place? I am doing that in RN (android). Below I am posting the code from BackgroundService code Edit: [CODE] } | android|react-native|background-process | 0 | 2020-01-27T13:06:39.953Z | 2,020 | 1 | 13 | 0 | 653 | 1 | 268 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
59,931,818 | Flutter: Dropdown value is not getting selected | <p>I am developing an app with a <code>dropdown</code>. Below is my code. I have removed the UI design code to isolate the <code>dropdown</code> section itself.</p>
<pre><code>class ShoppingCartUIState extends State<ShoppingCartUI> {
final _formKey = GlobalKey<FormState>();
String _checkoutDropdownValu... | I am developing an app with a dropdown . Below is my code. I have removed the UI design code to isolate the dropdown section itself. [CODE] The issue is when I change the dropdown item, the new value never get selected. The previously selected value is always displayed. However since i am using a print when dropdown is... | android|ios|flutter|mobile | 0 | 2020-01-27T13:08:33.373Z | 2,020 | 1 | 13 | 0 | 54 | 2 | 387 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
59,931,835 | Testing Transaction queries of Room in `runBlockingTest` | <p>How can I test <code>Transaction</code> database operation, <code>insertItineraries</code> for Room? </p>
<p><strong>Error</strong></p>
<blockquote>
<p>java.lang.IllegalStateException: This job has not completed yet</p>
<p>at
kotlinx.coroutines.JobSupport.getCompletionExceptionOrNull(JobSupport.kt:1188)
... | How can I test Transaction database operation, insertItineraries for Room? Error java.lang.IllegalStateException: This job has not completed yet at kotlinx.coroutines.JobSupport.getCompletionExceptionOrNull(JobSupport.kt:1188) at kotlinx.coroutines.test.TestBuildersKt.runBlockingTest(TestBuilders.kt:53) at kotlinx.coro... | android|unit-testing|testing|android-room|kotlin-coroutines | 5 | 2020-01-27T13:09:25.857Z | 2,020 | 1 | 13 | 0 | 1,427 | 1 | 702 | 56 | 5 | 3 | true | false | false | false | false | false | low |
59,932,093 | success is false from server | <p>Hi in the below code success is false from server while parsing json data.status code is 200 and created.</p>
<p><code>Login Modules</code> class contains list of strings and <code>GetModuleList</code> contains a list of strings but in the modules is an array it contains a list of objects </p>
<p><strong>LoginModu... | Hi in the below code success is false from server while parsing json data.status code is 200 and created. Login Modules class contains list of strings and GetModuleList contains a list of strings but in the modules is an array it contains a list of objects LoginModules.java: [CODE] } GetLoginModuleList.java: [CODE] Get... | java|android | -1 | 2020-01-27T13:25:55.677Z | 2,020 | 1 | 13 | 0 | 86 | 1 | 416 | 28 | 2 | 6 | true | false | false | false | false | true | negative |
59,932,215 | How to add button in recyclerview GridView Android Studio | <p><a href="https://i.stack.imgur.com/BbjJ0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BbjJ0.png" alt=""></a>This layout is a model, not production. I'm a beginner and study it myself. It's difficult to understand. What should the layout be? </p> | This layout is a model, not production. I'm a beginner and study it myself. It's difficult to understand. What should the layout be? | java|android | 0 | 2020-01-27T13:32:26.143Z | 2,020 | 1 | 13 | 0 | 68 | 0 | 132 | 57 | 2 | 0 | false | true | false | false | false | false | zero |
59,932,333 | WebRTC crash AbstractMethodError due to the method onTrack in the PeerConnection Observer | <p>I use Intel webRtc. Connection is successful but this error occurs when the call is started and click on publish button.</p>
<blockquote>
<p>java.lang.AbstractMethodError: abstract method "void
org.webrtc.PeerConnection$Observer.onTrack(org.webrtc.RtpTransceiver)"</p>
<p>E/rtc: Fatal error in:
gen/sdk/andr... | I use Intel webRtc. Connection is successful but this error occurs when the call is started and click on publish button. java.lang.AbstractMethodError: abstract method "void org.webrtc.PeerConnection$Observer.onTrack(org.webrtc.RtpTransceiver)" E/rtc: Fatal error in: gen/sdk/android/generated_base_jni/jni/../... | java|android|webrtc | 4 | 2020-01-27T13:39:07.113Z | 2,020 | 1 | 13 | 0 | 998 | 1 | 481 | 89 | 3 | 0 | false | false | false | false | false | false | low |
59,932,366 | ANR during executing SystemJobService | <p>I am getting the following ANR in my app (after about 30 or more hours running), more details about the app:</p>
<ol>
<li>playing videos with repeat</li>
<li>Keep screen on all time</li>
<li>at the background there is file downloader service (below its usage 0.1%)</li>
<li>background service to ping to our server e... | I am getting the following ANR in my app (after about 30 or more hours running), more details about the app: playing videos with repeat Keep screen on all time at the background there is file downloader service (below its usage 0.1%) background service to ping to our server every 5 minutes some job workers to do some s... | java|android|kotlin|service|android-anr-dialog | 2 | 2020-01-27T13:41:15.527Z | 2,020 | 1 | 13 | 0 | 1,655 | 0 | 511 | 37 | 5 | 3 | true | true | false | false | false | false | low |
59,932,447 | Protected method not accessible from subclass | <p>I know this has been asked before but my problem is strange and I couldn't find an answer.</p>
<p>I have a parent class where a member is declared protected</p>
<pre><code>class BaseContoller<G: BaseContract.BasePresenter, F: BaseModel> {
protected var presenter: G? = null
// ...
}
</code></pre>
<p>... | I know this has been asked before but my problem is strange and I couldn't find an answer. I have a parent class where a member is declared protected [CODE] In each of BaseController 's descendants, I refer to presenter with no problem as it is accessible in the same package and subclasses. One BaseController 's descen... | android|kotlin|protected|access-modifiers|class-visibility | 4 | 2020-01-27T13:45:37.537Z | 2,020 | 1 | 13 | 0 | 143 | 0 | 897 | 45 | 5 | 4 | true | true | false | false | false | false | low |
59,932,478 | Change decimal separator on Android | <p>I am running the following in my Android application: </p>
<pre><code>LocaleData data = LocaleData.get(desiredLocale);
</code></pre>
<p>to get the decimal separator.</p>
<p>Currently the variable <code>desiredLocale = 'es'</code> and returns the decimal separator as "," How can I get to get the decimal separator ... | I am running the following in my Android application: [CODE] to get the decimal separator. Currently the variable desiredLocale = 'es' and returns the decimal separator as "," How can I get to get the decimal separator "."? | java|android|android-studio|kotlin | 0 | 2020-01-27T13:47:49.067Z | 2,020 | 1 | 13 | 0 | 535 | 1 | 223 | 35 | 4 | 1 | true | false | false | false | false | false | zero |
59,932,499 | how to create a new activity template in android studio | <p>I am trying to create a new activity template to save time when I add an activity to my android studios project.
I have essentially cloned the code for basic activity as I want the following to be true:</p>
<ul>
<li>split activity/content layout files.</li>
<li>inclusion of toolbar code</li>
<li>inclusion of my own... | I am trying to create a new activity template to save time when I add an activity to my android studios project. I have essentially cloned the code for basic activity as I want the following to be true: split activity/content layout files. inclusion of toolbar code inclusion of my own java code template which have been... | android|android-studio|android-layout|android-xml | 1 | 2020-01-27T13:49:15.087Z | 2,020 | 1 | 13 | 0 | 788 | 1 | 844 | 55 | 4 | 0 | false | false | false | false | false | false | low |
59,932,565 | Maximo Anywhere asset barcode scanning issue | <p>We have installed Maximo Anywhere 7.6.3 apps in Android tablets and we are trying to test Barcode scanning feature for Asset data manager app and asset audit apps.</p>
<p>In our organization we have some assets naming starts with equal sign and if we scan the barcode of an asset we are getting a value with equal "=... | We have installed Maximo Anywhere 7.6.3 apps in Android tablets and we are trying to test Barcode scanning feature for Asset data manager app and asset audit apps. In our organization we have some assets naming starts with equal sign and if we scan the barcode of an asset we are getting a value with equal "=" symbol. F... | android|ibm-mobilefirst|barcode|maximo|maximo-anywhere | 0 | 2020-01-27T13:53:29.010Z | 2,020 | 1 | 13 | 0 | 325 | 1 | 710 | 44 | 5 | 0 | false | false | false | false | false | false | zero |
59,932,586 | How to keep connection up and running, even when the application is closed (How do messaging applications like Whatsapp implement this?)? | <p>I want to receive notifications on my android application and for that i need a connection between the server and android. I have written this code in an Activity which calls a Service. I am receiving notifications as long as the Application is running and even if it in running in the Background.</p>
<p>But once I ... | I want to receive notifications on my android application and for that i need a connection between the server and android. I have written this code in an Activity which calls a Service. I am receiving notifications as long as the Application is running and even if it in running in the Background. But once I manually cl... | android|push-notification | 0 | 2020-01-27T13:54:56.097Z | 2,020 | 1 | 13 | 0 | 23 | 0 | 651 | 137 | 2 | 2 | true | true | false | false | false | false | zero |
59,932,606 | How to intercept back buttons xamarin forms? | <p>How can I intercept the back button events in xamarin forms for Android and IOS and be able to show the user an alert to confirm the exit?</p>
<p>The objective is to intercept the 2 buttons, the navigation menu (yellow) and the device (orange)</p>
<p>I have seen some examples, but they are several years old. </p>
... | How can I intercept the back button events in xamarin forms for Android and IOS and be able to show the user an alert to confirm the exit? The objective is to intercept the 2 buttons, the navigation menu (yellow) and the device (orange) I have seen some examples, but they are several years old. I am using VS 2019 and t... | c#|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 6 | 2020-01-27T13:56:19.137Z | 2,020 | 1 | 13 | 0 | 3,798 | 1 | 391 | 44 | 5 | 0 | false | false | true | false | false | false | medium |
59,932,675 | My app works fine on Android 9 but Keeps Crashing on Android 10 | <p>Here is the Manifest file, the app works fine on all versions below android 9 but keeps stopping on android 10. </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
</code></pre>
<p></p>
<pre><code><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android... | Here is the Manifest file, the app works fine on all versions below android 9 but keeps stopping on android 10. [CODE] [CODE] ERROR-LOGCAT 2020-01-28 17:59:44.502 1684-1684/? E/shops.nicofood: Unknown bits set in runtime_flags: 0x8000 2020-01-28 17:59:45.028 1684-1684/? E/FirebaseInstanceId: Failed to start service whi... | android|crash|android-10.0 | 1 | 2020-01-27T14:01:20.213Z | 2,020 | 1 | 14 | 0 | 1,062 | 1 | 4,435 | 63 | 3 | 2 | true | false | false | false | false | false | low |
59,932,696 | Change images automatically and count appeared image | <p>I have a list of image URLs and have to show them and change them automatically in ImageView and need to count how many times every image appears to the user. </p>
<p>What could be the best approach to do this? can we avoid handlers here? </p> | I have a list of image URLs and have to show them and change them automatically in ImageView and need to count how many times every image appears to the user. What could be the best approach to do this? can we avoid handlers here? | android|mobile|imageview | 0 | 2020-01-27T14:02:31.020Z | 2,020 | 1 | 14 | 0 | 89 | 1 | 230 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
59,932,908 | My app is installed but not showing or running | <p>I cleared all the bugs... Recently before running this app it was showing <strong>"No default activity found"</strong> I changed configuration to <strong>"Nothing"</strong> & also added Android Manifest.xml file.</p>
<p>After successful build, Emulator shows app in settings>>app management.</p>
<p>But,</p>
<p... | I cleared all the bugs... Recently before running this app it was showing "No default activity found" I changed configuration to "Nothing" & also added Android Manifest.xml file. After successful build, Emulator shows app in settings>>app management. But, There is nothing in Apps Menu. Even I tried manually installing ... | android | 0 | 2020-01-27T14:16:47.113Z | 2,020 | 1 | 14 | 0 | 41 | 0 | 421 | 46 | 1 | 0 | false | true | false | false | false | false | zero |
59,933,003 | Link to home screen widget selector via Intent | <p>I have created an app widget for my app and now I want to tell my users about it by linking to the home screen widget selector from the settings screen of my app. </p>
<p>Is that even possible? I couldn't find a matching Intent action in the documentation.</p> | I have created an app widget for my app and now I want to tell my users about it by linking to the home screen widget selector from the settings screen of my app. Is that even possible? I couldn't find a matching Intent action in the documentation. | android|android-appwidget | 0 | 2020-01-27T14:22:43.993Z | 2,020 | 1 | 14 | 0 | 28 | 0 | 248 | 46 | 2 | 0 | false | true | false | false | false | false | zero |
59,933,042 | One Plus devices biometric prompt is dismissed after first failed | <p>I am using <a href="https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt" rel="noreferrer">BiometricPrompt</a> on my app. When I am trying to use on OnePlus devices and validate the fingerprint with another finger that is not enrolled on the OS, it will trigger the <code>onAuthenticati... | I am using BiometricPrompt on my app. When I am trying to use on OnePlus devices and validate the fingerprint with another finger that is not enrolled on the OS, it will trigger the onAuthenticationFailed() callback and the biometricPrompt will be dismissed. This happen at first try. Is it possible to let the user to f... | biometrics|android-fingerprint-api|android-biometric-prompt|oneplus6t|oneplus7 | 5 | 2020-01-27T14:24:59.950Z | 2,020 | 1 | 14 | 0 | 192 | 0 | 550 | 65 | 5 | 0 | false | true | false | false | false | false | low |
59,933,134 | Delphi Android getConfiguredNetworks | <p>I am trying to get the List of Saved Networks , and only delete the one with Specific SSID .
This is what I did till now :</p>
<pre><code>procedure TMainScreen.Button4Click(Sender: TObject);
var obj: JObject;
WifiMgr : JWifiManager;
Networks : JList;
i : integer;
begin
obj := TAndroidHelper.Context.g... | I am trying to get the List of Saved Networks , and only delete the one with Specific SSID . This is what I did till now : [CODE] This gets the List of Networks, but I have no idea how can I access say Configuration 1 SSID . I found following example on Stackoverflow . But I am having a hard time understanding/converti... | android|delphi | 0 | 2020-01-27T14:29:42.147Z | 2,020 | 1 | 14 | 0 | 155 | 1 | 362 | 36 | 2 | 2 | true | false | false | false | false | false | zero |
59,933,168 | Is an indefinite Snackbar a viable option for progress indication? | <p>As Android developers, we should avoid using <code>ProgressDialog</code> as it is now deprecated.</p>
<p>From general UI/UX perspective: is it a good idea to use an indefinite <code>Snackbar</code> for progress indication?
Also, what do material guidelines say about it?</p>
<p>Would love to hear your opinion on th... | As Android developers, we should avoid using ProgressDialog as it is now deprecated. From general UI/UX perspective: is it a good idea to use an indefinite Snackbar for progress indication? Also, what do material guidelines say about it? Would love to hear your opinion on this, as well as some use case examples where i... | android|user-interface|material-design|user-experience | 0 | 2020-01-27T14:31:29.853Z | 2,020 | 1 | 14 | 0 | 131 | 0 | 359 | 66 | 4 | 0 | false | true | false | false | false | false | zero |
59,933,234 | HttpClient.SendAsync throws ObjectDisposedException on Xamarin.Forms Android but not on UWP | <p>I'm writing a Xamarin.Forms application and I'm trying to do a Post to my webserver with some JSON payload.</p>
<p>This works fine in UWP, but on Android I get the following error:</p>
<pre><code> System.ObjectDisposedException: Can not access a closed Stream.
at System.IO.StreamHelpers.ValidateCopyToArgs (Syste... | I'm writing a Xamarin.Forms application and I'm trying to do a Post to my webserver with some JSON payload. This works fine in UWP, but on Android I get the following error: [CODE] This happens when the following code is executed: [CODE] I found this site where it recommends not putting the creation of the HttpClient i... | android|xamarin|xamarin.forms|dotnet-httpclient | 1 | 2020-01-27T14:35:17.817Z | 2,020 | 1 | 14 | 0 | 732 | 2 | 658 | 91 | 4 | 2 | true | false | false | false | false | false | low |
59,933,263 | How to check array of Pending Intents in Espresso? | <p>I know how to check single intent using:</p>
<pre><code>Intents.intended(IntentMatchers.hasComponent(Activity::class.java.name))
</code></pre>
<p>I need to check an array of intents, any help is appreciated. </p> | I know how to check single intent using: [CODE] I need to check an array of intents, any help is appreciated. | android|kotlin|android-intent|android-espresso|android-pendingintent | 1 | 2020-01-27T14:36:59.563Z | 2,020 | 1 | 14 | 0 | 102 | 0 | 109 | 50 | 5 | 1 | true | true | false | false | false | false | low |
59,933,362 | Management API error: persistentPreferredActivities 4 | <p>I am building an Android KIOSK app, and I try to enable kiosk mode with Android Management API by providing a device policy. </p>
<p>My policy json is:</p>
<pre><code> {
"keyguardDisabled": true,
"applications": [
{
"packageName": "my.own.app",
... | I am building an Android KIOSK app, and I try to enable kiosk mode with Android Management API by providing a device policy. My policy json is: [CODE] What's interesting, the policy is from official API's example, so I suppose that works. Whatever, always get this error: Error info persistentPreferredActivities 4 And j... | android|kiosk|kiosk-mode|device-policy-manager|android-management-api | 3 | 2020-01-27T14:43:38.520Z | 2,020 | 1 | 14 | 0 | 1,815 | 2 | 1,235 | 53 | 5 | 1 | true | false | false | false | false | false | low |
59,933,403 | Is there a way to include i + 1 in a for loop within a broadcast class function? | <p>I'm trying to loop through a string array containing numbers and parse these values into an integer collection, displaying the return value into a broadcast e.g. "A work from ---, returned value" .</p>
<p>I've split the string into a string array with <code>.split(',')</code> and attempted to loop through this arra... | I'm trying to loop through a string array containing numbers and parse these values into an integer collection, displaying the return value into a broadcast e.g. "A work from ---, returned value" . I've split the string into a string array with .split(',') and attempted to loop through this array while parsing the stri... | java|android|arrays|parsing|broadcastreceiver | 1 | 2020-01-27T14:46:21.087Z | 2,020 | 1 | 14 | 0 | 60 | 1 | 895 | 80 | 5 | 3 | true | false | false | false | false | false | low |
59,933,404 | Error in Building a nearby places app using Androidx / Android Studio 3.5.3 | <p>when I create the app I receive the following error in the Logcat:</p>
<pre><code>2020-01-27 16:45:34.247 20798-20798/com.example.mtcloseby E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.mtcloseby, PID: 20798
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.and... | when I create the app I receive the following error in the Logcat: [CODE] | android|google-maps|androidx|google-nearby | 1 | 2020-01-27T14:46:25.010Z | 2,020 | 1 | 14 | 0 | 42 | 1 | 73 | 75 | 4 | 1 | true | false | false | false | false | false | low |
59,933,440 | Camera onActivityResult : resultCode is RESULT_CANCELED | <p>I am new to Java and Android but I have an app that should take a picture from the camera and save it as a file. I can start the camera and take a picture but in onActivityResult the resultCode is always RESULT_CANCELED (0). First I had an android.os.FileUriExposedException error but I followed this blog and the pro... | I am new to Java and Android but I have an app that should take a picture from the camera and save it as a file. I can start the camera and take a picture but in onActivityResult the resultCode is always RESULT_CANCELED (0). First I had an android.os.FileUriExposedException error but I followed this blog and the proble... | java|android|camera | 0 | 2020-01-27T14:48:28.620Z | 2,020 | 1 | 14 | 0 | 2,056 | 1 | 655 | 55 | 3 | 2 | true | false | false | false | false | false | zero |
59,933,503 | How to make different button open different activities? | <p>I am working on my first app that needs a few windows. I made six buttons but al of them open the same activity. How to fix that? Sorry for the messy code I am just beginning. Also, a few tips on how to make my code tidier would also help.<br>
This is my code: </p>
<pre><code>public class MainActivity extends AppCo... | I am working on my first app that needs a few windows. I made six buttons but al of them open the same activity. How to fix that? Sorry for the messy code I am just beginning. Also, a few tips on how to make my code tidier would also help. This is my code: [CODE] | android | 0 | 2020-01-27T14:52:22.517Z | 2,020 | 1 | 14 | 0 | 40 | 1 | 263 | 55 | 1 | 1 | true | false | false | false | false | false | zero |
59,933,648 | How to get data from dialog after i dismiss it? | <p>I have tried to get data from a dialog into a textview but i get the error that the app can t see the textview, because textview is behind dialog...
after i click on button this will appear</p>
<pre><code>backpackDialog = new Dialog(MainActivity.this);
backpackDialog.setTitle("Backpack");
backpackDialog.setContent... | I have tried to get data from a dialog into a textview but i get the error that the app can t see the textview, because textview is behind dialog... after i click on button this will appear [CODE] how can i go after i dismiss the dialog to restart activity or something like that to refresh my main activity layout so th... | java|android|dialog | 0 | 2020-01-27T15:00:21.340Z | 2,020 | 1 | 15 | 0 | 205 | 1 | 443 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
59,933,724 | Altbeacon can't find beacons on Samsung S8 when location is turned off since 2.16.2 | <p>I am building an Android app that scans two types of beacon each second using the android-beacon-library:</p>
<ul>
<li>iBeacon type</li>
<li>custom beacon type</li>
</ul>
<p>I am using the library since the 2.10 release and everything works fine.</p>
<p>But, when I try to implement the 2.16.2, 2.16.3 and 2.16.4 r... | I am building an Android app that scans two types of beacon each second using the android-beacon-library: iBeacon type custom beacon type I am using the library since the 2.10 release and everything works fine. But, when I try to implement the 2.16.2, 2.16.3 and 2.16.4 releases on my Samsung S8 (which is running on And... | android|bluetooth-lowenergy|beacon|altbeacon | 0 | 2020-01-27T15:04:33.477Z | 2,020 | 1 | 15 | 0 | 389 | 1 | 611 | 83 | 4 | 0 | false | false | false | false | false | false | zero |
59,933,731 | When are static fields initialized? | <p>When are static fields initialized? If I never instantiate a class, but I access a static field, are ALL the static blocks and private static methods used to instantiate private static fields called (in order) at that instant? or when app is started?</p> | When are static fields initialized? If I never instantiate a class, but I access a static field, are ALL the static blocks and private static methods used to instantiate private static fields called (in order) at that instant? or when app is started? | java|android | 0 | 2020-01-27T15:04:47.467Z | 2,020 | 1 | 15 | 0 | 67 | 1 | 250 | 35 | 2 | 0 | false | false | false | false | false | false | zero |
59,933,732 | How to exit app from login while logout from the app using navigation component? | <p>Below is my code;</p>
<p><strong>navigation.xml</strong></p>
<pre><code> <fragment android:id="@+id/HomeFragment"
android:label="Home Screen">
<action
android:id="@+id/action_activeRefillDeviceFragment_to_loginFragment"
app:destination="@id/loginFragment"
... | Below is my code; navigation.xml [CODE] Logout button click event; [CODE] | android|kotlin|android-jetpack|android-jetpack-navigation | 0 | 2020-01-27T15:04:54.557Z | 2,020 | 1 | 15 | 0 | 1,169 | 1 | 73 | 80 | 4 | 2 | true | false | false | false | false | false | zero |
59,933,745 | Where to store complex data in the navigation-based application | <p>I have an app that has a lot of data that I need between the pages, such as:
design settings, user parameters, scanner access, printer queue, multiple things that got calculated and formed on one page and will be used on the others.</p>
<p>The general idea of the app is: you quickly select options or input data on ... | I have an app that has a lot of data that I need between the pages, such as: design settings, user parameters, scanner access, printer queue, multiple things that got calculated and formed on one page and will be used on the others. The general idea of the app is: you quickly select options or input data on each page a... | java|android|navigation|components|viewmodel | 0 | 2020-01-27T15:05:40.663Z | 2,020 | 1 | 15 | 0 | 30 | 1 | 2,060 | 63 | 5 | 0 | false | false | false | false | false | false | zero |
59,933,792 | App crash crash if button clicked at start but not if clicked after Seekbar moved | <p>This is my first question but as a learner, I read often to find solutions to problems.
So, I am following a tutorial on Android using Java. The challenge is creating a Timer to cook an egg.
I was able to manage everything so far:
- created a <code>seekBar</code> to set the time;
- moving the <code>seekBar</code> e... | This is my first question but as a learner, I read often to find solutions to problems. So, I am following a tutorial on Android using Java. The challenge is creating a Timer to cook an egg. I was able to manage everything so far: - created a seekBar to set the time; - moving the seekBar edit the TextView to show the t... | java|android|nullpointerexception | -2 | 2020-01-27T15:08:06.313Z | 2,020 | 1 | 15 | 0 | 50 | 1 | 1,123 | 81 | 3 | 2 | true | false | false | false | false | true | negative |
59,933,911 | Is it possible to generate an APK file from a base64String API response call? | <p>I'm currently working on a solution how to update and install APK file programmatically - very similar like <a href="https://stackoverflow.com/a/26293449/12083845">this</a> issue. My app <strong>doesn't use</strong> Google Services. </p>
<p>For updating purposes, APK-files with ascending versions are stored on an ... | I'm currently working on a solution how to update and install APK file programmatically - very similar like this issue. My app doesn't use Google Services. For updating purposes, APK-files with ascending versions are stored on an internal server and a C# Web service returns the latest version of the APK file. I do this... | android|web-services|kotlin|apk | 0 | 2020-01-27T15:15:35.557Z | 2,020 | 1 | 15 | 0 | 510 | 2 | 984 | 77 | 4 | 2 | true | false | false | false | false | false | zero |
59,933,968 | How do i attach fragments using on options item selected using menu items | <p>Hello am having a menu layout that has a menu item. The menu item has an item with action view class which is supposed to attach a fragment on click. How do i get to attach the AccountManagementFragment when use clicks on the action_account menu item using action view class of the menu item</p>
<p>My menu item layo... | Hello am having a menu layout that has a menu item. The menu item has an item with action view class which is supposed to attach a fragment on click. How do i get to attach the AccountManagementFragment when use clicks on the action_account menu item using action view class of the menu item My menu item layout [CODE] M... | android|android-fragments|menuitem | 1 | 2020-01-27T15:19:27.520Z | 2,020 | 1 | 15 | 0 | 439 | 1 | 408 | 73 | 3 | 3 | true | false | false | false | false | false | low |
59,934,065 | Live wallpaper is not accessible from other Live Wallpaper apps | <p>I have developed a live wallpaper app and it is accessible only from Google's Live wallpaper app, but there are phones like Xiaomi, Oppo which has their own wallpaper app and My app doesn't show in their wallpaper section. Can anyone help me fix this problem or redirect me to an idea to fix this?</p>
<p>This is My ... | I have developed a live wallpaper app and it is accessible only from Google's Live wallpaper app, but there are phones like Xiaomi, Oppo which has their own wallpaper app and My app doesn't show in their wallpaper section. Can anyone help me fix this problem or redirect me to an idea to fix this? This is My Wallpaper.x... | java|android|wallpaper|live-wallpaper|android-wallpaper | 5 | 2020-01-27T15:24:16.387Z | 2,020 | 1 | 15 | 0 | 159 | 0 | 412 | 63 | 5 | 3 | true | true | false | false | false | false | low |
59,934,137 | Data Binding Not Working On Dialog - why? | <p>I'm new in android, and I try to get a detail of data from a recycleview. After you click an item from the list, it will show you the detail of that item. It works perfectly when I use normal method (R.findview) but when I use data binding, it doesn't show any detail on the dialog.</p>
<p>Pojo Class :</p>
<pre><co... | I'm new in android, and I try to get a detail of data from a recycleview. After you click an item from the list, it will show you the detail of that item. It works perfectly when I use normal method (R.findview) but when I use data binding, it doesn't show any detail on the dialog. Pojo Class : [CODE] This is how I ini... | java|android | 0 | 2020-01-27T15:28:05.667Z | 2,020 | 1 | 15 | 0 | 426 | 1 | 588 | 41 | 2 | 4 | true | false | false | false | false | false | zero |
59,934,349 | How to specify the layerStack for a VirtualDisplay created by DisplayManager? | <p>According to android's official document:
<a href="https://source.android.com/devices/graphics/layers-displays#virtual-displays" rel="nofollow noreferrer">virtual displays</a></p>
<blockquote>
<p>Virtual displays may share the same set of layers as the main display (the layer stack) or have their own set. </p>
</... | According to android's official document: virtual displays Virtual displays may share the same set of layers as the main display (the layer stack) or have their own set. It is known that DisplayManager.createVirtualDisplay() can create a virtual display. But it seems it always has the same layer stack with primary disp... | android|android-windowmanager|surfaceflinger|android-displaymanager | 1 | 2020-01-27T15:40:24.313Z | 2,020 | 1 | 15 | 0 | 315 | 0 | 382 | 77 | 4 | 0 | false | true | false | false | false | false | low |
59,934,359 | Preventing access to setting at startup when using COSU | <p>We have created a COSU application using the method descried here: <a href="https://snow.dog/blog/kiosk-mode-android" rel="nofollow noreferrer">HOW TO TURN YOUR ANDROID APPLICATION INTO A KIOSK</a>. We need a way to compeletly prevent the phone users from accessing anything but apps we authorize. It works very well ... | We have created a COSU application using the method descried here: HOW TO TURN YOUR ANDROID APPLICATION INTO A KIOSK . We need a way to compeletly prevent the phone users from accessing anything but apps we authorize. It works very well but have one problem: when the phone reboots, for a few seconds before our app star... | android|statusbar|cosu | 0 | 2020-01-27T15:40:50.183Z | 2,020 | 1 | 15 | 0 | 35 | 0 | 789 | 55 | 3 | 0 | false | true | false | false | false | false | zero |
59,934,403 | Camera surface preview gives multiple errors on multiple devices | <p><strong>The Problem:</strong></p>
<p>In using the camera on the device, I'm getting a number of errors. I have looked over many answers here on StackOverflow and I have tried many solutions to no avail. I'm not sure what the problem is. I have tried this on two different devices and I'm getting the same errors. ... | The Problem: In using the camera on the device, I'm getting a number of errors. I have looked over many answers here on StackOverflow and I have tried many solutions to no avail. I'm not sure what the problem is. I have tried this on two different devices and I'm getting the same errors. This is failing on multiple dev... | java|android|camera|android-camera | 1 | 2020-01-27T15:43:30.143Z | 2,020 | 1 | 15 | 0 | 60 | 0 | 1,744 | 64 | 4 | 2 | true | true | false | false | false | false | low |
59,934,461 | Who is a good practice to build an Application? | <p>I'm recently started programming in Android Studio with Java, i don't have enough Knowledge in Building Mobile Applications.
So, my question is, if making a Class of methods for the logic of the application or make the methods in Activity Label.
Or if anyone experienced can give me a good advice.</p> | I'm recently started programming in Android Studio with Java, i don't have enough Knowledge in Building Mobile Applications. So, my question is, if making a Class of methods for the logic of the application or make the methods in Activity Label. Or if anyone experienced can give me a good advice. | android | -4 | 2020-01-27T15:47:10.517Z | 2,020 | 1 | 15 | 0 | 41 | 1 | 297 | 47 | 1 | 0 | false | false | false | false | false | true | negative |
59,934,506 | How to display placelikelihood on map? | <pre><code>List<Place.Field> placeFields = Arrays.asList(Place.Field.NAME, Place.Field.LAT_LNG);
// Use the builder to create a FindCurrentPlaceRequest.
FindCurrentPlaceRequest request =
FindCurrentPlaceRequest.newInstance(placeFields);
// Call findCurrentPlace and handle the response (first c... | [CODE] I want to display all these places on the map using a marker or anything alternatively existing: [CODE] | java|android|google-maps|google-places-api|google-places | 1 | 2020-01-27T15:49:11.050Z | 2,020 | 1 | 15 | 0 | 151 | 1 | 110 | 38 | 5 | 2 | true | false | false | false | false | false | low |
59,934,547 | Xamarin Android Converting Java.Nio.Buffer to byte[] (or any other array/string) | <p>I'm currently stuck trying to convert a Java.Nio.ByteBuffer to an array or a string in a Xamarin Android App.</p>
<pre><code>byte[] outputBytes = new byte[16];
Java.Nio.Buffer outputBuffer = ByteBuffer.Wrap(outputBytes);
//... filling buffer (using tflite model)
byte[] bufferBytes = ???
</code></pre>
<p>How can I ... | I'm currently stuck trying to convert a Java.Nio.ByteBuffer to an array or a string in a Xamarin Android App. [CODE] How can I get the content of the buffer? Apparently there is a function like buffer.array() , but it doesn't work here. So if anyone has an idea how i can make this work or any other way, help would be r... | java|c#|android|xamarin|tensorflow-lite | 1 | 2020-01-27T15:51:32.570Z | 2,020 | 1 | 15 | 0 | 612 | 0 | 338 | 80 | 5 | 1 | true | true | false | false | false | false | low |
59,934,629 | Passing data from a Pop up back to its Parent | <p>The parent class activity consists of adapters and recycler views. Using one of the adapters the one click is set for images. If an image is clicked it opens a pop-up and the pop have some sliders and text fields. And the pop-up will collect data from users.</p>
<p>Now I need this data, not in the adapter class but ... | The parent class activity consists of adapters and recycler views. Using one of the adapters the one click is set for images. If an image is clicked it opens a pop-up and the pop have some sliders and text fields. And the pop-up will collect data from users. Now I need this data, not in the adapter class but I need it ... | java|android|performance|android-fragments | 0 | 2020-01-27T15:57:02.160Z | 2,020 | 1 | 15 | 0 | 37 | 1 | 547 | 45 | 4 | 0 | false | false | false | false | false | false | zero |
59,934,851 | Is better way to make main layout than copy paste? | <p>As in title I'm not sure that my way to make main layout is good, because I need 10 objects like that one below. Is better way than copy paste it 10 times and then change all ids? With 4 these obejcts i have over 380 lines. </p>
<p>how does it should look</p>
<p><a href="https://i.stack.imgur.com/XhDue.png" rel="n... | As in title I'm not sure that my way to make main layout is good, because I need 10 objects like that one below. Is better way than copy paste it 10 times and then change all ids? With 4 these obejcts i have over 380 lines. how does it should look [CODE] Anybody knows how to resolve that problem? I would be appreciated | android|android-layout | 2 | 2020-01-27T16:09:54.337Z | 2,020 | 1 | 16 | 0 | 49 | 1 | 320 | 50 | 2 | 1 | true | false | false | false | false | false | low |
59,934,898 | getting null value for GoogleApiclient in fragment? | <p>Here is my code. I am getting null in googleapiclient.</p>
<pre><code>public class MapsActivity extends Fragment implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, com.google.android.gms.location.LocationListener, AdapterView.OnItemClickListener, DriverLi... | Here is my code. I am getting null in googleapiclient. [CODE] I am getting null here: [CODE] The first time it is not going to the current location and I am getting null googleapiclient, and on move marker, I am fetching address in starting I am not getting current location. | java|android|google-maps|location | 1 | 2020-01-27T16:12:03.233Z | 2,020 | 1 | 16 | 0 | 32 | 0 | 275 | 51 | 4 | 2 | true | true | false | false | false | false | low |
59,934,923 | Qsettings works for 32bit apk but does'nt create file in my 64bit apk | <p>I'm working on an IOS/android app built with QtCreator. For Android, I need both 32 and 64 bit versions of the APK to be able to upload it to the Playstore.
My 32 bit version works perfectly fine but my 64bit version doesn't save any configuration.
I'm using Qsettings to create a .conf file. When I do it with the 32... | I'm working on an IOS/android app built with QtCreator. For Android, I need both 32 and 64 bit versions of the APK to be able to upload it to the Playstore. My 32 bit version works perfectly fine but my 64bit version doesn't save any configuration. I'm using Qsettings to create a .conf file. When I do it with the 32 bi... | android|qt|32bit-64bit|qsettings | 0 | 2020-01-27T16:14:02.673Z | 2,020 | 1 | 16 | 0 | 49 | 1 | 799 | 69 | 4 | 1 | true | false | false | false | false | false | zero |
59,934,926 | Am I being billed on each Firebase Authentication instance? | <p>I have many activities in my app that require the user to undergo Firebase Authentication. For example in the home activity and numerous other activities:</p>
<pre><code>FirebaseAuthentication.getInstance().getCurrentUser();
</code></pre>
<p>If they have been authenticated when they first open the app are they bei... | I have many activities in my app that require the user to undergo Firebase Authentication. For example in the home activity and numerous other activities: [CODE] If they have been authenticated when they first open the app are they being authenticated again when they start a new activity within the app? Am I being bill... | android|firebase|firebase-authentication | 1 | 2020-01-27T16:14:16.473Z | 2,020 | 1 | 16 | 0 | 82 | 2 | 492 | 59 | 3 | 1 | true | false | false | false | false | false | low |
59,935,157 | What's the use of CollapsingToolbarLayout's toolbarId attribute? | <p>What is <code>CollapsingToolbarLayout</code>'s <code>toolbarId</code> for? I can't find any description in Google and my AppBarLayout/CollapsingToolbarLayout works properly without it.</p> | What is CollapsingToolbarLayout 's toolbarId for? I can't find any description in Google and my AppBarLayout/CollapsingToolbarLayout works properly without it. | android-layout|material-design|android-toolbar|android-collapsingtoolbarlayout|android-appbarlayout | 0 | 2020-01-27T16:27:45.083Z | 2,020 | 1 | 16 | 0 | 143 | 1 | 159 | 64 | 5 | 0 | false | false | false | false | false | false | zero |
59,935,226 | Kotlin passing variable number of arguments to function | <p>Google Maps has a function that allows you to pass any number of arguments to it. But I don't know how many arguments I want to pass in up front :(</p>
<p>Currently my code looks like this. It has arguments added in, but this is hardcoded. I want this to be variable. How can I do this in Kotlin?</p>
<pre><code... | Google Maps has a function that allows you to pass any number of arguments to it. But I don't know how many arguments I want to pass in up front :( Currently my code looks like this. It has arguments added in, but this is hardcoded. I want this to be variable. How can I do this in Kotlin? [CODE] Something like this? [C... | android|kotlin | 0 | 2020-01-27T16:31:25.760Z | 2,020 | 1 | 16 | 0 | 107 | 1 | 350 | 55 | 2 | 2 | true | false | false | false | false | false | zero |
59,935,406 | Gradle android native libs conflict error: More than one file was found with OS independent path | <p>I have a problem with a Gradle dependency conflict.
The Gradle error is:</p>
<blockquote>
<p>More than one file was found with OS independent path 'lib/arm64-v8a/libavcodec.so'</p>
</blockquote>
<p>After some tests, I found that 2 of my project dependencies use ffmpeg libs.</p>
<p>I know that I can use <code>pa... | I have a problem with a Gradle dependency conflict. The Gradle error is: More than one file was found with OS independent path 'lib/arm64-v8a/libavcodec.so' After some tests, I found that 2 of my project dependencies use ffmpeg libs. I know that I can use packageOptions with exclude or pickFirst but I don't know if the... | android|gradle | 4 | 2020-01-27T16:42:43.163Z | 2,020 | 1 | 16 | 0 | 744 | 0 | 483 | 96 | 2 | 0 | false | true | false | false | false | false | low |
59,935,449 | Update textview using Place Autocomplete's onActivityResult by following MVVM | <p>I am trying to set up a dialogfragment with a textview, and once clicked, use an intent to launch the autocomplete activity. When a place is selected, the textview shows the address.</p>
<p>In onCreateDialog, I have the following code</p>
<pre><code>binding.dialogLocationText.setOnClickListener {
val fields =
... | I am trying to set up a dialogfragment with a textview, and once clicked, use an intent to launch the autocomplete activity. When a place is selected, the textview shows the address. In onCreateDialog, I have the following code [CODE] Because the textview is accessed through databinding, I can't access it directly in o... | android|kotlin|mvvm|autocomplete|onactivityresult | 2 | 2020-01-27T16:45:10.837Z | 2,020 | 1 | 16 | 0 | 137 | 0 | 662 | 77 | 5 | 2 | true | true | false | false | false | false | low |
59,935,463 | What exactly does layout_scrollFlags = "snapMargins" do? | <p>I've read the documentation of this attribute: </p>
<blockquote>
<p>An additional flag to be used with 'snap'. If set, the view will be snapped to its top and bottom margins, as opposed to the edges of the view itself.</p>
</blockquote>
<p><a href="https://developer.android.com/reference/com/google/android/mater... | I've read the documentation of this attribute: An additional flag to be used with 'snap'. If set, the view will be snapped to its top and bottom margins, as opposed to the edges of the view itself. https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#scroll_flag_snap... | android-layout|material-design|android-toolbar|android-collapsingtoolbarlayout|android-appbarlayout | 1 | 2020-01-27T16:46:03.993Z | 2,020 | 1 | 16 | 0 | 788 | 2 | 514 | 56 | 5 | 0 | false | false | false | false | false | false | low |
59,935,468 | Let suspend function not return anything | <p>Consider this class: </p>
<pre><code>class TestViewModel(private val interactor: LoginInteractor) : ViewModel() {
private val _loading = MutableLiveData<Boolean>().apply { value = false }
val loading: LiveData<Boolean> = _loading
fun loginClicked() {
viewModelScope.launch {
... | Consider this class: [CODE] and the test: [CODE] When asserting that the value of loading is true , it actually isn't, obviously. When we worked with RxJava, the LoginInteractor would have looked like: [CODE] and in the test, we could have done [CODE] to test the state of the ViewModel at the moment of logging in; how ... | android|unit-testing|kotlin|coroutine|kotlin-coroutines | 1 | 2020-01-27T16:46:21.727Z | 2,020 | 1 | 16 | 0 | 532 | 1 | 508 | 40 | 5 | 4 | true | false | false | false | false | false | low |
59,935,488 | Recycler Adapter callback nullpointer | <p>i have recycler adapter like this</p>
<pre><code>public class ShopUsersAdapter extends RecyclerView.Adapter<ShopUsersAdapter.MyViewHolder> implements View.OnClickListener {
private List<ShopUsersRecyclerModel> user_list;
private Context context;
private AdminCheckLocActivity activity;
private AdapterC... | i have recycler adapter like this [CODE] but i get error NullPointer at [CODE] my activity code; [CODE] and i implement this like ; implements ShopUsersAdapter.AdapterCallback userInfo data is not null, i check this. but i need this callback all of my recyclers please help me. | java|android|android-recyclerview | 0 | 2020-01-27T16:47:37.267Z | 2,020 | 1 | 16 | 0 | 409 | 1 | 277 | 37 | 3 | 3 | true | false | false | false | false | false | zero |
59,935,520 | redo button has never worked in android studios? | <p>i have found that android studios has never contained any way of 'redoing' a text edit (the opposite of ctrl+z)?
the option exists in the menu/ toolbar but is greyed out. it always has been and it has never functioned.
to test, i have created a clean, empty project, typed in the java class, moved the cursor to else... | i have found that android studios has never contained any way of 'redoing' a text edit (the opposite of ctrl+z)? the option exists in the menu/ toolbar but is greyed out. it always has been and it has never functioned. to test, i have created a clean, empty project, typed in the java class, moved the cursor to elsewher... | android|android-studio|android-studio-3.0|android-ide | 2 | 2020-01-27T16:49:57.723Z | 2,020 | 1 | 16 | 0 | 92 | 1 | 749 | 48 | 4 | 0 | false | false | false | false | false | false | low |
59,935,696 | How to enqueue Coroutines viewModelScope job after GlobalScope one | <p>I have an application scope function which requests access token from a server like so</p>
<pre><code>fun getToken() {
GlobalScope.launch {
...
val response = webservice.getToken().awaitResponse()
//save token
}
}
</code></pre>
<p>Also I have functions in repositories which request ... | I have an application scope function which requests access token from a server like so [CODE] Also I have functions in repositories which request data from the server and which are launched from view models like so [CODE] How do I make it that data requests are sent only if there is access token available? The only thi... | android|kotlin|kotlin-coroutines | 0 | 2020-01-27T17:01:35.497Z | 2,020 | 1 | 17 | 0 | 203 | 1 | 537 | 66 | 3 | 3 | true | false | false | false | false | false | zero |
59,935,781 | Ionic4 build android | <p>I would like build my ionic app for android but i have an error.</p>
<pre><code>Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\masmas\AppData\Local\Android\sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or o... | I would like build my ionic app for android but i have an error. [CODE] | android|ionic-framework|build|ionic4 | 0 | 2020-01-27T17:06:58.057Z | 2,020 | 1 | 17 | 0 | 130 | 1 | 71 | 20 | 4 | 1 | true | false | false | false | false | false | zero |
59,935,941 | cannot display image from link with widget | <p>I have a activity widget there's a image view in it.
I tried to import a picture inside it through a link , and i tested everything. The link doesn't have a problem.
The code is good and has no problems.
The problem doesn't show a picture inside Image View.
I need the right adjustments to show the picture from the l... | I have a activity widget there's a image view in it. I tried to import a picture inside it through a link , and i tested everything. The link doesn't have a problem. The code is good and has no problems. The problem doesn't show a picture inside Image View. I need the right adjustments to show the picture from the link... | java|android|widget | 1 | 2020-01-27T17:18:42.590Z | 2,020 | 1 | 17 | 0 | 23 | 0 | 361 | 42 | 3 | 1 | true | true | false | false | false | false | low |
59,936,023 | Not understanding RxJava MaybeObserver (chat notification not working) | <p>I'm very new to Java, android and Rxjava. I recently noticed that in an existing project (not written by me) a chat notification that is supposed to be received isn't received. Thus I started to do some tracing. Below is part of the code.</p>
<p>Note: Notifications that do get received seems to always go to <code>o... | I'm very new to Java, android and Rxjava. I recently noticed that in an existing project (not written by me) a chat notification that is supposed to be received isn't received. Thus I started to do some tracing. Below is part of the code. Note: Notifications that do get received seems to always go to onSuccess in the f... | java|android|rx-java | 0 | 2020-01-27T17:25:05.930Z | 2,020 | 1 | 17 | 0 | 172 | 1 | 1,535 | 70 | 3 | 3 | true | false | false | false | false | false | zero |
59,936,107 | My application crashes due to the calling of (activateNotificationsMessages) function | <p>At first i call the getUserMatchId() from my main, it works perfectly on its own but then when i added the activateNotificationsMessages() function it started to crash. I tried commenting out the activateNotifications function and it worked normally, maybe this is because i call a childeventlistener within a childev... | At first i call the getUserMatchId() from my main, it works perfectly on its own but then when i added the activateNotificationsMessages() function it started to crash. I tried commenting out the activateNotifications function and it worked normally, maybe this is because i call a childeventlistener within a childevent... | java|android|firebase|android-studio|firebase-realtime-database | 0 | 2020-01-27T17:31:17.483Z | 2,020 | 1 | 17 | 0 | 52 | 1 | 1,388 | 85 | 5 | 1 | true | false | false | false | false | false | zero |
59,936,127 | "Invalid field path" error while fetching image from url in firestore database | <p>I am trying to fetch an image from Firestore Database to my android applcation.The image url is stored in a collection named "Gestures".And the collection has documents each consisting of image url.When I am trying to fetch the image url its showing "Invalid field path" error.But what other url can I use?
The databa... | I am trying to fetch an image from Firestore Database to my android applcation.The image url is stored in a collection named "Gestures".And the collection has documents each consisting of image url.When I am trying to fetch the image url its showing "Invalid field path" error.But what other url can I use? The database ... | android|google-cloud-firestore | 0 | 2020-01-27T17:32:23.337Z | 2,020 | 1 | 17 | 0 | 139 | 2 | 388 | 78 | 2 | 1 | true | false | false | false | false | false | zero |
59,936,203 | How to set swipe gesture to the entire activity in Android Studio (Scroll Views issues) | <p>Here are the relevant pieces of code that I have. Swiping works, but only when swiped on the background of the activity. Most of the space of my activities are taken by the listviews, or textviews and they seem to be "in the way" when swiping. In other words if there was nothing in my activity it would work just fin... | Here are the relevant pieces of code that I have. Swiping works, but only when swiped on the background of the activity. Most of the space of my activities are taken by the listviews, or textviews and they seem to be "in the way" when swiping. In other words if there was nothing in my activity it would work just fine, ... | android|gesture | 1 | 2020-01-27T17:37:36.763Z | 2,020 | 1 | 17 | 0 | 166 | 0 | 730 | 87 | 2 | 2 | true | true | false | false | false | false | low |
59,936,296 | How do I call the context correctly to start an Activity | <p>Since I experienced crashes of this genre:</p>
<blockquote>
<p>Calling startActivity() from outside of an Activity context requires
the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?</p>
</blockquote>
<p>I started wondering of the right usage of the context for a startActivity-Intent.</p>
<p>This... | Since I experienced crashes of this genre: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? I started wondering of the right usage of the context for a startActivity-Intent. This was my Kotlin-Code (Activity -> Activity): [CODE] which I ... | android|kotlin|android-intent|android-context | 2 | 2020-01-27T17:43:14.420Z | 2,020 | 1 | 17 | 0 | 275 | 2 | 694 | 56 | 4 | 2 | true | false | false | false | false | false | low |
59,936,437 | android pip mode and activity navigation | <p>I have a media player activity and I enter pip mode.
When video is playing on pip mode, if I navigate to other pages within app say from navigation drawer, other pages(activities) gets loaded on pip mode. I want to navigate to any pages within app when a video is playing pip mode. Any idea to solve this?</p> | I have a media player activity and I enter pip mode. When video is playing on pip mode, if I navigate to other pages within app say from navigation drawer, other pages(activities) gets loaded on pip mode. I want to navigate to any pages within app when a video is playing pip mode. Any idea to solve this? | android|android-picture-in-picture | 2 | 2020-01-27T17:53:48.043Z | 2,020 | 1 | 17 | 0 | 319 | 1 | 305 | 40 | 2 | 0 | false | false | false | false | false | false | low |
59,936,441 | Sceneform ARCore load and build a random 3D asset | <p>I have a method that builds and spawns a 3D asset in an AR environment. The 3D asset is .sfb file stored in the metadata folder. I have multiple 3D assets in the metadata folder, and I wish to have an asset selected at random when this function is called. This is the code I have for spawning a specific asset:</p>
<... | I have a method that builds and spawns a 3D asset in an AR environment. The 3D asset is .sfb file stored in the metadata folder. I have multiple 3D assets in the metadata folder, and I wish to have an asset selected at random when this function is called. This is the code I have for spawning a specific asset: [CODE] Th... | java|android|random|arcore|sceneform | 0 | 2020-01-27T17:54:18.643Z | 2,020 | 1 | 17 | 0 | 75 | 1 | 485 | 49 | 5 | 1 | true | false | false | false | false | false | zero |
59,936,503 | Can Firebase Messaging Service be a scalable replacement to websockets / server sent events? | <p>I am developing a webapp and currently my app server uses Server Sent Events to maintain a connection to the user to efficiently push things like new messages and other events to them without them having to constantly poll the server to ask.</p>
<p>I'm looking for a way to implement Push Notifications such that I c... | I am developing a webapp and currently my app server uses Server Sent Events to maintain a connection to the user to efficiently push things like new messages and other events to them without them having to constantly poll the server to ask. I'm looking for a way to implement Push Notifications such that I can use the ... | javascript|android|firebase|web-applications|websocket | 1 | 2020-01-27T17:59:23.713Z | 2,020 | 1 | 17 | 0 | 1,322 | 1 | 1,594 | 92 | 5 | 0 | false | false | false | false | false | false | low |
59,936,611 | Nested Scroll with Recycler View and AppBar | <p>I'd like to achieve the flow like gmail<a href="https://i.stack.imgur.com/XDIWP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XDIWP.png" alt="enter image description here"></a></p>
<p>i've tried this so far</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlay... | I'd like to achieve the flow like gmail i've tried this so far [CODE] Appbar hides while scroll up but doesnt appear on scroll down until its completely scrolled down. I'd like to achieve the flow like gmail, where the recyclerView is match_parent and it appears behind the toolbar when scrolled up, and toolbar hides/un... | android|xml|android-layout|android-recyclerview|android-nestedscrollview | 1 | 2020-01-27T18:07:11.847Z | 2,020 | 1 | 18 | 0 | 457 | 1 | 406 | 43 | 5 | 1 | true | false | false | false | false | false | low |
59,936,621 | Android - Nested Handler / Runnable | <p>My application content part had too much code. There were about 3000 lines of XML code. This caused my application to startup slowly. (launch in about 8 seconds) I placed the content in 6 viewstub objects. and I created a lot of handlers. Is it a problem? Is it hierarchically correct? How can I do all these handler ... | My application content part had too much code. There were about 3000 lines of XML code. This caused my application to startup slowly. (launch in about 8 seconds) I placed the content in 6 viewstub objects. and I created a lot of handlers. Is it a problem? Is it hierarchically correct? How can I do all these handler ope... | java|android|performance | 1 | 2020-01-27T18:07:56.407Z | 2,020 | 1 | 18 | 0 | 208 | 1 | 415 | 35 | 3 | 1 | true | false | false | false | false | false | low |
59,936,627 | how to ignore recordings while showing only .mp3 songs of external storage in listview of music player app android | <p>//code is perfect but I don't want calls or recordings to show here what should be modified..?</p>
<pre><code>private void display() {
final ArrayList<File> arrayList= findsongsfromdirectory(Environment.getExternalStorageDirectory());
item = new String[arrayList.size()];
for(int i=0... | //code is perfect but I don't want calls or recordings to show here what should be modified..? [CODE] As you can see i got all mp3 format audios including recorded calls but I only want songs of the format not recordings | android|android-music-player | 0 | 2020-01-27T18:08:26.997Z | 2,020 | 1 | 18 | 0 | 50 | 1 | 220 | 114 | 2 | 1 | true | false | false | false | false | false | zero |
59,936,649 | Error - com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.project_sewing.Event1 | <p>I get this error - "com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.project_sewing.Event1" on the bold title.
I create an app for queue management, I have a map of string(the phone number) and the ArrayList of all events.</p>
<pre><code> m... | I get this error - "com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.project_sewing.Event1" on the bold title. I create an app for queue management, I have a map of string(the phone number) and the ArrayList of all events. [CODE] Here is the Event1: [CODE... | java|android|firebase|android-studio|compiler-errors | 0 | 2020-01-27T18:10:44.610Z | 2,020 | 1 | 18 | 0 | 293 | 1 | 351 | 143 | 5 | 3 | true | false | false | false | false | false | zero |
59,936,812 | Android Studio using old versions of gradle libraries | <p>I'm dealing with a really odd issue with an old project. I changed the camera library used in the project and that library was using an updated version of google maps. Previously we were using 7.5.0 but since the camera library was using 17.0.0 I updated the project's google maps library to 17.0.0 as well.</p>
<p>R... | I'm dealing with a really odd issue with an old project. I changed the camera library used in the project and that library was using an updated version of google maps. Previously we were using 7.5.0 but since the camera library was using 17.0.0 I updated the project's google maps library to 17.0.0 as well. Running the ... | android|android-studio|gradle | 0 | 2020-01-27T18:23:46.213Z | 2,020 | 1 | 18 | 0 | 200 | 1 | 1,619 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
59,936,834 | Multidex, Proguard and Firebase | <p>When I add Firebase Auth and Database to my project, the following problem arises:</p>
<pre><code> FATAL EXCEPTION: main Process: com.myapp, PID: 4024 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find cla... | When I add Firebase Auth and Database to my project, the following problem arises: [CODE] And so the app closes, I searched the internet and saw that it might be Multidex, but I tried to add Multidex and the following error occurred: [CODE] This is my gradle file: [CODE] As stated in some forums, it is necessary for th... | android|firebase|proguard|androidx|android-multidex | 0 | 2020-01-27T18:25:28.207Z | 2,020 | 1 | 18 | 0 | 194 | 1 | 600 | 31 | 5 | 5 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.