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
73,239,880
Cannot resolve jitpack dependencies in android studio (Chipmunk 2021.2.1 patch 2 ) even if added maven url in settings.gradle
<p>Android Studio Chipmunk | 2021.2.1 Patch 2 Build #AI-212.5712.43.2112.8815526, built on July 10, 2022 Runtime version: 11.0.12+7-b1504.28-7817840 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.i...
Android Studio Chipmunk | 2021.2.1 Patch 2 Build #AI-212.5712.43.2112.8815526, built on July 10, 2022 Runtime version: 11.0.12+7-b1504.28-7817840 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.impo...
java|android-studio
0
2022-08-04T17:11:13.990Z
2,022
8
17
3
71
0
894
125
2
1
true
true
false
false
false
false
zero
73,240,010
how to upload an android app bundle to google play
<p>I'm fairly new to the process of uploading the Android App Bundle to the Google Play store, thus, the ask for help is highly appreciated.</p> <p>A bit of backstory, all the builds we've uploaded to the Google Play store have been .apk files. The way we did this was:</p> <ul> <li>Our developer (Third-party) would pro...
I'm fairly new to the process of uploading the Android App Bundle to the Google Play store, thus, the ask for help is highly appreciated. A bit of backstory, all the builds we've uploaded to the Google Play store have been .apk files. The way we did this was: Our developer (Third-party) would provide an unsigned .apk W...
android|upload|google-play|store|android-app-bundle
0
2022-08-04T17:22:23.500Z
2,022
8
17
3
63
1
1,355
50
5
0
false
false
false
false
false
false
zero
73,240,070
Android studio.exe file is missing from the bin sub folder
<p>My computer is 32 bits so I installed the zip file from Android studio but I can't open it because there is no studio.exe file in the bin subfolder.</p>
My computer is 32 bits so I installed the zip file from Android studio but I can't open it because there is no studio.exe file in the bin subfolder.
android-studio
0
2022-08-04T17:27:50.977Z
2,022
8
17
3
16
0
148
58
1
0
false
true
false
false
false
false
zero
73,240,071
How exactly you supposed to use Firebase App Check?
<p>Its been year since App Check was introduce, back then we tried to implement in one of our project the enforced services like Firestore and Storage but both service has stopped working due to denied permission.</p> <pre><code>PERMISSION_DENIED: Missing or insufficient permissions. </code></pre> <p>Year after, we onc...
Its been year since App Check was introduce, back then we tried to implement in one of our project the enforced services like Firestore and Storage but both service has stopped working due to denied permission. [CODE] Year after, we once tried it again on a new project that is also available at Play Store. According to...
android|firebase|google-cloud-firestore|firebase-app-check
2
2022-08-04T17:28:08.003Z
2,022
8
17
3
113
0
1,327
51
4
4
true
true
false
false
false
false
low
73,240,313
How can I store documents in firestore database without overwritting the data?
<p>I want to store &quot;val credentials&quot; inside &quot;Credenciales&quot; and &quot;val generales&quot; within &quot;Generales&quot; for each user in the firestore. However, if I sign up as a new user, it overwrites the stored data of the old user. Please, let me know how I can store both variables without repla...
I want to store &quot;val credentials&quot; inside &quot;Credenciales&quot; and &quot;val generales&quot; within &quot;Generales&quot; for each user in the firestore. However, if I sign up as a new user, it overwrites the stored data of the old user. Please, let me know how I can store both variables without replacing ...
android|firebase|kotlin|google-cloud-firestore
0
2022-08-04T17:51:21.963Z
2,022
8
17
3
37
1
371
78
4
2
true
false
false
false
false
false
zero
73,240,352
Realm Instances are not closing
<p>I use Realm version 7.0.0 with the Repository architecture.</p> <p>When I'm running transactions, for example:</p> <pre><code>Realm.getDefaultInstance().use { defaultInstance -&gt; defaultInstance.executeTransaction { // Some transaction } } </code></pre> <p>Realm global instances are not closing.</p>
I use Realm version 7.0.0 with the Repository architecture. When I'm running transactions, for example: [CODE] Realm global instances are not closing.
android|realm
0
2022-08-04T17:53:36.520Z
2,022
8
17
3
20
0
150
31
2
1
true
true
false
false
false
false
zero
73,240,442
¿How can I remove an image from MultipartFormDataContent in xamarin forms Android?
<p>I use this code in C# Xamarin Forms Android</p> <pre><code>MultipartFormDataContent content = new MultipartFormDataContent(); private async void Scanner() { var scannerPage = new ZXingScannerPage(); scannerPage.Title = &quot;scanner&quot;; scannerPage.OnScanResult += (result) =&gt; ...
I use this code in C# Xamarin Forms Android [CODE] So, I create images and buttons dynamically and also I can remove them from the display, but I can't remove it from MultipartFormDataContent when the user sends the images. Someone knows how can I remove images from MultipartFormDataContent ? Thank you very much.
asp.net-mvc|xamarin|xamarin.forms|xamarin.android
0
2022-08-04T18:01:23.060Z
2,022
8
18
3
40
1
314
82
4
1
true
false
false
false
false
false
zero
73,240,481
Run a headless Dart/Flutter callback on receiving a notification in Android
<p>I am building an app with Flutter that listens to notifications and processes them in a defined way.</p> <p>I was using the <a href="https://pub.dev/packages/notifications" rel="nofollow noreferrer">notifications</a> package to receive the notifications directly in my Flutter code avoiding the platform implementatio...
I am building an app with Flutter that listens to notifications and processes them in a defined way. I was using the notifications package to receive the notifications directly in my Flutter code avoiding the platform implementation, but it didn't work in the background. A flutter_background package allowed the app to ...
java|android|flutter|dart
1
2022-08-04T18:04:10.960Z
2,022
8
18
3
69
1
930
75
4
0
false
false
false
false
false
false
low
73,240,554
Flutter Scroll List Over Header
<p>I Want To Scrll My List Like This</p> <img src="https://i.stack.imgur.com/Hx8B2.png" width="200"> <br/><br/> <img src="https://i.stack.imgur.com/YzRUD.png" width="205"> <pre><code>class TestScreen extends StatelessWidget { const TestScreen({Key? key}) : super(key: key); @override Widget build(BuildContext c...
I Want To Scrll My List Like This [CODE] I want to the white part scroll over the blue part until bottom of my app bar Like to screenshots if i use Slivers The white part collapse the Blue part . next Challenge that i have is in normal State the white part in on top of blue. how can i do these?? im sorry if my question...
android|flutter|dart|mobile
0
2022-08-04T18:11:47.673Z
2,022
8
18
3
58
2
517
31
4
2
true
false
false
false
false
false
zero
73,240,625
How to prevent the foreground service is killed by mobile cleaner
<p>I had create a foreground application in Android 12 that is working fine when tha app is remove from recent task. when I had using my mobile cleaner the foreground service also killed.</p> <p>How to prevent the foreground service killed by mobile cleaner</p>
I had create a foreground application in Android 12 that is working fine when tha app is remove from recent task. when I had using my mobile cleaner the foreground service also killed. How to prevent the foreground service killed by mobile cleaner
android|android-studio|kotlin|android-service|mobile-application
0
2022-08-04T18:18:25.277Z
2,022
8
18
3
87
0
247
65
5
0
false
true
false
false
false
false
zero
73,240,759
React native view transform scale
<p>I am having some trouble with basic view transformation.</p> <p><a href="https://snack.expo.dev/@innoware/transforms" rel="nofollow noreferrer">https://snack.expo.dev/@innoware/transforms</a></p> <p>Try clicking the &quot;toggle&quot; button, the scale will toggle between 1 to 2.</p> <p>Why does the blue view not sc...
I am having some trouble with basic view transformation. https://snack.expo.dev/@innoware/transforms Try clicking the &quot;toggle&quot; button, the scale will toggle between 1 to 2. Why does the blue view not scale around its top left corner?
android|ios|react-native|expo|toggle
0
2022-08-04T18:32:30.480Z
2,022
8
18
3
58
0
243
33
5
0
false
true
false
false
false
false
zero
73,240,838
I am making an .XAPK installer application in flutter. with open_file package I can open normal .apk installation dialogue but how can I install .XAPK
<p>As .XAPK file contains 1 base_apk along with obb file and some other additional .apk files. By converting .XAPK file into zip and then extracting it let me install base_apk but that APK doesn't actually work as it's not properly installed with it's other additional APKs. How can I install all the APKs of .XAPK files...
As .XAPK file contains 1 base_apk along with obb file and some other additional .apk files. By converting .XAPK file into zip and then extracting it let me install base_apk but that APK doesn't actually work as it's not properly installed with it's other additional APKs. How can I install all the APKs of .XAPK files pr...
android|flutter|android-studio|dart|apk
0
2022-08-04T18:39:14.117Z
2,022
8
18
3
75
0
407
150
5
1
true
true
false
false
false
false
zero
73,241,012
What is causing an error showed in the Google Play Console pre-launch report?
<p>I launched my app in the alpha channel, and my Google Play Console pre-launch report details page shows an error occurred on Android 12 (SDK 31). The stack trace that show me is:</p> <pre><code>ANR in com.google.android.apps.safetyhub;PID: 11778;Broadcast of Intent { act=com.google.android.gms.phenotype.UPDATE flg=0...
I launched my app in the alpha channel, and my Google Play Console pre-launch report details page shows an error occurred on Android 12 (SDK 31). The stack trace that show me is: [CODE] I don't see the name of my package anywhere. Can you help me to understand what is causing the error?
java|android|google-play-console
3
2022-08-04T18:54:57.940Z
2,022
8
18
3
190
1
287
77
3
1
true
false
false
false
false
false
low
73,241,324
Notification Ringtone not working with Android 12
<p>As the title suggests, this code doesn't seem to work at all. I've tried almost every combination. SetSound doesn't seem to be working. It displays the notification but it does not play any ringtone/sound. And yes, the device is not in DND mode and also the media volume, call volume, ringtone volume are set to max. ...
As the title suggests, this code doesn't seem to work at all. I've tried almost every combination. SetSound doesn't seem to be working. It displays the notification but it does not play any ringtone/sound. And yes, the device is not in DND mode and also the media volume, call volume, ringtone volume are set to max. **N...
android|kotlin
0
2022-08-04T19:27:07.990Z
2,022
8
19
3
48
0
367
49
2
1
true
true
false
false
false
false
zero
73,241,399
Virus scanning for images - Alternative to CalmAV
<p>There is a security requirement where the images need to be uploaded from customer mobile device into On-Prem DC storages. The On-Prem DC has a firewall which only allows a payload not more than 32 KB, owing to security considerations. Now, with the image being encoded string the payload is crossing 32 KB and is the...
There is a security requirement where the images need to be uploaded from customer mobile device into On-Prem DC storages. The On-Prem DC has a firewall which only allows a payload not more than 32 KB, owing to security considerations. Now, with the image being encoded string the payload is crossing 32 KB and is the re...
java|android|ios
0
2022-08-04T19:33:54.583Z
2,022
8
19
3
20
0
902
49
3
0
false
true
false
false
false
false
zero
73,241,403
I am getting this pop up when I make any new project in android studio
<p>Unable to load class 'org.gradle.initialization.layout.BuildLayoutFactory'</p> <p>This is an unexpected error. Please file a bug containing the idea.log file.</p>
Unable to load class 'org.gradle.initialization.layout.BuildLayoutFactory' This is an unexpected error. Please file a bug containing the idea.log file.
android-studio|gradle|synchronization|project
0
2022-08-04T19:34:42.907Z
2,022
8
19
3
13
0
151
70
4
0
false
true
false
false
false
false
zero
73,241,481
Recycler no longer responsive after adding Firebase query
<p>My app shows a <code>Firebase db</code> through a <code>FirestoreRecyclerAdapter</code>. I have put the code relating to the <code>query</code> in a separate <code>method</code>:</p> <pre><code>private void queryActive(){ queryActive = collectionRef .whereEqualTo(&quot;activeStatus&quot;,1); ...
My app shows a Firebase db through a FirestoreRecyclerAdapter . I have put the code relating to the query in a separate method : [CODE] Each item in the recycler display has a switch through which the status of the underlying item's int field &quot;activeStatus&quot; can be toggled between &quot;active&quot; (1) and &q...
java|android|firebase|google-cloud-platform|google-cloud-firestore
0
2022-08-04T19:43:36.957Z
2,022
8
19
3
42
1
1,262
57
5
2
true
false
false
false
false
false
zero
73,241,545
How to disable wifi connect dialog
<p>When connecting to Wifi programmatically I see a system dialog in Android 10 or higher. This dialog requires the user to accept.</p> <p>Is there a permission to hide this dialog? In older versions of Android it doesn't show. This app is for myself, but I don't want to modify the OS. I can add any permission because ...
When connecting to Wifi programmatically I see a system dialog in Android 10 or higher. This dialog requires the user to accept. Is there a permission to hide this dialog? In older versions of Android it doesn't show. This app is for myself, but I don't want to modify the OS. I can add any permission because I won't pu...
android|kotlin|android-10.0
0
2022-08-04T19:49:48.313Z
2,022
8
19
3
18
0
398
34
3
0
false
true
false
false
false
false
zero
73,241,624
My android app works perfectly at debug. But when I upload the Google-Signed version to the Play Store and download from Play Store, my app crashes
<p>I am new on Android programming, it might seem my question is very basic, but please help me.</p> <p>First of all, my app is released on the Google Play Store (Internal, Close, Open Tests and Production).</p> <p>My problem is, when I debug on Android Studio, or install my app from my computer, app works perfectly. B...
I am new on Android programming, it might seem my question is very basic, but please help me. First of all, my app is released on the Google Play Store (Internal, Close, Open Tests and Production). My problem is, when I debug on Android Studio, or install my app from my computer, app works perfectly. But when I upload ...
java|android|crash|google-play|adb
1
2022-08-04T19:57:26.757Z
2,022
8
19
3
33
0
1,155
147
5
1
true
true
false
false
false
false
low
73,241,804
Can anyone explain these errors?
<p><a href="https://i.stack.imgur.com/OaXom.png" rel="nofollow noreferrer">I am trying to publish an android app and I am getting these 2 errors.</a></p> <p>Not sure what they mean and how to sort this out.</p>
I am trying to publish an android app and I am getting these 2 errors. Not sure what they mean and how to sort this out.
android
0
2022-08-04T20:16:37.507Z
2,022
8
20
3
28
0
120
32
1
0
false
true
false
false
false
false
zero
73,241,813
Android fragment creation without constructor params
<p>I have a viewpager2 adapter</p> <pre><code>class SectionPager2(fragment: Fragment): FragmentStateAdapter(fragment) { private val fragmentList = mutableListOf&lt;Fragment&gt;() override fun getItemCount() = fragmentList.size override fun createFragment(position: Int) = fragmentList[position] fun a...
I have a viewpager2 adapter [CODE] I use it along with a Tablayout like this [CODE] Here I get HomeDetailTempFragment data from a server, the problem is that when I use HomeDetailTempFragment.newInstance(thisFragment, item.majors!!, item.gradeSectionId) the code for example generates 3 the same data HomeDetailTempFragm...
android|kotlin|android-tablayout|android-viewpager2
0
2022-08-04T20:17:10.580Z
2,022
8
20
3
28
1
654
52
4
4
true
false
false
false
false
false
zero
73,242,271
Android Authenticator API runs in infinite loop
<p>I've following <code>Authenticator</code> API Implementation:</p> <pre><code>class TokenAuthenticator( ... ) : Authenticator { override fun authenticate(route: Route?, response: Response): Request? = synchronized(this) { if (responseCount(response) &gt;= 2) return null response.createSigned...
I've following Authenticator API Implementation: [CODE] So right now refreshToken API fails and that should count up the responseCount function variable, but it does not. The variable: priorResponse is always null even though I'd expect it not to be after the first call. This results in infinite loop of calling refresh...
android|kotlin|authenticator
0
2022-08-04T21:12:43.873Z
2,022
8
21
3
29
0
339
47
3
1
true
true
false
false
false
false
zero
73,242,372
Coroutine channel is not emitting data from inside firebase authentication callback
<p>I'm building an app with firebase phone authentication.</p> <p>And I'm using a repository which emits events through a coroutine channel, so that when the OTP code is sent, an <code>OtpSent()</code> event is sent through the channel.</p> <p>The issue is, when the OTP code is sent, the view model which consumes that ...
I'm building an app with firebase phone authentication. And I'm using a repository which emits events through a coroutine channel, so that when the OTP code is sent, an OtpSent() event is sent through the channel. The issue is, when the OTP code is sent, the view model which consumes that channel, doesn't get the updat...
android|android-studio|firebase-authentication|kotlin-coroutines
0
2022-08-04T21:28:34.163Z
2,022
8
21
3
51
0
746
83
4
3
true
true
false
false
false
false
zero
73,242,708
How can I create a layout where there is a 2x2 button section to the right of an image in React Native?
<p><a href="https://i.stack.imgur.com/0LkBN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0LkBN.png" alt="This is what I want to create." /></a></p> <p>I have tried so many combinations of using containers that I don't know what else to do. Also, all the buttons must have equal dimensions, and the ...
I have tried so many combinations of using containers that I don't know what else to do. Also, all the buttons must have equal dimensions, and the section of buttons must stretch to the end of the screen.
javascript|android|ios|react-native
-1
2022-08-04T22:15:11.533Z
2,022
8
22
3
36
1
204
103
4
0
false
false
false
false
false
true
negative
73,242,772
Xamarin.Android TextView disable - SetFocusable or Clickable?
<p>I have a TextView that links to another activity. I want to disable it based on a certain condition.</p> <p>I see their are plenty of articles on disabled EditText for Xamarin.Android, but not a lot for disabling a clickable TextView (mainly just for Java Android, not Xamarin.Android (c#). One instruction I found sa...
I have a TextView that links to another activity. I want to disable it based on a certain condition. I see their are plenty of articles on disabled EditText for Xamarin.Android, but not a lot for disabling a clickable TextView (mainly just for Java Android, not Xamarin.Android (c#). One instruction I found said to use ...
c#|xamarin.android
0
2022-08-04T22:23:16.293Z
2,022
8
22
3
30
1
589
61
2
2
true
false
false
false
false
false
zero
73,242,946
calculate runtime offset from runtime address minus readelf function address?
<p>I'm trying to analyse a crash in my android app which calls a function in a shared object outlined as android java-&gt;jni-&gt;ndk-&gt;shared object. I went through the page:</p> <p><a href="https://source.android.com/devices/tech/debug/native-crash" rel="nofollow noreferrer">https://source.android.com/devices/tech/...
I'm trying to analyse a crash in my android app which calls a function in a shared object outlined as android java->jni->ndk->shared object. I went through the page: https://source.android.com/devices/tech/debug/native-crash However, I don't get such nice dumps as in the examples. I only have a stack trace and some lin...
android|crash|shared-libraries
0
2022-08-04T22:46:17.880Z
2,022
8
22
3
33
1
1,069
77
3
2
true
false
false
false
false
false
zero
73,242,993
Search history in android Sound Search
<p>I'm using this intent for calling google music search. Google search will be shown after detecting sound. Can I get the search history from this activity?</p> <pre><code>Intent intent = new Intent(&quot;com.google.android.googlequicksearchbox.MUSIC_SEARCH&quot;); startActivity(intent); </code></pre>
I'm using this intent for calling google music search. Google search will be shown after detecting sound. Can I get the search history from this activity? [CODE]
java|android|browser-history
0
2022-08-04T22:53:51.697Z
2,022
8
22
3
40
0
161
38
3
1
true
true
false
false
false
false
zero
73,243,142
How to create a RecognitionListener in Android Kotlin
<p>I'm new to Kotlin, and essentially I'm trying to create an app that counts how many times someone says a keyword. I'm using the SpeechRecognizer API, and I'm having trouble creating a RecognitionListener.</p> <p>Below is the problematic code:</p> <pre><code>private val speech: SpeechRecognizer by lazy { SpeechRecogn...
I'm new to Kotlin, and essentially I'm trying to create an app that counts how many times someone says a keyword. I'm using the SpeechRecognizer API, and I'm having trouble creating a RecognitionListener. Below is the problematic code: [CODE] The problem comes in the line wherein I create the speechRecognizer: [CODE] T...
android|kotlin|speech-recognition|keyword|voice-recognition
1
2022-08-04T23:20:16.010Z
2,022
8
23
3
40
2
1,083
53
5
2
true
false
false
false
false
false
low
73,243,271
Tflite Object detection android app with custom dataset Crash immediately after running
<p>I tried to run object detection TensorFlow lite with a custom dataset but I got these errors. After training my dataset and converting it to .tflite format and metadata I put it in the asserts folder directly and run the app but it will close immediately. I tried different model but same error I would be appreciate ...
I tried to run object detection TensorFlow lite with a custom dataset but I got these errors. After training my dataset and converting it to .tflite format and metadata I put it in the asserts folder directly and run the app but it will close immediately. I tried different model but same error I would be appreciate if ...
android|tensorflow|object-detection|tensorflow-lite|tflite
0
2022-08-04T23:45:11.457Z
2,022
8
23
3
67
1
334
87
5
1
true
false
false
false
false
false
zero
73,243,439
Can an Android inapp on-time-consumable product be used for "buy me a coffee"?
<p>I want to add a &quot;<strong>buy me a coffee</strong>&quot; button in my Android app. I know donations are not allowed in Google-Android unless you are a non-profit company and all that, so I have to forget about real donations.</p> <p>I don't mind using <strong>Google Play Billing Library</strong> for creating a <...
I want to add a &quot; buy me a coffee &quot; button in my Android app. I know donations are not allowed in Google-Android unless you are a non-profit company and all that, so I have to forget about real donations. I don't mind using Google Play Billing Library for creating a one time purchase product , which will be c...
android|in-app-billing|billing
0
2022-08-05T00:21:05.003Z
2,022
8
0
4
25
0
1,098
78
3
0
false
true
false
false
false
false
zero
73,243,622
How to find out the Activity Intent name from which the user back-pressed (!) to the current Activity?
<p>I have <em>SettingsActivity</em> + <em>SettingsFragment</em> + my <em>CustomPreference</em> with built into XML Intent for opening settings of Notification Channel:</p> <blockquote> <p>preferences.xml:</p> </blockquote> <pre><code> &lt;my.package.CustomPreference android:title=&quot;Sound&quot; ap...
I have SettingsActivity + SettingsFragment + my CustomPreference with built into XML Intent for opening settings of Notification Channel: preferences.xml: [CODE] When the user returns from the notification channel settings, I need to reread the summary field for my CustomPreference. What is the cleanest and most correc...
android|android-intent|android-activity|android-preferences|back-stack
0
2022-08-05T01:02:02.433Z
2,022
8
1
4
34
0
595
102
5
1
true
true
false
false
false
false
zero
73,243,722
How can I get the font size of a text when I use Text() in Compose?
<p>I create a new project by <em>Empty Compose Activity</em> wizard in Android Studio.</p> <p>The Code A is generated code by Android Studio.</p> <p><code>Text(text = &quot;Hello $name!&quot;)</code> displays a text with default font style, I hope to get the size and unit of the text, such as <em>16sp</em>, where can ...
I create a new project by Empty Compose Activity wizard in Android Studio. The Code A is generated code by Android Studio. Text(text = &quot;Hello $name!&quot;) displays a text with default font style, I hope to get the size and unit of the text, such as 16sp , where can I find these informations? Code A [CODE]
kotlin|android-jetpack-compose
2
2022-08-05T01:24:10.510Z
2,022
8
1
4
98
3
312
67
2
1
true
false
false
false
false
false
low
73,243,841
admob mediation with unity-ads or unity-ads mediation with admob. Which is better?
<p>If I apply admob sdk with unity ads on top using admob mediation for my android game made in unity or applying unity ads sdk with admob ads on top using unity mediation. which of them gives better output? if this is location dependent then please answer it for INDIA.</p>
If I apply admob sdk with unity ads on top using admob mediation for my android game made in unity or applying unity ads sdk with admob ads on top using unity mediation. which of them gives better output? if this is location dependent then please answer it for INDIA.
android|unity3d|admob|mobile-ad-mediation|unityads
-1
2022-08-05T01:51:40.730Z
2,022
8
1
4
199
1
267
82
5
0
false
false
false
false
false
true
negative
73,243,868
Android Pager3 last pagedata item null
<p>i met a problem using <strong>pager3 library</strong> <br> my fetching data flow like below <br></p> <p><strong>activity(composable) -&gt; viewmodel -&gt; usecase(datatransformation) -&gt; repository(pager) -&gt; remotemediator</strong></p> <br> sorry for [result image][1] link <br> <p>if i assume paging size is N (...
i met a problem using pager3 library my fetching data flow like below activity(composable) -> viewmodel -> usecase(datatransformation) -> repository(pager) -> remotemediator sorry for [result image][1] link if i assume paging size is N (in above image it is 3) then it automatically requests multiple times(t) and stop d...
android|android-jetpack-compose|kotlin-flow|mediator|android-paging-3
1
2022-08-05T01:57:13.953Z
2,022
8
1
4
64
1
734
38
5
6
true
false
false
false
false
false
low
73,243,885
Accessing parent and child nodes in Firebase for Android
<p>I want to access these child node data from the Firebase Realtime Database and display them in my app in Android Studio. How do I write code for that?</p> <p><img src="https://i.stack.imgur.com/fqwT5.png" alt="enter image description here" /></p>
I want to access these child node data from the Firebase Realtime Database and display them in my app in Android Studio. How do I write code for that?
java|android|firebase|google-cloud-platform|firebase-realtime-database
0
2022-08-05T02:00:30.170Z
2,022
8
2
4
49
1
150
56
5
0
false
false
false
false
false
false
zero
73,243,919
StateProgressBar for android studio
<p>I already import in the dependencies the implementation <code>'com.kofigyan.stateprogressbar:stateprogressbar:1.0.0'</code> and gives this error</p> <blockquote> <p>Class referenced in the layout file, com.kofigyan.stateprogressbar.StateProgressBar, was not found in the project or the libraries</p> </blockquote> <pr...
I already import in the dependencies the implementation 'com.kofigyan.stateprogressbar:stateprogressbar:1.0.0' and gives this error Class referenced in the layout file, com.kofigyan.stateprogressbar.StateProgressBar, was not found in the project or the libraries [CODE]
java|android
0
2022-08-05T02:05:34.250Z
2,022
8
2
4
42
1
269
35
2
1
true
false
false
false
false
false
zero
73,243,926
flutter inspector : I don't want a popup
<p><img src="https://i.stack.imgur.com/tiuVu.png" alt="image" /></p> <p>I am using android studio.</p> <p>Every time I click a widget in the inspector window, a popup pops up, which is very annoying.</p> <p>Please tell me how to disable popup.</p>
I am using android studio. Every time I click a widget in the inspector window, a popup pops up, which is very annoying. Please tell me how to disable popup.
android|flutter|android-studio|inspector
1
2022-08-05T02:06:48.400Z
2,022
8
2
4
73
1
157
40
4
0
false
false
false
false
false
false
low
73,244,207
How to get top Fragment in backstack from DialogFragment
<p>I'm using navigation to navigate between fragments.</p> <p>And I have a DialogFragment, it can called from from many fragment like this:</p> <pre><code> val dialog = FragmentDialog dialog.show(childFragmentManager, &quot;home_fragment&quot;) </code></pre> <p>And I want to know dialogfragment called by which fragmen...
I'm using navigation to navigate between fragments. And I have a DialogFragment, it can called from from many fragment like this: [CODE] And I want to know dialogfragment called by which fragment I tried with FragmentManager.backStackEntryCount but it's seem doesn't work Can I have a advice for this problem ???
android|kotlin|fragment|android-dialogfragment|fragment-backstack
0
2022-08-05T02:59:34.873Z
2,022
8
2
4
42
1
312
56
5
1
true
false
false
false
false
false
zero
73,244,338
Why Android seems to execute only the first two lines on my method
<p>I have a method below when I call it only the first two lines are executed what could be the reason, am testing this on android 9 any help where lg is a button, pr is a progressbar all are correctly initialised. What suprises me is that the method that does the opposite of this one works pretty well please help, Thi...
I have a method below when I call it only the first two lines are executed what could be the reason, am testing this on android 9 any help where lg is a button, pr is a progressbar all are correctly initialised. What suprises me is that the method that does the opposite of this one works pretty well please help, This m...
java|android
0
2022-08-05T03:25:48.763Z
2,022
8
3
4
60
0
918
66
2
3
true
true
false
false
false
false
zero
73,244,352
Can we handle voice command from assistant widget?
<p>I'm able to integrate Android widgets with <code>Google Assistant</code>. And want to have some voice command experience.</p> <p>For example the <code>CREATE_CALL</code> intent, if user is trying to call Alice by saying <code>call Alice with some app</code>, and if there are 2 Alice in my app, is it possible for me ...
I'm able to integrate Android widgets with Google Assistant . And want to have some voice command experience. For example the CREATE_CALL intent, if user is trying to call Alice by saying call Alice with some app , and if there are 2 Alice in my app, is it possible for me to response with a widget showing 2 Alice, and ...
android|widget|android-widget|app-actions
1
2022-08-05T03:29:28.920Z
2,022
8
3
4
55
1
443
50
4
0
false
false
false
false
false
false
low
73,244,444
Baseline profile is not avaliable on Android S
<p>I generate a baseline profile according to <a href="https://developer.android.com/topic/performance/baselineprofiles#creating-profile-rules" rel="nofollow noreferrer">guidance of baseline profile</a> and want to install my app on Android S devices without Google Play. I found the baseline profile is not available. d...
I generate a baseline profile according to guidance of baseline profile and want to install my app on Android S devices without Google Play. I found the baseline profile is not available. dump the info of baseline profile by profman command and it shows: [CODE] The version of profman on Android S is V015 while the gene...
android|macrobenchmark
0
2022-08-05T03:48:47.673Z
2,022
8
3
4
99
1
470
46
2
1
true
false
false
false
false
false
zero
73,244,491
Setting Alarm sound programmatically doesn't work but Ringtone and Notification does? RingtoneManager
<p>I want the user the be able to choose between setting a sound as Alarm, Notification and Ringtone. Debugging device is Samsung Galaxy S10+. Not sure why it's not working and also not sure how it is suppose to work if every Alarm can have a different sound, what should change ?</p> <p>Setting it as Ringtone and Notif...
I want the user the be able to choose between setting a sound as Alarm, Notification and Ringtone. Debugging device is Samsung Galaxy S10+. Not sure why it's not working and also not sure how it is suppose to work if every Alarm can have a different sound, what should change ? Setting it as Ringtone and Notification wo...
java|android|kotlin|samsung-mobile|ringtonemanager
0
2022-08-05T03:57:05.983Z
2,022
8
3
4
17
0
419
101
5
2
true
true
false
false
false
false
zero
73,244,505
In termux android ls: cannot open directory '.': Permission denied?
<p><a href="https://i.stack.imgur.com/JDpoI.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>'''ls: cannot open directory '.': Permission denied'''</p>
enter image description here '''ls: cannot open directory '.': Permission denied'''
android|ls
-3
2022-08-05T03:58:35.430Z
2,022
8
3
4
406
1
83
67
2
0
false
false
false
false
false
true
negative
73,244,546
Set a fixed focus value in the main camera (Android Studio)
<p>I am developing an app for my project and I don't want my main camera to have autofocus. I want my camera to have a specific focus value that can focus on objects that are about 5-10 cm from the main camera.</p> <p>Here is the code on how the CameraManager is implemented:</p> <pre><code>private String chooseCamera()...
I am developing an app for my project and I don't want my main camera to have autofocus. I want my camera to have a specific focus value that can focus on objects that are about 5-10 cm from the main camera. Here is the code on how the CameraManager is implemented: [CODE]
java|android|android-studio|android-camera2
0
2022-08-05T04:05:45.720Z
2,022
8
4
4
40
1
272
59
4
1
true
false
false
false
false
false
zero
73,244,560
Java: Android Studio: ROSjava publishing to a topic based on button input
<p>This is my first time come into ROS android-related things. I am currently working on the android app side of a ROS project. I have altered the ROSandroid project from git. I added a Bluetooth scanning function fragment in the app. I am required to detect Bluetooth beacon (Which is done) and send message like &quot;...
This is my first time come into ROS android-related things. I am currently working on the android app side of a ROS project. I have altered the ROSandroid project from git. I added a Bluetooth scanning function fragment in the app. I am required to detect Bluetooth beacon (Which is done) and send message like &quot;1&q...
java|android|ros
0
2022-08-05T04:09:43.100Z
2,022
8
4
4
78
0
1,449
73
3
0
false
true
false
false
false
false
zero
73,244,665
Can you specify the language to use with ml-kit an android when detecting text?
<p>Is it possible to somehow limit the languages used by ml-kit on android?</p> <p>I have it detecting text from an image, however some of the words it's detecting as another language when in fact they are all in English.</p> <p>I haven't found any options when setting up the 'TextRecognizer' object to specify the lang...
Is it possible to somehow limit the languages used by ml-kit on android? I have it detecting text from an image, however some of the words it's detecting as another language when in fact they are all in English. I haven't found any options when setting up the 'TextRecognizer' object to specify the language (aside from ...
android|ocr|google-mlkit
0
2022-08-05T04:26:36.310Z
2,022
8
4
4
41
0
407
79
3
0
false
true
false
false
false
false
zero
73,244,820
Android emulator get terminated while doing scroll up in the screen
<p>I am using windows 11, Android Studio with latest version. Created an emulator in android studio with config as: RAM - 2048 VM Heap - 1024 Internal - 8912 my Windows 11 has 16GB RAM.</p> <p>But sometimes when I am doing scrolling up on screen emulator get terminated.</p> <p>How can I resolve this issue, to prevent t...
I am using windows 11, Android Studio with latest version. Created an emulator in android studio with config as: RAM - 2048 VM Heap - 1024 Internal - 8912 my Windows 11 has 16GB RAM. But sometimes when I am doing scrolling up on screen emulator get terminated. How can I resolve this issue, to prevent termination of the...
android|android-studio|android-emulator
0
2022-08-05T04:52:41.677Z
2,022
8
4
4
50
1
460
67
3
0
false
false
false
false
false
false
zero
73,244,909
Integration of react native with existing android apps and adding native modules
<p>I've existing android native app and converted that app to react native and added native modules in it. but in react native, native module is showing as 'null'.</p> <p>How I can achieve this?</p>
I've existing android native app and converted that app to react native and added native modules in it. but in react native, native module is showing as 'null'. How I can achieve this?
android|react-native|react-hooks
0
2022-08-05T05:06:14.790Z
2,022
8
5
4
36
2
184
80
3
0
false
false
false
false
false
false
zero
73,244,918
How to change permissions in application without opening settings
<p>I have repeatedly seen how native iOS apps allow changing permissions from their UI, but when I decided to add such functionality to my Flutter app, I couldn't find anything about it. All information concerns only checking statuses, and if it is necessary to change something, it is sent to the phone settings. Is the...
I have repeatedly seen how native iOS apps allow changing permissions from their UI, but when I decided to add such functionality to my Flutter app, I couldn't find anything about it. All information concerns only checking statuses, and if it is necessary to change something, it is sent to the phone settings. Is there ...
android|ios|flutter|mobile
0
2022-08-05T05:07:04.617Z
2,022
8
5
4
53
0
405
65
4
0
false
true
false
false
false
false
zero
73,244,930
Android Room use Type Converter insert success but can't query
<p><code>Room 2.4.2</code></p> <p>I need store the <code>List&lt;Int&gt;</code> data to database , so I convert the numbers to a <code>String</code>,this is convert code , I add it to my database and i insert data success :</p> <pre><code>class Converter { /** list&lt;Int&gt; -&gt; [1][2] */ @TypeConverter ...
Room 2.4.2 I need store the List<Int> data to database , so I convert the numbers to a String ,this is convert code , I add it to my database and i insert data success : [CODE] The data in database like this: [15145][15145][15145][15145]... as a TEXT type, and this Entity [CODE] Then this is Dao and Query function , ge...
android|sqlite|kotlin|android-room|android-jetpack
0
2022-08-05T05:08:17.690Z
2,022
8
5
4
45
1
395
62
5
4
true
false
false
false
false
false
zero
73,244,979
python kivy can not covert to functional apk and ipa files
<p>We have made a python kivy program and compile it to exe . But now when we convert it to apk and ipa file. The application just won't work. It shuts off automatically right after we open it. We can't figure out the reason precisely since the compiling process didn't show any error. Does any one know the reason by ju...
We have made a python kivy program and compile it to exe . But now when we convert it to apk and ipa file. The application just won't work. It shuts off automatically right after we open it. We can't figure out the reason precisely since the compiling process didn't show any error. Does any one know the reason by just ...
python|android|ios|python-3.x|kivy
0
2022-08-05T05:15:34.723Z
2,022
8
5
4
27
0
468
58
5
3
true
true
false
false
false
false
zero
73,245,054
How to generate ANR report in Firebase Crashlytics Android?
<p>My application is published in other distribution(Not play store), I want to generate ANR logs in Firebase Crashlytics Android.</p> <p>I am using firebase Bom library and its working in android 11 but not working in lower then 11</p> <pre><code> implementation platform('com.google.firebase:firebase-bom:30.3.1') i...
My application is published in other distribution(Not play store), I want to generate ANR logs in Firebase Crashlytics Android. I am using firebase Bom library and its working in android 11 but not working in lower then 11 [CODE]
android|firebase|crashlytics|crashlytics-android
0
2022-08-05T05:25:47.553Z
2,022
8
5
4
47
0
229
59
4
1
true
true
false
false
false
false
zero
73,245,086
How to localize User Consent API prompt text on Android
<p>I'd like to localize or event better change the prompt text of User Consent API.</p> <p>Default behavior:</p> <img src="https://i.stack.imgur.com/lMA31.png" width="300"/> <p>So instead of <code>Allow example to read the message below and enter the code</code> I want it to be translated in other languages, based on m...
I'd like to localize or event better change the prompt text of User Consent API. Default behavior: So instead of Allow example to read the message below and enter the code I want it to be translated in other languages, based on my app's locale not based on device's locale.
android|flutter|kotlin
0
2022-08-05T05:30:46.977Z
2,022
8
5
4
34
1
273
55
3
0
false
false
false
false
false
false
zero
73,245,094
How to read files from external storage "Documents" in Android 10?
<p>New to Android development here, and I need help.</p> <p>This code/function is working in the built-in emulator of Android Studio with Android 11.</p> <pre><code>private String[] getData(String filename) throws IOException { FileInputStream fin = null; int ch; StringBuffer sb = new StringBuffer(); S...
New to Android development here, and I need help. This code/function is working in the built-in emulator of Android Studio with Android 11. [CODE] The code just read the file in the public folder &quot;Documents&quot; and return the contents as array of Strings. But for some reason, this code doesn't work in Android 10...
android
0
2022-08-05T05:32:18.610Z
2,022
8
5
4
41
1
375
66
1
2
true
false
false
false
false
false
zero
73,245,099
How to compress image and save in firebase cloud storage?
<p>In my chat-app I want to send image message. How can I upload images between 100kb, without loosing so much quality? I am new in android, please help me to do this.</p> <pre><code> ActivityResultLauncher&lt;String&gt; launcher = registerForActivityResult(new ActivityResultContracts.GetContent(), new ActivityR...
In my chat-app I want to send image message. How can I upload images between 100kb, without loosing so much quality? I am new in android, please help me to do this. [CODE]
java|android|bitmap|firebase-storage
0
2022-08-05T05:32:47.420Z
2,022
8
5
4
46
1
171
57
4
1
true
false
false
false
false
false
zero
73,245,120
How to write unit test code for polling with Coroutine Job?
<p>I am using polling for an API call.</p> <pre><code>private var pollingJob: Job? = null fun myApi(){ pollingJob?.cancel() pollingJob = viewModelScope.launch{ while(true){ val result = apiRepo.callApi() _myResult.postValue(result) delay(30000L) } } } </code></p...
I am using polling for an API call. [CODE] It seems like, I can't test this method because of looping. Is there any better way to be able to test it? I think, It would be okay if I can test only calling it once and the value is set correctly. maybe I can cancel polling job after calling it once. And also, here _isLoadi...
android|unit-testing|kotlin-coroutines|polling
1
2022-08-05T05:36:48.867Z
2,022
8
5
4
31
0
569
59
4
1
true
true
false
false
false
false
low
73,245,161
Universal IR Remote Android in Android 12
<p>I'm creating a universal IR remote android app with android studio. I make a remote for TCL android tv and it worked perfectly. I have collected all the frequency codes for almost 70% of Remotes. My question is. is IR signal will work with different frequencies for all. If I change the frequency and pass the TCL IR ...
I'm creating a universal IR remote android app with android studio. I make a remote for TCL android tv and it worked perfectly. I have collected all the frequency codes for almost 70% of Remotes. My question is. is IR signal will work with different frequencies for all. If I change the frequency and pass the TCL IR sig...
android|frequency
0
2022-08-05T05:43:22.407Z
2,022
8
5
4
34
0
545
41
2
1
true
true
false
false
false
false
zero
73,245,252
Old App Bundle Still Active on Play Console
<p>We tried to release the app on production but they are rejecting it due to an issue with the previous version of the uploaded application on the testing track.</p> <p>Please guide us how to de-active that older app bundle or release the application on production.</p> <p><a href="https://i.stack.imgur.com/lQIbI.png" ...
We tried to release the app on production but they are rejecting it due to an issue with the previous version of the uploaded application on the testing track. Please guide us how to de-active that older app bundle or release the application on production. ScreenShot of mail received from google play console
android|google-play|android-permissions|google-play-console
0
2022-08-05T05:54:27.977Z
2,022
8
5
4
70
1
309
43
4
0
false
false
false
false
false
false
zero
73,245,288
How can I create Garmin watch store app id?
<p>Now I am implementing Garmin watch sdk in my android application for fetch fitness activity data but it need a valid STORE_APP_ID. But I can not generate the STORE_APP_ID. Please help me to create the Garmin STORE_APP_ID.</p>
Now I am implementing Garmin watch sdk in my android application for fetch fitness activity data but it need a valid STORE_APP_ID. But I can not generate the STORE_APP_ID. Please help me to create the Garmin STORE_APP_ID.
android|watch|garmin
0
2022-08-05T05:59:23.163Z
2,022
8
5
4
10
0
221
43
3
0
false
true
false
false
false
false
zero
73,245,327
NoClassDefFoundError for singleton kotlin android?
<p>I create an arr of my library module and use it in another application.</p> <p>On one of the singleton class from my aar I get <code>NoClassDefFoundError</code> for its usage</p> <p>This is my singleton class</p> <pre><code>object SharedPrefTask { fun doSomeWork() { ///// } } </code></pre> <p>This is the class ...
I create an arr of my library module and use it in another application. On one of the singleton class from my aar I get NoClassDefFoundError for its usage This is my singleton class [CODE] This is the class where I use the singleton [CODE] Is there something which is wrong here? I get the exception [CODE]
android|kotlin|singleton|noclassdeffounderror
0
2022-08-05T06:04:49.117Z
2,022
8
6
4
37
1
306
50
4
3
true
false
false
false
false
false
zero
73,245,336
Unit testing weak reference application Android
<p>I am passing weak reference of application is the constructor of a class for which I want to test.</p> <pre><code>class FireBaseTracker @Inject constructor( private val application: WeakReference&lt;Application&gt; ) : BaseTracker { private val TAG: String = RapidoAnalytics::class.java.simpleName + FireBaseTrac...
I am passing weak reference of application is the constructor of a class for which I want to test. [CODE] Unit test class [CODE] Upon executing the test I am getting below error [CODE]
android|unit-testing|mockito|weak-references|applicationcontext
0
2022-08-05T06:06:10.633Z
2,022
8
6
4
18
0
184
47
5
3
true
true
false
false
false
false
zero
73,245,388
How to clear setPivotX()/setPivotY() below Api 28?
<p>in Api 28 View provides resetPivot() to &quot;Clears any pivot previously set by a call to setPivotX(float) or setPivotY(float)&quot;</p> <p>but how to do this below Api 28</p>
in Api 28 View provides resetPivot() to &quot;Clears any pivot previously set by a call to setPivotX(float) or setPivotY(float)&quot; but how to do this below Api 28
java|android|kotlin
0
2022-08-05T06:12:11.230Z
2,022
8
6
4
20
0
165
50
3
0
false
true
false
false
false
false
zero
73,245,391
Navigation Component Pop Fragment with navigation view
<p>I am using bottom navigation view with android navigation component, in some cases I open some other fragment instead of home (main) fragment at start. so in that case when I switch to other tabs and then click on home tab, now I want to open home tab but I get the opened fragment</p> <p>Example : normal flow: I hav...
I am using bottom navigation view with android navigation component, in some cases I open some other fragment instead of home (main) fragment at start. so in that case when I switch to other tabs and then click on home tab, now I want to open home tab but I get the opened fragment Example : normal flow: I have fragment...
android|kotlin|navigation|bottomnavigationview
0
2022-08-05T06:12:22.813Z
2,022
8
6
4
25
0
423
54
4
0
false
true
false
false
false
false
zero
73,245,419
Local module descriptor class for com.google.android.gms.googlecertificates not found. Xamarin.GooglePlayServices.Base and Xamarin.Forms.Maps conflict
<p>The app is a single window that hosts a map (Xamarin.Forms.Map NuGet). NuGet Xamarin.GooglePlayServices.Base has also been added to the application. If it is not installed - the problem does not arise and everything starts normally. But I need this to receive notifications.</p> <p>AndroidManifest:</p> <pre><code>&lt...
The app is a single window that hosts a map (Xamarin.Forms.Map NuGet). NuGet Xamarin.GooglePlayServices.Base has also been added to the application. If it is not installed - the problem does not arise and everything starts normally. But I need this to receive notifications. AndroidManifest: [CODE] The application crash...
c#|android|google-maps|xamarin|xamarin.forms
0
2022-08-05T06:16:05.127Z
2,022
8
6
4
54
0
1,024
150
5
2
true
true
false
false
false
false
zero
73,245,425
LiveData observer not triggered
<p>I want to navigate to an other <code>Fragment</code> when the user selcts a value (player id) in the <code>AlertDialog</code>. I use this change to the id to trigger the navigation. Unfortunately the observer of this property doesn't get triggerd. Please see the following code:</p> <p><strong>SelectCharacterDialogF...
I want to navigate to an other Fragment when the user selcts a value (player id) in the AlertDialog . I use this change to the id to trigger the navigation. Unfortunately the observer of this property doesn't get triggerd. Please see the following code: SelectCharacterDialogFragment.kt [CODE] WelcomeViewModel.kt [CODE]...
android|kotlin|android-livedata
1
2022-08-05T06:16:36.197Z
2,022
8
6
4
81
1
516
31
3
3
true
false
false
false
false
false
low
73,245,481
How to use variables for enter/exit transitions in AnimatedNavHost Kotlin Compose
<p>I'm building my UI using AnimatedNavHost, and it's getting a little big. I was trying to assign variables to the values of <code>enterTransition</code>, <code>exitTransition</code>, etc.</p> <p>Here's my code:</p> <pre><code>AnimatedNavHost( modifier = Modifier, navController = navController, ...
I'm building my UI using AnimatedNavHost, and it's getting a little big. I was trying to assign variables to the values of enterTransition , exitTransition , etc. Here's my code: [CODE] This is what I want to do: [CODE] And then I can assign one variable to these props, so that my code can be a little cleaner. I've tri...
android|kotlin|jetpack-compose-navigation|jetpack-compose-accompanist
0
2022-08-05T06:23:14.913Z
2,022
8
6
4
27
0
493
81
4
2
true
true
false
false
false
false
zero
73,245,511
Plays store's application release problem, current release version always goes to halt when i upload new version for review
<p>My current app is in production, but the problem is when i upload new version for the review instantly my recent release version auto goes to the halt and last release version shows on play store.</p> <p>1.1.10 current version on play store, 1.1.9 is halted not live, 1.1.8 is halted not live, 1.1.7 is fully live and...
My current app is in production, but the problem is when i upload new version for the review instantly my recent release version auto goes to the halt and last release version shows on play store. 1.1.10 current version on play store, 1.1.9 is halted not live, 1.1.8 is halted not live, 1.1.7 is fully live and available...
android|google-play-console
0
2022-08-05T06:26:48.963Z
2,022
8
6
4
31
0
505
123
2
0
false
true
false
false
false
false
zero
73,245,530
LocalStorage getItem() giving null and then true in Material App on app start: Flutter LocalStorage
<pre><code>class MyApp extends StatelessWidget { final LocalStorage status = new LocalStorage('status'); @override Widget build(BuildContext context) { print(' Status: ${status.getItem('status')}'); //here I get null and then true after some time return MaterialApp( title: ‘Sample App’, ...
[CODE] I am storing the status using setItem(), to true if the user logs in successfully. But the next I open my app, I get redirected again to the register page, not the home screen. I am getting null in status and after some time I get true which I want. Please help!
android|flutter|authentication|local-storage|storage
0
2022-08-05T06:28:23.397Z
2,022
8
6
4
37
1
269
99
5
1
true
false
false
false
false
false
zero
73,245,534
android.content.res.Resources$NotFoundException: Drawable com.sidharth.saveimage:id/iv_image_thumbnail with resource ID #0x7f09010a
<p>So, I want to set image resource to my ImageView but I'm getting this error.</p> <pre><code>android.content.res.Resources$NotFoundException: Drawable com.sidharth.saveimage:id/iv_image_thumbnail with resource ID #0x7f09010a Caused by: android.content.res.Resources$NotFoundException: Resource &quot;com.sidharth.s...
So, I want to set image resource to my ImageView but I'm getting this error. [CODE] I'm setting the image resource to the ImageView using ImageModel that returns resource id but it's throwing exception already checked these answers [1] , [2] ImageModel object [CODE] Image Model [CODE] image_item.xml [CODE] Logcat [CODE...
java|android|imageview
0
2022-08-05T06:28:38.460Z
2,022
8
6
4
23
1
321
131
3
5
true
false
false
false
false
false
zero
73,245,599
Android: error:incompatible types: <anonymous OnSuccessListener<QuerySnapshot>> cannot be converted to OnSuccessListener<? super DocumentSnapshot>
<p>Below are the code. I don't have much experience in coding. Hope you could help me out! Thank you so much=). The error shows that &quot;error: incompatible types: &lt;anonymous OnSuccessListener&gt; cannot be converted to OnSuccessListener&lt;? super DocumentSnapshot&gt;&quot;</p> <pre><code>private void getHistory(...
Below are the code. I don't have much experience in coding. Hope you could help me out! Thank you so much=). The error shows that &quot;error: incompatible types: <anonymous OnSuccessListener> cannot be converted to OnSuccessListener<? super DocumentSnapshot>&quot; [CODE]
java|android
0
2022-08-05T06:34:58.527Z
2,022
8
6
4
19
0
272
146
2
1
true
true
false
false
false
false
zero
73,245,613
How to change popup menu color in material3
<p>How can i change popup menu background color in material3. I have tried a lot but found no solutions. I had tried itemBacgroundColor also but it’s still in different color. I want it to white.</p> <p><a href="https://i.stack.imgur.com/gy1EQ.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/gy1EQ.jpg</a></p>
How can i change popup menu background color in material3. I have tried a lot but found no solutions. I had tried itemBacgroundColor also but it’s still in different color. I want it to white. https://i.stack.imgur.com/gy1EQ.jpg
java|android|kotlin|material-design|material3
1
2022-08-05T06:36:18.820Z
2,022
8
6
4
39
1
228
43
5
0
false
false
false
false
false
false
low
73,245,656
okhttp response.body().string() android.os.NetworkOnMainThreadExceptin
<p>The code below has been working fine for a year or so, but suddenly something goes wrong. When running to response.body().string(), an exception of android.os.NetworkOnMainThreadExceptin will occur. This anomaly is probabilistic</p> <pre><code> Observable.create((ObservableOnSubscribe&lt;Response&gt;) emitter -&gt; ...
The code below has been working fine for a year or so, but suddenly something goes wrong. When running to response.body().string(), an exception of android.os.NetworkOnMainThreadExceptin will occur. This anomaly is probabilistic [CODE]
java|android|okhttp
0
2022-08-05T06:40:32.550Z
2,022
8
6
4
12
0
235
70
3
1
true
true
false
false
false
false
zero
73,245,836
Singleton EncryptedSharedPreferences Android
<p>I have used EncryptedSharedPreferences in my app to save username, password and bearer token. What I want is to use singleton pattern. Whenever I want to make an API call I want to get the access token. So that, I want to use singleton pattern here. I tried following. I wanna know is this the correct way.</p> <pre><...
I have used EncryptedSharedPreferences in my app to save username, password and bearer token. What I want is to use singleton pattern. Whenever I want to make an API call I want to get the access token. So that, I want to use singleton pattern here. I tried following. I wanna know is this the correct way. [CODE]
android|singleton
0
2022-08-05T06:59:09.253Z
2,022
8
6
4
37
0
313
44
2
1
true
true
false
false
false
false
zero
73,245,873
Conditional parameter in composable
<p>I have a composable with defult parameter -&gt; height = 300. Here I have condition which gives height 360 or 300 (default). Is there any way that I don't need to write the default(300) value.</p> <p>I was thinking about something like -&gt; <code>MaximizedContainer(onClick = { onClick() }, if (infoOpened) {height =...
I have a composable with defult parameter -> height = 300. Here I have condition which gives height 360 or 300 (default). Is there any way that I don't need to write the default(300) value. I was thinking about something like -> MaximizedContainer(onClick = { onClick() }, if (infoOpened) {height = 360}) {} , but this i...
android|kotlin|android-jetpack-compose|android-jetpack
0
2022-08-05T07:02:41.543Z
2,022
8
7
4
40
1
525
35
4
1
true
false
false
false
false
false
zero
73,245,921
How to Change fill color in Marimekko anychart and with round corner shape?
<p>I want to change the fill color in Marimekko on any chart on android. also, I want to display the box in a round corner. Anyone provide a solution. Click <a href="https://i.stack.imgur.com/4ROCl.png" rel="nofollow noreferrer">here</a> to see the image.</p>
I want to change the fill color in Marimekko on any chart on android. also, I want to display the box in a round corner. Anyone provide a solution. Click here to see the image.
android|android-studio|anychart|marimekko-chart
0
2022-08-05T07:06:09.247Z
2,022
8
7
4
22
0
176
75
4
0
false
true
false
false
false
false
zero
73,245,923
Android Kotlin Proguard Obfuscation of Kotlin Default Impl
<p>I use Android + Kotlin + Proguard</p> <p>Code</p> <pre><code>inferface Authentication { val authenticated: Boolean val lastAuthentication: Instant fun authenticate(force: Boolean = false): Flow&lt;Event&gt; suspend fun revokeAccess() } </code></pre> <p>And an implementation of that interface</p> <pre><code>int...
I use Android + Kotlin + Proguard Code [CODE] And an implementation of that interface [CODE] -> During Kotlin Annotation Processing this interface gets (as expected) a default implementation: Kotlin generated code: Class: Authentication$DefaultImpls.dex -> Now my issue: Since this class is generated and not reachable f...
kotlin|proguard|android-r8|kapt
0
2022-08-05T07:06:22.353Z
2,022
8
7
4
61
0
708
58
4
2
true
true
false
false
false
false
zero
73,245,972
How to open different acitivies when click any recyclerView Items in Kotlin?
<p>I got crazy ı am not able find solution. Please help me. 2 days ı am looking for solution. I clearly watn that if I click any recylerView Item starting a new activity. Each item has to own its activity.How to implement codes?. Thanks in advance.</p> <p>My adapter code:</p> <pre><code>class CustomAdapter(private val...
I got crazy ı am not able find solution. Please help me. 2 days ı am looking for solution. I clearly watn that if I click any recylerView Item starting a new activity. Each item has to own its activity.How to implement codes?. Thanks in advance. My adapter code: [CODE] } My recyclerview.kt : [CODE]
kotlin|android-recyclerview
-1
2022-08-05T07:11:00.640Z
2,022
8
7
4
48
2
299
76
2
2
true
false
false
false
false
true
negative
73,245,999
Android how to Share multiple Dynamic images via WhatsApp, Gmail or any other social media
<p>i am having an recycleview of images trying to share the images via whatsapp but showing error &quot;File format is not supported&quot;</p> <pre><code>iv_ShareAll.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Log.e(&quot;TAG&quot;, ...
i am having an recycleview of images trying to share the images via whatsapp but showing error &quot;File format is not supported&quot; [CODE]
java|android|file-sharing
0
2022-08-05T07:12:58.620Z
2,022
8
7
4
36
0
142
90
3
1
true
true
false
false
false
false
zero
73,246,023
Navigate to navigate when the corresponding button is clicked in Android JavascriptInterface
<p>I want to call navigate on click of Javascript button onClick function onClickButton using JavascriptInterface in Android Kotlin WebView.</p> <p>Kotlin code is structured like this.</p> <pre><code>inner class JavaScriptInterface { @JavascriptInterface fun register(data: String){ navigate( ...
I want to call navigate on click of Javascript button onClick function onClickButton using JavascriptInterface in Android Kotlin WebView. Kotlin code is structured like this. [CODE] The Javascript code is structured like this. [CODE] How can I call navigate when onClick Button is clicked?
javascript|android|reactjs|kotlin|webview
2
2022-08-05T07:15:40.523Z
2,022
8
7
4
23
0
289
92
5
2
true
true
false
false
false
false
low
73,246,101
What is the right way to access activity context from the ViewModel?
<p>This is not a question to solve an error, I just want to make sure I am going for the right approach and not introducing any memory leaks and all. I'm using DataBinding with ViewModel the view model holds the data of the specific view and also do all type of view listeners (eg: onClick) inside the view model like th...
This is not a question to solve an error, I just want to make sure I am going for the right approach and not introducing any memory leaks and all. I'm using DataBinding with ViewModel the view model holds the data of the specific view and also do all type of view listeners (eg: onClick) inside the view model like this ...
android|kotlin|android-databinding|android-jetpack|android-viewmodel
0
2022-08-05T07:23:41.183Z
2,022
8
7
4
48
0
1,427
68
5
5
true
true
false
false
false
false
zero
73,246,103
implement Search Bar to filter list from Listview
<p>I am making app and try to do Search Function to filter data from list view. my data from list view is supported for multilanguage. if user type a word in their language data in list view will display. I don't know how to do with search bar. below is my code:</p> <pre><code> listView = findViewById(R.id.Lv); lis...
I am making app and try to do Search Function to filter data from list view. my data from list view is supported for multilanguage. if user type a word in their language data in list view will display. I don't know how to do with search bar. below is my code: [CODE] and below is my String.xml to display in listview: [C...
java|android|string|listview|searchbar
-1
2022-08-05T07:23:45.273Z
2,022
8
7
4
58
1
413
49
5
2
true
false
false
false
false
true
negative
73,246,224
Kotlin - How to wait for multiple API calls to finish and update UI?
<p>I'm new to kotlin coroutines. I've been trying to run multiple API calls in parallel and then when all the calls are done update my UI and dismiss the loader, but with no success. This is my code</p> <pre><code>private fun getScoreForType() { val job = CoroutineScope(Dispatchers.IO).launch { types.forEac...
I'm new to kotlin coroutines. I've been trying to run multiple API calls in parallel and then when all the calls are done update my UI and dismiss the loader, but with no success. This is my code [CODE] I've also tried using async and awaitAll but couldn't make it work either. The loader is always dismissed before all ...
android|kotlin|retrofit2|kotlin-coroutines
0
2022-08-05T07:33:53.640Z
2,022
8
7
4
270
1
404
68
4
1
true
false
false
false
false
false
zero
73,246,413
Getting errors while capturing images through the Camera in only oppo and realme devices
<p>Getting errors while capturing images through the Camera</p> <blockquote> <p>java.io.File.getAbsolutePath()' on a null object reference</p> </blockquote> <p>in only oppo and realme devices</p> <pre><code> Failure delivering result ResultInfo{who=null, request=1569638292, result=-1, data=null} to activity java.lang...
Getting errors while capturing images through the Camera java.io.File.getAbsolutePath()' on a null object reference in only oppo and realme devices [CODE] }
android|android-camera|android-camera-intent|media-storage
0
2022-08-05T07:51:36.603Z
2,022
8
7
4
63
0
156
88
4
1
true
true
false
false
false
false
zero
73,246,423
how to visible icon in all the items of recyclerview?
<p>I am trying to visible icons on all the items list of the recyclerview, what I want is that by pressing any on of the items, icons will be visible to all the list of the items.</p> <p>help me to find out the solution.</p> <p>here is my code</p> <p>onBindViewholder</p> <pre><code> imageList.get(position).setDeleteIma...
I am trying to visible icons on all the items list of the recyclerview, what I want is that by pressing any on of the items, icons will be visible to all the list of the items. help me to find out the solution. here is my code onBindViewholder [CODE]
java|android|android-recyclerview
0
2022-08-05T07:52:34.540Z
2,022
8
7
4
57
1
250
53
3
1
true
false
false
false
false
false
zero
73,246,444
RecyclerView with coroutines, using Fragment doesn't populate data Kotlin
<p>I am trying to work wih courutines and recycler view. I've done everything necessary to send requests to the API, but I still can't get the list that should be inside the recycler view. I am using fragment to create list and bottom nav. When I go to the fragment where my list should be, then I get the error: <code>R...
I am trying to work wih courutines and recycler view. I've done everything necessary to send requests to the API, but I still can't get the list that should be inside the recycler view. I am using fragment to create list and bottom nav. When I go to the fragment where my list should be, then I get the error: RecyclerVi...
kotlin|android-fragments|android-recyclerview
0
2022-08-05T07:55:16.703Z
2,022
8
7
4
56
2
797
73
3
3
true
false
false
false
false
false
zero
73,246,464
How files are uploaded in Web Apps (tasks performed in the background)
<p>In mobile apps, we usually have to convert a file/image to base64 and then send generated string via API to the server and re-create a file/image.</p> <p>However in web apps, we usually see below tag to handle file/image uploads.</p> <pre><code>&lt;input type=&quot;file&quot;&gt; </code></pre> <p>My question is doe...
In mobile apps, we usually have to convert a file/image to base64 and then send generated string via API to the server and re-create a file/image. However in web apps, we usually see below tag to handle file/image uploads. [CODE] My question is does server side languages like PHP (i.e. move_uploaded_file) or .NET autom...
php|android|.net
1
2022-08-05T07:56:52.913Z
2,022
8
7
4
21
0
504
70
3
1
true
true
false
false
false
false
low
73,246,520
Android NDK libc stacktrace
<p>The stacktrace for a crash on Android looks like this:</p> <pre><code>SIGABRT Abort program /apex/com.android.runtime/lib64/bionic/libc.so:640104 syscall /apex/com.android.runtime/lib64/bionic/libc.so:652051 abort unknown 0x0 </code></pre> <p>How can I get more data on this crash?</p>
The stacktrace for a crash on Android looks like this: [CODE] How can I get more data on this crash?
android|android-ndk|libc
0
2022-08-05T08:02:46.897Z
2,022
8
8
4
29
0
100
27
3
1
true
true
false
false
false
false
zero
73,246,611
Cannot copy to a TensorFlowLite tensor (input_values:0) with 0 bytes from a Java Buffer with 49152 bytes
<p>Hi I want to feed an input to my .tflite model in android studio 7.2.1 with below code :</p> <pre><code> val catBitmap = getBitmapFromAsset(&quot;bwr.jpg&quot;)// a 64*64 image val output2 = TensorImage(DataType.FLOAT32) for (y in 0..63) { for (x in 0..63) { ...
Hi I want to feed an input to my .tflite model in android studio 7.2.1 with below code : [CODE] and this is my tflite model properties: and it causes this error: [CODE] this is my python interpreter code by which I could successfully get predictions: [CODE] can you please help me to fix this ? I do not know hot to feed...
python|java|android-studio|tensorflow|tflite
1
2022-08-05T08:11:01.487Z
2,022
8
8
4
124
0
350
104
5
3
true
true
false
false
false
false
low
73,246,663
Use phone connected to local machine to develop on remote desktop Android Studio
<p>I work on Windows Remote Desktop. Local and remote OS are Windows 10. I need to access my android phone connected to my laptop via USB in Android Studio which is running on the remote desktop to build app directly on my phone. My phone is visible in the Remote Desktop Connection configuration &quot;Local devices and...
I work on Windows Remote Desktop. Local and remote OS are Windows 10. I need to access my android phone connected to my laptop via USB in Android Studio which is running on the remote desktop to build app directly on my phone. My phone is visible in the Remote Desktop Connection configuration &quot;Local devices and re...
android|remote-desktop
0
2022-08-05T08:16:06.950Z
2,022
8
8
4
61
1
455
80
2
0
false
false
false
false
false
false
zero
73,246,683
Kotlin. How to insert new records if data doesn't exist in Room database
<p>I'm a beginner in asynchronous operations. My goal is to check whether data with specific date already exist in Room database or not, if not then start download from server and insert it to Room. But my following codes execute <code>TODO: Processing Data</code> in Fragment twice coz the coroutine re-execute it when ...
I'm a beginner in asynchronous operations. My goal is to check whether data with specific date already exist in Room database or not, if not then start download from server and insert it to Room. But my following codes execute TODO: Processing Data in Fragment twice coz the coroutine re-execute it when the TODO: downlo...
android|kotlin|mvvm|android-room|kotlin-coroutines
0
2022-08-05T08:18:04.533Z
2,022
8
8
4
87
1
728
72
5
6
true
false
false
false
false
false
zero
73,246,755
Spotify Android - how to stop app from hijacking headphones controls
<p>I am occasionally using Spotify on my Android phone. But mostly I am listening to stuff on Youtube or Rumble (web version via Brave browser, NOT app), so as not to pay YT for premium but still have playback with screen off. Spotify is also configured to play with screen off.</p> <p>For that I'm using bluetooth headp...
I am occasionally using Spotify on my Android phone. But mostly I am listening to stuff on Youtube or Rumble (web version via Brave browser, NOT app), so as not to pay YT for premium but still have playback with screen off. Spotify is also configured to play with screen off. For that I'm using bluetooth headphones and ...
android|controls|spotify-app
0
2022-08-05T08:22:46.690Z
2,022
8
8
4
19
0
1,017
68
3
0
false
true
false
false
false
false
zero
73,246,918
How to add and delete items in a lazyVerticalGrid Column in jetpack compose
<p>I'm new to jetpack compose and I am just looking for a way to add and delete items from a lazyVerticalGrid using jetpack compose from a pop-up menu. Nothing complicated, just simple code to make me easily understand what I have to do</p>
I'm new to jetpack compose and I am just looking for a way to add and delete items from a lazyVerticalGrid using jetpack compose from a pop-up menu. Nothing complicated, just simple code to make me easily understand what I have to do
android-jetpack-compose
0
2022-08-05T08:36:47.973Z
2,022
8
8
4
75
1
233
75
1
0
false
false
false
false
false
false
zero
73,247,082
How to use a custom component in a ModalPage Ionic 6/Capacitor?
<p>I have a floating button in a custom component so I can reuse this component in several pages. When I inject this component into a page this works. But when I use this component in a modal then I get an error. This is my code for my float button.</p> <p><strong>Fabbutton.component.html</strong></p> <pre><code>&lt;di...
I have a floating button in a custom component so I can reuse this component in several pages. When I inject this component into a page this works. But when I use this component in a modal then I get an error. This is my code for my float button. Fabbutton.component.html [CODE] Fabbutton.component.css [CODE] Fabbutton....
javascript|android|angular|typescript|ionic-framework
0
2022-08-05T08:50:29.477Z
2,022
8
8
4
45
1
1,785
63
5
6
true
false
false
false
false
false
zero
73,247,106
[Android]context.startActvity(intent) throwing ActivityNotFoundException
<p>My use case is to switch from <strong>App1</strong> to <strong>App2</strong> . In App1, I use the <strong>packageManager.getPackageInfo()</strong> API to check whether the App2 is present or not. When it returns true, I set the intent with <strong>intent.setPackage(App2)</strong> and trigger the context.startActivi...
My use case is to switch from App1 to App2 . In App1, I use the packageManager.getPackageInfo() API to check whether the App2 is present or not. When it returns true, I set the intent with intent.setPackage(App2) and trigger the context.startActivity(intent) API. But there are times when context.startActivity(intent) A...
android|deep-linking|android-12
0
2022-08-05T08:52:55.287Z
2,022
8
8
4
28
1
547
72
3
0
false
false
false
false
false
false
zero
73,247,146
Flutter - How to play Instagram videos in your flutter app?
<p>So I created a video player in my flutter app just like Instagram reels using the video_player: ^2.4.5 package. Everything's fine but I don't want to store all the reels in my firebase storage because it can cost me a lot. So is there a way to just copy paste the link from an Instagram reel and play it in my app?</p...
So I created a video player in my flutter app just like Instagram reels using the video_player: ^2.4.5 package. Everything's fine but I don't want to store all the reels in my firebase storage because it can cost me a lot. So is there a way to just copy paste the link from an Instagram reel and play it in my app?
android|flutter|android-studio|dart|flutter-video-player
0
2022-08-05T08:56:51Z
-1
-1
-1
-1
116
1
314
59
5
0
false
false
false
false
false
false
zero
73,247,300
How to get android app detail using package name
<p>I have some android package names that look like the below:</p> <ol> <li>com.sampleandroidapp.android</li> </ol> <p>What do I want:</p> <p>I need a <strong>free</strong> API or site to give android package name and get app detail</p> <p><em><strong>By the way I need a free one because I am working on a small project...
I have some android package names that look like the below: com.sampleandroidapp.android What do I want: I need a free API or site to give android package name and get app detail By the way I need a free one because I am working on a small project
javascript|android|node.js
0
2022-08-05T09:09:00.787Z
2,022
8
9
4
68
1
247
48
3
0
false
false
false
false
false
false
zero
73,247,342
How to get context in PagingSourceData using Paging 3?
<p>I'm trying to call an endpoint using Paging 3 and Retrofit but one of my endpoints needs a token in query. To get this token, I need to pass context as parameter, it is possible to get context in this class or I need to set context in constructor?</p>
I'm trying to call an endpoint using Paging 3 and Retrofit but one of my endpoints needs a token in query. To get this token, I need to pass context as parameter, it is possible to get context in this class or I need to set context in constructor?
android|android-context|android-paging-3
0
2022-08-05T09:12:05.520Z
2,022
8
9
4
16
0
247
54
3
0
false
true
false
false
false
false
zero
73,247,378
Observing Multiple LiveData and MVVM Structure Android Java
<p>I will try to make this question general as much as I can.</p> <p>In short, I'm using FireStore Firebase and what I am trying to do is that I have Two Repositories (TransactionsRepository and VaultAccountRepository) and each one has some queries to add (Transaction or VaultAccount objects), edit, delete, etc...</p> ...
I will try to make this question general as much as I can. In short, I'm using FireStore Firebase and what I am trying to do is that I have Two Repositories (TransactionsRepository and VaultAccountRepository) and each one has some queries to add (Transaction or VaultAccount objects), edit, delete, etc... I made a third...
java|android|mvvm|android-livedata
1
2022-08-05T09:14:52.397Z
2,022
8
9
4
55
1
1,726
59
4
4
true
false
false
false
false
false
low
73,247,386
Is there any example app that uses system managed ConnectionService
<p>According to <a href="https://developer.android.com/reference/android/telecom/ConnectionService" rel="nofollow noreferrer">ConnectionService</a> API, we can make calling apps with system managed ConnectionService. Does it mean the calling app will use system calling UI? Is there any example app like this in the stor...
According to ConnectionService API, we can make calling apps with system managed ConnectionService. Does it mean the calling app will use system calling UI? Is there any example app like this in the store?
android-connectionservice
0
2022-08-05T09:15:28.917Z
2,022
8
9
4
12
0
205
67
1
0
false
true
false
false
false
false
zero
73,247,514
Exception: FlutterError (Could not find a generator for route RouteSettings("/testResult()", null) in the _WidgetsAppState
<p>I'm adding a timer for my Flutter quiz app. But when the timer ends, the following exception occurs:</p> <p>FlutterError (Could not find a generator for route RouteSettings(&quot;/ResultBox()&quot;, null) in the _WidgetsAppState. Make sure your root app widget has provided a way to generate this route. Generators fo...
I'm adding a timer for my Flutter quiz app. But when the timer ends, the following exception occurs: FlutterError (Could not find a generator for route RouteSettings(&quot;/ResultBox()&quot;, null) in the _WidgetsAppState. Make sure your root app widget has provided a way to generate this route. Generators for routes a...
android|flutter|firebase|timer
0
2022-08-05T09:25:37.707Z
2,022
8
9
4
58
1
804
122
4
1
true
false
false
false
false
false
zero