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,097,778 | Android lint, HTML reports with custom links | <p>I'm running lint checks from Android Gradle Plugin in a GitLab CI pipeline and I'm hosting the resulting HTML reports on GitLab Pages for easy viewing.</p>
<p>The problem is that the generated links in the HTML reports are only relative (e.g. <code>../../badFile.java</code>.</p>
<p>Is there any way to change the bas... | I'm running lint checks from Android Gradle Plugin in a GitLab CI pipeline and I'm hosting the resulting HTML reports on GitLab Pages for easy viewing. The problem is that the generated links in the HTML reports are only relative (e.g. ../../badFile.java . Is there any way to change the base path for the links so that ... | android|android-gradle-plugin|android-lint | 0 | 2022-07-24T10:59:10.900Z | 2,022 | 7 | 10 | 6 | 27 | 0 | 427 | 44 | 3 | 0 | false | true | false | false | false | false | zero |
73,097,871 | Opening .CSP type PDF file on android WebView | <p>I have a WebView that on app launch opens a specific external website (that I do not own).
The user can then navigate the site and should be able to download the pdf files on the site.</p>
<p>When a pdf file is selected for download, it reveals a link ending like the below example:</p>
<pre class="lang-java prettypr... | I have a WebView that on app launch opens a specific external website (that I do not own). The user can then navigate the site and should be able to download the pdf files on the site. When a pdf file is selected for download, it reveals a link ending like the below example: [CODE] When I try to follow that link with w... | android|html|webview | 0 | 2022-07-24T11:12:35.443Z | 2,022 | 7 | 11 | 6 | 20 | 0 | 414 | 45 | 3 | 1 | true | true | false | false | false | false | zero |
73,098,014 | Async calls within Dart Stream processing | <p>I'm aware of similar questions, but, they don't quite do it. I want to get NTP time and access an URL whenever an NFC token is read. I'm modifying the example from nfc_in_flutter. So, I have this:</p>
<pre><code>void _startScanning() {
setState (() {
_stream = NFC
.readNDEF(alertMess... | I'm aware of similar questions, but, they don't quite do it. I want to get NTP time and access an URL whenever an NFC token is read. I'm modifying the example from nfc_in_flutter. So, I have this: [CODE] The whole thing 'works' but: [CODE] Is not accepted by flutter, but works fine in the non-stream context. Is there s... | dart|android-asynctask|nfc | 0 | 2022-07-24T11:34:38.367Z | 2,022 | 7 | 11 | 6 | 23 | 0 | 478 | 41 | 3 | 2 | true | true | false | false | false | false | zero |
73,098,027 | Kotlin Coroutine: Dispatchers inside Flow builder | <p>Extension functions that returns save Bitmap to device storage and returns result using sealed and class that represent its state.</p>
<pre><code>sealed class RequestStatus<T> {
data class Loading<T>(val data: T? = null) : RequestStatus<T>()
data class Success<T>(val data: T) : Reques... | Extension functions that returns save Bitmap to device storage and returns result using sealed and class that represent its state. [CODE] Usage [CODE] FileOutputStream is complaining as it can block UI thread, but you cannot switch context inside flow builder so we move on using flowOn(Dispatchers.IO) and remove the wi... | android|android-studio|kotlin|kotlin-coroutines | 0 | 2022-07-24T11:36:02.990Z | 2,022 | 7 | 11 | 6 | 77 | 1 | 581 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
73,098,088 | show pop up in the background service when click on home screen in android | <p>I want to make the service show pop up in android application when I click on any button in the bottom navigation of the phone
I have tried to call the service onPause() but the pop up window did't show until I reopen the application</p> | I want to make the service show pop up in android application when I click on any button in the bottom navigation of the phone I have tried to call the service onPause() but the pop up window did't show until I reopen the application | java|android|service|background|programmatically | 0 | 2022-07-24T11:44:28.877Z | 2,022 | 7 | 11 | 6 | 17 | 0 | 233 | 74 | 5 | 0 | false | true | false | false | false | false | zero |
73,098,109 | How is a Always on Display for Android coded? | <p>My smartphone (Samsung A21s) doesn't supoort the AOD of Samsung. So i tested several apps from the Play store. But I want an app,so i decided to code my own app, which allows me to choose my own background. I want to use the pictures from the gallery. I also want a music control for the AOD. I have a accurate idea o... | My smartphone (Samsung A21s) doesn't supoort the AOD of Samsung. So i tested several apps from the Play store. But I want an app,so i decided to code my own app, which allows me to choose my own background. I want to use the pictures from the gallery. I also want a music control for the AOD. I have a accurate idea of w... | android-studio|kotlin|always-on-display | 0 | 2022-07-24T11:46:27.050Z | 2,022 | 7 | 11 | 6 | 54 | 0 | 477 | 45 | 3 | 0 | false | true | false | false | false | false | zero |
73,098,183 | SonarLint plugin Android Studio: kotlin:S1125 clarification | <p>We created an extension function for checking the new notification permission for Android 13</p>
<pre><code>fun hasNotificationPermission(context: Context): Boolean {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
ContextCompat.checkSelfPermission(context, POST_NOTIFICATION) ==
... | We created an extension function for checking the new notification permission for Android 13 [CODE] The SonarLint warn us with S1125 Redundant Boolean literals should be removed from expressions to improve readability. . But looking at the code I don't think there is a redundant happening here? The code will only check... | android|sonarlint|sonarlint-intellij | 0 | 2022-07-24T11:56:09.273Z | 2,022 | 7 | 11 | 6 | 35 | 0 | 470 | 59 | 3 | 1 | true | true | false | false | false | false | zero |
73,098,193 | How to open an external URL from FCM Notification for Flutter app (Android and iOS)? | <p>Is it possible to open a link by clicking on a notification sent by Firebase Cloud Messaging to a Flutter app (Android & iOS) while the app is closed? I am using Legacy HTTP Requests.</p> | Is it possible to open a link by clicking on a notification sent by Firebase Cloud Messaging to a Flutter app (Android & iOS) while the app is closed? I am using Legacy HTTP Requests. | flutter|firebase|firebase-cloud-messaging|apple-push-notifications|android-notifications | 1 | 2022-07-24T11:56:46.977Z | 2,022 | 7 | 11 | 6 | 184 | 1 | 183 | 84 | 5 | 0 | false | false | false | false | false | false | low |
73,098,207 | How to load widget screenshot | <p>I use a Globalkey to take a screenshot of a child <code>WebView</code> widget of <code>RepaintBoundary</code>. I am able to convert the image data into a <code>Uint8List</code> :</p>
<p>This is the result from the widget capture:</p>
<pre><code>[137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 1,... | I use a Globalkey to take a screenshot of a child WebView widget of RepaintBoundary . I am able to convert the image data into a Uint8List : This is the result from the widget capture: [CODE] I try to load the Uint8List result from a list into an Image.memory widget but nothing shows. [CODE] | android|flutter|takesscreenshot | 0 | 2022-07-24T11:58:09.527Z | 2,022 | 7 | 11 | 6 | 26 | 0 | 292 | 29 | 3 | 2 | true | true | false | false | false | false | zero |
73,098,230 | Cant find Android NDK version 21.3.6528147 for unity 2022.1.10f1 | <p>I downloaded and installed unity <strong>2022.1.10f1</strong> using links found in :
<a href="https://unity3d.com/unity/whats-new/2022.1.10" rel="nofollow noreferrer">https://unity3d.com/unity/whats-new/2022.1.10</a></p>
<p>I am developing for android using windows os,
so I downloaded both unity editor installers:
<... | I downloaded and installed unity 2022.1.10f1 using links found in : https://unity3d.com/unity/whats-new/2022.1.10 I am developing for android using windows os, so I downloaded both unity editor installers: https://download.unity3d.com/download_unity/9aa0f82c4f96/Windows64EditorInstaller/UnitySetup64.exe and android tar... | unity3d|android-ndk | 0 | 2022-07-24T12:00:27.887Z | 2,022 | 7 | 12 | 6 | 714 | 2 | 1,408 | 64 | 2 | 0 | false | false | false | false | false | false | zero |
73,098,278 | How can i make my request run in background while filling other EditTexts (Thread)? | <p>I'm new to threading but I have an EditText view which whenever is getting out of focused it fills a RecyclerView with image logos using the user's input from EditText. But, whenever the user gets out of focuse and the method is called everything stops for a while(which mean im bad at threading). How can I improve t... | I'm new to threading but I have an EditText view which whenever is getting out of focused it fills a RecyclerView with image logos using the user's input from EditText. But, whenever the user gets out of focuse and the method is called everything stops for a while(which mean im bad at threading). How can I improve this... | java|android|multithreading | 2 | 2022-07-24T12:06:46.837Z | 2,022 | 7 | 12 | 6 | 33 | 1 | 406 | 83 | 3 | 2 | true | false | false | false | false | false | low |
73,098,316 | How to zoom out on an android emulator | <p>I'm trying to zoom out on an android emulator witch can be done pressing 'F3' on the program. I would like the python code to be able to run in the background so pyautogui isn't an option.</p>
<p>Android has a keyevent to zoom ou (code: 169) but when i run it through ppadb Python module using this line, nothing happ... | I'm trying to zoom out on an android emulator witch can be done pressing 'F3' on the program. I would like the python code to be able to run in the background so pyautogui isn't an option. Android has a keyevent to zoom ou (code: 169) but when i run it through ppadb Python module using this line, nothing happen: [CODE]... | python|android | 0 | 2022-07-24T12:13:25.010Z | 2,022 | 7 | 12 | 6 | 30 | 0 | 508 | 38 | 2 | 1 | true | true | false | false | false | false | zero |
73,098,347 | How to implement seat booking in Android? | <p>I have this json response from the server:</p>
<pre class="lang-json prettyprint-override"><code>[
{
"id": 12767236,
"rowNumber": "01",
"seatNumber": 1,
"status": "taken"
},
{
"id": 12767237,
... | I have this json response from the server: [CODE] Basically it's a list of seats with a few properties, that's all the data I have. So, question is how do I show the seats and let user pick one like below? What component should I use? | android|json|kotlin | -1 | 2022-07-24T12:18:27.033Z | 2,022 | 7 | 12 | 6 | 39 | 1 | 234 | 41 | 3 | 1 | true | false | false | false | false | true | negative |
73,098,414 | Can you change the color of a textview in a recyclerview adapter after a certain condition is met in Main Activity? | <p>I have a basic function that displays the elapsed time every time the button is pressed. I cannot get the logic in MainActivity to transfer to the recyclerview adapter. I simply want the text output color to change to red after the time passes 5 seconds. I have tried to research how to do this for the past week and ... | I have a basic function that displays the elapsed time every time the button is pressed. I cannot get the logic in MainActivity to transfer to the recyclerview adapter. I simply want the text output color to change to red after the time passes 5 seconds. I have tried to research how to do this for the past week and I c... | kotlin|android-recyclerview | 0 | 2022-07-24T12:30:19.180Z | 2,022 | 7 | 12 | 6 | 42 | 3 | 552 | 115 | 2 | 3 | true | false | false | false | false | false | zero |
73,098,460 | React Native detect pointer tool | <p>In Android the <code>MotionEvent</code> <a href="https://developer.android.com/reference/android/view/MotionEvent#getToolType(int)" rel="nofollow noreferrer">knows</a> the tool type of a pointer. It can detect "Finger", "Stylus", "Mouse" and even "Eraser".</p>
<p>Is there any ... | In Android the MotionEvent knows the tool type of a pointer. It can detect "Finger", "Stylus", "Mouse" and even "Eraser". Is there any equivalent functionality in React Native that can get the pointer type from GestureResponderEvent ? I'm targeting Android only (no iOS, Windows, ... | android|react-native | 1 | 2022-07-24T12:37:21.493Z | 2,022 | 7 | 12 | 6 | 28 | 0 | 392 | 32 | 2 | 0 | false | true | false | false | false | false | low |
73,098,518 | Set android app default preference values for different devices | <p>I created an app for android which already has a default value configuration for the preferences that works for most of the devices I own (or want to support for that matter).
Now I also want to integrate this app into a custom built rom for a specific device which needs different default values so an user doesn't n... | I created an app for android which already has a default value configuration for the preferences that works for most of the devices I own (or want to support for that matter). Now I also want to integrate this app into a custom built rom for a specific device which needs different default values so an user doesn't need... | android|sharedpreferences|device | 0 | 2022-07-24T12:46:15.033Z | 2,022 | 7 | 12 | 6 | 21 | 0 | 933 | 63 | 3 | 0 | false | true | false | false | false | false | zero |
73,098,669 | How to Fix "Could not parse Android Application Module's Gradle config" in Android Studio | <p>I'm trying to connect Firebase with my project in Android studio, but it keeps showing "Could not parse Android Application Module's Gradle config" error. How do I fix it? I have tried many methods by skimming through related posts here, but none worked.</p>
<p><strong>settings.gradle-</strong></p>
<pre><c... | I'm trying to connect Firebase with my project in Android studio, but it keeps showing "Could not parse Android Application Module's Gradle config" error. How do I fix it? I have tried many methods by skimming through related posts here, but none worked. settings.gradle- [CODE] build.gradle- [CODE] build.grad... | android|firebase|android-studio|gradle | 0 | 2022-07-24T13:07:37.037Z | 2,022 | 7 | 13 | 6 | 78 | 0 | 337 | 89 | 4 | 3 | true | true | false | false | false | false | zero |
73,098,695 | Flutter - Custom invoice view for the background | <p>I want to create the below-jagged look for the background for my invoice view. How do I achieve this? I am unable to recreate the same with the custom painter.</p>
<p><a href="https://i.stack.imgur.com/SbIhR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SbIhR.png" alt="enter image description he... | I want to create the below-jagged look for the background for my invoice view. How do I achieve this? I am unable to recreate the same with the custom painter. Your suggestions are appreciated. Thank you. | flutter|user-interface|flutter-layout|android-custom-view|invoice | 0 | 2022-07-24T13:10:26.460Z | 2,022 | 7 | 13 | 6 | 39 | 1 | 204 | 48 | 5 | 0 | false | false | false | false | false | false | zero |
73,098,711 | How can I save the video to MediaStore by CameraX on Java? | <p>I saw <a href="https://developer.android.com/training/camerax/video-capture#configure-and-create-recording" rel="nofollow noreferrer">this page</a> to learn how to take some video captures and save them to a device.</p>
<p>the Android official code:</p>
<pre><code>// Create MediaStoreOutputOptions for our recorder
v... | I saw this page to learn how to take some video captures and save them to a device. the Android official code: [CODE] but I am using Java and I can’t find the output member on Java(if this is a Kotlin keyword, can you tell me what it means?). I want to save the video that was captured by CameraX but my project is not u... | java|android|kotlin|video|camera | 1 | 2022-07-24T13:12:41.753Z | 2,022 | 7 | 13 | 6 | 65 | 1 | 383 | 58 | 5 | 1 | true | false | false | false | false | false | low |
73,098,811 | How to correctly drag the view around the circle? | <p>I want the green dot to follow the touch point in a circular path, but it doesn't seem to be doing it right.</p>
<img src="https://i.stack.imgur.com/5NT3l.gif" width="600" alt="Strange behavior GIF illustration" />
<p>It seems like there is an unwanted offset somewhere but I can't find it on my own for quite some ti... | I want the green dot to follow the touch point in a circular path, but it doesn't seem to be doing it right. It seems like there is an unwanted offset somewhere but I can't find it on my own for quite some time. Here is my code: [CODE] I'm definitely missing something but don't know what exactly. What am I doing wrong? | android-jetpack-compose|drag | 2 | 2022-07-24T13:27:45.997Z | 2,022 | 7 | 13 | 6 | 116 | 1 | 320 | 49 | 2 | 1 | true | false | false | false | false | false | low |
73,098,821 | Unity: GooglePlayGames authentication and leaderboards working in local testing, but not on beta tester devices | <p>I am using <a href="https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/current-build/GooglePlayGamesPlugin-0.11.01.unitypackage" rel="nofollow noreferrer">GooglePlayGamesPlugin-0.11.01.unitypackage</a> to provide a leaderboard in my mobile game on Android. My game is build with Unity 2021.3.... | I am using GooglePlayGamesPlugin-0.11.01.unitypackage to provide a leaderboard in my mobile game on Android. My game is build with Unity 2021.3.3f1. I am using the following code in my game app. [CODE] An external class has a reference to above GooglePlayGamesManager class. This external class calls GooglePlayGamesMana... | android|unity3d|google-play-games | 0 | 2022-07-24T13:28:57.147Z | 2,022 | 7 | 13 | 6 | 88 | 1 | 1,045 | 111 | 3 | 2 | true | false | false | false | false | false | zero |
73,098,835 | Button doing action twice in kivy python on android | <p>I have a problem with buttons. On Windows it works fine, but on Android (after compiling via <strong><code>buildozer</code></strong>) it does some the action twice.</p>
<p>In my example, when the arrow button is clicked, the <code>move_up</code> method cuts the path (<code>MDTextField</code>) by one folder. It works... | I have a problem with buttons. On Windows it works fine, but on Android (after compiling via buildozer ) it does some the action twice. In my example, when the arrow button is clicked, the move_up method cuts the path ( MDTextField ) by one folder. It works fine on Windows, but on Android it cuts out several folders, i... | python|android|kivy|kivymd | 0 | 2022-07-24T13:30:26.453Z | 2,022 | 7 | 13 | 6 | 74 | 0 | 461 | 51 | 4 | 1 | true | true | false | false | false | false | zero |
73,098,848 | Just another error of "Caused by: groovy.lang.MissingMethodException: No signature of method: " | <p>I researched on web and found different suggestions and even on stackoverflow some people asked similar questions but I couldn't find an answer that can solve my issue...</p>
<p>What makes my build.gradle(app) to give this problem when I try to sync the gradle project? I would like to know what steps I should take i... | I researched on web and found different suggestions and even on stackoverflow some people asked similar questions but I couldn't find an answer that can solve my issue... What makes my build.gradle(app) to give this problem when I try to sync the gradle project? I would like to know what steps I should take in order to... | android|android-studio|kotlin|gradle|mobile | 0 | 2022-07-24T13:32:19.517Z | 2,022 | 7 | 13 | 6 | 416 | 2 | 409 | 95 | 5 | 2 | true | false | false | false | false | false | zero |
73,098,895 | Buffer size not large enough | <p>Facing this error</p>
<pre><code>java.lang.RuntimeException: Buffer not large enough for pixels
</code></pre>
<p>Error Code Line : -</p>
<pre><code>val byteBuffer: ByteBuffer = ByteBuffer.allocate(1024*1024*5)
bitmap.copyPixelsToBuffer(byteBuffer)
</code></pre>
<p>I think its the error is Buffer ... | Facing this error [CODE] Error Code Line : - [CODE] I think its the error is Buffer Capacity is small for my image to copy bitmap but than what is the good approach? How much buffer capacity I must assign to not have the error? | android|kotlin|buffer | 0 | 2022-07-24T13:38:25.260Z | 2,022 | 7 | 13 | 6 | 18 | 0 | 227 | 28 | 3 | 2 | true | true | false | false | false | false | zero |
73,098,978 | How to force open a universal link in the browser on Android, even if my app handles the intent | <p>In my Android app, I configured Universal links.</p>
<p>In the Manifest:</p>
<pre><code> <intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
... | In my Android app, I configured Universal links. In the Manifest: [CODE] This is working properly and links like https://domain.tld/something are opening the app. Now I would like to have a button to open a link to my website inside the user's browser, for example https://domain.tld/marketing_page . When I create a and... | android | 0 | 2022-07-24T13:50:37.507Z | 2,022 | 7 | 13 | 6 | 53 | 1 | 517 | 95 | 1 | 1 | true | false | false | false | false | false | zero |
73,098,981 | App is Not run on Actual Device, But run on AVD | <pre><code>plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}
android {
compileSdk 33
defaultConfig {
applicationId "com.example.google_lens_application"
minSdk 22
targetSdk 33
versionCode 1
versionName "1.0"
... | [CODE] is that above build.gradle can contain error i don't able to run app on my actual device it crashesh but it smoothly run on avd my avd api level is 22 while actual device is 31 | java|android|avd | 0 | 2022-07-24T13:50:48.443Z | 2,022 | 7 | 13 | 6 | 12 | 0 | 183 | 47 | 3 | 1 | true | true | false | false | false | false | zero |
73,098,984 | What does this Android process mean? android:process=":sandboxed_process10 | <p>I have a Motorola G6 2022 . It is showing this code all the time ad I thought maybe I should ask thank you.</p> | I have a Motorola G6 2022 . It is showing this code all the time ad I thought maybe I should ask thank you. | android|accessibility|sandbox|android-11|motorola-droid | 0 | 2022-07-24T13:51:04.780Z | 2,022 | 7 | 13 | 6 | 11 | 0 | 107 | 74 | 5 | 0 | false | true | false | false | false | false | zero |
73,099,201 | Is there way to add MediaController in a Dialog android? | <p>I am trying to create a video view in a dialog or a popup.</p>
<p>I tried following the answers in somewhat similar <a href="https://stackoverflow.com/questions/10633677/android-mediacontroller-of-videoview-within-dialog-appears-behind-the-dialog">post</a> but it did not resolve my problem. The first solution there ... | I am trying to create a video view in a dialog or a popup. I tried following the answers in somewhat similar post but it did not resolve my problem. The first solution there gives the problem of videoView being null and second answer is what I started with but I am not sure what it adds to the mediacontroller problem. ... | java|android|android-layout|android-videoview|mediacontroller | 0 | 2022-07-24T14:18:10.970Z | 2,022 | 7 | 14 | 6 | 32 | 1 | 357 | 56 | 5 | 1 | true | false | false | false | false | false | zero |
73,099,210 | Android incoming call notification: play ringtone through MediaPlayer | <p><em>TL;DR how to start a notification in a channel that has a sound but play the actual sound with a MediaPlayer?</em></p>
<p>I work on an Android calling app. The incoming calls are displayed via full screen intent notifications. Notifications are dispatched to a channel with a sound and vibration.</p>
<p>I came ac... | TL;DR how to start a notification in a channel that has a sound but play the actual sound with a MediaPlayer? I work on an Android calling app. The incoming calls are displayed via full screen intent notifications. Notifications are dispatched to a channel with a sound and vibration. I came across an issue on OnePlus d... | android|android-notifications|incoming-call | 0 | 2022-07-24T14:19:32.763Z | 2,022 | 7 | 14 | 6 | 58 | 1 | 1,368 | 69 | 3 | 0 | false | false | false | false | false | false | zero |
73,099,224 | Why it shows "id does not reference a view inside this activity" (Android Studio) in MainActivity? | <p>When I click navigation icon my app crash and logcat shows above error below code is in my MainActivity and i.e. NavigationDrawer Activity</p>
<pre><code>@Override
public boolean onSupportNavigateUp() {
NavController navController = Navigation.findNavController(this,
R.id.nav_host_fragment);
return Nav... | When I click navigation icon my app crash and logcat shows above error below code is in my MainActivity and i.e. NavigationDrawer Activity [CODE] Error in logcat [CODE] XML content_main [CODE] | java|android|android-activity|uinavigationcontroller|navigation-drawer | 0 | 2022-07-24T14:21:19.893Z | 2,022 | 7 | 14 | 6 | 70 | 0 | 192 | 98 | 5 | 3 | true | true | false | false | false | false | zero |
73,099,249 | Fragment is not getting popped using navigation graph | <p>I am building an app where first time it opens fragment1 to get user details and once user forwards to next fragment2, I am saving the details and setting a boolean variable <code>isUserRegistered</code> to true in <code>SharedPreferences</code> so that when the user opens the app next time, he/she will be directly ... | I am building an app where first time it opens fragment1 to get user details and once user forwards to next fragment2, I am saving the details and setting a boolean variable isUserRegistered to true in SharedPreferences so that when the user opens the app next time, he/she will be directly taken to the fragment2. I am ... | android|kotlin|sharedpreferences|android-navigation-graph | 0 | 2022-07-24T14:24:50.453Z | 2,022 | 7 | 14 | 6 | 23 | 1 | 1,093 | 53 | 4 | 4 | true | false | false | false | false | false | zero |
73,099,275 | Showing sum of selected RecyclerView's items amount | <p>What should I add in my code so that every time I check one of the recycler view's items it will display his number of calories?
I wanna make a "checkListener" so that every time I check the checkbox corresponding to the selected item of the recyclerview ... his calories number will be stored in a variable... | What should I add in my code so that every time I check one of the recycler view's items it will display his number of calories? I wanna make a "checkListener" so that every time I check the checkbox corresponding to the selected item of the recyclerview ... his calories number will be stored in a variable an... | android|kotlin | 1 | 2022-07-24T14:28:40.030Z | 2,022 | 7 | 14 | 6 | 80 | 3 | 415 | 51 | 2 | 1 | true | false | false | false | false | false | low |
73,099,327 | Is it Ok pass a ViewModel to screens via Navigation - Jetpack Compose | <p>I need to implement an app-wide mutable list that holds navigation destinations and pass this around to numerous screens. This seems to work but... is it ok to do it this way?</p>
<p>'''</p>
<p>@Composable
fun AppNavigation (nextScreenViewModel: NextScreenViewModel){</p>
<pre><code>val navController = rememberNavCon... | I need to implement an app-wide mutable list that holds navigation destinations and pass this around to numerous screens. This seems to work but... is it ok to do it this way? ''' @Composable fun AppNavigation (nextScreenViewModel: NextScreenViewModel){ [CODE] ''' Thanks in advance! | android|android-jetpack-compose|android-jetpack|android-jetpack-navigation | 0 | 2022-07-24T14:35:13.323Z | 2,022 | 7 | 14 | 6 | 67 | 0 | 283 | 69 | 4 | 1 | true | true | false | false | false | false | zero |
73,099,407 | Kotlin: Styling Text in Snackbar with SDK later than 28 | <p>I am working on a Kotlin project and I wish to style the text in a Snackbar, specifically the text font. I have been to many websites that address this problem, but they all use this line in the Snackbar body:</p>
<p>val snackbarTextView = snackbar.view.findViewById(android.support.design.R.id.snackbar_text) as Text... | I am working on a Kotlin project and I wish to style the text in a Snackbar, specifically the text font. I have been to many websites that address this problem, but they all use this line in the Snackbar body: val snackbarTextView = snackbar.view.findViewById(android.support.design.R.id.snackbar_text) as TextView The p... | android|kotlin|snackbar | 0 | 2022-07-24T14:45:24.380Z | 2,022 | 7 | 14 | 6 | 43 | 1 | 731 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
73,099,487 | Plugin [id: 'com.android.application', version: '7.2.0', apply: false] was not found in any of the following sources | <p>Please assist, I am new to android studio none of the solutions provided in the previously asked questions has worked for me. I keep receiving the error:</p>
<p>Gradle sync failed: Plugin [id: 'com.android.application', version: '7.2.0', apply: false] was not found in any of the following sources:</p>
<ul>
<li>Gradl... | Please assist, I am new to android studio none of the solutions provided in the previously asked questions has worked for me. I keep receiving the error: Gradle sync failed: Plugin [id: 'com.android.application', version: '7.2.0', apply: false] was not found in any of the following sources: Gradle Core Plugins (plugin ... | java|android|android-studio|gradle|gradle-plugin | 2 | 2022-07-24T14:58:44.817Z | 2,022 | 7 | 14 | 6 | 1,140 | 1 | 971 | 116 | 5 | 4 | true | false | false | false | false | false | low |
73,099,541 | Google wallet is not working Android kotlin | <p>I am trying to create an application like this to save my ticket passes in google wallet <a href="https://codelabs.developers.google.com/add-to-wallet-android#0" rel="nofollow noreferrer">https://codelabs.developers.google.com/add-to-wallet-android#0</a>. I have done all steps but I couldn't get the result.
<a href=... | I am trying to create an application like this to save my ticket passes in google wallet https://codelabs.developers.google.com/add-to-wallet-android#0 . I have done all steps but I couldn't get the result. Google pay button is not visible Actually, I have a google pay on my mobile but it shows "Unfortunately goog... | android|android-pay|google-pay|wallet|wallet-connect | 1 | 2022-07-24T15:05:58.280Z | 2,022 | 7 | 15 | 6 | 115 | 1 | 1,031 | 43 | 5 | 5 | true | false | false | false | false | false | low |
73,099,548 | how to synchronise room database of android app with remote server | <p>I'm working on an android app with an MVVM pattern. I have to sync my local database with a remote server. but I have no idea how to do it. I have used the room database.</p> | I'm working on an android app with an MVVM pattern. I have to sync my local database with a remote server. but I have no idea how to do it. I have used the room database. | android|kotlin|mvvm|synchronization|android-room | 1 | 2022-07-24T15:06:46.450Z | 2,022 | 7 | 15 | 6 | 87 | 0 | 170 | 66 | 5 | 0 | false | true | false | false | false | false | low |
73,099,565 | The code is pushed to the main thread, how to fix it? | <p>This code works even when I exit the activity and go to another activity. In order to understand this, I went to another activity and deleted the path in Firebase and the application crashed due to the fact that this path no longer exists. I would like to disable this code when I exit the activity, how can I do this... | This code works even when I exit the activity and go to another activity. In order to understand this, I went to another activity and deleted the path in Firebase and the application crashed due to the fact that this path no longer exists. I would like to disable this code when I exit the activity, how can I do this? [... | java|android|firebase|android-studio|firebase-realtime-database | 0 | 2022-07-24T15:09:15.347Z | 2,022 | 7 | 15 | 6 | 62 | 1 | 325 | 53 | 5 | 1 | true | false | false | false | false | false | zero |
73,099,594 | How to listen for changes in Realm with Kotlin Flow in a Repository | <p>I'm trying to implement the same behavior of how Flow with Room Database in which it already listens to changes. I am pretty confused about how to use the <code>RealmInstance.toflow()</code> in which it returns a <code>Flow<Realm></code>, however, I don't want that. If we compare it to Room Database, you can a... | I'm trying to implement the same behavior of how Flow with Room Database in which it already listens to changes. I am pretty confused about how to use the RealmInstance.toflow() in which it returns a Flow<Realm> , however, I don't want that. If we compare it to Room Database, you can already specify what return type yo... | android|realm|kotlin-coroutines|kotlin-flow | 0 | 2022-07-24T15:13:54.463Z | 2,022 | 7 | 15 | 6 | 203 | 1 | 878 | 67 | 4 | 2 | true | false | false | false | false | false | zero |
73,099,794 | How to Configure Android Studio to Show Java 11 Code (Not Decompiled Code) When Using Control Click | <p>When using Android Studio, I would like to be able to control click on a standard Java 11 class or method and see the underlying code. When I do it now I get the decompiled Java code, which is nice. But from a debugging and learning perspective I would rather see the real Java source code along with embedded docum... | When using Android Studio, I would like to be able to control click on a standard Java 11 class or method and see the underlying code. When I do it now I get the decompiled Java code, which is nice. But from a debugging and learning perspective I would rather see the real Java source code along with embedded documentat... | java|android|libgdx | 0 | 2022-07-24T15:39:31.930Z | 2,022 | 7 | 15 | 6 | 67 | 1 | 1,164 | 99 | 3 | 0 | false | false | false | false | false | false | zero |
73,099,938 | react-native app is not running - splash screen showing | <p>I have created a react-native app in VS Code. The app is running fine in the browser with expo. Generated a keystore file and created an .apk with <strong>gradlew assembleRelease</strong>.</p>
<p>The .apk can be installed on my Android tablet. But after starting the app, it is not running and the splash screen is sh... | I have created a react-native app in VS Code. The app is running fine in the browser with expo. Generated a keystore file and created an .apk with gradlew assembleRelease . The .apk can be installed on my Android tablet. But after starting the app, it is not running and the splash screen is shown (see image below). The... | android|react-native | 0 | 2022-07-24T15:58:41.887Z | 2,022 | 7 | 15 | 6 | 174 | 1 | 618 | 55 | 2 | 3 | true | false | false | false | false | false | zero |
73,099,987 | Mapbox - FLUTTER SDK | <p>I have gone through the mapbox documentation and come to know that it provides offline support for both Android and IOS.</p>
<p>My requirement is to use direction functionality offline. Since We can download and store particular region, Can we load direction between two points?</p>
<p>Is mapbox provode such function... | I have gone through the mapbox documentation and come to know that it provides offline support for both Android and IOS. My requirement is to use direction functionality offline. Since We can download and store particular region, Can we load direction between two points? Is mapbox provode such functionality. I have gon... | flutter|mapbox|mapbox-gl|mapbox-android|mapbox-ios | 1 | 2022-07-24T16:05:37.040Z | 2,022 | 7 | 16 | 6 | 137 | 1 | 465 | 20 | 5 | 0 | false | false | false | false | false | false | low |
73,100,046 | Bottomnavigation selected item background color change | <p>I want to change the selected item background color in bottomnavigation just like Google Play Store. I tried to solve it, but till now I haven't found a solution.</p>
<p><img src="https://i.stack.imgur.com/hAAOt.jpg" alt="google_play_bottomnavigation" /></p>
<blockquote>
<p>Update</p>
</blockquote>
<p>I found attrib... | I want to change the selected item background color in bottomnavigation just like Google Play Store. I tried to solve it, but till now I haven't found a solution. Update I found attribute called app:itemActiveIndicatorStyle and it should change the indicator color. But for some reason it doesn't work. Here is an pictur... | java|android|colors|bottomnavigationview | 0 | 2022-07-24T16:12:57.240Z | 2,022 | 7 | 16 | 6 | 120 | 2 | 353 | 54 | 4 | 0 | false | false | false | false | false | false | zero |
73,100,066 | Flutter Targeting a Specific Android Version | <p>Is there an easy way to make your sure app can run on a specific version or higher. For example Android 8 or higher. I understand I can change the compilesdkversion to test it on different version. It ends up giving me errors because of firebase being too up to date so I roll it back. I feel like I am just guessing ... | Is there an easy way to make your sure app can run on a specific version or higher. For example Android 8 or higher. I understand I can change the compilesdkversion to test it on different version. It ends up giving me errors because of firebase being too up to date so I roll it back. I feel like I am just guessing and... | android|flutter|firebase|version | 0 | 2022-07-24T16:16:11.730Z | 2,022 | 7 | 16 | 6 | 28 | 1 | 658 | 44 | 4 | 0 | false | false | false | false | false | false | zero |
73,100,123 | _uiState.value = uiState.value.copy() don't cause recompose | <p>There is some unresolved situation that happens with my code,
my target is to change the property of an item in the "devices" list (update a boolean),
The change should cause recompose of the view, but that doesn't happen,
In addition, I can see that the item indeed changes with the debugger, but it also c... | There is some unresolved situation that happens with my code, my target is to change the property of an item in the "devices" list (update a boolean), The change should cause recompose of the view, but that doesn't happen, In addition, I can see that the item indeed changes with the debugger, but it also caus... | android|kotlin|state|android-jetpack-compose|viewmodel | 1 | 2022-07-24T16:25:02.590Z | 2,022 | 7 | 16 | 6 | 87 | 2 | 609 | 59 | 5 | 5 | true | false | false | false | false | false | low |
73,100,184 | Kotlin: user input into list | <p><strong>I'm trying to create an app in Android Studio, where the user needs to input multiple names that are going to be stored in a list.</strong> I also wish to show the list to the users with ListView.</p>
<p>Right now my approach is to have an EditText container where the user can input text, and then with the p... | I'm trying to create an app in Android Studio, where the user needs to input multiple names that are going to be stored in a list. I also wish to show the list to the users with ListView. Right now my approach is to have an EditText container where the user can input text, and then with the press of a button it would a... | android|list|kotlin|user-input|adapter | 0 | 2022-07-24T16:33:45.377Z | 2,022 | 7 | 16 | 6 | 76 | 1 | 556 | 28 | 5 | 2 | true | false | false | false | false | false | zero |
73,100,231 | How to set Background Color for Material3 Card in Android Compose? | <p>I try to set the background color for the Material3 Card in Android Jetpack Compose, using the <strong>backgroundColor</strong> parameter.</p>
<p>implementation 'androidx.compose.material3:material3:1.0.0-alpha14'</p>
<pre><code>// * Card with background color argument
Card(
modifier = Mo... | I try to set the background color for the Material3 Card in Android Jetpack Compose, using the backgroundColor parameter. implementation 'androidx.compose.material3:material3:1.0.0-alpha14' [CODE] i got error message : Cannot find a parameter with this name: backgroundColor | android-jetpack-compose | 0 | 2022-07-24T16:39:37.493Z | 2,022 | 7 | 16 | 6 | 307 | 1 | 274 | 66 | 1 | 1 | true | false | false | false | false | false | zero |
73,100,247 | Row IntrinsicSize.Min not working when the children are async loading images | <p>I have a tough task in hand to achieve in Jetpack Compose. The idea is,</p>
<p>I have a Row, that has two Image views as children. And when I load the images, one image might be shorter than the other one, and the row does not look symmetric when that happens. Here is how it looks:</p>
<p><a href="https://i.stack.im... | I have a tough task in hand to achieve in Jetpack Compose. The idea is, I have a Row, that has two Image views as children. And when I load the images, one image might be shorter than the other one, and the row does not look symmetric when that happens. Here is how it looks: Here is my Code: (blocks below is basically ... | android-jetpack-compose|coil | 1 | 2022-07-24T16:41:25.577Z | 2,022 | 7 | 16 | 6 | 138 | 1 | 879 | 76 | 2 | 1 | true | false | false | false | false | false | low |
73,100,283 | Autocomplete textview in fragments | <p>I want to create an autoCompleteTextView in a fragment but the Array adapter is bringing an error saying that 'none of the following function can be called with the arguments supplied'. So how should I use the array adapter in a fragment class?</p>
<pre><code>override fun onViewCreated(view: View, savedInstanceState... | I want to create an autoCompleteTextView in a fragment but the Array adapter is bringing an error saying that 'none of the following function can be called with the arguments supplied'. So how should I use the array adapter in a fragment class? [CODE] | android|kotlin|android-fragments | -1 | 2022-07-24T16:45:40.827Z | 2,022 | 7 | 16 | 6 | 43 | 2 | 251 | 34 | 3 | 1 | true | false | false | false | false | true | negative |
73,100,320 | Unity3d there was a problem parsing the package | <p><a href="https://i.stack.imgur.com/IXZLy.png" rel="nofollow noreferrer">Project Settings</a></p>
<p><a href="https://i.stack.imgur.com/qiCXd.png" rel="nofollow noreferrer">Rest of the Project Setting</a></p>
<p>I'm only using a custom AndroidManifest.xml to set the android:exported property to true
and the issue kee... | Project Settings Rest of the Project Setting I'm only using a custom AndroidManifest.xml to set the android:exported property to true and the issue keeps appearing with or without the custom manifest I also tried to make a new keystore as well as using a keystore from another working project with a same and different a... | android|unity3d | 0 | 2022-07-24T16:50:49.050Z | 2,022 | 7 | 16 | 6 | 167 | 1 | 856 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
73,100,436 | Xamarin XCT Media Element not playing recorded audio on Android | <p>I am using the AudioRecorder <a href="https://github.com/NateRickard/Plugin.AudioRecorder" rel="nofollow noreferrer">Plugin</a> to record audio and then save it / play it back using the XCT Media element control.</p>
<p>Working fine on iPhone, however on Android it's not playing back the audio at all - either locall... | I am using the AudioRecorder Plugin to record audio and then save it / play it back using the XCT Media element control. Working fine on iPhone, however on Android it's not playing back the audio at all - either locally or from a URL. I've taken a copy of the Xamarin sample project ( https://github.com/xamarin/xamarin-... | xamarin|xamarin.forms|xamarin.android | 0 | 2022-07-24T17:06:06.080Z | 2,022 | 7 | 17 | 6 | 54 | 0 | 620 | 63 | 3 | 0 | false | true | false | false | false | false | zero |
73,100,448 | Update the file sent in Firebase | <p>I wrote a program that uploads a series of data to firebase
My problem is that when new data is uploaded, the previous contents of the file in Firebase are deleted and new data is replaced.
It is possible to guide the previous data to be added to the new data
<a href="https://i.stack.imgur.com/LbODa.png" rel="nofoll... | I wrote a program that uploads a series of data to firebase My problem is that when new data is uploaded, the previous contents of the file in Firebase are deleted and new data is replaced. It is possible to guide the previous data to be added to the new data enter image description here [CODE] | android|firebase|firebase-storage | 0 | 2022-07-24T17:07:30.900Z | 2,022 | 7 | 17 | 6 | 28 | 1 | 295 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
73,100,705 | How do I check if a package is removable/disableable via adb? | <p>I need to know if I can remove or disable a specified package using ADB. I've tried using <code>dumpsys</code>, but it doesn't seem to output anything useful. What do I do?</p> | I need to know if I can remove or disable a specified package using ADB. I've tried using dumpsys , but it doesn't seem to output anything useful. What do I do? | android|package|adb | 0 | 2022-07-24T17:43:53.150Z | 2,022 | 7 | 17 | 6 | 17 | 0 | 160 | 61 | 3 | 0 | false | true | false | false | false | false | zero |
73,100,743 | How to add remove ads button in action bar in android studio? | <p>So, basically, I want to add a Remove ads button in my action bar which would on click open a paid version of my app in the play store.</p>
<p>I have made the design pretty much but don't know how to implement it in code.</p>
<p><a href="https://i.stack.imgur.com/VzMgW.png" rel="nofollow noreferrer"><img src="https:... | So, basically, I want to add a Remove ads button in my action bar which would on click open a paid version of my app in the play store. I have made the design pretty much but don't know how to implement it in code. I would be thankful to anyone who could teach me how to do it. Here is my code; public class MainActivity... | android|android-studio|android-actionbar | 0 | 2022-07-24T17:50:20.483Z | 2,022 | 7 | 17 | 6 | 38 | 1 | 429 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
73,100,778 | Can the login screen be a fragment? | <p>I create an application that will have a home screen, a login screen for one of the functions and a screen for this function. Should I only take the main screen as aсtivity, and the login and function screen as fragments, or everything as activity? And if more than one aсtivity, can I use nav graph?
At first, I want... | I create an application that will have a home screen, a login screen for one of the functions and a screen for this function. Should I only take the main screen as aсtivity, and the login and function screen as fragments, or everything as activity? And if more than one aсtivity, can I use nav graph? At first, I wanted ... | android|android-fragments|android-activity | 0 | 2022-07-24T17:54:20.490Z | 2,022 | 7 | 17 | 6 | 53 | 1 | 404 | 35 | 3 | 0 | false | false | false | false | false | false | zero |
73,101,011 | How to check if Bluetooth headphones connected before asking permission | <p>It's now required to check <code>BLUETOOTH_CONNECT</code> permission in runtime when targeting Android 12 or higher (see <a href="https://developer.android.com/guide/topics/connectivity/bluetooth/permissions" rel="nofollow noreferrer">here</a>).</p>
<p>My app using Bluetooth only to connect to currently connected he... | It's now required to check BLUETOOTH_CONNECT permission in runtime when targeting Android 12 or higher (see here ). My app using Bluetooth only to connect to currently connected headphones (to redirect an audio to Bluetooth headphones during WebRTC conference call). So, I don't need to request the permission if a user ... | android|bluetooth | 2 | 2022-07-24T18:29:34.893Z | 2,022 | 7 | 18 | 6 | 76 | 1 | 1,019 | 71 | 2 | 1 | true | false | false | false | false | false | low |
73,101,104 | Using MediatorLiveData to return if two LiveDatas are true | <p>Say I have two LiveData events, eventPlayerChose and eventOppChose, and I want to use MediatorLiveData eventRoundFinish to signal that both LiveDatas are true. Is this the best way to do so or is there a cleaner solution?</p>
<pre><code>private val _eventPlayerChose = MutableLiveData<Boolean>()
val eventPlayer... | Say I have two LiveData events, eventPlayerChose and eventOppChose, and I want to use MediatorLiveData eventRoundFinish to signal that both LiveDatas are true. Is this the best way to do so or is there a cleaner solution? [CODE] | android|kotlin|android-livedata|mediatorlivedata | 0 | 2022-07-24T18:45:21.760Z | 2,022 | 7 | 18 | 6 | 31 | 0 | 228 | 58 | 4 | 1 | true | true | false | false | false | false | zero |
73,101,130 | Kotlin flow map - make emit even if the value is same | <p>I want to know the kotlin flow flatMap working with jetpack compose</p>
<p>I am having a flow for search and i am calling the api each time the search value changes.</p>
<pre><code>var search = MutableStateFlow("")
</code></pre>
<p>And to call api</p>
<pre><code>var allItems = search.flatMapLatest{query-&g... | I want to know the kotlin flow flatMap working with jetpack compose I am having a flow for search and i am calling the api each time the search value changes. [CODE] And to call api [CODE] It works perfectly fine , but excpet in one scenario. When the value of search is already "" an empty string, and i try t... | android|kotlin|android-jetpack-compose | 0 | 2022-07-24T18:49:16.333Z | 2,022 | 7 | 18 | 6 | 225 | 1 | 653 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
73,101,140 | Error: Exactly one of topic, token or condition is required at FirebaseMessagingError.FirebaseError | <p><a href="https://i.stack.imgur.com/vpEvC.png" rel="nofollow noreferrer">in this picture you can see the javascript code, which runs good. The I already tried with the npm fcm-notification</a></p>
<p><a href="https://i.stack.imgur.com/58qLs.png" rel="nofollow noreferrer">Here the error that I get from the cloud funct... | in this picture you can see the javascript code, which runs good. The I already tried with the npm fcm-notification Here the error that I get from the cloud function. The token that I'm using exists on the database, I already sent manual notifications. I don't know why when I try to send through the cloud function I ge... | flutter|apple-push-notifications|android-push-notification | 0 | 2022-07-24T18:50:57.787Z | 2,022 | 7 | 18 | 6 | 25 | 0 | 332 | 99 | 3 | 0 | false | true | false | false | false | false | zero |
73,101,207 | Error during converting my python project to .aab using buildozer | <p>While converting my python project to .aab this error showed up:</p>
<p><a href="https://i.stack.imgur.com/5eLQI.jpg" rel="nofollow noreferrer">Image of the Error</a></p>
<p>I tried searching about the error and some people suggested updating the autoconf in buildozer so I used the command <code>!pip install autocon... | While converting my python project to .aab this error showed up: Image of the Error I tried searching about the error and some people suggested updating the autoconf in buildozer so I used the command !pip install autoconf it did run and then I tried !buildozer android release and after some while the error came. Here ... | python|android|pip|kivy|buildozer | 0 | 2022-07-24T18:59:40.400Z | 2,022 | 7 | 18 | 6 | 31 | 0 | 409 | 65 | 5 | 0 | false | true | false | false | false | false | zero |
73,101,262 | Gradle duplicated class | <p>In my Android app, I added a new dependency in the Gradle file. It turned out that this dependency is conflicting with one of the other dependencies in the project. When I'm trying to build the app I get the following error:</p>
<pre><code>Duplicate class android.content.pm.IPackageStatsObserver found in modules jet... | In my Android app, I added a new dependency in the Gradle file. It turned out that this dependency is conflicting with one of the other dependencies in the project. When I'm trying to build the app I get the following error: [CODE] As the log shows the problem is 3 duplicated classes that are present in both dependenci... | android|gradle | 1 | 2022-07-24T19:07:28.563Z | 2,022 | 7 | 19 | 6 | 37 | 0 | 528 | 23 | 2 | 3 | true | true | false | false | false | false | low |
73,101,263 | Game does not exist in the namespace Unity.FPS - Building for android | <p>I'm trying to build my game in unity for android and run it to my phone. But for some reason i'm getting some compile erros (that does not exists inside visual studio 2022) on some files (83) and i don't know what is going on wrong.</p>
<p><strong>Part of my log:</strong>
<a href="https://i.stack.imgur.com/ftAmT.png... | I'm trying to build my game in unity for android and run it to my phone. But for some reason i'm getting some compile erros (that does not exists inside visual studio 2022) on some files (83) and i don't know what is going on wrong. Part of my log: | android|unity3d | 0 | 2022-07-24T19:07:29.283Z | 2,022 | 7 | 19 | 6 | 50 | 1 | 248 | 69 | 2 | 0 | false | false | false | false | false | false | zero |
73,101,310 | Serialization of Address(android.location.address) into JSON String using Gson library returns empty string after upgrading project | <p>DataType of addressList is List of Address, where Address belongs to <strong>android.location.Address</strong></p>
<p>I will be attaching four screenshot of my debug screen to demonstrate the same.</p>
<ol>
<li><p>Old Location library showing list of addresses:<a href="https://i.stack.imgur.com/3jW8P.png" rel="nofol... | DataType of addressList is List of Address, where Address belongs to android.location.Address I will be attaching four screenshot of my debug screen to demonstrate the same. Old Location library showing list of addresses: Old Location library showing list of address after converting it to JSON string: New Location libr... | java|android|json|gson|location | 0 | 2022-07-24T19:14:03.030Z | 2,022 | 7 | 19 | 6 | 34 | 0 | 775 | 131 | 5 | 2 | true | true | false | false | false | false | zero |
73,101,318 | vectorImages isnt working with bottomNavigationView | <p>I add an <code>svgFile</code> in my drawable file and implement it in <code>bottomNavigationView</code> but the picture is invisible.
<a href="https://i.stack.imgur.com/o4k0g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o4k0g.jpg" alt="enter image description here" /></a></p>
<blockquote>
<p>up... | I add an svgFile in my drawable file and implement it in bottomNavigationView but the picture is invisible. update. I solve my problem. I notice that not all vectorImages is working see this links for more. https://developer.android.com/studio/write/vector-asset-studio#svg For working vector images visit this link. htt... | java|android|xml|svg|bottomnavigationview | 1 | 2022-07-24T19:15:42.187Z | 2,022 | 7 | 19 | 6 | 40 | 0 | 373 | 51 | 5 | 0 | false | true | false | false | false | false | low |
73,101,377 | Class 'Future<dynamic>' has no instance method '[]'. Receiver: Instance of 'Future<dynamic>' Tried calling: []("main") | <p>I have made all the necessary changes but still it is showing the same error , please help !!`</p>
<p><a href="https://i.stack.imgur.com/gMpcL.png" rel="nofollow noreferrer">This is the image to get url using http</a></p>
<p><a href="https://i.stack.imgur.com/c0eB9.png" rel="nofollow noreferrer"><img src="https://i.... | I have made all the necessary changes but still it is showing the same error , please help !!` This is the image to get url using http | android|flutter|dart | 0 | 2022-07-24T19:23:35.193Z | 2,022 | 7 | 19 | 6 | 31 | 0 | 134 | 118 | 3 | 0 | false | true | false | false | false | false | zero |
73,101,390 | How to access a function ,written in a fragment, in an activity | <p>I have created a function in a fragment that gets data from the fragment's UI. I would want to access it in my main Activity so as to store the data in cloud firestore</p>
<p>This is the function in the fragment
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInst... | I have created a function in a fragment that gets data from the fragment's UI. I would want to access it in my main Activity so as to store the data in cloud firestore This is the function in the fragment override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState)... | android|kotlin|android-fragments|android-activity | 0 | 2022-07-24T19:25:11.627Z | 2,022 | 7 | 19 | 6 | 54 | 2 | 327 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
73,101,397 | Weird issue with MaterialCardView | <p>I'm trying to make a rounded shape like this :</p>
<p><a href="https://i.stack.imgur.com/Mqizn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mqizn.png" alt="enter image description here" /></a></p>
<p>The code below works great on a device with 6.7" as screen size.</p>
<pre><code> <com... | I'm trying to make a rounded shape like this : The code below works great on a device with 6.7" as screen size. [CODE] But when I test the app on device with 5.1" as screen size. I get this : | java|android|xml|materialcardview | 0 | 2022-07-24T19:26:00.337Z | 2,022 | 7 | 19 | 6 | 31 | 1 | 201 | 33 | 4 | 1 | true | false | false | false | false | false | zero |
73,101,435 | Res folder location in cordova | <p>I am trying to add app icons to my Cordova app (android currently):</p>
<pre><code><platform name="android">
<icon src="res/icons/mipmap-ldpi/ic_launcher.png" density="ldpi" />
<icon src="res/icons/mipmap-mdpi/ic_launcher.png" density="mdpi"... | I am trying to add app icons to my Cordova app (android currently): [CODE] I get the error: Source path does not exist: res/icons/mipmap-hdpi/ic_launcher.png I have tried multiple different paths in config.xml and tried multiple places where to actually put the images, but I haven't seen clearly in any documentation or... | android|cordova | 0 | 2022-07-24T19:31:48.713Z | 2,022 | 7 | 19 | 6 | 30 | 1 | 653 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
73,101,609 | Exception deserializing Json in Retrofit, "Polymorphic serializer was not found for missing class discriminator ('null')" | <p>Working with Kotlin and Retrofit, I'm getting the following exception thrown on response to my http post, before onResponse()/onFailure() can get called:</p>
<p>kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')
JSON input: {"... | Working with Kotlin and Retrofit, I'm getting the following exception thrown on response to my http post, before onResponse()/onFailure() can get called: kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null') JSON input: {"CustID&quo... | android|json|retrofit2|kotlinx.serialization | 0 | 2022-07-24T19:59:56.237Z | 2,022 | 7 | 19 | 6 | 92 | 1 | 678 | 121 | 4 | 3 | true | false | false | false | false | false | zero |
73,101,662 | Firebase Storage working on one application but not another | <p>Context: I was trying to implement a feature on an app I have been developing to upload and store a photo, it was not working and I could not tell why as I felt my code was fine and searching on the internet did not resolve the issue. So I created a new application with just two buttons to see if I could store the i... | Context: I was trying to implement a feature on an app I have been developing to upload and store a photo, it was not working and I could not tell why as I felt my code was fine and searching on the internet did not resolve the issue. So I created a new application with just two buttons to see if I could store the imag... | android|flutter|firebase|dart|firebase-storage | 0 | 2022-07-24T20:07:59.440Z | 2,022 | 7 | 20 | 6 | 37 | 2 | 698 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
73,101,681 | Type mismatch: inferred type is String but Int was expected , Kotlin | <p><a href="https://i.stack.imgur.com/0wAmw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0wAmw.png" alt="enter image description here" /></a></p>
<p>Task :app:compileDebugKotlin FAILED</p>
<p>Type mismatch: inferred type is String but Int was expected</p> | Task :app:compileDebugKotlin FAILED Type mismatch: inferred type is String but Int was expected | android|android-studio|kotlin|admob | -1 | 2022-07-24T20:10:39.767Z | 2,022 | 7 | 20 | 6 | 315 | 2 | 95 | 68 | 4 | 0 | false | false | false | false | false | true | negative |
73,101,806 | webview_flutter 3.0.4 - dark mode does not work | <p>I have a flutter app with a dark and light theme. The theme is selected according to the device theme or can be changed locally in the app. But <strong>in webview the background is always light</strong> and I don't know how to change the webview theme to dark. Do you have any tips on how to solve this?</p> | I have a flutter app with a dark and light theme. The theme is selected according to the device theme or can be changed locally in the app. But in webview the background is always light and I don't know how to change the webview theme to dark. Do you have any tips on how to solve this? | android|flutter|webview|themes|darkmode | 1 | 2022-07-24T20:28:53.970Z | 2,022 | 7 | 20 | 6 | 78 | 2 | 286 | 47 | 5 | 0 | false | false | false | false | false | false | low |
73,101,940 | Sometimes fragment not loads | <p>I have an android app with bottom navigation view and 3 fragments, and it just works fine but sometimes when I switch between two fragments (most of the time when I switch fast over and over) suddenly no fragment loads and shows a blank page. What should I do?</p>
<p><strong>UPDATE</strong></p>
<p>This is the code I... | I have an android app with bottom navigation view and 3 fragments, and it just works fine but sometimes when I switch between two fragments (most of the time when I switch fast over and over) suddenly no fragment loads and shows a blank page. What should I do? UPDATE This is the code I wrote: [CODE] [CODE] | android|fragment|bottomnavigationview | 0 | 2022-07-24T20:49:36.277Z | 2,022 | 7 | 20 | 6 | 44 | 0 | 307 | 28 | 3 | 2 | true | true | false | false | false | false | zero |
73,102,011 | Google AdSense in NativeScript with Svelte Native | <p>I use Svelte Native and try to insert the Google Adsense Code Snippet in the WebView Tag. But this dont work.
Have anyone an Idea who this work?</p> | I use Svelte Native and try to insert the Google Adsense Code Snippet in the WebView Tag. But this dont work. Have anyone an Idea who this work? | android|react-native|nativescript|svelte | 0 | 2022-07-24T20:59:45.577Z | 2,022 | 7 | 20 | 6 | 31 | 0 | 144 | 49 | 4 | 0 | false | true | false | false | false | false | zero |
73,102,014 | Questions to PreFetch in Android OS 13 | <p>"Apps can use Android’s JobScheduler API to schedule jobs that should run sometime in the future."<br />
"In Android 13, the system will estimate the next time an app will be launched so it can run prefetch jobs prior to the next app launch."<br />
These are from <a href="https://blog.esper.io/an... | "Apps can use Android’s JobScheduler API to schedule jobs that should run sometime in the future." "In Android 13, the system will estimate the next time an app will be launched so it can run prefetch jobs prior to the next app launch." These are from https://blog.esper.io/android-13-deep-dive/#pref... | android | 0 | 2022-07-24T21:00:24.860Z | 2,022 | 7 | 21 | 6 | 42 | 0 | 793 | 38 | 1 | 0 | false | true | false | false | false | false | zero |
73,102,079 | How to store the data in the list without overwritten the data? | <p>I am working on the json array loops to output the data so I can store them in the <code>EmailAddressData</code> list.</p>
<p>I have got a problem with this line under the loops:</p>
<pre><code>emailAddresses = new EmailAddressData(firstname + "", email + "", url);
</code></pre>
<p>It will overwr... | I am working on the json array loops to output the data so I can store them in the EmailAddressData list. I have got a problem with this line under the loops: [CODE] It will overwritten the data each time I fetch it and store it. I dont know what other ways I could use to store the data. It will only work if I use this... | java|android|arrays|android-studio | -1 | 2022-07-24T21:11:08.390Z | 2,022 | 7 | 21 | 6 | 45 | 1 | 531 | 63 | 4 | 4 | true | false | false | false | false | true | negative |
73,102,110 | The entire object data is not displayed in logcat android | <p>In the Android Studio program, when printing the object, it is cut off due to the length of the data. How can I print the matrix without any cuting?</p>
<p><a href="https://i.stack.imgur.com/6tilZ.png" rel="nofollow noreferrer">enter image description here</a></p> | In the Android Studio program, when printing the object, it is cut off due to the length of the data. How can I print the matrix without any cuting? enter image description here | android|android-studio | 0 | 2022-07-24T21:17:31.623Z | 2,022 | 7 | 21 | 6 | 30 | 2 | 177 | 57 | 2 | 0 | false | false | false | false | false | false | zero |
73,102,164 | Flutter shows unexpected keyboard on real Samsung Galaxy S22 device | <p>I am writing a Flutter app. I want to show a TextField with a keyboard which has numbers, a decimal point, and dashes and slashes. I chose datetime for the keyboardType. I was able to get a keyboard with all the keys I want on a real iPhone, but I got a keyboard with just numbers on a real Samsung Galaxy S22.</p>
<p... | I am writing a Flutter app. I want to show a TextField with a keyboard which has numbers, a decimal point, and dashes and slashes. I chose datetime for the keyboardType. I was able to get a keyboard with all the keys I want on a real iPhone, but I got a keyboard with just numbers on a real Samsung Galaxy S22. I wrote a... | android|flutter|android-softkeyboard | 0 | 2022-07-24T21:27:13.820Z | 2,022 | 7 | 21 | 6 | 80 | 1 | 374 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
73,102,254 | How to parse the different type of json | <p>When I call an api with specific parameter, I get a json like this:</p>
<pre><code>{
“name”:“my name”,
“family”:”my family”
},
{
“name”:“my name1”,
“family”:”my family1”
}
</code></pre>
<p>But when I call same api with different parameter I get same JSON but with the different type for example an empty array :</p>
<... | When I call an api with specific parameter, I get a json like this: [CODE] But when I call same api with different parameter I get same JSON but with the different type for example an empty array : [CODE] How can create a data model for this type of response in kotlin? | android|kotlin | 1 | 2022-07-24T21:40:52.723Z | 2,022 | 7 | 21 | 6 | 31 | 0 | 269 | 39 | 2 | 2 | true | true | false | false | false | false | low |
73,102,354 | How to make Android ACTION_CALL from the AlarmManager? | <p>I need to make scheduled automated phone calls from my personal app/phone. I use AlarmManager to schedule phone calls, but it only works if MyApp and the device is open/active. I added a testing beep sound on the scheduled receiver, and it worked even the device was asleep (so, the scheduler is working).</p>
<p>An... | I need to make scheduled automated phone calls from my personal app/phone. I use AlarmManager to schedule phone calls, but it only works if MyApp and the device is open/active. I added a testing beep sound on the scheduled receiver, and it worked even the device was asleep (so, the scheduler is working). Any idea how t... | android|alarmmanager | 0 | 2022-07-24T21:57:53.407Z | 2,022 | 7 | 21 | 6 | 26 | 1 | 447 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
73,102,409 | Retrieve data from deep link via Facebook SDK in Android app | <p>I am trying to add deep links via the Facebook SDK to my android game.</p>
<p>I need my app to start from a deep link in a specific fragment. Upon start up, the Fragment needs to get customizable data that should be received from the deep link <em>OR PERHAPS THE INTENT THAT STARTED THE FRAGMENT</em>, say a random nu... | I am trying to add deep links via the Facebook SDK to my android game. I need my app to start from a deep link in a specific fragment. Upon start up, the Fragment needs to get customizable data that should be received from the deep link OR PERHAPS THE INTENT THAT STARTED THE FRAGMENT , say a random number! I plan to im... | android|android-intent|deep-linking|facebook-sdk-4.0|facebook-sharer | 0 | 2022-07-24T22:06:37.703Z | 2,022 | 7 | 22 | 6 | 35 | 0 | 1,169 | 60 | 5 | 2 | true | true | false | false | false | false | zero |
73,102,542 | Android + Kotlin + Hilt: Cannot @Inject in a non activity class | <p>I recently started learning Hilt, and for now it's giving me more headaches than happiness, but I like challenges, so let's go to the point.</p>
<p>I'm having plenty of problems understanding how to inject in non activity classes, for example to inject a Context or any other class.</p>
<p><em>Most of my non activity... | I recently started learning Hilt, and for now it's giving me more headaches than happiness, but I like challenges, so let's go to the point. I'm having plenty of problems understanding how to inject in non activity classes, for example to inject a Context or any other class. Most of my non activity classes were objects... | android|kotlin|dependency-injection|dagger-2|dagger-hilt | 1 | 2022-07-24T22:32:11.157Z | 2,022 | 7 | 22 | 6 | 222 | 1 | 2,284 | 63 | 5 | 12 | true | false | false | false | false | false | low |
73,102,593 | Android OnTouchListener for incrementing a value doesn't stop when touch ceases | <p>Here is the code for the OnTouchListener:</p>
<pre><code>launchableSelectionView.setOnTouchListener(new View.OnTouchListener()
{
final CountDownTimer countDownTimer = new CountDownTimer(Long.MAX_VALUE,100)
{
@Override
public void onTick(long l)
... | Here is the code for the OnTouchListener: [CODE] This code is for players to purchase missiles. What I want it to do is increment the number of missiles to purchase when the user long-presses the button after .75 seconds, and cease incrementing the number when the player lifts their finger. What it does instead: If the... | java|android|android-studio | 0 | 2022-07-24T22:43:35.583Z | 2,022 | 7 | 22 | 6 | 55 | 1 | 553 | 79 | 3 | 1 | true | false | false | false | false | false | zero |
73,102,602 | React Native/Firebase Android Emulator Error: Failed to get document because the client is offline | <p>I recently built a react native app that I have linked to firebase. It works perfectly fine on the iOS simulator. However, I recently began setting up the android emulator and I am now having issues. The app has authentication supported by firebase, but when logging in on the android emulator, I constantly get this ... | I recently built a react native app that I have linked to firebase. It works perfectly fine on the iOS simulator. However, I recently began setting up the android emulator and I am now having issues. The app has authentication supported by firebase, but when logging in on the android emulator, I constantly get this err... | android|firebase|react-native|google-cloud-firestore | 2 | 2022-07-24T22:44:39.760Z | 2,022 | 7 | 22 | 6 | 127 | 0 | 1,354 | 98 | 4 | 3 | true | true | false | false | false | false | low |
73,102,713 | How to receive a notification every hour if a condition is met on android studio? | <p>Okay, I know my title can be confusing so I'll explain a bit. I have access to an API and I would like that: <strong>every hour</strong>, my application, in the <strong>background</strong>, makes a request to this API and sends a <strong>notification</strong> if the API response contains a more or less recent date. ... | Okay, I know my title can be confusing so I'll explain a bit. I have access to an API and I would like that: every hour , my application, in the background , makes a request to this API and sends a notification if the API response contains a more or less recent date. To check if the answer is recent, I am already able ... | java|android|android-studio | 0 | 2022-07-24T23:08:10.050Z | 2,022 | 7 | 23 | 6 | 51 | 2 | 687 | 81 | 3 | 0 | false | false | false | false | false | false | zero |
73,102,935 | How to show live IMA ads on Exoplayer with android studio | <p>Hello guys Im implementing exoplayer with IMA ads on my android project</p>
<p>Im using this as a reference <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side" rel="nofollow noreferrer">https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side</a></p>
<... | Hello guys Im implementing exoplayer with IMA ads on my android project Im using this as a reference https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side the problem is i don't know how to generate my own ad tag with adsense to show live IMA ads can anyone help me with this thank you very m... | android|android-studio|exoplayer | 0 | 2022-07-25T00:03:57.410Z | 2,022 | 7 | 0 | 0 | 19 | 0 | 323 | 57 | 3 | 0 | false | true | false | false | false | false | zero |
73,103,034 | Why doesn't isAppearanceLightStatusBars affect on Status bar content color programmatically? | <p>I've tried to change the color of status bar content using <strong>isAppearanceLightStatusBars</strong>:</p>
<pre class="lang-kotlin prettyprint-override"><code>override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash_screen)
... | I've tried to change the color of status bar content using isAppearanceLightStatusBars : [CODE] it doesn't change anything, but when i change it in theme xml file, it works normal: [CODE] I need to know the reason of this problem, and solution, thanks. | android|kotlin|statusbar|android-theme | 0 | 2022-07-25T00:32:48.237Z | 2,022 | 7 | 0 | 0 | 77 | 2 | 252 | 92 | 4 | 2 | true | false | false | false | false | false | zero |
73,103,082 | Android: How to prevent standby of audio hardware? | <p>When a sound is played on a smartphone using <code>soundPool.play()</code>,</p>
<p>the following is written to <code>Logcat</code> with <code>tag:audio_hw_primary</code></p>
<pre><code>time[s] message
------------------
0.626 start_output_stream: enter: stream(..)usecase(2: low-latency-playback)
0.628 enable_sn... | When a sound is played on a smartphone using soundPool.play() , the following is written to Logcat with tag:audio_hw_primary [CODE] Apparently, the hardware audio device is disabled automatically after 2-3 seconds. So when soundPool.play is called again, there is a delay because the sound device needs to be re-enabled.... | android|soundpool | 0 | 2022-07-25T00:47:04.833Z | 2,022 | 7 | 0 | 0 | 28 | 0 | 528 | 50 | 2 | 2 | true | true | false | false | false | false | zero |
73,103,203 | Termux: pkg update shows "Waiting for cache lock" and it doesn't seem to stop | <p>I just downloaded Termux and used the 'pkg upgrade' command, then it showed me showed some options:</p>
<p>Y or () | Upgrade... (I can'tremember what)</p>
<p>N or () | Keep current version</p>
<p>D | Show differences</p>
<p>()</p>
<p>()</p>
<p>I then pressed D to see the differences, and a long manual-like text app... | I just downloaded Termux and used the 'pkg upgrade' command, then it showed me showed some options: Y or () | Upgrade... (I can'tremember what) N or () | Keep current version D | Show differences () () I then pressed D to see the differences, and a long manual-like text appeared. But I didn't know how to exit and press... | android|installation|package|apt|termux | 0 | 2022-07-25T01:18:17.300Z | 2,022 | 7 | 1 | 0 | 135 | 1 | 578 | 77 | 5 | 0 | false | false | false | false | false | false | zero |
73,103,265 | Unable to multiply due compile error in kotlin | <p>Beginner question - Any idea why my code won't compile? I based it on a code given in this codelab and the given code compiles just fine. Any help is greatly appreciated :)</p>
<p><a href="https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator?continue=https%3A%2F%2Fdeveloper.android.com... | Beginner question - Any idea why my code won't compile? I based it on a code given in this codelab and the given code compiles just fine. Any help is greatly appreciated :) https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathwa... | android|android-studio|kotlin | 1 | 2022-07-25T01:33:20.507Z | 2,022 | 7 | 1 | 0 | 44 | 1 | 498 | 46 | 3 | 2 | true | false | false | false | false | false | low |
73,103,326 | Push notifications not working on White-Label Rocket Chat App | <p>So I am compiling Rocket Chat to use my own Firebase server so I can server notifications without worrying about hitting the notification limit. <a href="https://developer.rocket.chat/mobile-app/mobile-app-white-labelling/android-app-white-labelling" rel="nofollow noreferrer">I've followed the steps here</a> and got... | So I am compiling Rocket Chat to use my own Firebase server so I can server notifications without worrying about hitting the notification limit. I've followed the steps here and gotten a working Experimental version of the app on Android, but I can't seem to get the notifications to work. Checking Firebase shows no use... | android|firebase|chat|rocket.chat | 0 | 2022-07-25T01:44:56.020Z | 2,022 | 7 | 1 | 0 | 142 | 1 | 1,136 | 61 | 4 | 0 | false | false | false | false | false | false | zero |
73,103,741 | MediaRecorder.Prepare() IllegalStatEexception | <p>I am trying Android voice recording app by <a href="https://developer.android.com/guide/topics/media/mediarecorder" rel="nofollow noreferrer">Official Link</a> and it gives me crash at <code>recorder.start();</code> because prepare statement not executed.</p>
<p>The only change i made in my app is location where i ... | I am trying Android voice recording app by Official Link and it gives me crash at recorder.start(); because prepare statement not executed. The only change i made in my app is location where i need to store audio recording where official documentation using [CODE] My Code [CODE] If i use fileName = getExternalCacheDir(... | java|android|mediarecorder | -1 | 2022-07-25T03:23:14.030Z | 2,022 | 7 | 3 | 0 | 50 | 1 | 558 | 45 | 3 | 2 | true | false | false | false | false | true | negative |
73,103,745 | ADB Command to disable Don't Keep Acitivites | <p>Is there an ADB command which I can disable the Don't Keep Activities option under Developer Options?</p>
<p>Couldn't find any commands to that online.</p>
<p>Thank you.</p> | Is there an ADB command which I can disable the Don't Keep Activities option under Developer Options? Couldn't find any commands to that online. Thank you. | android|adb | 0 | 2022-07-25T03:24:56.057Z | 2,022 | 7 | 3 | 0 | 34 | 1 | 155 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
73,103,793 | Android C++ how to read library installed at os level | <p>For security reason, I want to read jni library installed at the OS level from the same library within the package. This is to check by comparing checksum whether installed library at the OS level is same as the library in the apk. This is ensure no malicious library was replaced by rooting device.</p>
<p>Any C++ co... | For security reason, I want to read jni library installed at the OS level from the same library within the package. This is to check by comparing checksum whether installed library at the OS level is same as the library in the apk. This is ensure no malicious library was replaced by rooting device. Any C++ code you sug... | android|android-ndk|java-native-interface|native | 0 | 2022-07-25T03:33:25Z | -1 | -1 | -1 | -1 | 26 | 0 | 325 | 53 | 4 | 0 | false | true | false | false | false | false | zero |
73,103,837 | Using ajax to send back JSON to Android nanoHTTPd function | <p>Hey all I am trying to POST some json data to my android app via Jquery AJAX and using NanoHTTPd as the web server.</p>
<p>I can seem to call the correct url doing this:</p>
<pre><code>var reqData = JSON.stringify({"AppName": "test", "Enabled": "yes" });
$.ajax('http://10.0.2... | Hey all I am trying to POST some json data to my android app via Jquery AJAX and using NanoHTTPd as the web server. I can seem to call the correct url doing this: [CODE] Once I fire off that call above it goes to this java/nanoHTTPd code: [CODE] But I am getting null for the postBody ? The System.out.println shows I/Sy... | java|android|ajax|android-studio|nanohttpd | 0 | 2022-07-25T03:44:07.407Z | 2,022 | 7 | 3 | 0 | 43 | 1 | 472 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
73,103,846 | Question for android auto click with floatingWindow | <p>I created a movable hover window and used its center point as the coordinate for clicking. Using <code>AccessibilityService. DispatchGesture ()</code> to simulate click, click events are floating window, but it is expected the following view consumption.</p>
<pre class="lang-kotlin prettyprint-override"><code> ... | I created a movable hover window and used its center point as the coordinate for clicking. Using AccessibilityService. DispatchGesture () to simulate click, click events are floating window, but it is expected the following view consumption. [CODE] [CODE] | android|accessibilityservice | 0 | 2022-07-25T03:45:45.090Z | 2,022 | 7 | 3 | 0 | 19 | 0 | 255 | 51 | 2 | 2 | true | true | false | false | false | false | zero |
73,104,112 | In Jetpack Compose, Is there a way to make swipeable rows work better inside a scrollable LazyColumn? | <p>I have <code>LazyColumn</code> that has <code>verticalScroll</code> modifier, and each child row also has a horizontal <code>swipeable</code> modifier. Everything actually works pretty well, but there is a bit of a problem when trying to scroll vertically -- if there's even a very slight horizontal movement, then th... | I have LazyColumn that has verticalScroll modifier, and each child row also has a horizontal swipeable modifier. Everything actually works pretty well, but there is a bit of a problem when trying to scroll vertically -- if there's even a very slight horizontal movement, then the vertical scroll doesn't get triggered, a... | android|android-jetpack-compose|lazycolumn | 0 | 2022-07-25T04:37:55.733Z | 2,022 | 7 | 4 | 0 | 99 | 1 | 787 | 101 | 3 | 0 | false | false | false | false | false | false | zero |
73,104,142 | Draw a auto-focus rectangle box on androidx.camera.view.PreviewView | <p>I am developing an app which is capturing device front camera and added auto focus on camera to get the selfie clearly but camerax api is not showing any rectangle where focus is being made. I am using below code to achieve auto-focus on camera:</p>
<pre><code> activity?.let {
previewView.previewStreamSta... | I am developing an app which is capturing device front camera and added auto focus on camera to get the selfie clearly but camerax api is not showing any rectangle where focus is being made. I am using below code to achieve auto-focus on camera: [CODE] I haven't worked on camera api's mush so need some help. Anything e... | android|android-camera|android-camera2|android-camerax|firebase-mlkit | 2 | 2022-07-25T04:42:01.590Z | 2,022 | 7 | 4 | 0 | 92 | 0 | 362 | 67 | 5 | 1 | true | true | false | false | false | false | low |
73,104,203 | Jetpack Compose - Show trailingIcon in BasicTextField? | <p><code>TextField</code> has way too much padding by default for the screen I'm building, so I'm forced to use <code>BasicTextField</code> (see: <a href="https://stackoverflow.com/questions/68600128/remove-default-padding-on-jetpack-compose-textfield">this post on default TextField padding</a>)</p>
<p>The problem is, ... | TextField has way too much padding by default for the screen I'm building, so I'm forced to use BasicTextField (see: this post on default TextField padding ) The problem is, BasicTextField doesn't take in a trailingIcon parameter. Is there a way to get around this? | android-jetpack-compose|textfield | 1 | 2022-07-25T04:52:24.573Z | 2,022 | 7 | 4 | 0 | 102 | 1 | 265 | 54 | 2 | 0 | false | false | false | false | false | false | low |
73,104,300 | I want to give an exception to the first character in inputType of editText with Kotlin | <p>I want to make sure that the filter does not apply only the first letter in the numberPassword of the editText. Please give me an answer on what to do.</p>
<pre><code>android:inputType="numberPassword"
</code></pre>
<p>ex -******* -> -3******</p> | I want to make sure that the filter does not apply only the first letter in the numberPassword of the editText. Please give me an answer on what to do. [CODE] ex -******* -> -3****** | kotlin|android-edittext | 0 | 2022-07-25T05:10:13.897Z | 2,022 | 7 | 5 | 0 | 24 | 1 | 182 | 87 | 2 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.