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
37,990,854
Android create many objects vs garbage collector
<p>I have been reading about garbage collector and its impact in the Android and I got some questions, that I would like to share.</p> <ul> <li>What is the garbage collector's real impact in the Android ? It runs in own thread so the application shouldn't have any issue,right?</li> <li><p>If the answer to question abo...
I have been reading about garbage collector and its impact in the Android and I got some questions, that I would like to share. What is the garbage collector's real impact in the Android ? It runs in own thread so the application shouldn't have any issue,right? If the answer to question above was yes, should we create ...
android|performance|garbage-collection
0
2016-06-23T11:53:06.083Z
2,016
6
11
3
79
2
406
48
3
1
true
false
false
false
false
false
zero
38,041,097
RxJava data flow with SqlBrite and Retrofit
<p>In my Android app I am using domain level Repository interface, which is backed with local DB implemented using SqlBrite and network api with Retrofit observables. So I have method <code>getDomains(): Observable&lt;List&lt;Domain&gt;&gt;</code> in Repository and two corresponding methods in my Retrofit and SqlBrite....
In my Android app I am using domain level Repository interface, which is backed with local DB implemented using SqlBrite and network api with Retrofit observables. So I have method getDomains(): Observable<List<Domain>> in Repository and two corresponding methods in my Retrofit and SqlBrite. I don't want to concatenate...
android|rx-java|sqlbrite
0
2016-06-26T17:15:44.223Z
2,016
6
17
6
591
2
1,340
43
3
1
true
false
false
false
false
false
zero
37,915,078
Recycle item position change on scroll in android
<p>I have created the Recycle view inside the nestedview. Nested item get scroll vertically and the recycle list scrolls horizontally.If i scroll the recycleview, the position of the recycle items get changed.Any one give the solution to fix this issue?</p> <pre><code> try { JSONObject jsonRootObject = new JS...
I have created the Recycle view inside the nestedview. Nested item get scroll vertically and the recycle list scrolls horizontally.If i scroll the recycleview, the position of the recycle items get changed.Any one give the solution to fix this issue? [CODE] This is my adapter code: [CODE] This is my xml: [CODE]
android|android-recyclerview
0
2016-06-20T05:21:55.183Z
2,016
6
5
0
847
2
312
49
2
3
true
false
false
false
false
false
zero
37,644,542
Crossing number algorithm in android
<p>I am building an asteroids-like game for Android. I am reading "android game programming by example". I am implementing the crossing number algorithm. The app is finished and it works, but I don't understand this part of the code:</p> <pre><code>if (((cp2.currentPoint.y &gt; cp1.currentPoint.y) != (cp2.currentP...
I am building an asteroids-like game for Android. I am reading "android game programming by example". I am implementing the crossing number algorithm. The app is finished and it works, but I don't understand this part of the code: [CODE] Where cp1.currentPoint is the first object's first vertex (so it is a point), cp2....
android|algorithm
1
2016-06-05T17:03:20.287Z
2,016
6
17
6
80
2
538
36
2
2
true
false
false
false
false
false
low
37,777,965
TextView not displaying text
<p>I am trying to get text from getText method from database and display the string in the TextView. But I have no idea why it is not working.</p> <p>Database: </p> <pre><code> public String getType(String search){ String type=""; String searchTypeQuery="SELECT * FROM "+ DatabaseData.TABLE_NAME + " ...
I am trying to get text from getText method from database and display the string in the TextView. But I have no idea why it is not working. Database: [CODE] Main: [CODE] I tried this "textview.setText(database.getType("Sample"));" and it worked. But when i try the above code it doesn't work.
android
0
2016-06-12T18:55:41.037Z
2,016
6
18
6
80
2
292
28
1
2
true
false
false
false
false
false
zero
71,413,373
android - okhttp Authenticator request retry not working
<p>Hello we're working with <code>okhttp/retrofit</code> and <code>oauth2</code> in the authentication system, actually the <code>Authenticator</code> is triggered when an api endpoint returns UNAUTHORIZED and we get the new credentials successfully, but the problem is the authenticator not retrying the previously endp...
Hello we're working with okhttp/retrofit and oauth2 in the authentication system, actually the Authenticator is triggered when an api endpoint returns UNAUTHORIZED and we get the new credentials successfully, but the problem is the authenticator not retrying the previously endpoint that returned UNAUTHORIZED in respons...
android|oauth-2.0|retrofit|okhttp|refresh-token
0
2022-03-09T17:13:07.577Z
2,022
3
17
2
512
2
483
56
5
2
true
false
false
false
false
false
zero
71,235,215
Cannot run Project.afterEvaluate(Closure) when the project is already evaluated
<p><strong>currently i am having this error:</strong></p> <pre><code>Microsoft Windows [Version 10.0.19043.1526] (c) Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\Flutter\StudioProjects\nomadnet&gt;flutter run Using hardware rendering with device sdk gphone x86 arm. If you notice graphics artifacts, consider...
currently i am having this error: [CODE] i already tried this things: https://stackoverflow.com/a/71014094/16241837 https://stackoverflow.com/a/71009865/16241837 i also tried more things but i don't know them anymore my code: app/build.gradle: [CODE] android/build.gradle: [CODE] i have the latest flutter version and al...
android|flutter|dart|gradle
1
2022-02-23T10:27:09.977Z
2,022
2
10
2
1,283
2
394
79
4
3
true
false
false
false
false
false
low
71,174,154
Composable functions with non-default parameters are not supported in Preview unless they are annotated with @PreviewParameter
<p>I have one <code>Composable</code> function with lambda which is used to get Button Click action. I want to preview that <code>Composable</code> function. But Composable function with this kind of lambda getting error after adding <code>@Preview</code> annotation above <code>@Composable</code></p> <p><code>Composabl...
I have one Composable function with lambda which is used to get Button Click action. I want to preview that Composable function. But Composable function with this kind of lambda getting error after adding @Preview annotation above @Composable Composable functions with non-default parameters are not supported in Preview...
android|kotlin|android-jetpack-compose|android-jetpack|higher-order-functions
4
2022-02-18T13:19:58.200Z
2,022
2
13
4
2,051
2
515
126
5
2
true
false
false
false
false
false
low
71,421,793
Animate the Content Changes for a particular Composable,
<p>I have a simple Composable that shows some data to the user, and that data needs to be updated periodically. Now, I wish to add a smooth transition between data changes instead of just snapping the new data in, so that is the prime focus of this question.</p> <p>Now, for a mere example, we could take a simple <code>...
I have a simple Composable that shows some data to the user, and that data needs to be updated periodically. Now, I wish to add a smooth transition between data changes instead of just snapping the new data in, so that is the prime focus of this question. Now, for a mere example, we could take a simple Image Composable...
android|android-animation|android-jetpack-compose
0
2022-03-10T09:32:31.563Z
2,022
3
9
3
516
2
499
56
3
1
true
false
false
false
false
false
zero
71,216,787
I am trying to create a React Native App with vs code but I have some errors
<p>So this type of the error. How to solve this</p> <blockquote> <p>Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:135:10) at stableHash (/home/shavkat/Android/AwesomeProject/node_modules/metr...
So this type of the error. How to solve this Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:135:10) at stableHash (/home/shavkat/Android/AwesomeProject/node_modules/metro-cache/src/stableHash.j...
javascript|android|reactjs|react-native|android-studio
-2
2022-02-22T06:29:51.307Z
2,022
2
6
1
261
2
953
76
5
0
false
false
false
false
false
true
negative
71,355,529
StylePlayerView controller xml overriding play and pause button not working
<p>I updated my project exoplayer dependency, and i was updating my code with StylePlayerView (customized layout from exoplayer) reference, but when i executed my code the overrating about this 2 buttons PLAY and PAUSE, are not working, y use PLAY_PAUSE and works, but i want to customize this icons.. so if someone ca...
I updated my project exoplayer dependency, and i was updating my code with StylePlayerView (customized layout from exoplayer) reference, but when i executed my code the overrating about this 2 buttons PLAY and PAUSE, are not working, y use PLAY_PAUSE and works, but i want to customize this icons.. so if someone can hel...
android|xml|android-layout|exoplayer
3
2022-03-04T18:04:25.793Z
2,022
3
18
4
263
2
412
75
4
1
true
false
false
false
false
false
low
71,251,789
Is this the correct way to use coroutines?
<p>I have made a sample app which updates a piece of UI (a textview) after running a coroutine. I have very little exposure to coroutines and stuff, so I would like to get a feedback on whether my approach is correct or not, and if there is something I can add/modify to have better code writing practices. Thank you.</p...
I have made a sample app which updates a piece of UI (a textview) after running a coroutine. I have very little exposure to coroutines and stuff, so I would like to get a feedback on whether my approach is correct or not, and if there is something I can add/modify to have better code writing practices. Thank you. [CODE...
android|kotlin|kotlin-coroutines
0
2022-02-24T12:12:54.687Z
2,022
2
12
3
264
2
321
42
3
1
true
false
false
false
false
false
zero
71,145,919
Want to create a list of view items in android studio
<p>I want to create a list of clickable items as :</p> <pre><code>val clickableViews: List&lt;View&gt; = listOf(box_one_text, box_two_text, box_three_text, box_four_text, box_five_text, constraint_layout) </code></pre> <p>where <code>box_xxx_text</code> parameters are view-ids of different items. Does anyone know how t...
I want to create a list of clickable items as : [CODE] where box_xxx_text parameters are view-ids of different items. Does anyone know how to do it?
android|kotlin
0
2022-02-16T16:48:30.690Z
2,022
2
16
2
520
2
148
53
2
1
true
false
false
false
false
false
zero
71,197,519
Stretch button full screen flutter
<p>I'm writing an app in flutter where there is only one button, I want to stretch this button for full screen width and height, how best to do this?</p>
I'm writing an app in flutter where there is only one button, I want to stretch this button for full screen width and height, how best to do this?
android|flutter|dart
1
2022-02-20T18:35:20.550Z
2,022
2
18
6
267
2
146
34
3
0
false
false
false
false
false
false
low
71,207,417
Wrap Content grid view items with span count
<p>I have a recyclerview with gridlayoutmanager having column span 4, I am able to achieve below output <a href="https://i.stack.imgur.com/LkDVQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LkDVQ.png" alt="enter image description here" /></a> with following code</p> <pre><code>recyclerGridLayout....
I have a recyclerview with gridlayoutmanager having column span 4, I am able to achieve below output with following code [CODE] But is there any way i can get the below desired output Where the space between items is fixed Thank you
android|android-layout|android-recyclerview|android-gridlayout|gridlayoutmanager
0
2022-02-21T13:48:00.533Z
2,022
2
13
0
268
2
232
44
5
1
true
false
false
false
false
false
zero
71,381,242
Flutter || Scroll back to top button
<p>In my flutter project I made a floating button that help to auto scroll to the top of the page with one click, and when it reach the top it disappear. It work perfectly. But my problem is that I need to double click in it so it can disappear I want it to automatically disappear if it reach the top. Any help is highl...
In my flutter project I made a floating button that help to auto scroll to the top of the page with one click, and when it reach the top it disappear. It work perfectly. But my problem is that I need to double click in it so it can disappear I want it to automatically disappear if it reach the top. Any help is highly a...
android|flutter|dart|button
2
2022-03-07T12:41:35.343Z
2,022
3
12
0
781
2
338
36
4
1
true
false
false
false
false
false
low
71,183,131
Android Studio Proxy tab missing from extended controls settings BumbleBee
<p>I need to access the proxy tab from the extended controls window in Android Studio #<strong><a href="https://i.stack.imgur.com/Jjk5r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jjk5r.png" alt="BumbleBee" /></a></strong> vresion. but that tab option is missing, Any help would be appreciated!</p...
I need to access the proxy tab from the extended controls window in Android Studio # vresion. but that tab option is missing, Any help would be appreciated!
android|android-studio-4.2|android-studio-bumblebee
4
2022-02-19T07:51:38.390Z
2,022
2
7
5
1,037
2
156
74
3
0
false
false
false
false
false
false
low
71,387,105
Automatic rebuild when app screen size changes in flutter
<p>I am using <a href="https://pub.dev/packages/flutter_screenutil" rel="nofollow noreferrer">Screenutil</a> package to make my flutter app responsive and it works but I have a problem. Whenever I use splitscreen, the app doesn't rebuild its widgets and they overflow. If I restart the app, it resizes perfectly accordin...
I am using Screenutil package to make my flutter app responsive and it works but I have a problem. Whenever I use splitscreen, the app doesn't rebuild its widgets and they overflow. If I restart the app, it resizes perfectly according to the split screen size. Now, similarly when I exit split screen to full screen mode...
android|flutter
0
2022-03-07T20:50:57.643Z
2,022
3
20
0
783
2
640
57
2
1
true
false
false
false
false
false
zero
71,121,109
com.huawei.agconnect plugin not found
<p>So I'm trying to add AppGallery connect gradle plugin to my android project using new Kotlin DSL syntax. But I'm getting error like this:</p> <pre><code>org.gradle.internal.exceptions.LocationAwareException: Build file 'D:\#KERJAAN\devbase\sample\build.gradle.kts' line: 3 Plugin [id: 'com.huawei.agconnect', version:...
So I'm trying to add AppGallery connect gradle plugin to my android project using new Kotlin DSL syntax. But I'm getting error like this: [CODE] What i did was adding repository for plugin like this in settings.gradle.kts : [CODE] And adding the plugin like this in app's build.gradle.kts : [CODE] Interestingly, It work...
android|gradle|huawei-mobile-services|huawei-developers|appgallery-connect
4
2022-02-15T04:27:49.190Z
2,022
2
4
1
2,063
2
395
37
5
3
true
false
false
false
false
false
low
71,153,842
HMS: After integrating the IAP in Unity Project, IAP is not initializing in the Repack APK
<p>After integrating the IAP in Unity Project, IAP is not initializing in the Repack APK but it is working in UDP APK.</p> <p>I have used 2.2.2 version Unity Distribution Portal package for In App Purchase. While testing the app in UDP apk, it seems working well. After that, when we upload that apk to Unity dashboard f...
After integrating the IAP in Unity Project, IAP is not initializing in the Repack APK but it is working in UDP APK. I have used 2.2.2 version Unity Distribution Portal package for In App Purchase. While testing the app in UDP apk, it seems working well. After that, when we upload that apk to Unity dashboard for Repack,...
android|unity3d|in-app-purchase|huawei-mobile-services
2
2022-02-17T07:13:39.280Z
2,022
2
7
3
273
2
647
90
4
2
true
false
false
false
false
false
low
71,342,736
Issue with Side-effects - LaunchedEffect and SideEffect in Jetpack Compose
<p>Why SideEffect gets called ever-time my composable is invalidated , but same does-not hold true for LaunchedEffect?</p> <pre><code>sealed class SomeState { object Error:SomeState() data class Content(): SomeState } class MyViewModel:ViewModel { internal val response: MutableLiveData&lt;SomeState&gt; by lazy { ...
Why SideEffect gets called ever-time my composable is invalidated , but same does-not hold true for LaunchedEffect? [CODE] I have doubts related to Query 1 and Query 2 both are part of top-level composable which will never be re-composed, but can be invalidated, [CODE] In case of is [CODE] I believe this should be fine...
android|android-jetpack-compose|android-jetpack
3
2022-03-03T19:29:01.943Z
2,022
3
19
3
3,602
2
2,408
74
3
6
true
false
true
false
false
false
low
71,361,742
Dart Flutter _CastError (Null check operator used on a null value) listyukle Error
<p>I have a code like this:</p> <pre><code> void saveList() async { final prefences = await SharedPreferences.getInstance(); prefences.setStringList(&quot;tests&quot;, prefences.getStringList(&quot;tests&quot;)! + [&quot;English / A1 / Family / Test 1&quot;]); setState(() { }); } </code></pre> <p>I'm...
I have a code like this: [CODE] I'm calling the saveList function somewhere. When I call it, I get an error like this: [CODE] It gives the error on this line: [CODE] How can I solve it? Thank you for your help.
android|flutter|dart
0
2022-03-05T11:22:04.133Z
2,022
3
11
5
787
2
210
82
3
3
true
false
false
false
false
false
zero
71,318,702
Is there any method to identify which location permission is granted by user
<p>Is there any method to identify which location permission is granted by user in programmatically in Android.</p> <p>like the following</p> <ul> <li>While using the app</li> <li>Only this time</li> <li>Deny</li> </ul> <p>I want to know a particular applications current location permission status from another app. Not...
Is there any method to identify which location permission is granted by user in programmatically in Android. like the following While using the app Only this time Deny I want to know a particular applications current location permission status from another app. Not for checking its run time.
android|permissions|android-10.0|android-11|android-12
0
2022-03-02T07:11:28.637Z
2,022
3
7
2
277
2
292
76
5
0
false
false
false
false
false
false
zero
71,340,535
Text over Image using FFMPEG library on Android
<p>Good day fellows. I am trying to add a text over an image using this ffmpeg command</p> <pre><code>String exe = &quot; -i /storage/emulated/0/Download/test1.jpg -vf drawtext=text='Test Text':fontcolor=white:fontsize=75:x=1002:y=100: &quot; + file.getAbsolutePath(); </code></pre> <p>But unfortunately I meet this erro...
Good day fellows. I am trying to add a text over an image using this ffmpeg command [CODE] But unfortunately I meet this error, [CODE] Does someone had the same error as I have? Thank you!
android|ffmpeg|android-ffmpeg
0
2022-03-03T16:30:24.383Z
2,022
3
16
3
277
2
188
47
3
2
true
false
false
false
false
false
zero
71,294,542
Check if some key value exists in Firebase Database and do some action Android
<p>I want to check if a specific value of a key exists in the Realtime Database or not and perform some action based on it.</p> <p>I have the following data:</p> <pre><code>&quot;Orders&quot; : { &quot;03403426747&quot; : { &quot;17&quot; : { &quot;State&quot; : &quot;(4) Canceled&quot;, &quot;address&quot; :...
I want to check if a specific value of a key exists in the Realtime Database or not and perform some action based on it. I have the following data: [CODE] I want to check If any order from these has has &quot;State&quot; value other than &quot;(3) Completed&quot; & &quot;(4) Canceled&quot; . if anyone's order has a val...
java|android|firebase|firebase-realtime-database
0
2022-02-28T11:45:33.510Z
2,022
2
11
0
278
2
538
78
4
1
true
false
false
false
false
false
zero
71,251,364
NavigationView Tablelayout showing in all the fragments
<p>I am trying to attach a <code>TableLayout</code> into my Navigation drawer activity. The <code>TableLayout</code> should not show when I click the menu items. This is my XML file:</p> <pre><code> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;android.support.v4.widget.DrawerLayout ...
I am trying to attach a TableLayout into my Navigation drawer activity. The TableLayout should not show when I click the menu items. This is my XML file: [CODE] For some reason, the table is visible even when I click on any menu items, I want it to be visible only in the main page. How do I do that?
android|xml|android-studio
0
2022-02-24T11:38:25.567Z
2,022
2
11
3
26
2
300
55
3
1
true
false
false
false
false
false
zero
71,372,222
AppTheme.NoActionBar "AppTheme" in red and app won't run
<p>I'm following this tutorial on Youtube on how to create a navigation menu bar <a href="https://youtu.be/fGcMLu1GJEc" rel="nofollow noreferrer">https://youtu.be/fGcMLu1GJEc</a></p> <p>And I have this in my theme.xml file</p> <pre><code>&lt;style name=&quot;AppTheme.NoActionBar&quot;&gt; &lt;item name=&quot;wi...
I'm following this tutorial on Youtube on how to create a navigation menu bar https://youtu.be/fGcMLu1GJEc And I have this in my theme.xml file [CODE] but the AppTheme is in red and the application won't run I've checked many times and I just can't see where it could've gone wrong, the Youtube video is relatively old s...
java|android
0
2022-03-06T16:43:02.767Z
2,022
3
16
6
26
2
397
56
2
1
true
false
false
false
false
false
zero
71,270,063
Expecting type and name instead of just 'setExtensionCallback'
<p>I am trying to generate signed apk for my application but it fails with error <code>Expecting type and name instead of just 'setExtensionCallback' before '(' in line 326 of file 'pathtofile\release\consumer-rules.pro',</code> I am not sure what is causing and there is no any further information or any detail report ...
I am trying to generate signed apk for my application but it fails with error Expecting type and name instead of just 'setExtensionCallback' before '(' in line 326 of file 'pathtofile\release\consumer-rules.pro', I am not sure what is causing and there is no any further information or any detail report about it. This i...
android|proguard|dexguard
1
2022-02-25T18:11:01.357Z
2,022
2
18
4
538
2
492
62
3
2
true
false
false
false
false
false
low
71,175,733
Android ConstraintLayout: set one element in the center of another one
<p>I'm using ConstraintLayout in order to create activity view</p> <p>There is a code snippet:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:tools=&quot;...
I'm using ConstraintLayout in order to create activity view There is a code snippet: [CODE] The question is: How can I set ImageView (android:id=&quot;@+id/loader_image&quot;) in the center of Button (@+id/login_next_btn)?
android|android-constraintlayout
0
2022-02-18T15:12:29.400Z
2,022
2
15
4
27
2
222
70
2
1
true
false
false
false
false
false
zero
71,385,228
Android move last item of recyclerview above ad
<p>Here is what I want.</p> <p><a href="https://i.stack.imgur.com/ii0Yo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ii0Yo.png" alt="enter image description here" /></a></p> <p>The last item of recyclerview should be always above ad. Now it is partially hidden by an ad. App consists of main_layout...
Here is what I want. The last item of recyclerview should be always above ad. Now it is partially hidden by an ad. App consists of main_layout where is FrameLayout with the name content_frame where fragment lies. Here is what I have written in code: activity_main.xml [CODE] fragment_list.xml [CODE] FragmentList.java [C...
java|android|android-layout|android-recyclerview
0
2022-03-07T17:47:28.970Z
2,022
3
17
0
27
2
449
47
4
3
true
false
false
false
false
false
zero
71,114,482
How do I perform a network process in a kotlin coroutine
<p>I am attempting to run the getByName method in my android app, but have found that doing so in the main activity is cause for concern. I know I need to use coroutines, or async, or threads. But I'm not sure how to go about this. I'm somewhat self-taught with the software so forgive any obvious errors.</p> <p>'''</p>...
I am attempting to run the getByName method in my android app, but have found that doing so in the main activity is cause for concern. I know I need to use coroutines, or async, or threads. But I'm not sure how to go about this. I'm somewhat self-taught with the software so forgive any obvious errors. ''' [CODE] '''
android|android-studio|kotlin|networking|kotlin-coroutines
-1
2022-02-14T15:43:18.457Z
2,022
2
15
0
539
2
317
56
5
1
true
false
false
false
false
true
negative
71,094,618
sortwith one of the POJO values?
<p>I have random pojo values, and I want to sort by one of the POJO values, the structure of the values ​​I want to sort is as follows: A-1, A-2, A-3, A-4, A-5, .. .</p> <p>I've tried to sort it but the value is really in order only between A-1 to A-9, while the value for A-10 is always under A-1.</p> <p>here's the cod...
I have random pojo values, and I want to sort by one of the POJO values, the structure of the values ​​I want to sort is as follows: A-1, A-2, A-3, A-4, A-5, .. . I've tried to sort it but the value is really in order only between A-1 to A-9, while the value for A-10 is always under A-1. here's the code I use: [CODE] P...
android|sorting|kotlin|pojo
0
2022-02-12T18:17:28.530Z
2,022
2
18
5
28
2
331
32
4
1
true
false
false
false
false
false
zero
71,260,174
Android emulator power off button does not work when using avd with system image > android 30
<p>I am using avdmanager to create an avd to run with the latest android emulator on Ubuntu 21.10.</p> <p>I am using Android emulator version 31.2.8.</p> <p>When I create and avd with system image 28...</p> <pre><code>avdmanager create avd -n pixel_5 -k &quot;system-images;android-28;google_apis_playstore;x86_64&quot; ...
I am using avdmanager to create an avd to run with the latest android emulator on Ubuntu 21.10. I am using Android emulator version 31.2.8. When I create and avd with system image 28... [CODE] and run it.. [CODE] I can then subsequently hold the power button, and the android OS on the emulator properly powers off. When...
android|android-emulator|avd|android-sdk-tools|avd-manager
3
2022-02-25T01:54:33.950Z
2,022
2
1
4
285
2
468
93
5
3
true
false
false
false
false
false
low
71,233,193
Please what dependency is missing or confliting for safe args
<p>I am learning some kotlin concepts. I don't really understand yet.</p> <p>I added <code>SafeArgs</code> classpath and plugin to the appropriate build.gradle file.</p> <p>Here's the classpath:</p> <pre><code>classpath &quot;androidx.navigation:navigation-safe-args-gradle-plugin:2.3.1&quot; </code></pre> <p>And Here's...
I am learning some kotlin concepts. I don't really understand yet. I added SafeArgs classpath and plugin to the appropriate build.gradle file. Here's the classpath: [CODE] And Here's the plugin [CODE] Even After this I still get an missing or conflicting dependencies error [CODE] I now understand that the SafeArgs need...
android|kotlin|gradle|android-safe-args
0
2022-02-23T08:00:28.840Z
2,022
2
8
2
797
2
828
61
4
5
true
false
false
false
false
false
zero
71,190,280
How to extend backroundcolour?
<p>I need to spread the backround color of the &quot;version&quot; text shown in the picture to the left and right of the screen.</p> <p><a href="https://i.stack.imgur.com/t2i8o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t2i8o.png" alt="enter image description here" /></a></p> <pre><code>import ...
I need to spread the backround color of the &quot;version&quot; text shown in the picture to the left and right of the screen. [CODE] In short, how can I make it look like in this picture?
android|flutter|dart
1
2022-02-20T00:07:11.327Z
2,022
2
0
6
30
2
188
30
3
1
true
false
false
false
false
false
low
71,319,211
How to use Android Material Stepper library for form validation in old Android Project but the UI is need to create by using Jetpack compose
<ol> <li>I merged my old Android Kotlin project with jetpack compose.</li> <li>I have tried different methods for using stepper library but it wont work.</li> <li>I have also try adding this in my xml but it wont work. can anyone help.</li> <li>and created a adapter for stepper also but it wont work</li> </ol> <pre><co...
I merged my old Android Kotlin project with jetpack compose. I have tried different methods for using stepper library but it wont work. I have also try adding this in my xml but it wont work. can anyone help. and created a adapter for stepper also but it wont work [CODE]
android|android-layout|android-jetpack-compose|android-jetpack
1
2022-03-02T07:59:53.047Z
2,022
3
7
2
542
2
271
140
4
1
true
false
false
false
false
false
low
71,141,292
cordova gradle build SUCCESSFUL turns into FAILED
<p>cordova gradle build SUCCESSFUL and then turns into FAILED. Maybe something is wrong with the versions? It seems to download a lower gradle version in the middle... why?</p> <p>Starting with versions: Gradle 7.3.3, Cordova 10.0.0, Java/JDK 17.0.2 - Here is the transcript (leaving only the main things):</p> <pre><cod...
cordova gradle build SUCCESSFUL and then turns into FAILED. Maybe something is wrong with the versions? It seems to download a lower gradle version in the middle... why? Starting with versions: Gradle 7.3.3, Cordova 10.0.0, Java/JDK 17.0.2 - Here is the transcript (leaving only the main things): [CODE]
java|android-studio|cordova|gradle
0
2022-02-16T11:47:18.600Z
2,022
2
11
2
798
2
303
49
4
1
true
false
false
false
false
false
zero
71,128,634
How to trim data from picker using xamarin
<p>I want to pass the part of data from picker like as parameter for api point.</p> <p>So for now picker have two properties - Station number &amp; Station name. I want to get first parameter (Station number) and pass to other method for api.</p> <p>From this method I want to get only the first property from the picker...
I want to pass the part of data from picker like as parameter for api point. So for now picker have two properties - Station number & Station name. I want to get first parameter (Station number) and pass to other method for api. From this method I want to get only the first property from the picker: [CODE] And want to ...
c#|android|ios|xamarin
0
2022-02-15T14:58:18.853Z
2,022
2
14
1
31
2
452
42
4
2
true
false
false
false
false
false
zero
71,362,336
How to prevent re-saving of previously saved data in Dart Flutter Secure Storage?
<p>I have a code like this:</p> <pre><code> void saveList() async { final prefences = await SharedPreferences.getInstance(); List&lt;String&gt; previousList = prefences.getStringList(&quot;tests&quot;) ?? []; prefences.setStringList(&quot;tests&quot;, previousList + [&quot;English / A1 / Family / Test 1&...
I have a code like this: [CODE] I can save any kind of data with this code. It also saves data that has already been recorded before. I want it not to save previously saved data. In other words, if the data you want to save already exists in the stringList, it should not be saved again. How can I do that?
android|flutter|dart
0
2022-03-05T12:49:57.980Z
2,022
3
12
5
31
2
306
81
3
1
true
false
false
false
false
false
zero
71,419,436
Getting error in changing co-ordinates of imageview in android studio
<p>I am a beginner to android. I want to slide a slidebar in a horizontal linear layout but when I run the code, the application ends giving error <code>FallingBall keeps stopping</code></p> <p>My xml:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;androidx.constraintlayout.widget.C...
I am a beginner to android. I want to slide a slidebar in a horizontal linear layout but when I run the code, the application ends giving error FallingBall keeps stopping My xml: [CODE] My java file is like this: [CODE] Note: leftBut and rightBut are two Image button and I have copied the images to the drawable folder ...
java|android|android-studio
1
2022-03-10T05:56:35.367Z
2,022
3
5
3
31
2
439
69
3
2
true
false
false
false
false
false
low
71,406,691
How to remove white lines around Android app icon
<p>I am working on an Xamarin.Android app and noticed the app icon doesn't look right on a Xiaomi Poco F3 smartphone running Android 11.</p> <p>There is a very thin white line on top, bottom, left and right of the icon. It seems like the square icon was used and cut to fit a circle but it doesn't fit entirely.</p> <p>S...
I am working on an Xamarin.Android app and noticed the app icon doesn't look right on a Xiaomi Poco F3 smartphone running Android 11. There is a very thin white line on top, bottom, left and right of the icon. It seems like the square icon was used and cut to fit a circle but it doesn't fit entirely. See the second to ...
android|xamarin.android|icons|android-launcher
0
2022-03-09T08:59:14.217Z
2,022
3
8
2
287
2
836
49
4
1
true
false
false
false
false
false
zero
71,139,003
How to make two layer circular corner in textview in android
<p>This drawable :</p> <pre><code> &lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:shape=&quot;rectangle&quot; &gt; &lt;solid android:color=&quot;#70628b&quot; /&gt; &lt;stroke android:width=&quot;12dp&quot; android:color=&quot;#4c3f6e&q...
This drawable : [CODE] This is my textview [CODE] I am trying to apply circular drawable in inside and outside but given code its showing only outer : Current screen using this code : Expected screen I am unable to do circular please help me in this .
android
0
2022-02-16T09:13:14.560Z
2,022
2
9
2
32
2
251
60
1
2
true
false
false
false
false
false
zero
71,157,274
What is this kind of interface called in Android and iOS. I want something similar
<p><a href="https://i.stack.imgur.com/myj9O.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/myj9O.jpg" alt="What is this kind of interface called in Android and iOS. I want something similar" /></a></p> <p>What is this kind of interface called in Android and iOS. I want something similar</p>
What is this kind of interface called in Android and iOS. I want something similar
android|ios
0
2022-02-17T11:27:32.703Z
2,022
2
11
3
32
2
82
82
2
0
false
false
false
false
false
false
zero
71,288,991
Android Studio bottom button is not showing when run the program but it shows in design view
<p>I'm writing an Android lab and somehow my bottom button and text enter part are not showing. I'm using Linear Layout. it shows in the XML file design mode but doesn't show when running the program. Can someone help me find out what the problem is?</p> <p>I tried to add a pic of what my design page and program run pi...
I'm writing an Android lab and somehow my bottom button and text enter part are not showing. I'm using Linear Layout. it shows in the XML file design mode but doesn't show when running the program. Can someone help me find out what the problem is? I tried to add a pic of what my design page and program run pic but it's...
android|xml
0
2022-02-27T22:34:41.833Z
2,022
2
22
6
32
2
561
92
2
2
true
false
false
false
false
false
zero
71,172,619
okHttp client gives timeout after adding callTimeout() config to it and has moments where the request doesn't reach the host
<p>after adding callTimeout() config to the okhttp client I started to get timeouts</p> <pre><code>Caused by: java.io.InterruptedIOException: timeout Caused by: java.io.IOException: Canceled OkHttpClient httpClient = new OkHttpClient.Builder() .callTimeout(5_000L, TimeUnit.MILLISECONDS) ...
after adding callTimeout() config to the okhttp client I started to get timeouts [CODE] I'm not completely sure if having callTimeout configured with the same value as write and read is correct.Is it possible if read and write takes longer to trigger callTimeout()? Also another weird thing is that there are moments in ...
java|android|retrofit|okhttp
0
2022-02-18T11:18:57.607Z
2,022
2
11
4
289
2
365
124
4
1
true
false
false
false
false
false
zero
71,219,785
How to hide the activity in background without killing it?
<p>I have a MainActivity and an Activity2. When I press a button on MainActivity, it starts the activity2 and on activity2 I have a button which when pressed i want to return to MainActivity without killing Activity2/releasing its resources(or hide the activity in background if possible). The button to launch activity2...
I have a MainActivity and an Activity2. When I press a button on MainActivity, it starts the activity2 and on activity2 I have a button which when pressed i want to return to MainActivity without killing Activity2/releasing its resources(or hide the activity in background if possible). The button to launch activity2 is...
android|android-activity
0
2022-02-22T10:40:20.923Z
2,022
2
10
1
34
2
401
58
2
0
false
false
false
false
false
false
zero
71,336,871
Android Gradle dependencies are not working in new update of Android Studio
<p>I am trying to implement any kind of dependency ,in new android studio IDE which is stable in JDK 11, like payumoney or something else. It syncs successfully but when trying to use it in java file or xml file getting error like can not find symbol that you are using.</p> <p>In updated Android Studio when we create n...
I am trying to implement any kind of dependency ,in new android studio IDE which is stable in JDK 11, like payumoney or something else. It syncs successfully but when trying to use it in java file or xml file getting error like can not find symbol that you are using. In updated Android Studio when we create new project...
java|android|android-studio|payumoney|gradle-dependencies
-1
2022-03-03T12:01:24.530Z
2,022
3
12
3
1,570
2
536
75
5
3
true
false
false
false
false
true
negative
71,268,535
How to add onClickListener which opens gallery inside popupWindow
<p>so i want to add video, and image selection inside a <code>popupWindow</code> and later add all of this inside recyclerView. But when i try to open my <code>popupWindow</code> app crashes, i checked my logcat and i understand why my app don't work (I think) but i don't know how to solve this inside my code.</p> <p><...
so i want to add video, and image selection inside a popupWindow and later add all of this inside recyclerView. But when i try to open my popupWindow app crashes, i checked my logcat and i understand why my app don't work (I think) but i don't know how to solve this inside my code. here is an preview of what it looks l...
android|kotlin|android-imageview|android-popupwindow|registerforactivityresult
0
2022-02-25T16:03:40.063Z
2,022
2
16
4
35
2
506
65
5
2
true
false
false
false
false
false
zero
71,372,420
How to load textView and imageView (from strings & drawables) into a fragment navigated to, from recyclerView
<p>I asked a similar question <a href="https://stackoverflow.com/questions/71299166/how-to-automatically-load-contents-of-recycler-when-using-nav-componets-and-no">here</a>. But I feel I didn't express myself vividly. So I'm elaborating.</p> <p>I want to load textView and imageView (from strings &amp; drawables) on the...
I asked a similar question here . But I feel I didn't express myself vividly. So I'm elaborating. I want to load textView and imageView (from strings & drawables) on the fragment that is navigated to, from recyclerView. Please note I am using navigation component. I am kinda new to this, but I'm done some reach and fin...
android|kotlin|android-fragments|android-recyclerview
1
2022-03-06T17:04:43.197Z
2,022
3
17
6
35
2
1,011
109
4
1
true
false
false
false
false
false
low
71,308,964
Android studio displays error after importing project from other PC
<p>recently I've changed my work pc and now I need to import all data from my old pc to the new one. I've encountered problem while trying to export Android Studio project. I exported it as .zip file, transfered to my second pc and oppened it in Android Studio. Now I get error messages in every file, almost everything ...
recently I've changed my work pc and now I need to import all data from my old pc to the new one. I've encountered problem while trying to export Android Studio project. I exported it as .zip file, transfered to my second pc and oppened it in Android Studio. Now I get error messages in every file, almost everything is ...
java|android-studio
0
2022-03-01T13:08:47.797Z
2,022
3
13
1
36
2
617
67
2
0
false
false
false
false
false
false
zero
71,129,000
OnBindViewHolder: why sometimes position don't start from zero?
<p>I'm using a RecyclerView and I noticed a strange behavior: I put a log every time <code>onBindViewHolder()</code> is called logging the actual position and sometimes the position don't start from zero, do you know why? For me this is a problem cause in position 0 I have a different logic.</p> <p>That's the logger:</...
I'm using a RecyclerView and I noticed a strange behavior: I put a log every time onBindViewHolder() is called logging the actual position and sometimes the position don't start from zero, do you know why? For me this is a problem cause in position 0 I have a different logic. That's the logger: [CODE] Ok, I understand ...
java|android|android-recyclerview
0
2022-02-15T15:24:05.383Z
2,022
2
15
1
37
2
615
63
3
3
true
false
false
false
false
false
zero
71,322,571
Soundpool is not playing any sound
<p>Im trying to make soundpool work because I need to use it for a prodject. The problem is that it's not playing any sound. Im just trying to play a test sound to see if it works. Hope someone can see what im doing wrong here.</p> <pre><code>public class MainActivity extends AppCompatActivity { SoundPool soundPool; i...
Im trying to make soundpool work because I need to use it for a prodject. The problem is that it's not playing any sound. Im just trying to play a test sound to see if it works. Hope someone can see what im doing wrong here. [CODE] }
java|android|android-studio|soundpool
0
2022-03-02T12:17:47.557Z
2,022
3
12
2
38
2
233
34
4
1
true
false
false
false
false
false
zero
71,105,314
Showing Result returned in a Carousel RecyclerView (Kotlin)
<p>I have a rotating carousel (using <em>carouselrecyclerview</em>) to rotate a list of images around.</p> <p>The user can call a second activity and then search the images, and then return the selected image’s ID back to the MainActivity.kt.</p> <p>The MainActivity.kt receives the result (using intent) in the <em>onA...
I have a rotating carousel (using carouselrecyclerview ) to rotate a list of images around. The user can call a second activity and then search the images, and then return the selected image’s ID back to the MainActivity.kt. The MainActivity.kt receives the result (using intent) in the onActivityResult . I then need to...
android|android-studio|kotlin
0
2022-02-13T22:14:34.183Z
2,022
2
22
6
550
2
887
59
3
1
true
false
false
false
false
false
zero
71,311,921
Using enum and ValueNotifier for DropdownMenu in Flutter
<p>Hi what my goal is to display enum values inside of a dropdown menu and to replace setState with ValueNotifier and ValueListenableBuilder. I'm fairly new to flutter and currently I only know how to display dropdown menu when we have a list of strings and its using setState but how can I modify it. So for instance we...
Hi what my goal is to display enum values inside of a dropdown menu and to replace setState with ValueNotifier and ValueListenableBuilder. I'm fairly new to flutter and currently I only know how to display dropdown menu when we have a list of strings and its using setState but how can I modify it. So for instance we ha...
android|flutter|dart|drop-down-menu
3
2022-03-01T16:47:50.773Z
2,022
3
16
1
295
2
443
56
4
1
true
false
false
false
false
false
low
71,178,120
I don't know where my background comes from
<p>I have developed my bottom sheet in Compose.</p> <p>The goal is to have the top of the bottom sheet (where the picture is) to be transparent to see the background picture. The rest of the bottom sheet with the text will have a background</p> <p>Here is what I came up with:</p> <pre><code>@ExperimentalMaterialApi @Co...
I have developed my bottom sheet in Compose. The goal is to have the top of the bottom sheet (where the picture is) to be transparent to see the background picture. The rest of the bottom sheet with the text will have a background Here is what I came up with: [CODE] I have this issue where there is a white/black (depen...
android|android-jetpack-compose
0
2022-02-18T18:15:18.797Z
2,022
2
18
4
40
2
585
43
2
1
true
false
false
false
false
false
zero
71,310,122
ParseError in AndroidManifest.xml
<p>ParseError at [row,col]:[2,6] Message: The processing instruction target matching &quot;[xX][mM][lL]&quot; is not allowed. I keep receiving this error,</p> <p>I believe it is an issue in my Manifest file but i'm unsure how to fix it, any help is appreciated.</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&...
ParseError at [row,col]:[2,6] Message: The processing instruction target matching &quot;[xX][mM][lL]&quot; is not allowed. I keep receiving this error, I believe it is an issue in my Manifest file but i'm unsure how to fix it, any help is appreciated. [CODE]
android
0
2022-03-01T14:35:28.010Z
2,022
3
14
1
40
2
258
33
1
1
true
false
false
false
false
false
zero
71,267,938
I add MPAndroidChart in my project but in my xml I cant find LineChart
<p>I want to use MPAndroidChart in my project.<br /> I add that library in my gradle but in my xml layout file, I cant find Chart.<br /> my build.gradle(Module) is this :</p> <pre><code>dependencies { implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' } </code></pre> <p>and build.gradle(Project) is this :</p> ...
I want to use MPAndroidChart in my project. I add that library in my gradle but in my xml layout file, I cant find Chart. my build.gradle(Module) is this : [CODE] and build.gradle(Project) is this : [CODE] but I cant find Chart in my xml layout file
xml|kotlin|android-layout|mpandroidchart
1
2022-02-25T15:17:04.573Z
2,022
2
15
4
808
2
249
70
4
2
true
false
false
false
false
false
low
71,278,273
How to make dart flutter popup box?
<p>I have an application like this:</p> <p><a href="https://i.stack.imgur.com/fgdX4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fgdX4.png" alt="enter image description here" /></a></p> <p>My aim is that when I press the eye icon next to the text &quot;Hello&quot;, I want a box to open just below ...
I have an application like this: My aim is that when I press the eye icon next to the text &quot;Hello&quot;, I want a box to open just below the text and write the German version of &quot;Hello&quot;. So it will say &quot;Hallo&quot;. My purpose is to show the meaning of the word. When I press the eye, I want to show ...
android|flutter|dart
0
2022-02-26T16:15:15.330Z
2,022
2
16
5
41
2
561
35
3
1
true
false
false
false
false
false
zero
71,278,706
MutableLiveData doesn't apply change
<pre><code> private var number = MutableLiveData(0) fun addOne(){ number.value?.let { it + 1 } } </code></pre> <p>I would like to increase my mutableLiveData by 1 all the time using my function. But it still shows 0. What could be wrong there ?</p>
[CODE] I would like to increase my mutableLiveData by 1 all the time using my function. But it still shows 0. What could be wrong there ?
android|kotlin
0
2022-02-26T17:09:26.457Z
2,022
2
17
5
42
2
137
36
2
1
true
false
false
false
false
false
zero
71,298,418
Android: how to navigate between activities and keep its states
<p>I am developing an app in Android Studio and I am having trouble navigating between activities and maintaining the changes users make in them.</p> <p>What I want: <br/><strong>Step 1:</strong> User introduces data in Activity 1 <br/><strong>Step 2:</strong> User goes to Activity 2 <br/><strong>Step 3:</strong> User ...
I am developing an app in Android Studio and I am having trouble navigating between activities and maintaining the changes users make in them. What I want: Step 1: User introduces data in Activity 1 Step 2: User goes to Activity 2 Step 3: User introduces data in Activity 2 Step 4: User goes back to Activity 1 Step 5: U...
android|kotlin|android-activity
0
2022-02-28T16:54:51.690Z
2,022
2
16
0
298
2
1,033
63
3
1
true
false
false
false
false
false
zero
71,236,184
How to change Jectpack Compose BasicTextField's text color?
<p>I'm trying to make a search bar using <code>BasicTextField</code>.<br /> The default text color is black and I couldn't find any option to change the text color.<br /> Also I need to change the text size, font and other attributes.</p> <pre><code>@Composable fun MyBasicTextField(){ var text by remember { mutable...
I'm trying to make a search bar using BasicTextField . The default text color is black and I couldn't find any option to change the text color. Also I need to change the text size, font and other attributes. [CODE] If this is not possible through BasicTextField , is there any other approach to create similar view? I ha...
android|android-jetpack-compose
1
2022-02-23T11:34:54.660Z
2,022
2
11
2
812
2
412
59
2
1
true
false
false
false
false
false
low
71,396,148
how to open a specific UserInterface, onClicking on firebase push notification in android studio?
<ul> <li><p>I am using firebase push notification and also my android device get notification too. if I get notification, while app is open and I can read &quot;title&quot; and &quot;Message&quot; and it take me to &quot;UserDetailsActivity&quot; a specific class .But I also want to do the same thin on click the the...
I am using firebase push notification and also my android device get notification too. if I get notification, while app is open and I can read &quot;title&quot; and &quot;Message&quot; and it take me to &quot;UserDetailsActivity&quot; a specific class .But I also want to do the same thin on click the the notification. ...
android-studio|firebase-notifications
0
2022-03-08T13:50:18.727Z
2,022
3
13
1
45
2
924
97
2
3
true
false
false
false
false
false
zero
53,777,229
What is the correct way to retrieve data from a local database Android?
<p>I'm developing an app and I have a local SQLite database for keeping some user data and I am also using the Room persistence library as it is a recommended approach. I followed the tutorial and created a model, a DAO and a database itself. So in the activity I just populate my <code>RecyclerView</code> using the new...
I'm developing an app and I have a local SQLite database for keeping some user data and I am also using the Room persistence library as it is a recommended approach. I followed the tutorial and created a model, a DAO and a database itself. So in the activity I just populate my RecyclerView using the new thread and it i...
android|sqlite|architecture|android-room
0
2018-12-14T09:50:25.137Z
2,018
12
9
4
256
2
1,110
71
4
0
false
false
false
false
false
false
zero
53,498,787
Not able to detect an incoming call in Oreo
<p>I am working on an Application where i need to detect incoming call in activity's onResume(), i am using this code to detect any incoming call.</p> <pre><code>TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); PhoneStateListener callStateListener = new PhoneState...
I am working on an Application where i need to detect incoming call in activity's onResume(), i am using this code to detect any incoming call. [CODE] Moreover it's working on every device below Oreo, and on Oreo device its not working, i am not sure where i am doing wrong
android|incoming-call
1
2018-11-27T11:36:53.010Z
2,018
11
11
1
513
2
273
43
2
1
true
false
false
false
false
false
low
53,465,222
Value of Toast to TextView of second activity
<p>This is my MainActivity.java and I want the results in a text view of another activity? How can I achieve it? Can you Show me with an example please.</p> <pre><code>public class MainActivity extends AppCompatActivity { private Button scan_btn; @Override protected void onCreate(Bundle savedInstanceState) { supe...
This is my MainActivity.java and I want the results in a text view of another activity? How can I achieve it? Can you Show me with an example please. [CODE] This is my Second Activity. Where I want to show the result. [CODE] If you want I can post my Layout file as well. Thankyou.
java|android|android-studio|android-toast
2
2018-11-25T06:32:43.607Z
2,018
11
6
6
258
2
281
45
4
2
true
false
false
false
false
false
low
53,462,857
Android FileInputStream exception file not found
<p>I'm trying to untar a tar with <a href="https://github.com/kamranzafar/jtar" rel="nofollow noreferrer">jtar</a> and I'm getting</p> <blockquote> <p>java.io.FileNotFoundException: Download/Data.tar (No such file or directory)</p> </blockquote> <p>I'm not using an emulator, it's directly on my phone.</p> <p>The file d...
I'm trying to untar a tar with jtar and I'm getting java.io.FileNotFoundException: Download/Data.tar (No such file or directory) I'm not using an emulator, it's directly on my phone. The file does exist in my android's downloads folder (even before the app starts). I have all the permissions to read/write. [CODE] Logca...
java|android|tar
0
2018-11-24T22:21:36.540Z
2,018
11
22
5
1,027
2
832
48
3
1
true
false
false
false
false
false
zero
53,355,819
My ViewModel does not survive configuration changes
<p>I'm trying out Dagger 2 with MVVM. Here is what I have so far,</p> <p>My ViewModel binding module:</p> <pre><code>@Module public abstract class ViewModelModule { @Binds @IntoMap @ViewModelKey(MedicationsViewModel.class) @Singleton abstract ViewModel bindMedicationsViewModel(MedicationsViewMode...
I'm trying out Dagger 2 with MVVM. Here is what I have so far, My ViewModel binding module: [CODE] My Fragment: [CODE] And my ViewModel is like this: [CODE] Through a button in my fragment, I am opening an activity and adding another Medication item to my viewmodel. After finish() out from my activity, I can see the ne...
java|android|mvvm|kotlin|dagger-2
0
2018-11-17T21:41:50.203Z
2,018
11
21
5
1,795
2
826
51
5
3
true
false
false
false
false
false
zero
53,756,497
Using Touch ID or Face ID without storing user biometrics
<p>I apologize in advance if this topic does not fit Stackoverflow (I ask moderators to move it where appropriate). Thanks.</p> <p>I was wondering how apps use Touch ID or Face ID to verify identity without storing the biometric data into their servers.</p> <p><strong>Authentication without Touch/Face ID (oversimplif...
I apologize in advance if this topic does not fit Stackoverflow (I ask moderators to move it where appropriate). Thanks. I was wondering how apps use Touch ID or Face ID to verify identity without storing the biometric data into their servers. Authentication without Touch/Face ID (oversimplifying here) User logs into t...
android|ios|touch-id|face-id
6
2018-12-13T06:56:05.100Z
2,018
12
6
3
1,796
2
1,026
57
4
0
false
false
false
false
false
false
medium
53,484,939
How to not obfuscate class names but get the right simplename anyway?
<p>I have over 20 Fragments which extends from MyFragment e.g.:</p> <ul> <li><code>LoginFragment extends MyFragment</code></li> <li><code>UploadFragment extends MyFragment</code></li> <li><code>CameraFragment extends MyFragment</code></li> <li>etc..</li> </ul> <p>and <code>MyFragment</code> in turn extends from <code...
I have over 20 Fragments which extends from MyFragment e.g.: LoginFragment extends MyFragment UploadFragment extends MyFragment CameraFragment extends MyFragment etc.. and MyFragment in turn extends from Fragment . So in my Android app, and whenever I inflate one of them, I call in my abstrac t class a showFragment(MyF...
obfuscation|android-proguard|matomo|piwiktracker|adjust-android
1
2018-11-26T16:04:51.333Z
2,018
11
16
0
1,285
2
846
69
5
1
true
false
false
false
false
false
low
53,475,574
unity how to use www to load mp3 file with absolute path on android
<p>I'm making a mobile rhythm game. I get absolute path of song like this.</p> <blockquote> <p>/storage/emulated/0/Music/a.mp3</p> </blockquote> <p>I want to convert the mp3 file to <a href="https://docs.unity3d.com/ScriptReference/WWW-audioClip.html" rel="nofollow noreferrer">audioClip</a>.</p> <p>But I can't a r...
I'm making a mobile rhythm game. I get absolute path of song like this. /storage/emulated/0/Music/a.mp3 I want to convert the mp3 file to audioClip . But I can't a receive mp3 file from absolute path. here is my code : [CODE] How can I receive a music file?
android|unity3d|mp3
1
2018-11-26T06:09:51.923Z
2,018
11
6
0
774
2
257
67
3
1
true
false
false
false
false
false
low
53,602,890
How to scroll the scrollable content loaded in the webview which is one item of the RecycleView
<p>Having a RecycleView, it has a few items and one of them is a view contains a WebView. Inside the WebView it loads an html and there is a iframe which has an html table content and it is vertically scrollable (the containing div has fix height smaller than the the table's height).</p> <p>Seems there is issue with t...
Having a RecycleView, it has a few items and one of them is a view contains a WebView. Inside the WebView it loads an html and there is a iframe which has an html table content and it is vertically scrollable (the containing div has fix height smaller than the the table's height). Seems there is issue with the Recycler...
scroll|android-recyclerview|android-webview|touch-event
1
2018-12-03T22:24:52.550Z
2,018
12
22
0
774
2
1,495
95
4
2
true
false
false
false
false
false
low
53,467,820
How to properly reload liveData manually in Android?
<p>My app is a basic news app which fetches data from JSON provided by Guardian API. I parsed the values from JSON using raw java code (not using retrofit).</p> <p>Then I get the LiveData in NewsFeedViewModel class which extends as AndroidViewModel.</p> <p>And then in the fragment, I submit list to adapter.</p> <p>T...
My app is a basic news app which fetches data from JSON provided by Guardian API. I parsed the values from JSON using raw java code (not using retrofit). Then I get the LiveData in NewsFeedViewModel class which extends as AndroidViewModel. And then in the fragment, I submit list to adapter. These are the issues I'm fac...
java|android|refresh|viewmodel|android-livedata
4
2018-11-25T13:13:27.423Z
2,018
11
13
6
9,990
2
930
52
5
0
false
false
true
false
false
false
low
53,438,911
how i makes decrement value stop at zero
<p>I am a beginner in xamarin android and I try to develop a simple app in xamarin android that makes decrement value into zero only ... but when I am trying the decrement value is continue to the negative value I cant makes it stop at zero value </p> <p>how I can make decrement value stop at zero? </p> <pre><code>e...
I am a beginner in xamarin android and I try to develop a simple app in xamarin android that makes decrement value into zero only ... but when I am trying the decrement value is continue to the negative value I cant makes it stop at zero value how I can make decrement value stop at zero? [CODE] } when I run the app the...
android|xamarin.android|xampp|disabled-input|tabstop
0
2018-11-22T23:04:59.783Z
2,018
11
23
3
519
2
358
40
5
1
true
false
false
false
false
false
zero
53,497,415
On uninstalling application getting 'Unfortunately package installer has stopped working"
<p>Read before marking it as duplicate,I started getting error: system UI has stopped on motoZ2. I tried to figure out what is going wrong but ended up with nothing then I decided to uninstall all the installed app on which I came to know one app is giving this package installer error, I then decided to clear that app'...
Read before marking it as duplicate,I started getting error: system UI has stopped on motoZ2. I tried to figure out what is going wrong but ended up with nothing then I decided to uninstall all the installed app on which I came to know one app is giving this package installer error, I then decided to clear that app's d...
android
-1
2018-11-27T10:18:38.343Z
2,018
11
10
1
519
2
500
89
1
0
false
false
false
false
false
true
negative
53,706,767
How to reconstruct 33-byte compressed NIST P-256 public key from 33 bytes?
<p>Supposed that the 33 bytes encoded Public Key can be created like this:</p> <pre><code>Security.addProvider(provider) val generator = KeyPairGenerator.getInstance("ECDSA") val ecSpec = ECNamedCurveTable.getParameterSpec("secp256r1") generator.initialize(ecSpec) val keyPair = generator.generateKeyPair() val privateK...
Supposed that the 33 bytes encoded Public Key can be created like this: [CODE] How can I reconstruct it again on the other side (when I am having only the 33 bytes sent from here)? I was trying below code: [CODE] But I guess this is totally wrong, as I am getting the: java.security.spec.InvalidKeySpecException: java.la...
android|kotlin|cryptography|bouncycastle|ecdsa
0
2018-12-10T13:32:34.490Z
2,018
12
13
0
519
2
556
74
5
3
true
false
false
false
false
false
zero
53,401,539
Android Application HTTP Methods
<p>I am working on a big android application project. I have my android app and also I have a node JS API on my server. I want to make a Restful API so I want to make HTTP requests from my android application to node JS API. I am searching for many weeks and trying different solutions for the HTTP requests from andr...
I am working on a big android application project. I have my android app and also I have a node JS API on my server. I want to make a Restful API so I want to make HTTP requests from my android application to node JS API. I am searching for many weeks and trying different solutions for the HTTP requests from android bu...
android|rest|http
0
2018-11-20T21:06:41.977Z
2,018
11
21
1
264
2
568
32
3
0
false
false
false
false
false
false
zero
53,426,678
TextField click rebuilds/reloads widget after routed
<p>I am having an issue where the whole screen widget reloads when there is a textfield is used. This doesn't happen when the the app is loaded with this screen as landing page.</p> <p>But when the routing happens from another page to this page and when textfield is clicked then the rebuild happens. </p> <p>I even tr...
I am having an issue where the whole screen widget reloads when there is a textfield is used. This doesn't happen when the the app is loaded with this screen as landing page. But when the routing happens from another page to this page and when textfield is clicked then the rebuild happens. I even tried a simple app and...
android|dart|flutter|flutter-layout
7
2018-11-22T08:27:31.953Z
2,018
11
8
3
5,896
2
982
52
4
2
true
false
true
false
false
false
medium
53,777,697
Define StringDef in kotlin
<p>I'm trying to define a StringDef in kotlin:</p> <pre><code>@Retention(AnnotationRetention.SOURCE) @StringDef(NORTH, SOUTH) annotation class FilterType { companion object { const val NORTH = "NORTH" const val SOUTH = "SOUTH" } } </code></pre> <p>I think something is wrong in the code above....
I'm trying to define a StringDef in kotlin: [CODE] I think something is wrong in the code above. [CODE] I want the kotlin equivalent of the java below: [CODE] Calling the java defined StringDef works from kotlin [CODE] Where have I gone wrong, how do you define a StringDef in Kotlin?
android|kotlin|annotations
8
2018-12-14T10:17:28.543Z
2,018
12
10
4
5,896
2
284
26
3
4
true
false
true
false
false
false
medium
53,519,029
Emulator camera
<p>I'm building an application in Android Studio for my University class. It asks to upload pictures from my device, and I was thinking about trying taking also photos from the camera. I have to use only the Android Studio Emulator and not a real device, so, I'm not sure I can do it.</p> <p>I solved as this:</p> <pr...
I'm building an application in Android Studio for my University class. It asks to upload pictures from my device, and I was thinking about trying taking also photos from the camera. I have to use only the Android Studio Emulator and not a real device, so, I'm not sure I can do it. I solved as this: [CODE] The Manifest ...
android|camera|android-emulator|photo
0
2018-11-28T12:01:31.373Z
2,018
11
12
2
1,033
2
692
15
4
2
true
false
false
false
false
false
zero
53,582,860
Is NetworkOnMainThreadException valid for a network call in a coroutine?
<p>I'm putting together a simple demo app in Kotlin for Android that retrieves the title of a webpage with Jsoup. I'm conducting the network call using <code>Dispatchers.Main</code> as context. </p> <p>My understanding of coroutines is that if I call <code>launch</code> on the <code>Dispatchers.Main</code> it <em>does...
I'm putting together a simple demo app in Kotlin for Android that retrieves the title of a webpage with Jsoup. I'm conducting the network call using Dispatchers.Main as context. My understanding of coroutines is that if I call launch on the Dispatchers.Main it does run on the main thread, but suspends the execution so ...
android|kotlin|kotlinx.coroutines
18
2018-12-02T17:35:35.627Z
2,018
12
17
6
6,410
2
940
72
3
1
true
false
true
false
true
false
medium
53,794,027
How to create 2 new Players and get there name from an EditText field
<p>I have an app with 2 layouts in android studio. The first had just two EditText boxes and a start button. The two players will put in their names and then press start. This will then take them to the next screen which is the main screen. I want 2 text fields in here to automatically be filled in with the players nam...
I have an app with 2 layouts in android studio. The first had just two EditText boxes and a start button. The two players will put in their names and then press start. This will then take them to the next screen which is the main screen. I want 2 text fields in here to automatically be filled in with the players names ...
java|android
1
2018-12-15T14:16:29.097Z
2,018
12
14
5
780
2
1,393
69
2
2
true
false
false
false
false
false
low
53,463,020
InflateException: Error inflating class Button - Crash through play store
<p>I have spent a long time looking for an answer to this issue and seem unable to figure it out. </p> <p>An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (includ...
I have spent a long time looking for an answer to this issue and seem unable to figure it out. An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (including my own) ...
java|android
0
2018-11-24T22:47:49.140Z
2,018
11
22
5
525
2
1,140
73
2
3
true
false
false
false
false
false
zero
53,748,258
Android Studio Vector Assets - How to merge/combine two vector assets together?
<p>I'm currently designing some ImageButtons to be drawn on top of a map, and one of them is supposed to bring up a list of currently favourited markers that would be permanently displayed on the map.<br> Apart from holding down the custom InfoWindow, a marker can be added to this list from a separate activity by click...
I'm currently designing some ImageButtons to be drawn on top of a map, and one of them is supposed to bring up a list of currently favourited markers that would be permanently displayed on the map. Apart from holding down the custom InfoWindow, a marker can be added to this list from a separate activity by clicking a b...
xml|android-studio|android-layout
2
2018-12-12T17:21:37.837Z
2,018
12
17
2
2,829
2
677
79
3
0
false
false
true
false
false
false
low
53,671,874
Creating trigger based on multiple conditions in sqlite
<p>Dear amazing programmers, I am trying to create <code>trigger</code> in my application database to delete rows in a table based on multiple condition and deletion in another table, and i could use some help here.</p> <p>Here is my code for the <code>trigger</code></p> <pre><code>CREATE TRIGGER RemoveAccountReports...
Dear amazing programmers, I am trying to create trigger in my application database to delete rows in a table based on multiple condition and deletion in another table, and i could use some help here. Here is my code for the trigger [CODE] I need to delete from Reports table with every deletion in Accounts table where R...
android|database|sqlite|android-sqlite
1
2018-12-07T14:51:35.293Z
2,018
12
14
4
270
2
448
55
4
1
true
false
false
false
false
false
low
53,643,982
Imagebutton not showing in Android Emulator
<p>I have a problem whose solution I am unable to find out. I am creating an imagebutton thorugh Android SDk and although it shows in Preview window it does not show in Nexus 6 Emulator. The image is attached here <a href="https://i.stack.imgur.com/YYjEj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
I have a problem whose solution I am unable to find out. I am creating an imagebutton thorugh Android SDk and although it shows in Preview window it does not show in Nexus 6 Emulator. The image is attached here Code for xml file is [CODE]
java|android
1
2018-12-06T03:02:16.263Z
2,018
12
3
3
783
2
238
43
2
1
true
false
false
false
false
false
low
53,739,285
Broadcast receiver only works when app is opened
<p>Hi I created a auto sms application which sends SMS automatically when a firebase notification is received. I am able to send SMS extending <code>FirebaseMessagingService</code>. Now to get the sent status i created a broadcast reciever inside my main activity. Here i am able to get the SMS send status only when Ap...
Hi I created a auto sms application which sends SMS automatically when a firebase notification is received. I am able to send SMS extending FirebaseMessagingService . Now to get the sent status i created a broadcast reciever inside my main activity. Here i am able to get the SMS send status only when App is in opened. ...
android|broadcastreceiver
-1
2018-12-12T08:56:32.060Z
2,018
12
8
2
528
2
475
48
2
3
true
false
false
false
false
true
negative
53,634,246
Android: get all installed packages using ADB
<p>How I can get the list of all installed on my Android 8 packages using ADB Shell? I preference to query Sqlite base, but accept any command-line solution.</p>
How I can get the list of all installed on my Android 8 packages using ADB Shell? I preference to query Sqlite base, but accept any command-line solution.
android|adb
35
2018-12-05T14:11:43.433Z
2,018
12
14
2
87,056
2
154
45
2
0
false
false
true
true
true
false
high
53,455,617
Why android:background="@null" causing the issue while apply pro-guard rules?
<p>So this happens with me that when I was apply pro-guard rules for my app. I was stuck with the error.</p> <p>The Error</p> <pre><code>Expecting class member name before '@' in line aapt_rules.txt </code></pre> <p>So I was searching for this on the Internet and somewhere found that Remove @null from .xml file and ...
So this happens with me that when I was apply pro-guard rules for my app. I was stuck with the error. The Error [CODE] So I was searching for this on the Internet and somewhere found that Remove @null from .xml file and it should work. And it's worked. So my question is why @null is the issue?
android|android-layout
0
2018-11-24T06:05:33.397Z
2,018
11
6
5
273
2
294
77
2
1
true
false
false
false
false
false
zero
53,565,222
How to set true to list of data in my Firebase database
<p>Currently , Im getting an arraylist (type String) from my adapter that is doing some selection logic.</p> <p>Now, I want to push those values to my Firebase database, that is working fine , but its pushing my like this</p> <p><a href="https://i.stack.imgur.com/doT7V.png" rel="nofollow noreferrer"><img src="https:/...
Currently , Im getting an arraylist (type String) from my adapter that is doing some selection logic. Now, I want to push those values to my Firebase database, that is working fine , but its pushing my like this Instead, I need it to be push like this [CODE] my code [CODE] I have tried doing a map this way [CODE] and s...
android|firebase|firebase-realtime-database
0
2018-11-30T21:34:03.453Z
2,018
11
21
4
273
2
389
55
3
3
true
false
false
false
false
false
zero
53,650,551
BottomNavigationView not showing at bottom, but at top instead
<p>My menu is not sticking to the bottom. I have a menu, in a BottomNavigationView. The navigation view is included in a layout. I tried with setting gravity to bottom, setting constraints, alignparentbottom, still it is showing at the top of the layout. Below is the code for my menu, navigation, and my layout.</p> <p...
My menu is not sticking to the bottom. I have a menu, in a BottomNavigationView. The navigation view is included in a layout. I tried with setting gravity to bottom, setting constraints, alignparentbottom, still it is showing at the top of the layout. Below is the code for my menu, navigation, and my layout. I added a ...
android
2
2018-12-06T11:34:56.663Z
2,018
12
11
3
1,297
2
449
62
1
3
true
false
false
false
false
false
low
53,500,939
Google Map places autocomplete doesn't work
<p>I wanted to implement AutocompleteFragment (google places) but when I click to search view in a fragment, the fragment disappears (fell down). Google Maps and Places API work and in console I see error:</p> <blockquote> <p>places.PlacesService.AutocompleteWidget: 100 </p> </blockquote> <p>I can't find what it c...
I wanted to implement AutocompleteFragment (google places) but when I click to search view in a fragment, the fragment disappears (fell down). Google Maps and Places API work and in console I see error: places.PlacesService.AutocompleteWidget: 100 I can't find what it could mean. I tried to use advices in this and this...
android|google-maps|google-maps-android-api-2|google-places|google-maps-autocomplete
0
2018-11-27T13:34:24.430Z
2,018
11
13
1
1,043
2
768
43
5
3
true
false
false
false
false
false
zero
53,638,923
ID of the back arrow drawable in the ActionBar in programming side
<p>I am searching for default drawable of back arrow. In <a href="https://stackoverflow.com/questions/44807847/what-is-the-id-of-the-back-arrow-drawable-in-the-actionbar">this question</a> showed how to get it in xml. But I am searching for using in programming side (java/kotlin). </p> <p>I want to use this drawable i...
I am searching for default drawable of back arrow. In this question showed how to get it in xml. But I am searching for using in programming side (java/kotlin). I want to use this drawable id in code like: [CODE]
java|android|kotlin|android-resources
3
2018-12-05T18:52:00.553Z
2,018
12
18
2
1,299
2
212
66
4
1
true
false
false
false
false
false
low
53,766,007
How to create android XML file which supports all screen
<p>Actually am new to android development, I have created a small calculator app, in which I have developed xml for 5 inch device, which worked in my 5 inch phone . But when I switch this app to bigger size device, items get misaligned. My question is how to create XML file that's common for all device.</p>
Actually am new to android development, I have created a small calculator app, in which I have developed xml for 5 inch device, which worked in my 5 inch phone . But when I switch this app to bigger size device, items get misaligned. My question is how to create XML file that's common for all device.
android-studio|android-layout
0
2018-12-13T16:17:31.840Z
2,018
12
16
3
21
2
301
56
2
0
false
false
false
false
false
false
zero
53,575,040
Scaling Google Map and created polyline on Android
<p>I have created Android application where you can add points on map and then it creates polygon from those points. Which looks something like:</p> <p><a href="https://i.stack.imgur.com/EVQB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EVQB6.png" alt="enter image description here"></a></p> <p>...
I have created Android application where you can add points on map and then it creates polygon from those points. Which looks something like: Then I am saving image of polyline like this: [CODE] This code creates me image that looks like: What I need is this polyline image to be scaled to 1:10000 or 1:5000 in relation ...
android|dictionary|scale|polyline
3
2018-12-01T21:05:50.560Z
2,018
12
21
5
533
2
879
50
4
2
true
false
false
false
false
false
low
53,558,639
What ProguardRules to add after migrating to AndroidX
<p>I want to be able to find a mention on the internet on whether we should add some particular new ProguardRules after having migrated to AndroidX</p>
I want to be able to find a mention on the internet on whether we should add some particular new ProguardRules after having migrated to AndroidX
android|proguard|android-support-library|androidx
0
2018-11-30T13:36:55.017Z
2,018
11
13
4
1,045
2
144
53
4
0
false
false
false
false
false
false
zero
53,596,687
How to limite access to database based on ID
<p>I have a team of three people with IDs 1-2-3 They report to me the number of articles they produced daily via an app with a database they upload on google drive or dropbox so the table has three columns : DATE ID and Number For example when person with ID=1 opens the app on his device only his inputs should be acces...
I have a team of three people with IDs 1-2-3 They report to me the number of articles they produced daily via an app with a database they upload on google drive or dropbox so the table has three columns : DATE ID and Number For example when person with ID=1 opens the app on his device only his inputs should be accessib...
android|database|sqlite
0
2018-12-03T15:21:04.080Z
2,018
12
15
0
22
2
381
44
3
0
false
false
false
false
false
false
zero
53,565,200
onDataChange unexpected behavior
<p>I have the following code, on <code>FirstActivity.java</code>:</p> <pre><code> @Override public void onDataChange(DataSnapshot dataSnapshot) { FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); if (data == 0) { Intent intent = new Intent(getApplicatio...
I have the following code, on FirstActivity.java : [CODE] and on SecondActivity.java , I update the data value, and it starts the ThirdActivity immediately on update, although I never call to start this activity in the SecondActivity and I suspect it's due to the fact that it's happening on FirstActivity.java (It's the...
android|firebase
0
2018-11-30T21:31:51.183Z
2,018
11
21
4
24
2
518
32
2
1
true
false
false
false
false
false
zero
53,682,222
Android Firebase Database checking if user is in specific group
<p>I have 5 different user types I want to check if a user is in one of the 4 special user types and change the menu ui based on that. This is what I found by my self but it doesn't work.</p> <pre><code>mDatabase.child("staff").orderByChild(mAuth.getUid()).equalTo("true").addValueEventListener(new ValueEventListener()...
I have 5 different user types I want to check if a user is in one of the 4 special user types and change the menu ui based on that. This is what I found by my self but it doesn't work. [CODE] my firebase database
java|android|firebase|firebase-realtime-database
0
2018-12-08T11:50:10.907Z
2,018
12
11
5
280
2
212
63
4
1
true
false
false
false
false
false
zero
53,498,815
WorkManager. How to cancel appended work?
<p>I'm trying to cancel a task that hasn't started yet.</p> <p>My <code>Worker</code> class code:</p> <pre><code>class TestWork(context: Context, workerParams: WorkerParameters) : Worker(context, workerParams) { override fun doWork(): Result { val data = inputData.getInt(KEY_OBJ, -1) runBlocking { fo...
I'm trying to cancel a task that hasn't started yet. My Worker class code: [CODE] The code sample that running 3 works and canceling second. But second work continues. [CODE] How to cancel second work only? While the first is executed
android|android-workmanager
-1
2018-11-27T11:38:12.193Z
2,018
11
11
1
2,072
2
234
41
2
2
true
false
false
false
false
true
negative
53,429,165
JQuery function returns incorrect amount of pixels
<p>I have a webview that contains some js and jquery</p> <p>var <code>viewport_top = $window.scrollTop()</code> is called within a function,</p> <p>the problem is that this function returns an incorrect amount of pixels, i can see that from displaying an alert </p> <p>My webview height is around 1600 pixels, when i ...
I have a webview that contains some js and jquery var viewport_top = $window.scrollTop() is called within a function, the problem is that this function returns an incorrect amount of pixels, i can see that from displaying an alert My webview height is around 1600 pixels, when i scroll the height of my screen and call t...
javascript|android|jquery|webview
1
2018-11-22T10:44:29.157Z
2,018
11
10
3
25
2
433
50
4
0
false
false
false
false
false
false
low