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,944,294
Disable WAL mode
<p>It seems like my solution is not working and I don't know why. Here is what I try:</p> <p><strong>Logic</strong></p> <p>My app has a single database instance and if this instance is created does following:</p> <ol> <li>Get current database mode</li> <li>If current database mode == wal mode, I change it to persist</l...
It seems like my solution is not working and I don't know why. Here is what I try: Logic My app has a single database instance and if this instance is created does following: Get current database mode If current database mode == wal mode, I change it to persist change mode to persist Check if new mode is persist create...
android|sqlite
0
2020-01-28T07:54:38.837Z
2,020
1
7
1
815
1
1,568
16
2
3
true
false
false
false
false
false
zero
59,944,297
Creating a triangle shape at the bottom of layout
<p>I'm working on an android application that contains a shape at the top of the activity and I'm trying to implement it but struggling to do it. <a href="https://i.stack.imgur.com/i80jQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i80jQ.png" alt="the shape in the green color"></a></p> <p>I have ...
I'm working on an android application that contains a shape at the top of the activity and I'm trying to implement it but struggling to do it. I have tried to create a drawable file that create a triangle shape and sets up the bottom corner radius to match the shape above but not working. anyone can help me, please.
java|android|android-drawable|material-components-android|material-components
0
2020-01-28T07:54:48.210Z
2,020
1
7
1
432
1
317
49
5
0
false
false
false
false
false
false
zero
59,944,322
seeds.txt and usage.txt not generated for Proguard with Android Studio release build
<p>I am building my Android app release build by enabling <code>minifyEnabled</code> and <code>shrinkResources</code>. I am using a library named <code>spongycastle</code> for cryptographic purposes. The problem I am facing is that the entire spongycastle code is being bundled with the apk even if I am using a small pa...
I am building my Android app release build by enabling minifyEnabled and shrinkResources . I am using a library named spongycastle for cryptographic purposes. The problem I am facing is that the entire spongycastle code is being bundled with the apk even if I am using a small part of it. I am not sure which internal li...
android|proguard|spongycastle
2
2020-01-28T07:56:54.077Z
2,020
1
7
1
734
1
586
84
3
0
false
false
false
false
false
false
low
59,944,403
Enabling cache for exoplayer
<p>I have implemented exoplayer for hls video links, once video played it again loads the video to play, can anyone suggest how to stop loading again and play without buffering once video completely streamed. How to store cache for hls streaming video.Please provide solutions if any. Thanks in advance :)</p> <pre><cod...
I have implemented exoplayer for hls video links, once video played it again loads the video to play, can anyone suggest how to stop loading again and play without buffering once video completely streamed. How to store cache for hls streaming video.Please provide solutions if any. Thanks in advance :) [CODE] // player ...
android|caching|video|http-live-streaming|exoplayer
3
2020-01-28T08:03:56.233Z
2,020
1
8
1
6,258
2
370
28
5
2
true
false
true
false
false
false
low
59,944,435
instance of Dao class is not being initialized correctly
<p>I want to load data from database into the RecyclerView using <code>Kotlin Coroutine</code>, but it does not load data at first launch, but when App is restarted it loads up data correctly. It seems there is something wrong in repository class:</p> <p>NoteDao.kt is:</p> <pre><code>@Dao interface NoteDAO { @Qu...
I want to load data from database into the RecyclerView using Kotlin Coroutine , but it does not load data at first launch, but when App is restarted it loads up data correctly. It seems there is something wrong in repository class: NoteDao.kt is: [CODE] NoteRepository.kt [CODE] adapter class is [CODE] and ViewModel is...
android|kotlin|kotlin-coroutines|android-viewmodel|android-mvvm
1
2020-01-28T08:06:11.143Z
2,020
1
8
1
461
2
438
56
5
5
true
false
false
false
false
false
low
59,944,441
How to save the session identifier and send it when accessing the server?
<p>To maintain a session, I have to use a session id. How to save a session identifier and send it every time you access the server?</p> <ul> <li>I get the session identifier in <strong>header</strong>. Here is the response from the server from Fiddler:</li> </ul> <p>Set-Cookie: JSESSIONID=b09aa2c816d1b;</p> <ul> <...
To maintain a session, I have to use a session id. How to save a session identifier and send it every time you access the server? I get the session identifier in header . Here is the response from the server from Fiddler: Set-Cookie: JSESSIONID=b09aa2c816d1b; Class for generating an interface: [CODE] Api: [CODE] USE: [...
android|retrofit2
1
2020-01-28T08:06:53.753Z
2,020
1
8
1
786
1
374
73
2
3
true
false
false
false
false
false
low
59,944,498
TypeError while running Debug APK for React Native
<p><a href="https://i.stack.imgur.com/92iw3.jpg" rel="nofollow noreferrer">TypeError screen screenshot</a></p> <p>After installing the generated Debug APK when the Android app is opened it shows the above screen. After reloading from the server (<code>react-native start</code>), the error screen goes. How can I solve ...
TypeError screen screenshot After installing the generated Debug APK when the Android app is opened it shows the above screen. After reloading from the server ( react-native start ), the error screen goes. How can I solve this problem so the app does not show the error. Please answer the question.
javascript|android|react-native|typeerror
0
2020-01-28T08:10:53.853Z
2,020
1
8
1
42
2
298
50
4
0
false
false
false
false
false
false
zero
59,944,532
Add bottom info bar after the last Card usingCardView
<p><a href="https://i.stack.imgur.com/hUZhh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hUZhh.png" alt="Im looking to achieve something like on the image."></a></p> <p>I want to add some view element (it really doesn't matter, it could be <code>TextView</code>,<code>Button</code>, whatever) to t...
I want to add some view element (it really doesn't matter, it could be TextView , Button , whatever) to the bottom of the screen (above my BottomNavigationBar) to show some info (orange area in the picture). I tried to implement BottomAppBar but this bar belongs to every card in the card view, but I want it to be displ...
android|android-listview|android-cardview|bottomnavigationview
0
2020-01-28T08:13:20.283Z
2,020
1
8
1
56
1
575
53
4
2
true
false
false
false
false
false
zero
59,944,654
having an onitemclick error in recycler view
<p>I am trying to make items in the recyclerview clickable. I think i did everything right in the adapter class but in the home fragment i get the [getActivity(), mCategory] underlined <code>cAdapter = new CategoryAdapter(getActivity(), mCategory);</code> Below is the Adapter class</p> <pre><code>public class Category...
I am trying to make items in the recyclerview clickable. I think i did everything right in the adapter class but in the home fragment i get the [getActivity(), mCategory] underlined cAdapter = new CategoryAdapter(getActivity(), mCategory); Below is the Adapter class [CODE] And my Home fragment is given below [CODE] Thi...
android|android-recyclerview
0
2020-01-28T08:22:42.717Z
2,020
1
8
1
38
2
389
44
2
2
true
false
false
false
false
false
zero
59,944,733
java.util.ConcurrentModificationException while looping through arrayList
<p>Following is my code piece:</p> <pre><code>ArrayList&lt;Contact&gt; contactList = presenter.getContactList(); for (Contact contact : contactList) { if (null != contact) { String name = contact.getVehicleNumber(); final ArrayList&lt;Vehicle&gt; vehicleList = contact.getVehicles(); if (veh...
Following is my code piece: [CODE] I am getting java.util.ConcurrentModificationException . I have gone through other answers for similar questions but I am not doing any modifications to the original list by adding or removing items. Strange thing is it doesn't happen always. Will this Exception occur if presenter.get...
java|android
0
2020-01-28T08:29:54.970Z
2,020
1
8
1
84
0
422
73
2
2
true
true
false
false
false
false
zero
59,944,735
Using LiveData in Spinner
<p>I am newer in android. I use room database, AndroidViewModel, and LiveDate in my project. There is a model "Receipt" in my project, I have an activity with name "AddReceiptActivity" that there is a Spinner in this activity to display and select Place. There is another model for Place that store places. How to displ...
I am newer in android. I use room database, AndroidViewModel, and LiveDate in my project. There is a model "Receipt" in my project, I have an activity with name "AddReceiptActivity" that there is a Spinner in this activity to display and select Place. There is another model for Place that store places. How to display P...
android|mvvm|android-room|android-livedata
1
2020-01-28T08:30:00.240Z
2,020
1
8
1
935
1
509
25
4
3
true
false
false
false
false
false
low
59,944,738
Hiding time in status bar
<p>Question is very straight forward </p> <blockquote> <p>Is it possible to hide <strong>time</strong> in <strong>status bar</strong> at <strong>app level</strong>?</p> </blockquote> <p>I have seen many questions related to customizing status bars in terms of transparency, color.</p> <p>I'm assuming is there somet...
Question is very straight forward Is it possible to hide time in status bar at app level ? I have seen many questions related to customizing status bars in terms of transparency, color. I'm assuming is there something like Window.FEATURE__ for a time like below code or we should modify SystemUI and should make as Syste...
android|statusbar|android-statusbar
0
2020-01-28T08:30:31.567Z
2,020
1
8
1
213
1
397
25
3
1
true
false
false
false
false
false
zero
59,944,854
TextView wont show as bold
<p>the text in my TextView doesn't show in bold styling in run-time even after i set the flag on the XML to true, in all phone emulators/real phone debugging this is the code:</p> <pre><code> &lt;TextView android:id="@+id/textView1" android:layout_width="171dp" android:layout_height="37dp" ...
the text in my TextView doesn't show in bold styling in run-time even after i set the flag on the XML to true, in all phone emulators/real phone debugging this is the code: [CODE] important to say there is no other manipulation of the text in my code, only XML preset.
java|android|xml|textview
0
2020-01-28T08:38:17.130Z
2,020
1
8
1
83
1
268
26
4
1
true
false
false
false
false
false
zero
59,944,879
How to get TimeStamp of file from MediaStore on Android Q
<p>Please. In <strong>Android Q,</strong> How to find out <strong>timestamp</strong> of file from <strong>MediaStore</strong> or from mediaUri.</p> <p>cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATE_MODIFIED)</p> <p>Not working in Android Q.</p> <p>Michal</p>
Please. In Android Q, How to find out timestamp of file from MediaStore or from mediaUri. cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATE_MODIFIED) Not working in Android Q. Michal
android|file|timestamp|mediastore
0
2020-01-28T08:39:46.070Z
2,020
1
8
1
592
1
189
57
4
0
false
false
false
false
false
false
zero
59,944,922
Although the service activity is put into manifest file , this exception occurred
<p>this is my <code>manifest</code> file.</p> <p></p> <pre><code>&lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"&gt; &lt;s...
this is my manifest file. [CODE] Although the service activity is put into manifest file , this exception occurred [CODE] this the button code to go to DelayedMessageService . [CODE] and here is the service activity. [CODE]
java|android|service
-1
2020-01-28T08:43:40.193Z
2,020
1
8
1
41
2
223
81
3
4
true
false
false
false
false
true
negative
59,944,944
How to implemenet Google Maps URL?
<p>I am trying to implemenet <code>routes</code> into my <code>Android</code> app. The way it should work, it's that a person behind a web page sets a route, and the user receives it on his phone. I thought that I could use a DB, to store the routes and then fetch them on my app. I found that I could use <code>Google M...
I am trying to implemenet routes into my Android app. The way it should work, it's that a person behind a web page sets a route, and the user receives it on his phone. I thought that I could use a DB, to store the routes and then fetch them on my app. I found that I could use Google Maps URL to create a URL that has th...
android|maps
0
2020-01-28T08:45:21.797Z
2,020
1
8
1
56
2
695
34
2
0
false
false
false
false
false
false
zero
59,944,977
Kotlin Coroutines Flow with Room and state handling
<p>I'm trying out the new coroutine's flow, my goal is to make a simple repository that can fetch data from a web api and save it to db, also return a flow from the db.</p> <p>I'm using room and firebase as the web api, now everything seems pretty straight forward until i try to pass errors coming from the api to the ...
I'm trying out the new coroutine's flow, my goal is to make a simple repository that can fetch data from a web api and save it to db, also return a flow from the db. I'm using room and firebase as the web api, now everything seems pretty straight forward until i try to pass errors coming from the api to the ui. Since i...
android|firebase|android-room|kotlin-coroutines|kotlin-flow
4
2020-01-28T08:47:40.923Z
2,020
1
8
1
7,083
2
1,516
51
5
4
true
false
true
false
false
false
low
59,945,037
how can i display a list of selected checkboxes in an alert dialog?
<p>am trying to properly display a list of selected checkboxes stored in an array and display them as a list in an alert dialog. </p> <pre><code>if(registeredCourseList.getcoursessize() &lt;= 5){ System.out.println(registeredCourseList.getCoursesArray()); // setup the alert builder AlertDialog.Builder bui...
am trying to properly display a list of selected checkboxes stored in an array and display them as a list in an alert dialog. [CODE] i can get the courses but they display and an array object. i want to display the courses as a list of checkeboxes in the alert dialog.
java|android|arrays|android-alertdialog
-2
2020-01-28T08:51:51.597Z
2,020
1
8
1
86
1
268
67
4
1
true
false
false
false
false
true
negative
59,945,144
How to set custom permission's protectionLevel dynamically from build.gradle file?
<p>I would like to set an android permission's <code>protectionLevel</code> dynamically depending on debug or release, say, from the <code>build.gradle</code> file, something like this:</p> <p>The <code>AndroidManifest.xml</code> file:</p> <pre><code>&lt;permission android:name="com.somestring.MY_CUSTOM_PERMISSIO...
I would like to set an android permission's protectionLevel dynamically depending on debug or release, say, from the build.gradle file, something like this: The AndroidManifest.xml file: [CODE] And the build.gradle file: [CODE] Setting variables from build.gradle in this way works in java / other cases, but does not wo...
android|gradle|build.gradle|android-manifest
1
2020-01-28T08:59:08.947Z
2,020
1
8
1
97
1
469
82
4
2
true
false
false
false
false
false
low
59,945,168
Retrofit multiple response types
<p>How can I use Retrofit2 to parse these two kinds of API responses?</p> <p>Ok response (HTTP 200):</p> <pre><code>{ "data": { "foo": "bar" } } </code></pre> <p>Error response (HTTP 200):</p> <pre><code>{ "error": { "foo": "bar" } } </code></pre> <p>I've read tons of SO questions a...
How can I use Retrofit2 to parse these two kinds of API responses? Ok response (HTTP 200): [CODE] Error response (HTTP 200): [CODE] I've read tons of SO questions and tutorials, but I don't know how to do that, I've tried: [CODE] And this is my ItemTypeAdapterFactory: [CODE] But now I don't know the type to be declared...
java|android|json|gson|retrofit2
5
2020-01-28T09:01:08.990Z
2,020
1
9
1
4,775
1
414
32
5
5
true
false
true
false
false
false
low
59,945,185
How to resolve Connection error in couchdb android?
<p>Getting below error while connecting CouchDB server using Replicator</p> <pre><code>Status{activityLevel=CONNECTING, progress=Progress{completed=0, total=0}, error=CouchbaseLiteException{CouchbaseLite,11001,'WebSocket connection closed by peer'}} Status{activityLevel=STOPPED, progress=Progress...
Getting below error while connecting CouchDB server using Replicator [CODE] Below is my code; [CODE] Dependancy: [CODE]
android|couchbase|couchbase-lite
1
2020-01-28T09:02:13.170Z
2,020
1
9
1
248
0
119
51
3
3
true
true
false
false
false
false
low
59,945,229
Android Firestore "whereEqualTo" and "whereArrayContains" alongwith orderBy clause not working
<p>I am trying to get data from Firestore using multiple where clause and <code>orderBy</code> clause but I am not getting expected result . </p> <pre class="lang-java prettyprint-override"><code>firebaseChatReference.whereEqualTo("companyGuid", customerGuid) .whereArrayContains("threadJoinedUserList", mUserId) ...
I am trying to get data from Firestore using multiple where clause and orderBy clause but I am not getting expected result . [CODE] In my above query I can't see the effect of orderBy clause .
android|firebase|google-cloud-firestore
0
2020-01-28T09:05:26.573Z
2,020
1
9
1
48
0
192
94
3
1
true
true
false
false
false
false
zero
59,945,365
Picasso.with() loades images, but picasso.get() the images in my listview are not showing when collecting it from Firebase Database
<p>After Update picasso to use picasso.get() images from Firebase are not loading in listview</p> <p>When running debug I do get the <a href="https://xxxxx" rel="nofollow noreferrer">https://xxxxx</a> link and if I copy it into browser the image shows. Help will be appreciated in this matter. I have tried for the last...
After Update picasso to use picasso.get() images from Firebase are not loading in listview When running debug I do get the https://xxxxx link and if I copy it into browser the image shows. Help will be appreciated in this matter. I have tried for the last week to sort this out been to so many web pages but none of them...
android|picasso
1
2020-01-28T09:12:48.050Z
2,020
1
9
1
94
1
434
131
2
2
true
false
false
false
false
false
low
59,945,405
Your app isn't using AndroidX - Flutter doesn't allow me to generate apk
<p>I developed an app in flutter with Visual Studio code on Mac. I ran the application without any kind of problem on IOS. I also installed it on a physical device and it works perfectly, but I have a problem generating the Android project study and its APK on with flutter.</p> <p><strong>Message</strong>: </p> <pre>...
I developed an app in flutter with Visual Studio code on Mac. I ran the application without any kind of problem on IOS. I also installed it on a physical device and it works perfectly, but I have a problem generating the Android project study and its APK on with flutter. Message : [CODE]
android|gradle|flutter|dart
7
2020-01-28T09:15:45.387Z
2,020
1
9
1
17,869
8
288
72
4
1
true
false
true
true
false
false
medium
59,945,541
How to Make Genymotion emulator or android device to slow down internet speed
<p>Need to test with slow connection to check the user facing issues in device and genymotion. How to slow down WiFi connection or internet connection in mobile device and genymotion device.</p>
Need to test with slow connection to check the user facing issues in device and genymotion. How to slow down WiFi connection or internet connection in mobile device and genymotion device.
java|android|android-studio|genymotion
1
2020-01-28T09:22:39.883Z
2,020
1
9
1
264
0
187
77
4
0
false
true
false
false
false
false
low
59,945,690
I want to sort my listview according to date in this formate ? in java android studio
<p>I have a question my date formate is d mmm,yyyy how I can sort this? FORMAT d mmm,yyyy I want to sort my list with a date anyone help me please in this formate how I can solve my problem?</p>
I have a question my date formate is d mmm,yyyy how I can sort this? FORMAT d mmm,yyyy I want to sort my list with a date anyone help me please in this formate how I can solve my problem?
java|android
0
2020-01-28T09:31:14.370Z
2,020
1
9
1
55
1
187
85
2
0
false
false
false
false
false
false
zero
59,945,800
Why are Android versions older than 5.0 not vulnerable to CVE-2017-13156?
<p>I was just reading about the <a href="https://www.guardsquare.com/en/blog/new-android-vulnerability-allows-attackers-modify-apps-without-affecting-their-signatures" rel="nofollow noreferrer">Janus vulnerability (CVE-2017-13156)</a> and there is one thing I cannot understand.</p> <p>The vulnerability lies in the imp...
I was just reading about the Janus vulnerability (CVE-2017-13156) and there is one thing I cannot understand. The vulnerability lies in the implementation of the installation of the APK and Signature Scheme v1 (JAR signature). It allows you to craft a mallicious APK file by prepending a mallicious DEX file to a legitim...
android|security|apk|jar-signing|cve
1
2020-01-28T09:36:44.010Z
2,020
1
9
1
182
1
881
73
5
0
false
false
false
false
false
false
low
59,945,841
Android Plugin not working in unity with class not found exception?
<p>I tried creating a plugin but not working in unity.I do not have much idea about Android studio but watched this <a href="https://www.youtube.com/watch?v=E54KjhrP66I" rel="nofollow noreferrer">video</a> to create an android plugin.I created a new android project without any activity.So I have written two classes Uni...
I tried creating a plugin but not working in unity.I do not have much idea about Android studio but watched this video to create an android plugin.I created a new android project without any activity.So I have written two classes UnityBinder.java and Gallery.java.They are given below UnityBinder.java [CODE] Gallery.jav...
java|c#|android|unity3d
2
2020-01-28T09:39:04.037Z
2,020
1
9
1
2,284
1
771
67
4
5
true
false
false
false
false
false
low
59,945,961
orientation changes in a NativeActivity
<p>I have got a problem handling orientation changes from a nativeactivity for my opengl related app. </p> <p>I have the JNI setup for two functions:<br> - One for setting the orientation and<br> - One for getting what the orientation currently is. </p> <p>I am using the constants for <code>setRequestedOrientation(i...
I have got a problem handling orientation changes from a nativeactivity for my opengl related app. I have the JNI setup for two functions: - One for setting the orientation and - One for getting what the orientation currently is. I am using the constants for setRequestedOrientation(int) : [CODE] Now, im using config ch...
android-studio|android-ndk|native-activity
1
2020-01-28T09:46:17.990Z
2,020
1
9
1
142
0
956
39
3
1
true
true
false
false
false
false
low
59,945,980
How to get session id from cookie?
<p>I take away all the cookies, and what I get is: <strong>JSESSION=234234fsdf23</strong>.<br> But I only need a value without <strong>JSESSION</strong>.<br> Please tell me how to do this?</p> <pre><code> Headers header = response.headers(); List&lt;String&gt; cookieList = header.values("Set-Cookie"); String js...
I take away all the cookies, and what I get is: JSESSION=234234fsdf23 . But I only need a value without JSESSION . Please tell me how to do this? [CODE]
java|android
1
2020-01-28T09:47:21.837Z
2,020
1
9
1
1,115
1
152
34
2
1
true
false
false
false
false
false
low
59,945,984
react-native-google-signin and android.support.v4.net does not exist error
<p>I have some problem when integrating <code>react-native-google-signin</code> into native android code. I use react-native 0.59.8 and i can't upgrade to 0.60 so far. Therefore I followed an instruction for older <code>react-native-google-signin</code> version which is 2.1.1. Unfortunately it's not working for me. It ...
I have some problem when integrating react-native-google-signin into native android code. I use react-native 0.59.8 and i can't upgrade to 0.60 so far. Therefore I followed an instruction for older react-native-google-signin version which is 2.1.1. Unfortunately it's not working for me. It gives me some errors concerni...
android|react-native
2
2020-01-28T09:47:36.253Z
2,020
1
9
1
259
1
991
74
2
3
true
false
false
false
false
false
low
59,946,014
Crashlytics had a problem uploading the deobs file
<p>I'm found that crash reports became unreadable because of obfuscation. From crashlytics log i'm found exception</p> <pre><code> [DEBUG] (Execution worker for ':') com.crashlytics - POST file: /home/...-875c- 4f7e9d519d53.zip to URL: https://cm.crashlytics.com/api/v3/platforms/android/code_mappings [DEB...
I'm found that crash reports became unreadable because of obfuscation. From crashlytics log i'm found exception [CODE] [CODE] Has anyone encountered this problem
android|android-studio|crashlytics
1
2020-01-28T09:49:06.660Z
2,020
1
9
1
3,028
2
161
50
3
2
true
false
true
false
false
false
low
59,946,045
Animate a car on google map on firebase change event
<p>I am trying to implement track activity in my app and am stack on how to move a bike smoothly along polyline. I have created a service in driver app that periodically update firebase db with current location. On the customer app have create a TrackActivity that is supposed to read real time database change and move ...
I am trying to implement track activity in my app and am stack on how to move a bike smoothly along polyline. I have created a service in driver app that periodically update firebase db with current location. On the customer app have create a TrackActivity that is supposed to read real time database change and move the...
java|android
0
2020-01-28T09:50:54.320Z
2,020
1
9
1
32
0
565
52
2
1
true
true
false
false
false
false
zero
59,946,107
How can I check if other hosts are connected to a device's adb
<p>I'm hosting a pool of emulators on a server that exposes the devices on different IPs. They are used to run test suits from our CI and from the developers. Is there any way I can check if another host(dev or ci job) is already adb-connected to it so that I can make them use another device ?</p> <p>I thought about s...
I'm hosting a pool of emulators on a server that exposes the devices on different IPs. They are used to run test suits from our CI and from the developers. Is there any way I can check if another host(dev or ci job) is already adb-connected to it so that I can make them use another device ? I thought about some adb she...
android|adb
2
2020-01-28T09:54:39.237Z
2,020
1
9
1
99
0
420
62
2
0
false
true
false
false
false
false
low
59,946,140
Implement Woocommerce POST Request in android
<p>I am developing Android Application and using woocommerce REST API i am able to fetch products and display them in android app</p> <p>But i am not able to create order and customer using POST method in android. I have gone through documentation and all available things but not found something related to POST method...
I am developing Android Application and using woocommerce REST API i am able to fetch products and display them in android app But i am not able to create order and customer using POST method in android. I have gone through documentation and all available things but not found something related to POST method in android...
android|woocommerce|woocommerce-rest-api
-1
2020-01-28T09:56:47.613Z
2,020
1
9
1
46
1
401
45
3
0
false
false
false
false
false
true
negative
59,946,165
How can I do without memory leak getInstance()
<p>I'm using the static instance object for data related from another activity in my application. But this leads to a memory leak. </p> <pre><code>public class ChartActivity extends AppCompatActivity { private static ChartActivity instance; @Override protected void onCreate(Bundle savedInstanceState) {...
I'm using the static instance object for data related from another activity in my application. But this leads to a memory leak. [CODE] I need to call the floating action button in another activity. I don't hide it or I need to update the recyclerview in another fragment again [CODE] [CODE] [CODE] How can I solve this w...
java|android|memory-management|memory-leaks
1
2020-01-28T09:58:31.267Z
2,020
1
9
1
211
1
358
46
4
4
true
false
false
false
false
false
low
59,946,234
Two threads enter a synchronized block
<p>I have a block wrapped in synchronized(this), and I see both in Debug mode and in the logs that 2 threads enter this section at the same time.</p> <pre><code>public void dispatch(Event.Builder eventBuilder) { synchronized (this) { index++; getLogger().d(TAG, "race condition line A - The index i...
I have a block wrapped in synchronized(this), and I see both in Debug mode and in the logs that 2 threads enter this section at the same time. [CODE] Logs: [CODE] As you can see I'm increasing the data member index every time I enter the synchronized block. It should print 3 log lines with each index, but as you can se...
java|android|synchronization|race-condition|synchronized
-2
2020-01-28T10:03:02.777Z
2,020
1
10
1
138
1
620
38
5
2
true
false
false
false
false
true
negative
59,946,272
Android: override onPostExecute() if AsyncTask.execute(new Runnable()) is invoked in a method
<p>I have a method which I want to execute on a background thread:</p> <pre><code>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); foo(); } public static void foo(){ AsyncTa...
I have a method which I want to execute on a background thread: [CODE] I would like to execute foo2 when AsynTask is complete i.e. onPostExecute() . How can I override onPostExecute() in this case?
java|android|android-asynctask
0
2020-01-28T10:04:47.330Z
2,020
1
10
1
100
3
197
93
3
1
true
false
false
false
false
false
zero
59,946,382
Cordova: Android target: not installed avdmanager: Command failed with exit code 1
<p>I am trying to work with cordova and after installing android studio, SDK and all other requirements when I check the requirements I get the following error:</p> <p><a href="https://i.stack.imgur.com/WgQ8J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WgQ8J.png" alt="enter image description her...
I am trying to work with cordova and after installing android studio, SDK and all other requirements when I check the requirements I get the following error: all solutions I found here say I should add Both JAVA_HOME and ANDROID_HOME to environment variables, also the path of tools, tools/bin and platform-tools, which ...
javascript|android|cordova|cross-platform|hybrid-mobile-app
1
2020-01-28T10:11:06.553Z
2,020
1
10
1
683
1
396
82
5
0
false
false
false
false
false
false
low
59,946,396
Android: Observing Room DB through LiveData & ViewModel in Activity
<p>I have created a basic example in which, an activity is observing room DB through LiveData. For more information, please check the following code:</p> <pre><code> @Dao interface NoteDao { @Query("SELECT * FROM note ORDER BY date_created DESC") fun getAll(): LiveData&lt;List&lt;Note&gt;&gt; ...
I have created a basic example in which, an activity is observing room DB through LiveData. For more information, please check the following code: [CODE] So, here is the thing. It is working fine. Any update on DB from the background happens then Activity gets a callback. However, Why is it not throwing any error while...
android|android-room|android-livedata|android-viewmodel
2
2020-01-28T10:11:48.697Z
2,020
1
10
1
1,482
1
423
67
4
1
true
false
false
false
false
false
low
59,946,485
How to write a use case that retrieves data from Android framework with Context
<p>I am migrating an application to MVVM and clean architecture, and I am missing one part of the puzzle.</p> <p><strong>The problem domain:</strong></p> <p>List all applications on device and display them in the Fragment / Activity</p> <p>A device app is represented by its package name:</p> <p><code>data class DeviceA...
I am migrating an application to MVVM and clean architecture, and I am missing one part of the puzzle. The problem domain: List all applications on device and display them in the Fragment / Activity A device app is represented by its package name: data class DeviceApp(val packageName: String) This is how the device app...
android|mvvm|use-case|android-mvvm|clean-architecture
4
2020-01-28T10:16:49.267Z
2,020
1
10
1
1,925
2
782
79
5
1
true
false
false
false
false
false
low
59,946,535
How to show custom info window on map view
<p>I need to show a custom info window when I click on a pin.</p> <p>The pin is directly in style on the layer.</p> <p>When I creating a map Im getting the style by url:</p> <pre><code> mapView?.getMapAsync { map -&gt; map.setStyle(Style.Builder().fromUrl("mapbox://styles/my-style")) { ...
I need to show a custom info window when I click on a pin. The pin is directly in style on the layer. When I creating a map Im getting the style by url: [CODE] Then I define this layer: [CODE] OnMapClick method: [CODE] HandleClickIcon method: [CODE] Mapbox example uses custom GeoJson: https://docs.mapbox.com/android/ma...
java|android|kotlin|mapbox|mapbox-android
1
2020-01-28T10:19:30.333Z
2,020
1
10
1
1,265
1
428
42
5
4
true
false
false
false
false
false
low
59,946,589
PHP <b>Warning</b>: Illegal string offset 'image_name' from Android
<p>Trying to send <strong><em>arraylist data to server using php</em></strong> as bridge from <strong><em>Android (using Volley)</em></strong>, and successfully <strong><em>getting data into database table</em></strong> (and also <strong><em>getting response as submit</em></strong>, I mentioned in <strong><em>php</em><...
Trying to send arraylist data to server using php as bridge from Android (using Volley) , and successfully getting data into database table (and also getting response as submit , I mentioned in php ) in Android So everything looks perfect , if we talk about db connection, storage and response , but one unusal issue alw...
php|android
-1
2020-01-28T10:22:56.407Z
2,020
1
10
1
64
1
575
67
2
4
true
false
false
false
false
true
negative
59,946,680
How to Flip widgets symmetrically inside ConstraintLayout using ConstraintSet with ChainStyle?
<p>I've created 2 <strong>recyclerView</strong> inside <strong>ConstraintLayout</strong> that's constrained Horizontally with <strong>chainStyle</strong> <code>layout_constraintHorizontal_chainStyle="spread_inside"</code> however, i want to flip them symmetrically using <strong>ConstraintSet</strong> <strong>Clear</st...
I've created 2 recyclerView inside ConstraintLayout that's constrained Horizontally with chainStyle layout_constraintHorizontal_chainStyle="spread_inside" however, i want to flip them symmetrically using ConstraintSet Clear and Connect . When i'm trying to connect the widgets with ConstraintSet CHAIN_SPREAD_INSIDE this...
android|android-layout|android-xml
1
2020-01-28T10:27:45.183Z
2,020
1
10
1
138
0
817
94
3
4
true
true
false
false
false
false
low
59,946,702
How to access a file in Processing Android Mode
<p>I am trying to access a file in Processing Android Mode using the following:</p> <pre><code>File file = new File(filePath); </code></pre> <p>And I tried the following options for setting filePath for the file “1.sf2” in the “data” folder that I created in the current sketch directory. However, none of them worked....
I am trying to access a file in Processing Android Mode using the following: [CODE] And I tried the following options for setting filePath for the file “1.sf2” in the “data” folder that I created in the current sketch directory. However, none of them worked. [CODE] According to the github page of Processing Android Mod...
android|processing|assets|mode
1
2020-01-28T10:29:24.157Z
2,020
1
10
1
232
0
740
47
4
2
true
true
false
false
false
false
low
59,946,826
Is there a way i can program an App that executes predefined gestures and movements?
<p>I want the App to have predefined gestures like: goOnline(); that opens WhatsApp, then click on the first chat, read the message and reply with a Dialogflow Interaction.</p> <p>Yet, i did find something about WhatsApp not having an API and not letting it do things with it Programmatically, so i want to have an app ...
I want the App to have predefined gestures like: goOnline(); that opens WhatsApp, then click on the first chat, read the message and reply with a Dialogflow Interaction. Yet, i did find something about WhatsApp not having an API and not letting it do things with it Programmatically, so i want to have an app that runs i...
java|android
0
2020-01-28T10:34:57.307Z
2,020
1
10
1
35
0
1,188
84
2
0
false
true
false
false
false
false
zero
59,946,851
How to select which one to show in case of dual video in .mp4 file?
<p>I'm using surfaceView where i'm rendering the video. I have a .mp4 file with video/hevc and video/avc. I made two threads such that they are extracted, decoded and rendered to the surface though the surfaceView. i can choose which video to show in the surface by changing this line in the thread:</p> <pre><code> dec...
I'm using surfaceView where i'm rendering the video. I have a .mp4 file with video/hevc and video/avc. I made two threads such that they are extracted, decoded and rendered to the surface though the surfaceView. i can choose which video to show in the surface by changing this line in the thread: [CODE] to [CODE] But ho...
surfaceview|android-mediacodec|output-buffering|mediaextractor|input-buffer
1
2020-01-28T10:36:41.263Z
2,020
1
10
1
62
1
381
67
5
2
true
false
false
false
false
false
low
59,946,860
Set style containing android:textColor and android:background programatically? (Xamarin.Android)
<p>I have the following styles in <code>styles.xml</code> :</p> <pre><code>&lt;style name="tabSelected"&gt; &lt;item name="android:textColor"&gt;#FFFFFF&lt;/item&gt; &lt;item name="android:background"&gt;#0000ff&lt;/item&gt; &lt;/style&gt; &lt;style name="tabUnselected"&gt; &lt;item name="android:textColo...
I have the following styles in styles.xml : [CODE] And I have two TextViews in my activity. When I click the first TextView I want to add the style tabSelected to it and to remove tabUnselected from it and when I click the second TextView I want to add the style tabSelected to it and to remove tabUnselected from it: I ...
xamarin.android|attributes|set|styles|programmatically
0
2020-01-28T10:37:11.337Z
2,020
1
10
1
92
0
779
96
5
4
true
true
false
false
false
false
zero
59,946,925
Android studio layout sorting by subfolders not working
<p>I have managed to move my <code>layout</code> files into separate folders using <a href="https://medium.com/mindorks/how-to-put-android-layout-files-in-subfolders-1f7cf07ff48f" rel="nofollow noreferrer">this link</a>. I moved the <code>.xml</code> files according to the folders, added the <code>gradle</code> <code>s...
I have managed to move my layout files into separate folders using this link . I moved the .xml files according to the folders, added the gradle sourceSets and after I Sync , on the Android view of the project on the res folder, it still appears the layout folder, showing me all the .xml files alltogheter. Somehow this...
android
0
2020-01-28T10:41:35.200Z
2,020
1
10
1
97
0
598
55
1
0
false
true
false
false
false
false
zero
59,947,012
dialogFragment in landscape is not appearing
<p>I have a problem with a fragment dialog, if the phone is on portrait mode, everything is ok, but when I rotate my phone, in the landscape, if i launch the dialogFragment, only the header of the dialog is visible</p> <p>i tried this below but it doesn't work</p> <pre><code>override fun onStart() { super...
I have a problem with a fragment dialog, if the phone is on portrait mode, everything is ok, but when I rotate my phone, in the landscape, if i launch the dialogFragment, only the header of the dialog is visible i tried this below but it doesn't work [CODE] All of my code MainActivity dialogFragment Layouts
android|android-fragments
0
2020-01-28T10:46:25.687Z
2,020
1
10
1
60
0
308
44
2
1
true
true
false
false
false
false
zero
59,947,060
Map height based on screen width with zoom level 0
<p>I'm trying to calculate and set programatically the height of google's map view, to be the exact height of the shown map content. I use zoom level 0 because I want to present the whole world.</p> <p>The problem is, that I don't find how to get the actual height of the map's content given that the width is constrain...
I'm trying to calculate and set programatically the height of google's map view, to be the exact height of the shown map content. I use zoom level 0 because I want to present the whole world. The problem is, that I don't find how to get the actual height of the map's content given that the width is constraint to parent...
java|android|google-maps|height
0
2020-01-28T10:49:55.840Z
2,020
1
10
1
402
0
1,166
50
4
3
true
true
false
false
false
false
zero
59,947,151
Kotlin Direct Access XML Error on clicking ImageView
<p>I have the current working code, which add</p> <pre><code>mNavigationView = findViewById(R.id.navigation) mDrawerLayout = findViewById(R.id.drawerLayout) val headerview : View = mNavigationView.getHeaderView(0) mSettingsIcon = headerview.findViewById(R.id.settingsIcon) mSettingsIcon.setOnClickListener { // n...
I have the current working code, which add [CODE] I want to replace it using direct XML access that is available on Kotlin. I tried the following: [CODE] But I received the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.app/com.my.app.MainActivity}: java.lang.NullPointerExcep...
android|kotlin
0
2020-01-28T10:54:52.853Z
2,020
1
10
1
113
1
951
52
2
4
true
false
false
false
false
false
zero
59,947,184
How to check the TypeOf value coming in Json Response?
<p>I am getting <code>JSON</code> Response which have a key <code>studentScore</code>. </p> <p>First time it comes <code>studentScore="102"</code> and,</p> <p>Second time it comes like <code>studentScore = 101</code>. </p> <p>So, My Question is how Can I detect every time which type of value is coming? for example...
I am getting JSON Response which have a key studentScore . First time it comes studentScore="102" and, Second time it comes like studentScore = 101 . So, My Question is how Can I detect every time which type of value is coming? for example integer or string. so, how can i figure out about this in android using JsonObje...
android|json
0
2020-01-28T10:56:42.190Z
2,020
1
10
1
57
0
324
54
2
0
false
true
false
false
false
false
zero
59,947,224
Dagger 2: error: [ComponentProcessor:MiscError] circular dependency with generated code
<p>I am working on a project where the old dagger is implemented in code-base. Today, I try to optimize the dagger implementation to dagger 2.2. As you know that google updated the dagger library to make the library easy to implement in android there are some helper classes like Dagger Activity, Dagger Application, and...
I am working on a project where the old dagger is implemented in code-base. Today, I try to optimize the dagger implementation to dagger 2.2. As you know that google updated the dagger library to make the library easy to implement in android there are some helper classes like Dagger Activity, Dagger Application, and Da...
android|dagger-2
3
2020-01-28T11:00:13.720Z
2,020
1
11
1
5,553
2
691
87
2
3
true
false
true
false
false
false
low
59,947,423
How to get selected Popup Menu item position value and pass it
<p>I've got a <code>Popup menu</code> that should launch a Maps intent whenever a Popup menu item is clicked. In <code>popupMenu.setOnMenuItemClickListener</code>, does anyone know how I can pass the <code>String</code> of the clicked <code>Popup menu</code> item (from the <code>arrayAMap</code> array) and use it for a...
I've got a Popup menu that should launch a Maps intent whenever a Popup menu item is clicked. In popupMenu.setOnMenuItemClickListener , does anyone know how I can pass the String of the clicked Popup menu item (from the arrayAMap array) and use it for an intent? I've already got the Arrays but I can't seem to figure ou...
android|kotlin|android-recyclerview|android-arrayadapter|android-popupwindow
1
2020-01-28T11:11:15.837Z
2,020
1
11
1
867
1
373
62
5
1
true
false
false
false
false
false
low
59,947,429
Condition rendering for login fields in xml
<p>I come from a react background but recently have had to do more xml as part of my job.</p> <p>Currently understand you can display different layouts if a user does something. However if a user is logging in. Say username and password and when a field is empty i want the drawable to flip to red. Creating a new layou...
I come from a react background but recently have had to do more xml as part of my job. Currently understand you can display different layouts if a user does something. However if a user is logging in. Say username and password and when a field is empty i want the drawable to flip to red. Creating a new layout seems odd...
android|xml|kotlin
0
2020-01-28T11:11:40.977Z
2,020
1
11
1
25
0
560
43
3
1
true
true
false
false
false
false
zero
59,947,482
How to adjust index in a string after removing some characters?
<p>I am very new to regex and text manipulation so this might be trivial for many but it is turning out to be quite a nuisance for me. </p> <p>I have a string like so:<br> </p> <blockquote> <p>*text* text text text *text*</p> </blockquote> <p>where the text b/w the * denotes the text that has to be bold<br> So the...
I am very new to regex and text manipulation so this might be trivial for many but it is turning out to be quite a nuisance for me. I have a string like so: *text* text text text *text* where the text b/w the * denotes the text that has to be bold So the desired output is text text text text text I am halfway there usi...
android|regex|textview|spannablestring
0
2020-01-28T11:14:51.640Z
2,020
1
11
1
201
2
646
63
4
2
true
false
false
false
false
false
zero
59,947,532
How can a Delagetes.observable in a BroadcastReceiver be unit tested?
<p>How can i test a Delegates.Observable that is inside a BroadcastReceiver. I need to get battery level of device and check if it's just went below or above pre-defined critical level, and upload to server using UseCase of clean architecture. I used observable to observe only changing states.</p> <pre><code>private fu...
How can i test a Delegates.Observable that is inside a BroadcastReceiver. I need to get battery level of device and check if it's just went below or above pre-defined critical level, and upload to server using UseCase of clean architecture. I used observable to observe only changing states. [CODE] And observable [CODE]...
android|unit-testing|kotlin-delegate
0
2020-01-28T11:17:58.453Z
2,020
1
11
1
74
1
473
69
3
2
true
false
false
false
false
false
zero
59,947,563
Installed APK file is not appearing in home launcher
<p>I have developed an application for Android box and installed that build on android 6,7,8,9 versions. App is getting opened in all versions. But in 6 and 7 versions the app is not visible on home launcher so, I opened the application through settings->apps.</p> <p>Why the app is not coming on home launcher in 6 and...
I have developed an application for Android box and installed that build on android 6,7,8,9 versions. App is getting opened in all versions. But in 6 and 7 versions the app is not visible on home launcher so, I opened the application through settings->apps. Why the app is not coming on home launcher in 6 and 7 versions...
java|android
0
2020-01-28T11:19:32.183Z
2,020
1
11
1
62
0
321
52
2
0
false
true
false
false
false
false
zero
59,947,591
Error related to null reference to application context, reading nfc
<p>I am trying to create an app, were on my second activity called NFCActivity I want to be able to read an NFC tag, i simply want the UTF-8 String, nothing else. My MainActivity is my login form, user will be automatically directed to the NFCActivity if logged in, (using sharedprefs)</p> <p>I've not found any clear a...
I am trying to create an app, were on my second activity called NFCActivity I want to be able to read an NFC tag, i simply want the UTF-8 String, nothing else. My MainActivity is my login form, user will be automatically directed to the NFCActivity if logged in, (using sharedprefs) I've not found any clear answers to m...
android
0
2020-01-28T11:21:29.540Z
2,020
1
11
1
26
1
610
67
1
1
true
false
false
false
false
false
zero
59,947,597
Applying conditions on "optional_subdirs" using Golang in Android.bp?
<p>In our AOSP source code, There is one library in this path <code>vendar/myvendor/apps/Dialer/SomeLib</code> Since <code>SomeLib</code> is in 2nd level of apps directory. We needed to add below in <code>Dialer</code> app's <code>Android.bp</code> in order to include <code>SomeLib</code> at build time:</p> <pre><code...
In our AOSP source code, There is one library in this path vendar/myvendor/apps/Dialer/SomeLib Since SomeLib is in 2nd level of apps directory. We needed to add below in Dialer app's Android.bp in order to include SomeLib at build time: [CODE] So as expected SomeLib is getting picked up at build time. However This Lib ...
android|go|android-source
1
2020-01-28T11:21:48.923Z
2,020
1
11
1
759
1
858
69
3
1
true
false
false
false
false
false
low
59,947,806
Trying intent extras to restore string value into textview
<p>I'm quite new to programming in android studio and can't seem to make my application restore an intent value into a textview.</p> <p>I have a questions activity where a user is asked some questions, these are answered using yes/no radio buttons. From here a advanced diagnosis is already made, so the diagnosis is st...
I'm quite new to programming in android studio and can't seem to make my application restore an intent value into a textview. I have a questions activity where a user is asked some questions, these are answered using yes/no radio buttons. From here a advanced diagnosis is already made, so the diagnosis is stored in the...
java|android
0
2020-01-28T11:32:39.603Z
2,020
1
11
1
54
3
805
58
2
2
true
false
false
false
false
false
zero
59,947,817
Difference between Foreground Service and JobScheduler
<p>I have an app where I use a foreground service to start a number N of threads that sleep most of the time and sometimes wake up to do some measurements.</p> <p>I used foreground services because I need that these measurements must be done at specific and exact time without background limitations introduced by Andro...
I have an app where I use a foreground service to start a number N of threads that sleep most of the time and sometimes wake up to do some measurements. I used foreground services because I need that these measurements must be done at specific and exact time without background limitations introduced by Android 8.0. Thi...
android
0
2020-01-28T11:33:02.470Z
2,020
1
11
1
2,107
2
549
54
1
0
false
false
false
false
false
false
zero
59,947,859
How can I limit the area of chip items (the wrap area) to 2 lines max inside the ChipGroup?
<p>I am trying to implement a <strong>ChipGroup</strong> with some <strong>chip</strong> items inside it. Which works fine so far. But My requirement is to show these items inside the <strong>ChipGroup</strong> with certain number of rows. As example: I have 20 items as chip inside my group, And only 6/7 items fits in ...
I am trying to implement a ChipGroup with some chip items inside it. Which works fine so far. But My requirement is to show these items inside the ChipGroup with certain number of rows. As example: I have 20 items as chip inside my group, And only 6/7 items fits in between the 2 lines. So, I want to show the chips whic...
android|kotlin|material-design|android-chips
1
2020-01-28T11:35:06.610Z
2,020
1
11
1
2,630
2
625
91
4
0
false
false
true
false
false
false
low
59,947,883
open app automatically when fcm notification is received while app is kill or on background
<p><strong>how to resolve this issue any one give send me any solution according to this issues</strong></p> <p><em>fcm notification is received but app not opened how to handle it</em></p> <pre><code>public void onMessageReceived(RemoteMessage remoteMessage) { Intent intent = new Intent(INTENT_FILTER); ...
how to resolve this issue any one give send me any solution according to this issues fcm notification is received but app not opened how to handle it [CODE]
android|push-notification|firebase-notifications
3
2020-01-28T11:36:09.173Z
2,020
1
11
1
378
1
156
91
3
1
true
false
false
false
false
false
low
59,947,914
Room Primary Key Autogenerate multiple Columns
<p>my Current Entity looks like this:</p> <pre><code>@Entity( tableName = "cells", foreignKeys = [ForeignKey( entity = Table::class, parentColumns = arrayOf("id"), childColumns = arrayOf("tableId"), onDelete = ForeignKey.CASCADE ), ForeignKey( entity = Co...
my Current Entity looks like this: [CODE] Each Cell has its own Unique ID, but that is not what i want i want my PrimaryKey to be made up out of "id", "tableId", "columnId" Id should be autogenerated and it should be possible to have the same id multiple times. just the combination of these 3 fields should be unique In...
android
2
2020-01-28T11:37:52.080Z
2,020
1
11
1
60
0
514
46
1
2
true
true
false
false
false
false
low
59,948,006
why retrofit returning empty data?
<p>I am developing a new android app but My app getting showing empty data in recycler view in MainActivity and I have put a breakpoint there are also showing null but I am already initializing data I want to know where I am making mistake what I am missing?</p> <p>below my RestClient.kt</p> <pre><code>class RestClie...
I am developing a new android app but My app getting showing empty data in recycler view in MainActivity and I have put a breakpoint there are also showing null but I am already initializing data I want to know where I am making mistake what I am missing? below my RestClient.kt [CODE] below my Post.kt data class [CODE]...
android|kotlin|android-recyclerview|retrofit
0
2020-01-28T11:42:28.460Z
2,020
1
11
1
93
2
518
34
4
8
true
false
false
false
false
false
zero
59,948,029
Wait for AsyncTask.execute(()) to finish before returning result
<p>I am reading data from local <code>Android RoomDB</code> and I need to do it in background because well reading from <code>DB</code> is not allowed on <code>UI Thread</code>. So I have this method:</p> <pre><code>@Override public DBBackedRouteModel getDBBackedRouteModelByID(Long id) { AsyncTask.execute(() -&gt;...
I am reading data from local Android RoomDB and I need to do it in background because well reading from DB is not allowed on UI Thread . So I have this method: [CODE] Is there a way to know that the Async has finished and return the result only then?
android|asynchronous|android-asynctask|android-room
0
2020-01-28T11:43:28.220Z
2,020
1
11
1
60
2
250
64
4
1
true
false
false
false
false
false
zero
59,948,038
App crashes on release version: ReferenceError: Can't find variable
<p>I came upon a weird issue. Everything works perfectly fine on debug version. But when I build the release version, it will crash. I use a library react-native-root-toast for toasts, but I'm not sure if it's a library's fault. </p> <p>With adb logcat I managed to get a log:</p> <pre><code>01-28 12:25:59.571 12750 1...
I came upon a weird issue. Everything works perfectly fine on debug version. But when I build the release version, it will crash. I use a library react-native-root-toast for toasts, but I'm not sure if it's a library's fault. With adb logcat I managed to get a log: [CODE] The code that implements toasts: [CODE] On debu...
android|react-native
1
2020-01-28T11:44:05.523Z
2,020
1
11
1
348
1
597
67
2
2
true
false
false
false
false
false
low
59,948,096
Google Maps guided navigation for 1000 pickup points-(Bin collection)
<p>I am novice in programming but i have taken a massive undertaking. i am working on a project to create a guided navigation for the truck driver to collect bins from the customers. The number of customer in total would be more than 56000. there will be lots of different routes. </p> <p><strong>things done so far:</s...
I am novice in programming but i have taken a massive undertaking. i am working on a project to create a guided navigation for the truck driver to collect bins from the customers. The number of customer in total would be more than 56000. there will be lots of different routes. things done so far: i have plotted x,y coo...
android|google-maps-android-api-2
0
2020-01-28T11:47:46.257Z
2,020
1
11
1
36
0
589
69
2
0
false
true
false
false
false
false
zero
59,948,139
kotlin missing methods for GoogleMap
<p>I'm converting part of an app to kotlin and I've a problem caused by the intellisense of Android Studio (3.5.3) not showing all methods of googleMaps</p> <p>this is an example:</p> <pre><code>override fun onMapReady(googleMap: GoogleMap) { map = googleMap map.setBuildingsEnabled(true) map.setTrafficEna...
I'm converting part of an app to kotlin and I've a problem caused by the intellisense of Android Studio (3.5.3) not showing all methods of googleMaps this is an example: [CODE] for instance I can't see map.setBuildingsEnabled in intellisense, see image but if I force to call that hidden method, the app still builds, so...
android|google-maps|android-studio|kotlin
0
2020-01-28T11:50:06.380Z
2,020
1
11
1
104
1
652
36
4
1
true
false
false
false
false
false
zero
59,948,157
Mobile App crashes after enabling R8 in release build
<p>I am new to android development. I developed an android application which was working perfectly fine before enabling R8. After obfuscating the application, I am getting the following error. I have no idea where am I going wrong.</p> <p>Following is the Logcat console:</p> <pre><code>2020-01-28 16:16:09.404 5206-52...
I am new to android development. I developed an android application which was working perfectly fine before enabling R8. After obfuscating the application, I am getting the following error. I have no idea where am I going wrong. Following is the Logcat console: [CODE] Following are default settings and dependencies use...
android|proguard|android-r8
1
2020-01-28T11:51:35.730Z
2,020
1
11
1
614
1
329
53
3
2
true
false
false
false
false
false
low
59,948,173
Problem with file transfer over BLE on Android
<p>I working on transfering files from smartphone to peripheral device over BLE. </p> <p>Sending data over BLE is slow (data transfer is being implemented using overwriting one 20 bytes long characterisc). Slow speed is not a problem, because the size of files is really small also (up to 1MB).</p> <p>In trivial tests...
I working on transfering files from smartphone to peripheral device over BLE. Sending data over BLE is slow (data transfer is being implemented using overwriting one 20 bytes long characterisc). Slow speed is not a problem, because the size of files is really small also (up to 1MB). In trivial tests everything works go...
android|bluetooth-lowenergy
1
2020-01-28T11:52:30.963Z
2,020
1
11
1
804
2
1,156
46
2
2
true
false
false
false
false
false
low
59,948,257
How to use symbolic breakPoints in Android Studio or IntelliJ IDEA
<p>I am a new android APP developer and recently some problem comes. For the reason that I don't know how to use Symbolic breakpoints in Android studio when I debug the Android App. I have searched for answer on the internet but failed. <img src="https://i.stack.imgur.com/tzxni.png" alt="enter image description here"><...
I am a new android APP developer and recently some problem comes. For the reason that I don't know how to use Symbolic breakpoints in Android studio when I debug the Android App. I have searched for answer on the internet but failed.
android|android-studio
2
2020-01-28T11:57:41.377Z
2,020
1
11
1
321
0
233
66
2
0
false
true
false
false
false
false
low
59,948,411
How to call function from object?
<p>I can't call function of my class from object inside this class. How should i do this ?</p> <pre><code> class LoginActivity: AppCompatActivity(){ override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) } ...
I can't call function of my class from object inside this class. How should i do this ? [CODE] But when i call LoginActivity().disableLoginButton() instead disableLoginButton() it's visible, but fails with NullPointerException on login_button
android|kotlin
0
2020-01-28T12:06:32.170Z
2,020
1
12
1
58
2
242
33
2
1
true
false
false
false
false
false
zero
59,948,418
Clickable ImageButton in RecyclerView
<p>I have an ImageButton such as this icon <a href="https://i.stack.imgur.com/TJpDV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TJpDV.png" alt="enter image description here"></a>. I want when I click on it, it will be like this<a href="https://i.stack.imgur.com/MLa7Q.png" rel="nofollow noreferrer...
I have an ImageButton such as this icon . I want when I click on it, it will be like this and when I click again it will be like picture 1. What should i add to code? These ImageButtons are in RecyclerView.
android|imagebutton|clickable
0
2020-01-28T12:06:53.330Z
2,020
1
12
1
80
3
206
37
3
0
false
false
false
false
false
false
zero
59,948,433
Camera2: Should createCaptureRequest() be called on a background thread
<p>From documentation:</p> <blockquote> <p>Creating a session is an expensive operation and can take several hundred milliseconds, since it requires configuring the camera device's internal pipelines and allocating memory buffers for sending images to the desired targets. Therefore the setup is done asynchronously, ...
From documentation: Creating a session is an expensive operation and can take several hundred milliseconds, since it requires configuring the camera device's internal pipelines and allocating memory buffers for sending images to the desired targets. Therefore the setup is done asynchronously, and CameraDevice#createCap...
android|android-camera2
1
2020-01-28T12:07:28.147Z
2,020
1
12
1
637
1
783
71
2
1
true
false
false
false
false
false
low
59,948,438
How to store the login state in sharedpreferences
<p>I'm making an Android app and in my app, I add the feature of storing the login state.</p> <p>My Splash screen:</p> <pre><code>public class Splash extends AppCompatActivity { private SharedPreferences preferences; public int a = 0; @Override protected void onCreate(Bundle savedInstanceState) {...
I'm making an Android app and in my app, I add the feature of storing the login state. My Splash screen: [CODE] My Login screen: [CODE] My Menu screen: [CODE] But if I login in the app, the error is thrown: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPac...
java|android|sharedpreferences|android-studio-3.0
0
2020-01-28T12:07:44.980Z
2,020
1
12
1
53
0
358
49
4
3
true
true
false
false
false
false
zero
59,948,450
How to obfuscate a xamarin App on VS 2019
<p>I need to protect the business logic on app and this is created with xamarin forms. I have searching information on forums and here about Babel and ConfuserEx but I don’t get it works.</p> <p><strong>Case Babel</strong></p> <p>I have installed demo SDK and I have updated the path on environment variables. On Andro...
I need to protect the business logic on app and this is created with xamarin forms. I have searching information on forums and here about Babel and ConfuserEx but I don’t get it works. Case Babel I have installed demo SDK and I have updated the path on environment variables. On Android Project I have added the followin...
xamarin.forms|xamarin.android|xamarin.ios|obfuscation|xamarin.uwp
2
2020-01-28T12:08:09.247Z
2,020
1
12
1
2,169
2
991
41
5
1
true
false
false
false
false
false
low
59,948,507
Multiple api call in android retrofit
<p>I am building an android application. In which in need to handle multiple api calls in queue to avoid collision using retrofit and also i need to manage this in common Applicationclass. It is possible?</p>
I am building an android application. In which in need to handle multiple api calls in queue to avoid collision using retrofit and also i need to manage this in common Applicationclass. It is possible?
android|observable|rx-java|retrofit2
0
2020-01-28T12:11:43.273Z
2,020
1
12
1
2,653
1
201
37
4
0
false
false
true
false
false
false
zero
59,948,546
Is there any way to run 16-bit apps on android?
<p>I'm trying to port an old executable file as an app for Android.</p> <p>So the user should feel that he's using an app, but without knowing that's it was previously a 16-bit executable...</p> <p>Is there any way to achieve it[using DOSBox or Termux]? </p> <p>Even some guidance or a ready-made android project(dosb...
I'm trying to port an old executable file as an app for Android. So the user should feel that he's using an app, but without knowing that's it was previously a 16-bit executable... Is there any way to achieve it[using DOSBox or Termux]? Even some guidance or a ready-made android project(dosbox) which just needs a confi...
android|terminal|16-bit|dosbox|termux
1
2020-01-28T12:13:55.170Z
2,020
1
12
1
345
0
336
47
5
0
false
true
false
false
false
false
low
59,948,568
What might be the problem with my adapter i seem not to find it``
<p>The view seems not to bind to the ArrayList(ie private ArrayList mEvents;) that i passed to the class ,on the onBindViewHolder(ie holder.mTextView2.setText(current.getcity());) i can seem to access the textView variables(ie public TextView mTextview2;), that i declared in the view holder class. I have tried to m...
The view seems not to bind to the ArrayList(ie private ArrayList mEvents;) that i passed to the class ,on the onBindViewHolder(ie holder.mTextView2.setText(current.getcity());) i can seem to access the textView variables(ie public TextView mTextview2;), that i declared in the view holder class. I have tried to make the...
java|android
1
2020-01-28T12:15:17.137Z
2,020
1
12
1
58
4
388
65
2
1
true
false
false
false
false
false
low
59,948,662
Alarm ringing just after added in Android
<p>I'm working on an alarm app, the problem is whenever I add a new alarm it starts ringing right after it's created. i've almost checked the code for more than 20 times. and since I have not subscribed to any course no one is there to help except this community.</p> <p>my mainActivity</p> <pre><code>package com.raun...
I'm working on an alarm app, the problem is whenever I add a new alarm it starts ringing right after it's created. i've almost checked the code for more than 20 times. and since I have not subscribed to any course no one is there to help except this community. my mainActivity [CODE] Myboradcast receiver [CODE] my Recyc...
android
1
2020-01-28T12:20:13.977Z
2,020
1
12
1
92
2
360
41
1
3
true
false
false
false
false
false
low
59,948,686
How to Download Video from Online and store it local Device then play video on Flutter apps Using video player?
<p>I want to develop a flutter application where users can download all Videos from Online by one single button and store it local Device then play those videos offline on Flutter apps Using video player?</p> <p>I did this by assets video. But if I use video from assets and build the application then the apk size will...
I want to develop a flutter application where users can download all Videos from Online by one single button and store it local Device then play those videos offline on Flutter apps Using video player? I did this by assets video. But if I use video from assets and build the application then the apk size will bigger. Th...
android|flutter|flutter-layout|video-player|flutter-web
4
2020-01-28T12:21:40.687Z
2,020
1
12
1
7,021
1
579
111
5
0
false
false
true
false
false
false
low
59,948,860
Get Raw Barcode data
<p>I want to release values from ImageAnalyzer.analyze as raw values and send it to another Activity. Its become not so simple as it seems, because I cant override function with return. I also cant make Toast or open another Activity inside function, because I can`t sand Context in it. Please, help.</p> <pre><code> pr...
I want to release values from ImageAnalyzer.analyze as raw values and send it to another Activity. Its become not so simple as it seems, because I cant override function with return. I also cant make Toast or open another Activity inside function, because I can`t sand Context in it. Please, help. [CODE] I did next. If ...
android|firebase|firebase-mlkit
0
2020-01-28T12:32:03.270Z
2,020
1
12
1
560
1
499
20
3
2
true
false
false
false
false
false
zero
59,948,966
Android: onResume()
<p>Is there any way to differentiate between the two:-</p> <ol> <li>Activity called when app came from background to foreground</li> <li>Activity called from another activity.</li> </ol> <p>does android have any way to differ or we have to implement our own custom logic (like keeping track of last active activity) ?<...
Is there any way to differentiate between the two:- Activity called when app came from background to foreground Activity called from another activity. does android have any way to differ or we have to implement our own custom logic (like keeping track of last active activity) ?
android|android-activity|mobile|onresume
0
2020-01-28T12:38:38.193Z
2,020
1
12
1
112
2
278
19
4
0
false
false
false
false
false
false
zero
59,948,972
Skip NDK files while building or build library only once Android Gradle
<p>Gradle takes too long to build Native files (around 5 hrs) on Android. Please let me know if there are any attributes that would reduce the build time. Similarly, when I'm making changes in Java or Resources, The whole project is being built(including the C Files) which is increasing the testing time heavily. Is the...
Gradle takes too long to build Native files (around 5 hrs) on Android. Please let me know if there are any attributes that would reduce the build time. Similarly, when I'm making changes in Java or Resources, The whole project is being built(including the C Files) which is increasing the testing time heavily. Is there ...
android|gradle|cmake|android-ndk|android-build
0
2020-01-28T12:38:54.693Z
2,020
1
12
1
112
0
504
71
5
1
true
true
false
false
false
false
zero
59,949,051
How to get UserName of Twitter user after login with Firebase. ANDROID
<p>I am authenticating the user with Firebase using their Twitter account. But I don't know how can I get the <code>UserName</code>.</p> <p>Here is my code. I have tried everything... </p> <pre><code> @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivit...
I am authenticating the user with Firebase using their Twitter account. But I don't know how can I get the UserName . Here is my code. I have tried everything... [CODE]
java|android|firebase|twitter|firebase-authentication
0
2020-01-28T12:44:02.943Z
2,020
1
12
1
419
1
168
70
5
1
true
false
false
false
false
false
zero
59,949,083
NoSuchELementException even after element is being clicked but Test case fails throwing NoSuchElementException
<pre><code> @AndroidFindBy(xpath = "//android.widget.FrameLayout[@resourceid='com.infinite.netsfere:id/nav_meetings' and @index='4']") public WebElement meetingIcon; </code></pre> <p>`</p> <pre><code>appium - 1.16.0 java client &lt;dependency&gt; &lt;groupId&gt;io.appium&lt;/groupId&gt; &lt;...
[CODE] ` [CODE] ` Element mentioned is clicked fine but still nosuchelementexception is thrown and the test case fails. Tried updating the javaclient but received classDefound error. Please help me on how this issue can be fixed.
eclipse|automation|automated-tests|appium-android|nosuchelementexception
1
2020-01-28T12:45:57.160Z
2,020
1
12
1
33
0
229
110
5
2
true
true
false
false
false
false
low
59,949,132
How to use a class?
<p>I use retrofit for data transmission. And I'm confused. I have Pojo generated classes. But I do not know how to use the <strong>Destination</strong> class.</p> <pre><code> public class NewOrderRequest { @SerializedName("phone") @Expose private String phone; public NewOrderRequest(String phone, Li...
I use retrofit for data transmission. And I'm confused. I have Pojo generated classes. But I do not know how to use the Destination class. [CODE] CLASS DESTINATION: [CODE] USE: What should I pass to the setDestination method? [CODE] This is what I tried: [CODE]
java|android|retrofit|pojo
-3
2020-01-28T12:48:41.807Z
2,020
1
12
1
59
1
261
19
4
4
true
false
false
false
false
true
negative
59,949,208
AAPT: error: resource android:attr/popupPromptView is private
<p>I am using <code>actionbarsherlock</code> library in my android app and I am using one of its <code>style</code> attribute with the name of <code>popupPromptView</code> but when I try to generate the <code>apk</code> for my app, it gives me this error:</p> <pre><code>C:\Users\My Username\.gradle\caches\transforms-2...
I am using actionbarsherlock library in my android app and I am using one of its style attribute with the name of popupPromptView but when I try to generate the apk for my app, it gives me this error: [CODE] I tried going to this values.xml file and comment out this style attribute but when I try to generate the apk ag...
android
0
2020-01-28T12:52:12.467Z
2,020
1
12
1
797
2
471
61
1
1
true
false
false
false
false
false
zero
59,949,349
MVVM/Room pulling a single item from the Dao or Repository, what is the best approach?
<p>I want to get a single item using MVVM/Room and edit it in a detail screen. I followed a number of guides and examples for creating a MVVM/Room application. And in many of them the Repository class looks like this:</p> <pre><code>public class ScenarioRepository { private static final String TAG="ScenarioReposi...
I want to get a single item using MVVM/Room and edit it in a detail screen. I followed a number of guides and examples for creating a MVVM/Room application. And in many of them the Repository class looks like this: [CODE] The examples focus on filling a RecyclerView and when editing one of the records pass all values f...
android|android-room|android-mvvm
1
2020-01-28T12:59:52.673Z
2,020
1
12
1
810
1
1,235
86
3
2
true
false
false
false
false
false
low
59,949,365
How to implement advance native ad with recyclerview?
<p>I, have implemented recyclerview in android. now I am trying to implement Advance Native Ad in android. for that I was following the Google Codelabs tutorial. <a href="https://codelabs.developers.google.com/codelabs/admob-native-advanced-feed-android/index.html?index=..%2F..index#0" rel="nofollow noreferrer">Link of...
I, have implemented recyclerview in android. now I am trying to implement Advance Native Ad in android. for that I was following the Google Codelabs tutorial. Link of the tutorial . But I didn't get success. Below is my recyclerview code. and after that is the code which I tried to implement Advance Native Ad in my rec...
java|android|android-recyclerview
1
2020-01-28T13:00:50.040Z
2,020
1
13
1
183
0
1,331
53
3
5
true
true
false
false
false
false
low
59,949,428
PlayStore URL of an application displays App's PackageName or its ApplicationId?
<p>Does PlayStore URL to any particular application, displays application's <strong>PackageName</strong> or its <strong>ApplicationId</strong>?</p>
Does PlayStore URL to any particular application, displays application's PackageName or its ApplicationId ?
android
0
2020-01-28T13:04:26.887Z
2,020
1
13
1
32
1
107
80
1
0
false
false
false
false
false
false
zero
59,949,509
kotlin upload image by retrofit
<p>I want to select an image from gallery and upload it to server by retrofit. but when I upload image The answer that returns is unsuccessful and reason is:(No such file or directory) I think my server code has some problem too,please check and help me this is my codes:</p> <p>my apiservice:</p> <pre><code>@Multipar...
I want to select an image from gallery and upload it to server by retrofit. but when I upload image The answer that returns is unsuccessful and reason is:(No such file or directory) I think my server code has some problem too,please check and help me this is my codes: my apiservice: [CODE] fragment code: [CODE] and the...
php|android|kotlin|file-upload|retrofit2
3
2020-01-28T13:09:05.213Z
2,020
1
13
1
5,495
1
340
31
5
3
true
false
true
false
false
false
low
59,949,607
Using socket in Android development
<p>I have been looking around for a guide on how to implement socket in android development but could not find any. I am currently recalling my API on activity created to ensure that data is updated for my app.</p> <p>Can anyone assist with a guide to help achieve real time update with socket on android.</p>
I have been looking around for a guide on how to implement socket in android development but could not find any. I am currently recalling my API on activity created to ensure that data is updated for my app. Can anyone assist with a guide to help achieve real time update with socket on android.
java|android|sockets|kotlin
0
2020-01-28T13:14:33.853Z
2,020
1
13
1
48
1
295
35
4
0
false
false
false
false
false
false
zero
59,949,651
Image does not display in gallery after download
<p>I am developing a Xamarin app which retrives info from DB, take/choose photo and upload them to remote server, display this images from the remote server and the user can delete them by tap on and press a button and download the images from the remote server to the local device. </p> <p>Everything works without pro...
I am developing a Xamarin app which retrives info from DB, take/choose photo and upload them to remote server, display this images from the remote server and the user can delete them by tap on and press a button and download the images from the remote server to the local device. Everything works without problem, but wh...
c#|android|image|xamarin.forms|download
0
2020-01-28T13:16:50.697Z
2,020
1
13
1
633
4
766
48
5
1
true
false
false
false
false
false
zero
59,949,699
Coroutines Parent job is Cancelled Exception
<p>I was running a simple <em>Retrofit</em> request with <code>Coroutine launch</code> and got this error <code>kotlinx.coroutines.JobCancellationException: Parent job is Cancelled; job=JobImpl{Cancelled}@759d1e0</code> </p> <p>The request works in the first attempt and returns exception on a second.</p> <p>Here is m...
I was running a simple Retrofit request with Coroutine launch and got this error kotlinx.coroutines.JobCancellationException: Parent job is Cancelled; job=JobImpl{Cancelled}@759d1e0 The request works in the first attempt and returns exception on a second. Here is my class: [CODE] And code to build coroutine context: [C...
android|kotlin|kotlin-coroutines
2
2020-01-28T13:19:30.943Z
2,020
1
13
1
1,986
0
368
44
3
2
true
true
false
false
false
false
low
59,949,710
How could I resubmit a game in google play console?
<p>Last week I submitted a game and google play team rejected it because of lack of privacy policy. I made a privacy policy and also changed my game to be appropriate for family. In google play console are some options to change games descriptions and screen shots and etc, to resubmit. But I couldn't replace my new aab...
Last week I submitted a game and google play team rejected it because of lack of privacy policy. I made a privacy policy and also changed my game to be appropriate for family. In google play console are some options to change games descriptions and screen shots and etc, to resubmit. But I couldn't replace my new aab fi...
android|unity3d|google-play
0
2020-01-28T13:19:56.317Z
2,020
1
13
1
460
2
385
51
3
0
false
false
false
false
false
false
zero
59,949,724
Save ArCore session and view it again even when not present at the same location
<p>I want to use the ARCore library to place objects in the real world location and want to just view the exact same view even when I am not present at the same location in the future.</p>
I want to use the ARCore library to place objects in the real world location and want to just view the exact same view even when I am not present at the same location in the future.
android|augmented-reality|arcore
0
2020-01-28T13:20:51.517Z
2,020
1
13
1
240
1
181
80
3
0
false
false
false
false
false
false
zero