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,949,793
Why can't i see my JSON question in my text view?
<p>For a feedback app, I need to display a different question with multiple posibility-answers a day, from a Json File that has an array of questions, the questions have to be randomly displayed on the screen, one a day. I loaded the file from Assets, everything works fine butt the question won't appear. Below is my Ja...
For a feedback app, I need to display a different question with multiple posibility-answers a day, from a Json File that has an array of questions, the questions have to be randomly displayed on the screen, one a day. I loaded the file from Assets, everything works fine butt the question won't appear. Below is my Java ...
java|android|json
0
2020-01-28T13:25:10.840Z
2,020
1
13
1
73
0
355
49
3
1
true
true
false
false
false
false
zero
59,949,861
DIfferent Objects in recyclerview
<p>Good morning, I need to make a list with different classes of object and list them in this single recycler view. Such as: Recycler products and i need to list potatos, bananas and milk. Obviously they are different objects.</p> <p>I don't know how to do that, because of the method onBindViewHolder. I need to get th...
Good morning, I need to make a list with different classes of object and list them in this single recycler view. Such as: Recycler products and i need to list potatos, bananas and milk. Obviously they are different objects. I don't know how to do that, because of the method onBindViewHolder. I need to get the item from...
java|android|list|android-recyclerview
0
2020-01-28T13:29:00.730Z
2,020
1
13
1
147
2
656
33
4
0
false
false
false
false
false
false
zero
59,949,943
Firebase stacktrace does not show where in the code the problem is occuring
<p>Consider below crash in Firebase:</p> <p>Unable to add window token android.os.BinderProxy is not valid; is your activity running? <a href="https://i.stack.imgur.com/Hhqxm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hhqxm.png" alt="enter image description here"></a></p> <p>This crash occurs ...
Consider below crash in Firebase: Unable to add window token android.os.BinderProxy is not valid; is your activity running? This crash occurs in ViewRootImpl.java . However, Firebase doesn't reference a part in my own code. How do I know where in my code this is happening?
android|firebase|kotlin|crashlytics
2
2020-01-28T13:32:44.507Z
2,020
1
13
1
227
3
273
75
4
0
false
false
false
false
false
false
low
59,949,949
Converting private class from Kotlin to Java via bytecode
<p>When the Kotlin code is compiled into Java byte code what happens with private class. I ask it, because private classes are absent in Java. </p>
When the Kotlin code is compiled into Java byte code what happens with private class. I ask it, because private classes are absent in Java.
java|android|kotlin
1
2020-01-28T13:32:56.887Z
2,020
1
13
1
87
1
139
57
3
0
false
false
false
false
false
false
low
59,949,967
Convert String to Float or Int in KOTLIN
<p>I need to convert app version to <code>Int</code> or <code>Float</code> for comparison. I am using the following syntax, but it throws <code>java.lang.NumberFormatException</code>.</p> <pre><code>val currentVersion = BuildConfig.VERSION_NAME.toFloat() </code></pre> <p><strong>Edit:</strong> What if I need to conve...
I need to convert app version to Int or Float for comparison. I am using the following syntax, but it throws java.lang.NumberFormatException . [CODE] Edit: What if I need to convert "2.2" to float?
android|kotlin
-1
2020-01-28T13:34:03.417Z
2,020
1
13
1
2,537
3
197
40
2
1
true
false
false
false
false
true
negative
59,950,054
Why isn't the TextView moving to the right?
<p>Why isn't the text moving to the right?</p> <pre><code>&lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentBelow="true" android:text="happy birthday" /&gt; </code></pre>
Why isn't the text moving to the right? [CODE]
android|android-layout|android-xml
1
2020-01-28T13:38:10.560Z
2,020
1
13
1
64
2
46
43
3
1
true
false
false
false
false
false
low
59,950,087
how to show textviews on the left and imageview on the right side?
<p>I am developing android app and I want to show full texts on the left side and imageview on the right side but textviews not fitting all screen and imageview not showing at all</p> <p>below my xml where I have implemented view logic with constrainlayout below my xml where I have implemented view logic with constrai...
I am developing android app and I want to show full texts on the left side and imageview on the right side but textviews not fitting all screen and imageview not showing at all below my xml where I have implemented view logic with constrainlayout below my xml where I have implemented view logic with constrainlayout [CO...
android|kotlin|android-recyclerview|android-constraintlayout
0
2020-01-28T13:39:46.713Z
2,020
1
13
1
257
2
323
66
4
1
true
false
false
false
false
false
zero
59,950,264
How to test preference settings in Robolectric?
<p>I want to test change email in my Android app. I use Robolectric 4.3.1.</p> <p>I have class that loads fragment with preferences.</p> <pre><code>public class ApplicationPreferencesActivity extends AppCompatActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedIns...
I want to test change email in my Android app. I use Robolectric 4.3.1. I have class that loads fragment with preferences. [CODE] fragment_container: [CODE] In SettingsFragment I load EditTextPreference with email. [CODE] prefs: [CODE] I added class to check, if preference is displayed. [CODE] Above code generates belo...
android|automated-tests|android-espresso|android-preferences|robolectric
0
2020-01-28T13:48:32.800Z
2,020
1
13
1
384
0
511
47
5
8
true
true
false
false
false
false
zero
59,950,270
Converting a timestamp to relative time
<p>I want convert <strong><code>timestamp</code> to relative time</strong> using <code>Java</code> in <code>Android</code> like <strong><code>Facebook</code></strong>. I'm using <code>android.text.format.DateUtils.getRelativeTimeSpanString()</code> but not getting expected result.</p> <p>My code : </p> <pre><code>pub...
I want convert timestamp to relative time using Java in Android like Facebook . I'm using android.text.format.DateUtils.getRelativeTimeSpanString() but not getting expected result. My code : [CODE] Results : [CODE] Expected results : [CODE]
java|android|timestamp
1
2020-01-28T13:48:36.853Z
2,020
1
13
1
620
2
240
39
3
3
true
false
false
false
false
false
low
59,950,397
Retrofit2/ Gson null values are not skipped when DEFAULT_SERIALIZE_NULLS value is used
<p>I am running into some unknown error. This breaks my assumption of null-safety with Kotlin data class and Api responses.</p> <p>Say, I have a data class say <code>Person</code>:</p> <pre><code> data class Person(val name: String) { constructor() : this("") } </code></pre> <p>This will generate an object Perso...
I am running into some unknown error. This breaks my assumption of null-safety with Kotlin data class and Api responses. Say, I have a data class say Person : [CODE] This will generate an object Person with default name value i.e. non-null. Earlier, When I use a default retrofit client with GsonConverterFactory.create(...
android|json|kotlin|gson|retrofit2
5
2020-01-28T13:56:01.813Z
2,020
1
13
1
1,220
1
1,068
86
5
1
true
false
false
false
false
false
low
59,950,406
Appium - Unable to create a new remote session
<p>I am still trying to learn how to automate my testing processes. i got stuck here. I' ve checked the system variables configurations which seemed ok.</p> <p>JDK 13.0.2 Maven 7.3.0 Android 9 Java 8</p> <p>i am trying to install an application to an android device. i could not find what am i missing? </p> <p><stron...
I am still trying to learn how to automate my testing processes. i got stuck here. I' ve checked the system variables configurations which seemed ok. JDK 13.0.2 Maven 7.3.0 Android 9 Java 8 i am trying to install an application to an android device. i could not find what am i missing? Error on appium [CODE] Error on Ec...
android|automated-tests|appium|appium-android
2
2020-01-28T13:56:26.147Z
2,020
1
13
1
3,081
0
374
46
4
4
true
true
true
false
false
false
low
59,950,423
Use startActivityForResult from class to activity
<p>Couldn't find a good answer for this. I have a class(no opened from MainActivity. There I want to call startActivityForResult, to know when to do something on the UI. How do I do it correctly? I passed the activity and context to the class. On class:</p> <pre><code>private void init(){ Intent TestIntent = n...
Couldn't find a good answer for this. I have a class(no opened from MainActivity. There I want to call startActivityForResult, to know when to do something on the UI. How do I do it correctly? I passed the activity and context to the class. On class: [CODE] On MainActivity: [CODE]
android|android-intent|android-activity|startactivityforresult
0
2020-01-28T13:57:08.790Z
2,020
1
13
1
229
3
281
49
4
2
true
false
false
false
false
false
zero
59,950,520
How can I convert Tensor into Bitmap on PyTorch Mobile?
<p>I found that solution (<a href="https://itnext.io/converting-pytorch-float-tensor-to-android-rgba-bitmap-with-kotlin-ffd4602a16b6" rel="nofollow noreferrer">https://itnext.io/converting-pytorch-float-tensor-to-android-rgba-bitmap-with-kotlin-ffd4602a16b6</a>) but when I tried to convert that way I found that the siz...
I found that solution ( https://itnext.io/converting-pytorch-float-tensor-to-android-rgba-bitmap-with-kotlin-ffd4602a16b6 ) but when I tried to convert that way I found that the size of inputTensor.dataAsFloatArray is more than bitmap.width*bitmap.height . How works converting tensor to float array or is there any othe...
android|kotlin|bitmap|pytorch|tensor
3
2020-01-28T14:03:27.587Z
2,020
1
14
1
958
2
381
55
5
1
true
false
false
false
false
false
low
59,950,847
How does whatsapp, messenger and other very famous messaging apps receive push notifications even when app is killed?
<p>one of the best ways to implement push notifications via android or iOS is with FCM. But its been several years now, that <a href="https://github.com/firebase/quickstart-android/issues/368#issuecomment-539272893" rel="nofollow noreferrer">this issue exists</a> about applications not being able to receive notificatio...
one of the best ways to implement push notifications via android or iOS is with FCM. But its been several years now, that this issue exists about applications not being able to receive notifications when apps are killed by teh user. This issue appears only on android. And the FCM team says it is due to vendors. I've tr...
android|firebase-cloud-messaging|messaging
-2
2020-01-28T14:22:18.797Z
2,020
1
14
1
96
1
656
117
3
0
false
false
false
false
false
true
negative
59,950,864
Gson to json coverting getting issue with class
<p>{"f":"RECEIVED","g":"Siva Sankar","n":"342","o":"PREPAID"}</p> <p>I am getting keys as f,g,n instead of my key set</p> <p>My code is:<code>GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.IDENTITY); Gson gson = gsonBuilder.create(); ...
{"f":"RECEIVED","g":"Siva Sankar","n":"342","o":"PREPAID"} I am getting keys as f,g,n instead of my key set My code is: GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.IDENTITY); Gson gson = gsonBuilder.create(); String gsonStr = gson.toJson(saveOrderDetails(),OrderDetail...
android
-2
2020-01-28T14:23:19.460Z
2,020
1
14
1
25
1
329
47
1
0
false
false
false
false
false
true
negative
59,950,875
How can i loop the response of my JSON Object?
<p>I am having an error of <code>data of type org.json.JSONObject cannot be converted to JSONArray</code></p> <p>Here is the look of my response</p> <pre><code>{ "success": "true", "data": { "email": "sample@gmail.com", "session_code": "samplesession" } } </code></pre> <p>here is my code<...
I am having an error of data of type org.json.JSONObject cannot be converted to JSONArray Here is the look of my response [CODE] here is my code [CODE] i am still new in android and i am still learning the process, can somebody help me with my problem, this really is killing my time in fixing this error.
java|android
0
2020-01-28T14:23:48.353Z
2,020
1
14
1
99
1
305
46
2
2
true
false
false
false
false
false
zero
59,951,173
NativeScript Google Maps Api - Google Maps is blank
<p>I am writing an app with NativeScript v6 and Angular 8.</p> <p>tns --version 6.1.2</p> <p>I am using this plugin to try to display Google Maps.</p> <p>The map appears and no errors are thrown but the map is blank.</p> <p>Here is my code snippet:</p> <p>template</p> <pre><code>&lt;Page class="page"&gt; &lt;...
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 blank. Here is my code snippet: template [CODE] component [CODE] AndroidManifest [CODE] I used the same Key in a different setting and...
android|google-maps|nativescript
0
2020-01-28T14:40:38.247Z
2,020
1
14
1
645
1
371
51
3
3
true
false
false
false
false
false
zero
59,951,184
downgrade Qt5.14 for Android 4.4.4,API19?
<p>Maybe this is a beginners question, but I really got stuck.</p> <p>My first approach was to install qt5.5 (which comes with ubuntu16), but never got it run with sdktools, platformtools &amp; ndk. Obviously I ended up here in a mess of incompatible versions.</p> <p>On the other hand I installed qt5.14.0 which runs ...
Maybe this is a beginners question, but I really got stuck. My first approach was to install qt5.5 (which comes with ubuntu16), but never got it run with sdktools, platformtools & ndk. Obviously I ended up here in a mess of incompatible versions. On the other hand I installed qt5.14.0 which runs more or less "out of th...
android|c++|qt|qt5
0
2020-01-28T14:41:04.030Z
2,020
1
14
1
412
0
693
41
4
0
false
true
false
false
false
false
zero
59,951,219
Is screen pinning actually enough to set up an unmanned kiosk of a unity game?
<p>I have been trying to using android screen pinning to achieve a behaviour that would allow my unity game to be run at an unmanned kiosk. The default behaviour works fine, you cant quit the application without the PIN.</p> <p>However, everytime someone brings up the navigation, they get a toast message about how to ...
I have been trying to using android screen pinning to achieve a behaviour that would allow my unity game to be run at an unmanned kiosk. The default behaviour works fine, you cant quit the application without the PIN. However, everytime someone brings up the navigation, they get a toast message about how to undo screen...
android|unity3d|kiosk|kiosk-mode
0
2020-01-28T14:42:15.973Z
2,020
1
14
1
380
1
1,776
78
4
0
false
false
false
false
false
false
zero
59,951,231
Is there a configChanges for Invert Colors modification
<p>I would like to know if Android has any flag to be added into <code>configChanges</code> in an Activity attribute in the AndroidManifest for modifications in the <strong>Invert Colors</strong> option of the device.</p> <p>The <a href="https://developer.android.com/guide/topics/manifest/activity-element" rel="norefe...
I would like to know if Android has any flag to be added into configChanges in an Activity attribute in the AndroidManifest for modifications in the Invert Colors option of the device. The android doc shows the following flags: - "mcc" - "mnc" - "locale" - "touchscreen" - "keyboard" - "keyboardHidden" - "navigation" - ...
android|android-manifest|onconfigurationchanged
9
2020-01-28T14:42:54.630Z
2,020
1
14
1
598
1
511
55
3
0
false
false
false
false
false
false
medium
59,951,267
ArcGISRuntime arrows between dots
<p>I am using <code>ArcGISRuntime</code> to display dots on the map as well as lines between them. The lines and the dots are displayed correctly, but I cannot set it to display the lines as arrows.</p> <p>By using this line of code the dots and the lines are displayed as follows:</p> <pre><code>// create a polyline fr...
I am using ArcGISRuntime to display dots on the map as well as lines between them. The lines and the dots are displayed correctly, but I cannot set it to display the lines as arrows. By using this line of code the dots and the lines are displayed as follows: [CODE] I tried changing the lines for it to display it with a...
android|arcgis|arrows|arcgis-android-api
4
2020-01-28T14:45:23.520Z
2,020
1
14
1
102
0
399
33
4
2
true
true
false
false
false
false
low
59,951,280
Why is android still using Java 8?
<p>Just wondering why Android is very behind the latest versions of Java which the latest release is Java 11.</p> <p>I understand we have Kotlin now which comes with some great features. But just wondering will Google ever update to the latest version if not, why?</p> <p>Many thanks in advance </p>
Just wondering why Android is very behind the latest versions of Java which the latest release is Java 11. I understand we have Kotlin now which comes with some great features. But just wondering will Google ever update to the latest version if not, why? Many thanks in advance
java|android
2
2020-01-28T14:46:24.250Z
2,020
1
14
1
727
1
277
34
2
0
false
false
false
false
false
false
low
59,951,310
Intellij Plugin - Androidx Libs as aar files cannot find the sources
<p>I am working on a plugin to get more knowledge on how they work. I am trying to add this in the gradle file implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'.</p> <p>The project does not handle the aar file for some reason and I cannot use the ViewModel class because the import does not exist. </p> ...
I am working on a plugin to get more knowledge on how they work. I am trying to add this in the gradle file implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'. The project does not handle the aar file for some reason and I cannot use the ViewModel class because the import does not exist. What could be wr...
android|kotlin|intellij-idea|androidx|intellij-plugin
0
2020-01-28T14:48:11.357Z
2,020
1
14
1
77
0
340
68
5
0
false
true
false
false
false
false
zero
59,951,550
Count Down Timer for a timer
<p>I am trying to make a Pomodoro Timer (25 minutes work, 5 minutes break then repeat n times). But I can't find a way to let the break timer start automatically and then start again with the work timer (work timer = 00:10 - break timer = 00:03, i put these values so i can test faster). How can I fix this?</p> <pre><c...
I am trying to make a Pomodoro Timer (25 minutes work, 5 minutes break then repeat n times). But I can't find a way to let the break timer start automatically and then start again with the work timer (work timer = 00:10 - break timer = 00:03, i put these values so i can test faster). How can I fix this? [CODE] Expected...
java|android
2
2020-01-28T15:01:11.310Z
2,020
1
15
1
57
1
383
28
2
1
true
false
false
false
false
false
low
59,951,551
Why is ViewPager2 delaying to load pages?
<p>I decided to give a try on the new and now available stable release of <code>ViewPager2</code>.</p> <p>My <code>ViewPager2</code> have a lot of pages, and I am using <code>TabLayout</code> to give each page (fragment) scrollable tab titles, but I am facing a delay when loading the <code>ViewPager2</code> for the f...
I decided to give a try on the new and now available stable release of ViewPager2 . My ViewPager2 have a lot of pages, and I am using TabLayout to give each page (fragment) scrollable tab titles, but I am facing a delay when loading the ViewPager2 for the first time in my view. Is this the normal behavior?
android|performance|android-viewpager|android-viewpager2
2
2020-01-28T15:01:14.510Z
2,020
1
15
1
5,786
2
307
41
4
0
false
false
true
false
false
false
low
59,951,611
Embedded annotation can't save a list of data class into room database
<p>I have a list for embedded data class and inside that, I have again another data class and when use @Embeded and @ColumnInfo for embedded column got this error: </p> <p>I read <a href="https://stackoverflow.com/questions/55538271/room-cannot-figure-out-how-to-save-this-field-into-database/59951353#59951353">this qu...
I have a list for embedded data class and inside that, I have again another data class and when use @Embeded and @ColumnInfo for embedded column got this error: I read this question and answer and try it but got below error. [CODE] may please help me to fix this
android|database|android-room|data-class
2
2020-01-28T15:04:22.717Z
2,020
1
15
1
534
1
262
70
4
1
true
false
false
false
false
false
low
59,951,627
How to distribute spaces between text views of linear layout to fit according to different text lengths
<p>In the Image attached below, the red box represents the linear layout. </p> <p>In each linear layout I have 2 children text views to display details. Text on the text views are getting filled from JSON data fetched from google books api.</p> <p>What I am finding difficult is how to maintain space between both the ...
In the Image attached below, the red box represents the linear layout. In each linear layout I have 2 children text views to display details. Text on the text views are getting filled from JSON data fetched from google books api. What I am finding difficult is how to maintain space between both the text views according...
android|android-layout|layout|textview|android-linearlayout
0
2020-01-28T15:05:12.833Z
2,020
1
15
1
258
1
773
103
5
1
true
false
false
false
false
false
zero
59,951,757
Interstitial ads are not showing when i press the button but show after the intended activity
<p><strong>Hi, I am not a coder if you replace the mistake with the correct one it would be great. I developed this app from tutorials.</strong> I want to show ads when I press the button and after that, a pdf book should be open. But in present, it is not showing the way. </p> <pre><code>package com.example.chicken...
Hi, I am not a coder if you replace the mistake with the correct one it would be great. I developed this app from tutorials. I want to show ads when I press the button and after that, a pdf book should be open. But in present, it is not showing the way. [CODE]
android
0
2020-01-28T15:13:43.893Z
2,020
1
15
1
41
1
260
93
1
1
true
false
false
false
false
false
zero
59,951,815
Why is RecycleView adapter sometimes null on view pager fragment
<p>I still couldn't replicate the exact steps, but the RecycleView adapter hosted on a ViewPager fragment is sometimes null. </p> <p>The crash is occurring on android 8 or higher. I tried running it with no background process or "Don't keep activities checked" on Developer options, just in case it was affected by conf...
I still couldn't replicate the exact steps, but the RecycleView adapter hosted on a ViewPager fragment is sometimes null. The crash is occurring on android 8 or higher. I tried running it with no background process or "Don't keep activities checked" on Developer options, just in case it was affected by configuration ch...
android|android-fragments|android-recyclerview|android-viewpager
0
2020-01-28T15:16:40.320Z
2,020
1
15
1
189
1
542
64
4
4
true
false
false
false
false
false
zero
59,951,932
How to pass a parameter from one tab to another and change the tab with a button?
<p>I explain. I have a tabhost with 2 tab one has a ListView with a context menu. The menu has 2 options. The one that interests me is to edit. Pressing edit should take me to the other tab and allow me to edit the data.</p> <p>For this, my idea is to take the value of the position with a Listenerlongclic and pass tha...
I explain. I have a tabhost with 2 tab one has a ListView with a context menu. The menu has 2 options. The one that interests me is to edit. Pressing edit should take me to the other tab and allow me to edit the data. For this, my idea is to take the value of the position with a Listenerlongclic and pass that position ...
java|android
0
2020-01-28T15:22:57.310Z
2,020
1
15
1
151
1
490
81
2
1
true
false
false
false
false
false
zero
59,951,957
Why value of only last iteration(999) is printed in the text field ? I want all numbers to be printed before getting replaced by next number
<p>I am new to <code>android studio</code> and want to overcome from this problem. </p> <p>It gonna help me a lot while creating some future apps like , stopwatch, timer etc etc. </p> <p>Thanks in advance !!</p> <pre><code>public class MainActivity extends AppCompatActivity { private EditText k; private But...
I am new to android studio and want to overcome from this problem. It gonna help me a lot while creating some future apps like , stopwatch, timer etc etc. Thanks in advance !! [CODE]
java|android|iteration
-3
2020-01-28T15:24:30.963Z
2,020
1
15
1
77
1
182
140
3
1
true
false
false
false
false
true
negative
59,952,139
How to position a seekbar like youtube which overlaps with bottom area?
<p><a href="https://i.stack.imgur.com/pVyvg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pVyvg.png" alt="enter image description here"></a> We are implementing an ui where there are two fragments as per the attached pic. On the top fragment we are playing a video. We need to implement the seekbar ...
We are implementing an ui where there are two fragments as per the attached pic. On the top fragment we are playing a video. We need to implement the seekbar as shown in the picture where the scrubbar overlaps with the bottom fragment. Have tried to put the seekbar in fragment1, But it doesn't come in the boundary sect...
android
1
2020-01-28T15:35:01.767Z
2,020
1
15
1
64
0
484
71
1
0
false
true
false
false
false
false
low
59,952,265
SendBroadcast for refreshing gallery
<p>I am developing a Xamarin app which retrieves info from a DB, takes/chooses photos and uploads them to a remote server, then it can display the images from the remote server.</p> <p>The user can delete them by tapping on and pressing a button and download the images from the remote server to the local device.</p> ...
I am developing a Xamarin app which retrieves info from a DB, takes/chooses photos and uploads them to a remote server, then it can display the images from the remote server. The user can delete them by tapping on and pressing a button and download the images from the remote server to the local device. Everything works...
c#|android|xamarin.forms|xamarin.android|android-broadcast
0
2020-01-28T15:42:01.177Z
2,020
1
15
1
117
0
680
36
5
1
true
true
false
false
false
false
zero
59,952,286
Android Studio MainActivity Class cannot connect to local Mysql Workbench
<pre><code>package com.example.test import android.os.Bundlemportandroid.view.Menu import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import com.google.android.material.snackbar.Snackbar import kotlinx.android.synthetic.main.activity_main.* import kotlinx.android.synthetic.main.content_main.*...
[CODE]
java|android|mysql|kotlin
0
2020-01-28T15:43:02.763Z
2,020
1
15
1
249
1
6
73
4
1
true
false
false
false
false
false
zero
59,952,307
PLAIN_TEXT_TYPE issue
<p>I am having and issue with the line "emailIntent.setType(HTTP.PLAIN_TEXT_TYPE);" as it says cannot resolve issue for the PLAIN_TEXT_TYPE part. I am working through this: <a href="https://developer.android.com/training/basics/intents/sending.html" rel="nofollow noreferrer">https://developer.android.com/training/basic...
I am having and issue with the line "emailIntent.setType(HTTP.PLAIN_TEXT_TYPE);" as it says cannot resolve issue for the PLAIN_TEXT_TYPE part. I am working through this: https://developer.android.com/training/basics/intents/sending.html and kept the code the same.
android
2
2020-01-28T15:43:49.017Z
2,020
1
15
1
846
1
264
21
1
0
false
false
false
false
false
false
low
59,952,423
How To Download PDF File From Google Drive with WebView
<p>I want to download a file from my drive link. I don't know how to do it and what's the code. The URL is <a href="https://drive.google.com/open?id=1txJFXxL9uY3AjyQ3C2G9t9lSkhJqaxuO" rel="nofollow noreferrer">https://drive.google.com/open?id=1txJFXxL9uY3AjyQ3C2G9t9lSkhJqaxuO</a>. When I try this code, my WebView go fr...
I want to download a file from my drive link. I don't know how to do it and what's the code. The URL is https://drive.google.com/open?id=1txJFXxL9uY3AjyQ3C2G9t9lSkhJqaxuO . When I try this code, my WebView go freezing. [CODE]
java|android|pdf
0
2020-01-28T15:49:54.723Z
2,020
1
15
1
269
2
225
55
3
1
true
false
false
false
false
false
zero
59,952,510
Ionic how to open your app with shake when you app is in the background?
<p>I am building an emergency app, and one of the features is to open the app on shake, now I understand that app must be in the background running.</p> <p>and I am using cordova-background-mode and cordova shake and the everything works,</p> <p>however when the phone is on the home screen(the app is just minimized)....
I am building an emergency app, and one of the features is to open the app on shake, now I understand that app must be in the background running. and I am using cordova-background-mode and cordova shake and the everything works, however when the phone is on the home screen(the app is just minimized). the app does not l...
android|angular|ionic-framework|shake
3
2020-01-28T15:54:16.687Z
2,020
1
15
1
1,699
3
810
72
4
2
true
false
false
false
false
false
low
59,952,642
Flutter : Json parsing
<p>I'm trying to parse an API response in Flutter. Here's how the API response looks like. How to parse the same in Flutter? I want to parse all the values.</p> <p><code>parsedJson</code> parameter in the <code>fromJson</code> method has all the values. I'm sure I'm doing something wrong with the parsing.</p> <p>Your...
I'm trying to parse an API response in Flutter. Here's how the API response looks like. How to parse the same in Flutter? I want to parse all the values. parsedJson parameter in the fromJson method has all the values. I'm sure I'm doing something wrong with the parsing. Your help is much appreciated! Thanks in advance....
android|json|flutter|dart
0
2020-01-28T16:01:58.197Z
2,020
1
16
1
83
2
403
22
4
2
true
false
false
false
false
false
zero
59,952,673
How to get an Instance of ViewModel in activity in 2020/21?
<p>I am new to the mvvm pattern. I created a ViewModel for the main activity. Now I want to get an instance of the ViewModel in the main activity. </p> <p>Most Tutorials and answers here on Stackoverflow suggest using <code>ViewModelProviders.of(...</code>, but this is depreceated. </p> <p>So according to this questi...
I am new to the mvvm pattern. I created a ViewModel for the main activity. Now I want to get an instance of the ViewModel in the main activity. Most Tutorials and answers here on Stackoverflow suggest using ViewModelProviders.of(... , but this is depreceated. So according to this question on stackoverflow: ViewModelPro...
android|mvvm|viewmodel|androidx|viewmodelproviders
42
2020-01-28T16:03:52.960Z
2,020
1
16
1
35,013
10
976
59
5
0
false
false
true
true
true
false
high
59,952,691
Android CoordinatorLayout align 3 views having the middle view fill the space
<p>This may be a simple question, but can't manage to find a simple answer: </p> <p><em>Is there any way to have in a <code>CoordinatorLayout</code> 3 vertically aligned views so that the view in the middle expands itself to fill all the space?</em></p> <p>I'm looking for something similar to <code>below</code> and <...
This may be a simple question, but can't manage to find a simple answer: Is there any way to have in a CoordinatorLayout 3 vertically aligned views so that the view in the middle expands itself to fill all the space? I'm looking for something similar to below and above behaviour in RelativeLayout , or a LinearLayout wi...
android|vertical-alignment|android-coordinatorlayout
0
2020-01-28T16:05:15.810Z
2,020
1
16
1
97
0
361
77
3
0
false
true
false
false
false
false
zero
59,952,729
Error creation new table in Room database
<p>I´m creating a new table in Room but I have a error with the migration. The problem is in favoriteId, there is a different between what is expected (primaryKeyPosition=1) and what is found in (primaryKeyPosition=0). If I delete data, it works fine.</p> <blockquote> <p>java.lang.IllegalStateException: Migration di...
I´m creating a new table in Room but I have a error with the migration. The problem is in favoriteId, there is a different between what is expected (primaryKeyPosition=1) and what is found in (primaryKeyPosition=0). If I delete data, it works fine. java.lang.IllegalStateException: Migration didn't properly handle: favo...
android|kotlin|android-room
0
2020-01-28T16:07:03.670Z
2,020
1
16
1
665
2
2,485
41
3
2
true
false
false
false
false
false
zero
59,952,730
Run parallel operations and get result - async{...} is right way?
<p>Android Studio 3.6</p> <p>I need next:</p> <ol> <li>List of strings (file names)</li> <li>Each method <code>doSomeLongOperation(fileName)</code> must be executed in <strong>parallel</strong> and <strong>independently</strong>. E.g. method <code>doSomeLongOperation(fileName1)</code> <strong>MUST NOT</strong> wait f...
Android Studio 3.6 I need next: List of strings (file names) Each method doSomeLongOperation(fileName) must be executed in parallel and independently . E.g. method doSomeLongOperation(fileName1) MUST NOT wait for a response from the method doSomeLongOperation(fileName2) . The result of every doSomeLongOperation(fileNam...
android|kotlin-coroutines
0
2020-01-28T16:07:04.333Z
2,020
1
16
1
75
0
853
65
2
3
true
true
false
false
false
false
zero
59,952,746
Android Studio not showing configure activity during new project
<p><a href="https://i.stack.imgur.com/W2tlg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W2tlg.png" alt="enter image description here"></a></p> <p>I'm not able to get the configure Activity window, which is resulting every default activity name as MainActivity.java</p> <p><a href="https://i.stac...
I'm not able to get the configure Activity window, which is resulting every default activity name as MainActivity.java
android|android-studio|android-activity
0
2020-01-28T16:07:50.083Z
2,020
1
16
1
86
0
118
64
3
0
false
true
false
false
false
false
zero
59,952,936
How to create an empty folder in aws S3 bucket with using Android Sdk?
<p>I understand the concept of folders and objects in Aws S3 bucket, that there is no folder and all are objects. But I need to create an empty folder where user can enter and upload their files. I have tried several things like adding a test .txt file with a path which extends the empty folder's name after "/" and it...
I understand the concept of folders and objects in Aws S3 bucket, that there is no folder and all are objects. But I need to create an empty folder where user can enter and upload their files. I have tried several things like adding a test .txt file with a path which extends the empty folder's name after "/" and it do ...
java|android|amazon-web-services|amazon-s3|aws-amplify-sdk-android
1
2020-01-28T16:18:35.220Z
2,020
1
16
1
3,812
2
556
70
5
0
false
false
true
false
false
false
low
59,952,996
How to create test suites in Android-Studio using AndroidJUnit4?
<p>There are some UI tests. It is necessary to find an opportunity to somehow group them and call for execution by groups. Perhaps there is some option how to group tests through annotations in the BDD approach and run different test groups through annotations? Or what other way to break tests into suites what would it...
There are some UI tests. It is necessary to find an opportunity to somehow group them and call for execution by groups. Perhaps there is some option how to group tests through annotations in the BDD approach and run different test groups through annotations? Or what other way to break tests into suites what would it wa...
android-studio|testing|automated-tests|junit4
0
2020-01-28T16:21:58.453Z
2,020
1
16
1
60
1
421
64
4
0
false
false
false
false
false
false
zero
59,953,023
What is a proper way to build C++ target with android ndk toolchain using bazel
<p>I have a single .cpp code with tflite model inference. This source code file is a part of bazel workspace. I want to build it with default desktop compiler and with arm64 custom toolchain from ndk, then run it on PC and mobile and compare result. How can I specify a custom compiler from ndk toolchain (someandroidndk...
I have a single .cpp code with tflite model inference. This source code file is a part of bazel workspace. I want to build it with default desktop compiler and with arm64 custom toolchain from ndk, then run it on PC and mobile and compare result. How can I specify a custom compiler from ndk toolchain (someandroidndkpat...
android-ndk|bazel
2
2020-01-28T16:23:23.903Z
2,020
1
16
1
734
1
841
79
2
3
true
false
false
false
false
false
low
59,953,092
Rsa decryption return error 0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag in openssl cpp
<p>I used openssl library for RSA encryption/decrytion in c++ (android ndk) and it's working fine. But when I encrypted data in RSA tester site and decrypted it in c++, openssl return this error:</p> <pre><code>0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag </code></pre> <p>Here is my code:</p> <pre><code...
I used openssl library for RSA encryption/decrytion in c++ (android ndk) and it's working fine. But when I encrypted data in RSA tester site and decrypted it in c++, openssl return this error: [CODE] Here is my code: [CODE] What is the reason of getting the error?
c++|android-ndk|openssl|rsa
0
2020-01-28T16:27:40.570Z
2,020
1
16
1
1,415
0
264
100
4
2
true
true
false
false
false
false
zero
59,953,123
Which AudioEncoder codec is best for highest quality audio recording on android
<p>I am recording both audio and video on my Xamarin.Forms project. Some people tell me that when they use it the audio quality is low when recording. After some research I think it has something to do with the encoder.</p> <p>This is my line for setting the codec</p> <pre><code> this.mediaRecorder.SetAudioEncoder(A...
I am recording both audio and video on my Xamarin.Forms project. Some people tell me that when they use it the audio quality is low when recording. After some research I think it has something to do with the encoder. This is my line for setting the codec [CODE] And here are the available encoder options In some threads...
android|xamarin|audio|media
1
2020-01-28T16:29:30.693Z
2,020
1
16
1
589
1
571
79
4
1
true
false
false
false
false
false
low
59,953,140
Text color of ListPreference entries is white instead of black
<p>I have a settings activity</p> <pre><code>public class SettingsActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_settings); </code></pre> <p>And a fragment:</p> <pre><code>publ...
I have a settings activity [CODE] And a fragment: [CODE] activity_settings.xml: [CODE] settings.xml: [CODE] res/values/arrays.xml: [CODE] Everything works great the settings page looks like so: But when you open the ListPreference the text is in white for some reason. It looks like this, you can see that the text is in...
android|android-xml|androidx|listpreference
0
2020-01-28T16:30:19.647Z
2,020
1
16
1
264
1
808
62
4
5
true
false
false
false
false
false
zero
59,953,156
How can I access strings in `strings.xml` from a Recycler Adapter class using `getString()` in Kotlin
<p>I need to access strings in <code>strings.xml</code> from a custom Recycler Adapter class but I am getting an error message as described. Here is my Kotlin Recycler Adapter class with the method <code>onBindViewHolder()</code> where I try to access the strings with placeholders <code>miles</code> and <code>poundSign...
I need to access strings in strings.xml from a custom Recycler Adapter class but I am getting an error message as described. Here is my Kotlin Recycler Adapter class with the method onBindViewHolder() where I try to access the strings with placeholders miles and poundSign : [CODE] Here is my strings.xml file: [CODE] Th...
android|kotlin|android-recyclerview
2
2020-01-28T16:31:46.247Z
2,020
1
16
1
1,908
2
409
101
3
3
true
false
false
false
false
false
low
59,953,335
Android PHONE_STATE not fired if phone is inactive for a night
<p>My Android app invokes a webservice or sends SMS when a new incoming call received. I use <code>android.intent.action.PHONE_STATE</code> intent for this.</p> <p>Everything works fine, except: the app must be restarted every morning.</p> <p>It looks like if something prevents the app from receiving this broadcast i...
My Android app invokes a webservice or sends SMS when a new incoming call received. I use android.intent.action.PHONE_STATE intent for this. Everything works fine, except: the app must be restarted every morning. It looks like if something prevents the app from receiving this broadcast if it is not used for hours, for ...
android|android-intent
0
2020-01-28T16:44:09.380Z
2,020
1
16
1
46
0
373
62
2
1
true
true
false
false
false
false
zero
59,953,347
How can i get the value from all the number pickers in my recycler view?
<p>Hello everyone here's my code with recycler view, it works it charges 3 options from my database but my problem is when i try to get all the 3 values in my recycler view</p> <p>First of all here's my class:</p> <pre><code>public class OpcionesPonderacionClass { String Titulo; public OpcionesPonderacionClass(Strin...
Hello everyone here's my code with recycler view, it works it charges 3 options from my database but my problem is when i try to get all the 3 values in my recycler view First of all here's my class: [CODE] } Here's my adapter code: [CODE] } I can see all the options with their numberpickers from 0 to 10 but for now i'...
android|class|android-recyclerview|numberpicker
1
2020-01-28T16:44:38.413Z
2,020
1
16
1
439
1
465
72
4
2
true
false
false
false
false
false
low
59,953,384
Set alpha on RecyclerView but not selected child (Kotlin)
<p>I'm looking for a way to set alpha of all the elements of a RecyclerView without iterating over the elements.</p> <p>Basically I can set the alpha of the entire recycler and all children will inherit that alpha, but when I update the alpha of the selected child it still inherits the value from its parent instead of...
I'm looking for a way to set alpha of all the elements of a RecyclerView without iterating over the elements. Basically I can set the alpha of the entire recycler and all children will inherit that alpha, but when I update the alpha of the selected child it still inherits the value from its parent instead of updating i...
android|kotlin|android-recyclerview|alpha
0
2020-01-28T16:46:42.243Z
2,020
1
16
1
248
1
886
57
4
1
true
false
false
false
false
false
zero
59,953,420
Pulling a video file from TextureView To Be saved
<p>Currently, I'm building a camera app using camera2 api. I record the video and that file is sent to another activity to make sure we can correct orientation and watch the video. Then the altered video or picture is saved to the device.</p> <p>When I use a still image it works, because I can pull the bitmap image an...
Currently, I'm building a camera app using camera2 api. I record the video and that file is sent to another activity to make sure we can correct orientation and watch the video. Then the altered video or picture is saved to the device. When I use a still image it works, because I can pull the bitmap image and then resa...
java|android|android-camera2
0
2020-01-28T16:48:29.790Z
2,020
1
16
1
389
2
840
49
3
2
true
false
false
false
false
false
zero
59,953,459
How ARCore recognize images with repetitive pattern
<p>I create generator of augmented images. By contrast changer (gimp or from scratch using python), I can reach 100 score from bad image with 0-5 score, checking through arcoreimg.exe. Main question is why image, which has 5 score (pinned link), may has 100 score, when image has repetitive pattern? </p> <p>"Best pract...
I create generator of augmented images. By contrast changer (gimp or from scratch using python), I can reach 100 score from bad image with 0-5 score, checking through arcoreimg.exe. Main question is why image, which has 5 score (pinned link), may has 100 score, when image has repetitive pattern? "Best practices Tips fo...
android|unity3d|augmented-reality|arcore|android-augmented-reality
2
2020-01-28T16:50:49.820Z
2,020
1
16
1
152
0
465
51
5
0
false
true
false
false
false
false
low
59,953,474
How to convert SHA-1 to 28-character string ( For FB Login in Android App)
<p>FB login is working in APKs generated with debug,release build and app installed from Play Store on MotoG4(i use it for app testing). But FB login isn't working in app downloaded from Play Store(All Android Devices Except the MotoG4 i use for app testing). The error says </p> <blockquote> <p>"The key hash does n...
FB login is working in APKs generated with debug,release build and app installed from Play Store on MotoG4(i use it for app testing). But FB login isn't working in app downloaded from Play Store(All Android Devices Except the MotoG4 i use for app testing). The error says "The key hash does not match any stored key hash...
android|facebook|flutter|google-play|sha
1
2020-01-28T16:51:30.223Z
2,020
1
16
1
335
0
946
74
5
0
false
true
false
false
false
false
low
59,953,488
How can i write onCreateView as onViewCreated
<pre><code> @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.tab1, container, false); } </code></pre> <p>I have this code for my fragment but it doesn't let me us...
[CODE] I have this code for my fragment but it doesn't let me use findViewById so I want to make it onViewCreated but it has some container and tab in it so can anyone help me?
android|android-lifecycle
0
2020-01-28T16:52:21.150Z
2,020
1
16
1
202
3
176
45
2
1
true
false
false
false
false
false
zero
59,953,579
Save logs to file system from background task
<p>I want to add a logging system to an android app that writes debugging/event logs into a text file. The users have to be able to turn it on and off.</p> <p>My app uses some 'background techniques' like AlarmManagers and Homescreen Widgets which complicates things.</p> <p>I guess i have to write the variable which ...
I want to add a logging system to an android app that writes debugging/event logs into a text file. The users have to be able to turn it on and off. My app uses some 'background techniques' like AlarmManagers and Homescreen Widgets which complicates things. I guess i have to write the variable which turns logging on/of...
java|android|file|logging|background-process
0
2020-01-28T16:56:08.020Z
2,020
1
16
1
117
0
767
45
5
1
true
true
false
false
false
false
zero
59,953,748
Is there any way to move your application to Beta from Production (Live) in Playstore
<p>I have uploaded my app in production. Now, I am trying to withdraw it to the beta version. Has anyone any idea</p>
I have uploaded my app in production. Now, I am trying to withdraw it to the beta version. Has anyone any idea
android|react-native
1
2020-01-28T17:06:03.563Z
2,020
1
17
1
38
1
110
85
2
0
false
false
false
false
false
false
low
59,953,764
React Native Cannot Get the Updated Collection - Firebase
<p>My app <strong>needs documents</strong> from the "events" collection from the firebase realtime database. What happens is that, <strong>when I add 2 new attributes to some of the documents inside the collection ("d" and "image")</strong>, inside the app they are equal to "<strong>undefined"</strong>.</p> <p>Here's ...
My app needs documents from the "events" collection from the firebase realtime database. What happens is that, when I add 2 new attributes to some of the documents inside the collection ("d" and "image") , inside the app they are equal to " undefined" . Here's the FlatList where I use them [CODE] Here's one of the Fire...
javascript|android|reactjs|firebase|react-native
1
2020-01-28T17:06:48.870Z
2,020
1
17
1
28
0
361
57
5
1
true
true
false
false
false
false
low
59,953,818
How can I create cartoon effect in android studio
<p>I can load image from gallery and save it, but in between, in edit portion,I want to learn to create cartonish effects in android studio, any comments will be helpful.</p>
I can load image from gallery and save it, but in between, in edit portion,I want to learn to create cartonish effects in android studio, any comments will be helpful.
java|android|android-studio
0
2020-01-28T17:09:52.987Z
2,020
1
17
1
361
1
167
49
3
0
false
false
false
false
false
false
zero
59,953,867
How to stop Android Studio from opening multiple windows?
<p>I have a Flutter project opened up in Android Studio. After I import any new package in pubspec.yaml file, A new Android Studio Window pops up that opens up nothing. Just a blank Android Studio Screen.</p> <p>I cannot close it, If I try to quit, it just closes all the windows together.</p> <p>Platform: MacOS Andro...
I have a Flutter project opened up in Android Studio. After I import any new package in pubspec.yaml file, A new Android Studio Window pops up that opens up nothing. Just a blank Android Studio Screen. I cannot close it, If I try to quit, it just closes all the windows together. Platform: MacOS Android Studio Version: ...
android|android-studio|flutter|forceclose
6
2020-01-28T17:13:13.373Z
2,020
1
17
1
680
2
323
57
4
0
false
false
false
false
false
false
medium
59,954,033
Force RxJava buffer to flush on signal
<p>I am writing an Android app using Rxjava, the app simply collects sensor data and stores them in files when a buffer is full. For this purpose, I am using a <code>PublishProcessor</code> that emits the value every time a sensor event is detected. </p> <p>I Have the following helper classes: </p> <pre><code>interfa...
I am writing an Android app using Rxjava, the app simply collects sensor data and stores them in files when a buffer is full. For this purpose, I am using a PublishProcessor that emits the value every time a sensor event is detected. I Have the following helper classes: [CODE] When a sensor event occurs I just do the f...
android|kotlin|rx-java|rx-java2
1
2020-01-28T17:23:30.137Z
2,020
1
17
1
172
0
823
38
4
3
true
true
false
false
false
false
low
59,954,037
Cannot resolve symbol 'test' in Android Support library
<p>I'm just starting to play around with Android and I'm having trouble with some androidTest examples that I've come across. Basically, I get a <strong>Cannot resolve symbol 'test'</strong> error message from Android Studio in the import statements for the InstrumentationRegistry and AndroidJUnit4 classes of my instru...
I'm just starting to play around with Android and I'm having trouble with some androidTest examples that I've come across. Basically, I get a Cannot resolve symbol 'test' error message from Android Studio in the import statements for the InstrumentationRegistry and AndroidJUnit4 classes of my instrumented test file: Ex...
android|gradle|build.gradle|android-support-library
2
2020-01-28T17:23:40.870Z
2,020
1
17
1
1,138
0
1,575
55
4
2
true
true
false
false
false
false
low
59,954,104
Webrtc Android DTMF Support
<p>I am trying to implement DTMF for Android/iOS Application based out on WebRTC. Is there any API for DTMF for Android? I have tried calling the following:</p> <pre><code>m_peerConnectionFactory.createdtmfsender(localAudioTrack); m_peerConnectionFactory.insertDtmf(tone, duration,gap); </code></pre> <p>I have tried u...
I am trying to implement DTMF for Android/iOS Application based out on WebRTC. Is there any API for DTMF for Android? I have tried calling the following: [CODE] I have tried using the above api's for javascript and it works well on browser, but could nt make it work on Android. I havent tried it on iOS still, as I need...
webrtc|rtcpeerconnection|peer-connection|webrtc-android|webrtc-ios
2
2020-01-28T17:27:49.770Z
2,020
1
17
1
778
1
522
27
5
1
true
false
false
false
false
false
low
59,954,116
Well working Java code is causing kotlin.TypeCastException: null cannot be cast to non-null type when converted to Kotlin code
<p>I have to add animation to items of <code>RecyclerView</code> and created a <code>CustomGridRecyclerView</code> as given blow:</p> <pre><code>public class CustomGridRecyclerView extends RecyclerView { public CustomGridRecyclerView(Context context) { super(context); } public CustomGridRecyclerV...
I have to add animation to items of RecyclerView and created a CustomGridRecyclerView as given blow: [CODE] it works great, but I want to implement the same in a other App using Kotlin with following code: [CODE] it gives me Error: [CODE] how can I cast android.view.animation.GridLayoutAnimationController.AnimationPara...
android|kotlin|android-recyclerview|android-gridlayout|gridlayoutmanager
0
2020-01-28T17:28:41.807Z
2,020
1
17
1
847
2
428
126
5
5
true
false
false
false
false
false
zero
59,954,140
Android Mockito-Kotlin error - "Actually, there were zero interactions with this mock"
<p>The following is the test code for my <code>ViewModel</code> class. My app architecture is based on MVI. Basically, I'm trying to mock my repo and state classes. In the test function I wrote below, I'm trying to check if state is changed in correct order when I successfully load a news list from an API.</p> <pre><c...
The following is the test code for my ViewModel class. My app architecture is based on MVI. Basically, I'm trying to mock my repo and state classes. In the test function I wrote below, I'm trying to check if state is changed in correct order when I successfully load a news list from an API. [CODE] However, when I run t...
android|kotlin|mockito|android-testing|mockito-kotlin
2
2020-01-28T17:29:59.417Z
2,020
1
17
1
678
1
590
86
5
5
true
false
false
false
false
false
low
59,954,141
SDK location not found on Mac?
<p>I'm trying to run my React-native app "Android" but in every single time before i add the SDK path inside project files manually like this</p> <p><strong>local.properties</strong></p> <pre><code>sdk.dir=/Users/USERNAME/Library/Android/sdk </code></pre> <p>RN Error </p> <blockquote> <ul> <li>What went wrong: ...
I'm trying to run my React-native app "Android" but in every single time before i add the SDK path inside project files manually like this local.properties [CODE] RN Error What went wrong: A problem occurred configuring project ':app'. SDK location not found. Define location with an ANDROID_SDK_ROOT environment variabl...
android|react-native|android-studio|sdk
1
2020-01-28T17:30:01.397Z
2,020
1
17
1
1,407
1
644
30
4
1
true
false
false
false
false
false
low
59,954,246
Unable to find timed publication button in google play console
<p>I want to publish my android app update at a specific date but I can't find the timed publication button in google play console. I followed this help page :<br> <a href="https://support.google.com/googleplay/android-developer/answer/9543912?hl=fr&amp;ref_topic=7072031&amp;authuser=0" rel="nofollow noreferrer">https:...
I want to publish my android app update at a specific date but I can't find the timed publication button in google play console. I followed this help page : https://support.google.com/googleplay/android-developer/answer/9543912?hl=fr&ref_topic=7072031&authuser=0 but I found nothing. I think it is because of the changes...
android|google-play-console
0
2020-01-28T17:37:12.417Z
2,020
1
17
1
79
1
357
62
2
0
false
false
false
false
false
false
zero
59,954,283
Which class to import to declare a toolbar variable unsing androidx
<p>I am trying to build a toolbar. When I declare the toolbar variable in my Java main activity, I expect to reference Toolbar object. </p> <p>I put the error in comments, I think it has to do with the androidx.appcompat.widget.Toolbar</p> <p>----here is my main activity xml file ----</p> <pre><code>&lt;androidx.coo...
I am trying to build a toolbar. When I declare the toolbar variable in my Java main activity, I expect to reference Toolbar object. I put the error in comments, I think it has to do with the androidx.appcompat.widget.Toolbar ----here is my main activity xml file ---- [CODE] -----here is my mainactivity.java file [CODE]...
android|android-toolbar|androidx
0
2020-01-28T17:39:39.597Z
2,020
1
17
1
278
1
368
67
3
4
true
false
false
false
false
false
zero
59,954,298
How Google Drive Android API is working even after its shutdown?
<p>As Google specified:</p> <p><a href="https://i.stack.imgur.com/p0VYv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p0VYv.jpg" alt="enter image description here"></a></p> <p>Today, I ran an old version of my app and found that Drive Android API is still working! </p> <p>How is this possible? H...
As Google specified: Today, I ran an old version of my app and found that Drive Android API is still working! How is this possible? Has anyone experienced the same thing? Or am I missing something obvious?
android|google-drive-android-api
2
2020-01-28T17:40:50.910Z
2,020
1
17
1
130
1
205
64
2
0
false
false
false
false
false
false
low
59,954,325
How to save Pdf file in SD card from Internet(url) in kotlin
<p>How to save Pdf file in SD card from Internet(url) in kotlin Example if i have this pdf url :<a href="http://www.africau.edu/images/default/sample.pdf" rel="nofollow noreferrer">http://www.africau.edu/images/default/sample.pdf</a> how to save this pdf file in cd card </p>
How to save Pdf file in SD card from Internet(url) in kotlin Example if i have this pdf url : http://www.africau.edu/images/default/sample.pdf how to save this pdf file in cd card
android|kotlin
0
2020-01-28T17:42:02.640Z
2,020
1
17
1
47
0
179
60
2
0
false
true
false
false
false
false
zero
59,954,421
chrome 80 samesite cookies default change - android webview
<p>A significant change is coming in the chrome browser(version 80.x), and I wonder how you can test it on Android <code>webview</code>. On the web, you just need to set a couple of defaults for flags via chrome: flags (in the browser) - </p> <ul> <li>SameSite by default cookies - need to change to enable.</li> <li>Co...
A significant change is coming in the chrome browser(version 80.x), and I wonder how you can test it on Android webview . On the web, you just need to set a couple of defaults for flags via chrome: flags (in the browser) - SameSite by default cookies - need to change to enable. Cookies without SameSite must be secure -...
android|google-chrome|webview|android-webview|samesite
1
2020-01-28T17:50:21.820Z
2,020
1
17
1
1,903
2
721
59
5
0
false
false
false
false
false
false
low
59,954,426
Android Get Calling class fields
<p>I have an android application that calls my method via <code>DexClassLoader</code> <code>loadClass</code> and <code>invoke()</code>.</p> <p>I need to access the fields of the class that call my method from my method itself.</p> <p>I managed to get the name of the calling method via the Stack Trace but I already kn...
I have an android application that calls my method via DexClassLoader loadClass and invoke() . I need to access the fields of the class that call my method from my method itself. I managed to get the name of the calling method via the Stack Trace but I already know that so it's not useful and I don't manage to access t...
android|reflection
0
2020-01-28T17:50:51.233Z
2,020
1
17
1
33
1
630
32
2
0
false
false
false
false
false
false
zero
59,954,435
Failed to add android platform to an ionic project
<p>IM TRYING TO BUILD AN APK AND I GET THIS ERROR </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>Discovered saved plugin "im.ltdev.cordova.UserAgent". Adding it to the proje...
IM TRYING TO BUILD AN APK AND I GET THIS ERROR [CODE] THIS IS MY IONIC INFO Ionic: Ionic CLI : 5.4.15 (C:\Users\Desarrollo\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.0.0-beta.17 @angular-devkit/build-angular : 0.803.23 @angular-devkit/schematics : 7.0.7 @angular/cli : 7.0.7 @ionic/angula...
android|angular|cordova-plugins|ionic4
-1
2020-01-28T17:51:56.023Z
2,020
1
17
1
1,442
1
666
50
4
1
true
false
false
false
false
true
negative
59,954,477
The following classes could not be instantiated: - androidx.constraintlayout.widget.ConstraintLayout
<p>I just recovered a project, which was broken by Android Studio (crashed and overwrote all files except for MainActivity). I used parts of my old backup of V1.0 (currently at V3.1) and recovered some code with an app (Show Java). The problem is that all occurences of the constraintLayout are showing as grey boxes. I ...
I just recovered a project, which was broken by Android Studio (crashed and overwrote all files except for MainActivity). I used parts of my old backup of V1.0 (currently at V3.1) and recovered some code with an app (Show Java). The problem is that all occurences of the constraintLayout are showing as grey boxes. I am ...
android|android-layout|layout|android-constraintlayout
0
2020-01-28T17:54:48.103Z
2,020
1
17
1
1,178
1
455
100
4
3
true
false
false
false
false
false
zero
59,954,548
Retreiving data from firebase using android studio (Kotlin)
<p><a href="https://i.stack.imgur.com/x3gcc.png" rel="nofollow noreferrer">How can I retreive data in from firebase In recycler view using firebase UI </a></p> <p>I am in middle of an important Project can anyone please help me with this. I am not so familiar with kotlin. So if any one could please help .</p>
How can I retreive data in from firebase In recycler view using firebase UI I am in middle of an important Project can anyone please help me with this. I am not so familiar with kotlin. So if any one could please help .
android|firebase|kotlin|firebaseui
0
2020-01-28T17:59:08.720Z
2,020
1
17
1
34
0
219
59
4
0
false
true
false
false
false
false
zero
59,954,584
Android HERE SDK lite: Place Here logo to another
<p>Is it possible to place the HERE logo in the MapviewLiteView to another place instead of the lower right?</p>
Is it possible to place the HERE logo in the MapviewLiteView to another place instead of the lower right?
android|here-api
0
2020-01-28T18:01:38.003Z
2,020
1
18
1
46
2
105
49
2
0
false
false
false
false
false
false
zero
59,954,588
How to Implement Step Counter in Android Studio If Pedometer Sensor Not Available
<p>I have a Samsung phone which apparently doesn't have a Pedometer (step counter) because when I use TYPE_STEP_COUNTER it says doesn't have one. So after searching online, I came across an implementation using accelerometer censor. But the problem is the implementation is not very accurate at detecting steps. I have t...
I have a Samsung phone which apparently doesn't have a Pedometer (step counter) because when I use TYPE_STEP_COUNTER it says doesn't have one. So after searching online, I came across an implementation using accelerometer censor. But the problem is the implementation is not very accurate at detecting steps. I have trie...
java|android|android-studio|accelerometer|pedometer
0
2020-01-28T18:01:57.483Z
2,020
1
18
1
3,174
1
612
81
5
1
true
false
true
false
false
false
zero
59,954,681
Android ViewPager with all fragments of same class without transaction
<p>I know this question has been asked many times before but I couldn't find an explanatory answer.</p> <p>I want to have a single MyFragment.java and display it for all 3 pages of <code>ViewPager</code>.</p> <p>But when I try to create a fragment with this method:</p> <pre><code>new MyFragment() </code></pre> <p>a...
I know this question has been asked many times before but I couldn't find an explanatory answer. I want to have a single MyFragment.java and display it for all 3 pages of ViewPager . But when I try to create a fragment with this method: [CODE] and add it to the ViewPager I get this error: java.lang.IllegalStateExceptio...
android|android-fragments|android-viewpager|android-recyclerview|android-fragmentactivity
0
2020-01-28T18:09:51.653Z
2,020
1
18
1
533
1
1,497
70
5
1
true
false
false
false
false
false
zero
59,954,844
Unity Android Game crash android.os.TransactionTooLargeException
<p>I have a Android game in Google Play store built with Unity 2018.4.2f1 with IL2CPP instead of Mono.<br> The used runtime version .Net 3.5, I target ARMv7 and ARM64 and build it as Google App Bundle (*.aab).<br> Since last update my game crash rate is increasing everyday and 90% of said crashes are related to <code>a...
I have a Android game in Google Play store built with Unity 2018.4.2f1 with IL2CPP instead of Mono. The used runtime version .Net 3.5, I target ARMv7 and ARM64 and build it as Google App Bundle (*.aab). Since last update my game crash rate is increasing everyday and 90% of said crashes are related to android.os.Transac...
android|performance|unity3d|crash|google-play
0
2020-01-28T18:21:38.227Z
2,020
1
18
1
563
1
611
64
5
0
false
false
false
false
false
false
zero
59,954,887
Generic BaseFragment architecture with bounded type parameters to work with ViewModel
<p>I am trying to come up with an architecture for my BaseFragment. Here is what I've accomplished so far:</p> <pre><code>public abstract class BaseFragment&lt;V extends BaseViewModel&gt; extends Fragment { private ViewModel viewModel; onAttach(Context context) { super.onAttach(context) ...
I am trying to come up with an architecture for my BaseFragment. Here is what I've accomplished so far: [CODE] and when I am creating any new Fragment, I do like this: [CODE] Its all fine but what if I want to create a Frgament where in I don't need any ViewModel? Should I remove the bounded type arguments from the Bas...
android|android-fragments|android-architecture-components|android-viewmodel
0
2020-01-28T18:25:05.470Z
2,020
1
18
1
164
0
489
85
4
2
true
true
false
false
false
false
zero
59,954,893
Flutter: How to make TextView in Listview fill remaining space
<p>I need your help. I'm using a ListView that contains a Container with height of 100 and a <code>Textfield</code> with <code>maxlines</code> set to <code>null</code>. </p> <p><code>maxlines</code> are set to <code>null</code>, because the user should be able to write as many lines as he wants.</p> <p>The <code>Tex...
I need your help. I'm using a ListView that contains a Container with height of 100 and a Textfield with maxlines set to null . maxlines are set to null , because the user should be able to write as many lines as he wants. The Textfield and Container are nested in a ListView because they need to scroll together if the ...
android|flutter|flutter-layout
1
2020-01-28T18:25:33.730Z
2,020
1
18
1
2,974
1
711
62
3
0
false
false
true
false
false
false
low
59,954,902
android app is not showing ads with real id
<p>When I am using test ID (admob_app_id and ad_unit_id), my app is showing test ads, as intended. But with real id, there is no ad yet, inssted I am getting this message:</p> <pre><code>E/FA: Missing google_app_id. Firebase Analytics disabled. See .. 2020-01-28 23:38:34.625 13797-13797/com.example.phocast I/Ads: Ad f...
When I am using test ID (admob_app_id and ad_unit_id), my app is showing test ads, as intended. But with real id, there is no ad yet, inssted I am getting this message: [CODE] NB: I have created the app a couple of hours ago, but have already received the mail from google that Great news – your account is now approved ...
android|admob
0
2020-01-28T18:26:02.403Z
2,020
1
18
1
37
1
349
43
2
1
true
false
false
false
false
false
zero
59,954,971
How can i create Unit test case for SharedPreference?
<p>I want to test Unit test for SharedPreference. I don't know how can i mock these values, I just started unit testing. Can anyone please give me solution of this method, how can i test this method. </p> <pre><code>public static void oneMethod(Context context) { SharedPreferences prefs = context.getSharedPreferen...
I want to test Unit test for SharedPreference. I don't know how can i mock these values, I just started unit testing. Can anyone please give me solution of this method, how can i test this method. [CODE]
java|android|unit-testing|mockito|junit4
0
2020-01-28T18:30:30.187Z
2,020
1
18
1
143
1
203
53
5
1
true
false
false
false
false
false
zero
59,954,993
Android: how to test for 64-bit device compatability
<p>I was getting this warning in google play. This release is not compliant with the Google Play 64-bit requirement. The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code</p> <p>I noticed that my apk had only x86, x86_64, armeabi_v7a folders. So I updated the gradle b...
I was getting this warning in google play. This release is not compliant with the Google Play 64-bit requirement. The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code I noticed that my apk had only x86, x86_64, armeabi_v7a folders. So I updated the gradle build script...
android|64-bit
0
2020-01-28T18:32:03.970Z
2,020
1
18
1
133
1
475
52
2
0
false
false
false
false
false
false
zero
59,955,175
crash when focus input in webview android
<p>first login my website in webview successfully but for second login crash app when focus input username, this is error when crash:</p> <pre><code>W/ResourceType: Invalid package identifier when getting bag for resource number 0x02080003 Invalid package identifier when getting bag for resource number 0x02080...
first login my website in webview successfully but for second login crash app when focus input username, this is error when crash: [CODE]
android|webview|crash
5
2020-01-28T18:44:58.467Z
2,020
1
18
1
413
1
137
41
3
1
true
false
false
false
false
false
low
59,955,293
Why method from presenter could trigger twice since call from callback is only once (EventBus)
<p>I got tablayout with 2 fragments. When 1st fragment go on resume we see the next flow</p> <p>ActivityCallMethod -> PresenterCallMethod -> RepositoryCallMethod -> repositorySendCallBackToPresenter -> EventInPresenterTriggerAndCallMethodFromView -> ViewCallItsMethod ---And here strange ---> EventInPresenterTriggerAnd...
I got tablayout with 2 fragments. When 1st fragment go on resume we see the next flow ActivityCallMethod -> PresenterCallMethod -> RepositoryCallMethod -> repositorySendCallBackToPresenter -> EventInPresenterTriggerAndCallMethodFromView -> ViewCallItsMethod ---And here strange ---> EventInPresenterTriggerAndCallMethodF...
android|firebase|events|event-bus|greenrobot-eventbus
0
2020-01-28T18:54:26.663Z
2,020
1
18
1
60
0
733
94
5
4
true
true
false
false
false
false
zero
59,955,387
Android Studio - Flutter
<p>If I go to <code>app -&gt; src -&gt; main -&gt; res</code> and right click on it, there should be "Image Assets" to choose so I can customize my app icon. But as you can see there isn't. </p> <p>Can someone tell me the reason why?</p> <p><a href="https://i.stack.imgur.com/rl9lQ.jpg" rel="nofollow noreferrer"><img ...
If I go to app -> src -> main -> res and right click on it, there should be "Image Assets" to choose so I can customize my app icon. But as you can see there isn't. Can someone tell me the reason why?
android|flutter
1
2020-01-28T19:01:08.143Z
2,020
1
19
1
66
3
200
24
2
0
false
false
false
false
false
false
low
59,955,542
How do I make a smooth animation with ValueAnimator?
<p>I am wanting to hide an extended fab when it is clicked using an Animation. I want to scale the button down from original height and width to 0/gone. It disappears in the corner but the animation is laggy in the middle. </p> <pre><code> private fun animateHideScoreFab(){ val animX = ValueAnimator.ofInt(e...
I am wanting to hide an extended fab when it is clicked using an Animation. I want to scale the button down from original height and width to 0/gone. It disappears in the corner but the animation is laggy in the middle. [CODE] Result:
android|animation|material-design
0
2020-01-28T19:12:35.857Z
2,020
1
19
1
1,167
2
234
52
3
1
true
false
false
false
false
false
zero
59,955,572
Android Studio: show compiler error immediately / not only on the right side
<p>By default Android Studio shows compiler errors by a red, horizontal line on the right side of the code editor. Is there any plugin to show it in the left side (where the line numbers are) or even better at the bottom in a separate view like in Visual Studio and all the other IDEs?</p>
By default Android Studio shows compiler errors by a red, horizontal line on the right side of the code editor. Is there any plugin to show it in the left side (where the line numbers are) or even better at the bottom in a separate view like in Visual Studio and all the other IDEs?
android-studio|kotlin|ide
4
2020-01-28T19:14:08.050Z
2,020
1
19
1
140
1
282
76
3
0
false
false
false
false
false
false
low
59,955,646
Remove padding and margin in PreferenceCategory title
<p>I'm trying to remove the default padding and margin set in the title of a PreferenceCategory like this :</p> <p><a href="https://i.stack.imgur.com/5cGl8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5cGl8.png" alt="problem_image"></a></p> <pre><code>&lt;PreferenceScreen xmlns:android="htt...
I'm trying to remove the default padding and margin set in the title of a PreferenceCategory like this : [CODE] but it seems that in the attributes there is nothing about this. I also searched on the internet, but I didn't find anything useful. Thanks in advance.
android|xml|sharedpreferences
0
2020-01-28T19:19:43.417Z
2,020
1
19
1
54
0
263
53
3
1
true
true
false
false
false
false
zero
59,955,690
Flutter's main.dart file gets stuck at "Syncing files to device Android SDK built for x86 64..." at execution in Android Studio
<p>I am trying out my first ever flutter code on Android Studio and I am displaying it on an emulator. I do get the output but the compilation never ends, which means I cannot Hot Restart my code. The tutorial I am learning from isn't getting this problem.</p> <p><strong>EDIT</strong> : Some new errors arose. It start...
I am trying out my first ever flutter code on Android Studio and I am displaying it on an emulator. I do get the output but the compilation never ends, which means I cannot Hot Restart my code. The tutorial I am learning from isn't getting this problem. EDIT : Some new errors arose. It started hanging at "Installing bu...
android|gradle|flutter|dart
7
2020-01-28T19:23:26.987Z
2,020
1
19
1
7,605
7
583
127
4
1
true
false
true
false
false
false
medium
59,955,933
Find if the MUSIC_STREAM is active
<p>I would like to get a callback when the music stream starts being active. Say I start a webview with a youtube video, or I launch a music on spotify using their API. Eventually, the music stream will starts. Maybe not immediately, but I would like to receive a callback once it happens. Because I might have to deal w...
I would like to get a callback when the music stream starts being active. Say I start a webview with a youtube video, or I launch a music on spotify using their API. Eventually, the music stream will starts. Maybe not immediately, but I would like to receive a callback once it happens. Because I might have to deal with...
java|android|kotlin
0
2020-01-28T19:42:24.453Z
2,020
1
19
1
66
0
868
34
3
2
true
true
false
false
false
false
zero
59,955,957
Read/Write remote text from Google Drive or similar from Android in c#
<p>So, the title may be misleading. I am building an android app that reads information from a text file, which is located on a cloud server (I would prefer to use either OneDrive, DropBox, or Google Drive [whichever is easiest]; others are fine). Periodically, the program will write information to the text file, still...
So, the title may be misleading. I am building an android app that reads information from a text file, which is located on a cloud server (I would prefer to use either OneDrive, DropBox, or Google Drive [whichever is easiest]; others are fine). Periodically, the program will write information to the text file, still lo...
c#|android
1
2020-01-28T19:44:03.770Z
2,020
1
19
1
206
0
1,417
70
2
1
true
true
false
false
false
false
low
59,956,030
Questions about using 'liveData.observe'
<p>I'm learning Android development on my own. I thought I had gotten my head around what/how 'liveData.observe' worked. But... </p> <p>Making a small simple app that listens for input from a Bluetooth device and will display or hide an image based on that bluetooth input. </p> <p>I have all that working, but now I w...
I'm learning Android development on my own. I thought I had gotten my head around what/how 'liveData.observe' worked. But... Making a small simple app that listens for input from a Bluetooth device and will display or hide an image based on that bluetooth input. I have all that working, but now I want to add another fe...
android|kotlin|android-livedata
0
2020-01-28T19:50:16.457Z
2,020
1
19
1
152
1
1,418
40
3
5
true
false
false
false
false
false
zero
59,956,170
Send SMS text from HTML page on Android phone without displaying the SMS window
<p>I'd like to know if it was possible, using only a HTML page (Javascript allowed), to send a SMS to a number. I know it's possible to get the GPS position after having asked the user if he allowed the page to access this data, I imagine there is a "Do you allow this page to send SMS?" message I could display. Of cour...
I'd like to know if it was possible, using only a HTML page (Javascript allowed), to send a SMS to a number. I know it's possible to get the GPS position after having asked the user if he allowed the page to access this data, I imagine there is a "Do you allow this page to send SMS?" message I could display. Of course,...
javascript|android|html|sms
1
2020-01-28T20:01:30.147Z
2,020
1
20
1
236
1
451
79
4
0
false
false
false
false
false
false
low
59,956,362
how to send intent data between two activities using MVVM
<p>I want to send data from activity to another activity using MVVM but did't know what's the best way to get it in the receiver activity , is it right to use it like that, I see it totaly like mvc </p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc...
I want to send data from activity to another activity using MVVM but did't know what's the best way to get it in the receiver activity , is it right to use it like that, I see it totaly like mvc [CODE]
android|android-intent|android-activity|android-mvvm
0
2020-01-28T20:16:43.327Z
2,020
1
20
1
368
0
201
57
4
1
true
true
false
false
false
false
zero
59,956,407
Koin constructor inject few parameters MVVM Android Architecture
<p>I'm using MVVM architecture for my Android app and just started with Koin. When I'm trying to inject more than one parameter problems start appearing. For now I have <code>Repository</code> class which uses:</p> <ul> <li><code>RESTApi</code> to perform web calls. <code>RestProvider</code> uses <code>SocketProvider...
I'm using MVVM architecture for my Android app and just started with Koin. When I'm trying to inject more than one parameter problems start appearing. For now I have Repository class which uses: RESTApi to perform web calls. RestProvider uses SocketProvider as constructor parameter for this Utils(Context) as helper to ...
android|kotlin|mvvm|koin
0
2020-01-28T20:19:48.650Z
2,020
1
20
1
2,587
1
1,189
64
4
2
true
false
false
false
false
false
zero
59,956,592
EditWorkManager method getWorkInfoByIdLiveData not giving the WorkInfo
<p>I'm trying to get my WorkerInfo with the getWorkInfoByLiveData method that exists in the WorkManager instance.</p> <pre><code>val workInfo = workManager.getWorkInfoByIdLiveData(uuid).value </code></pre> <p>The WorkInfo is always null. Also, I'm calling this method from the main thread. </p> <p>The scenario of how...
I'm trying to get my WorkerInfo with the getWorkInfoByLiveData method that exists in the WorkManager instance. [CODE] The WorkInfo is always null. Also, I'm calling this method from the main thread. The scenario of how I'm checking this method. I try to enqueue my worker when a user sends a network request and if the i...
android|android-jetpack|android-workmanager|workmanagers
4
2020-01-28T20:32:59.787Z
2,020
1
20
1
604
1
1,343
70
4
2
true
false
false
false
false
false
low