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,681,689 | Sign App Bundle none nullsafe Flutter app | <p>I have an old flutter app that is not null-safe, and I can't convert it now, I just want to build signed android app bundle, when I want to use android studio to sign apk I get this error.</p>
<p><a href="https://i.stack.imgur.com/8UylQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8UylQ.png" al... | I have an old flutter app that is not null-safe, and I can't convert it now, I just want to build signed android app bundle, when I want to use android studio to sign apk I get this error. I know I can build it with --no-sound-null-safety using flutter CLI, but I want to upload it to playstore, so I have to sign it. | android|flutter | 0 | 2022-09-11T18:25:25.810Z | 2,022 | 9 | 18 | 6 | 13 | 0 | 317 | 41 | 2 | 0 | false | true | false | false | false | false | zero |
73,681,708 | ERROR: throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | <p>I had recently made a new project in flutter but there's an error in build.gradle file in VS Code showing <strong>{throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")}</strong>.</p>
<p>Tried adding SDK path in android studio but it didn't worke... | I had recently made a new project in flutter but there's an error in build.gradle file in VS Code showing {throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")} . Tried adding SDK path in android studio but it didn't worked also i changed the above... | android|flutter | 0 | 2022-09-11T18:28:05.867Z | 2,022 | 9 | 18 | 6 | 35 | 1 | 542 | 121 | 2 | 0 | false | false | false | false | false | false | zero |
73,681,842 | is There a way to filter a ListView using SwitchListTile? | <p>So i've tried it but with no success and would like to hear suggestions or solutions to this case
I've added here all the relevant code from the page itself.</p>
<pre><code> Widget build(BuildContext context) {
return FutureBuilder<ApiCallResponse>(
future: GetCandListByManagerCall.call(
enti... | So i've tried it but with no success and would like to hear suggestions or solutions to this case I've added here all the relevant code from the page itself. [CODE] [CODE] [CODE] These are all the parts that are relevant on the page, I've tried filtering the list by dateEvent (if the value in switchTile is true, then t... | flutter|android-studio|dart|listview|switch-statement | 0 | 2022-09-11T18:45:56.293Z | 2,022 | 9 | 18 | 6 | 30 | 0 | 497 | 57 | 5 | 3 | true | true | false | false | false | false | zero |
73,681,868 | Is it possible to host my discord.py bot on an old android phone? | <p>I've been making a discord bot for the last month and I was wondering if I could run it on my old phone (AXON 7 mini). Is it possible to do this? That would make it a lot easier to run the bot since I don't own a raspberry pi and the replit+UptimeRobot Method doesn't work. Would os.path.join() work on android?</p>
<... | I've been making a discord bot for the last month and I was wondering if I could run it on my old phone (AXON 7 mini). Is it possible to do this? That would make it a lot easier to run the bot since I don't own a raspberry pi and the replit+UptimeRobot Method doesn't work. Would os.path.join() work on android? If anyon... | python|android|discord.py | -2 | 2022-09-11T18:49:28.463Z | 2,022 | 9 | 18 | 6 | 57 | 1 | 467 | 65 | 3 | 0 | false | false | false | false | false | true | negative |
73,681,989 | How to add other scrollable views before a recyclerview? | <p>I am new to android and this is my first time asking question on stackoverflow. I am trying to implement a layout that has</p>
<ol>
<li>A horizontal ViewPager2</li>
<li>Some horizontal scrolling RecyclerViews</li>
<li>A vertical main RecyclerView</li>
</ol>
<p>For now I have wrapped all of the above views inside a N... | I am new to android and this is my first time asking question on stackoverflow. I am trying to implement a layout that has A horizontal ViewPager2 Some horizontal scrolling RecyclerViews A vertical main RecyclerView For now I have wrapped all of the above views inside a NestedScrollView like this [CODE] But I have read... | android|android-recyclerview|android-nestedscrollview | 1 | 2022-09-11T19:07:57.137Z | 2,022 | 9 | 19 | 6 | 21 | 0 | 638 | 56 | 3 | 1 | true | true | false | false | false | false | low |
73,682,022 | Background Service implementing SeneorEventListener only fires once; used to work well a few years ago | <p>I'm resurrecting an old app I wrote that wakes up once every minute and logs my phone's orientation.
The issue I'm observing now, which is different from when the code was written circa 2015, is that the <code>onSensorChanged</code> method only ever fires the first time the code is run.</p>
<p>From the logs, I see <... | I'm resurrecting an old app I wrote that wakes up once every minute and logs my phone's orientation. The issue I'm observing now, which is different from when the code was written circa 2015, is that the onSensorChanged method only ever fires the first time the code is run. From the logs, I see onStartcommand is activa... | android|events|service|android-sensors|sensormanager | 0 | 2022-09-11T19:13:44.787Z | 2,022 | 9 | 19 | 6 | 24 | 0 | 1,175 | 102 | 5 | 3 | true | true | false | false | false | false | zero |
73,682,182 | Why some apps still able to create directory/ files in Environment.getExternalStorageDirectory/ Environment.getExternalStoragePublicDirectory? | <p>I thought currently, all apps Google Play store, suppose not able to create directory/ files in <code>Environment.getExternalStorageDirectory</code> / <code>Environment.getExternalStoragePublicDirectory</code>?</p>
<p>Since Android 11, We are encouraged to only use</p>
<pre><code>Context.getExternalFilesDir(null)
</... | I thought currently, all apps Google Play store, suppose not able to create directory/ files in Environment.getExternalStorageDirectory / Environment.getExternalStoragePublicDirectory ? Since Android 11, We are encouraged to only use [CODE] In my Android 11 device Context.getExternalFilesDir(null) will return [CODE] En... | android | 0 | 2022-09-11T19:39:32.867Z | 2,022 | 9 | 19 | 6 | 44 | 0 | 1,473 | 142 | 1 | 5 | true | true | false | false | false | false | zero |
73,682,256 | React Native IAP getSubscriptions returns empty array for android | <p>Can You help me, please?
In google play console when I set Auto-renewing subscription for my app, then all are work correct.
But when I set prepaid, it doesn't work, I get IAP.getSubscriptions empty array.
What can it be connected with? How can I solve this issue?
This is the part of my code:</p>
<pre><code>componen... | Can You help me, please? In google play console when I set Auto-renewing subscription for my app, then all are work correct. But when I set prepaid, it doesn't work, I get IAP.getSubscriptions empty array. What can it be connected with? How can I solve this issue? This is the part of my code: [CODE] | android|reactjs|native | 0 | 2022-09-11T19:51:33.400Z | 2,022 | 9 | 19 | 6 | 39 | 0 | 300 | 65 | 3 | 1 | true | true | false | false | false | false | zero |
73,682,280 | In android emulator video doesn't show (Flutter) | <p><strong>My problem is that the video works fine on web view but doesn't show or work in the Android emulator. I want to play this video in an emulator also. And all the videos are asset videos. If anyone knows the solution or if anyone can help please help. Thank You</strong></p>
<p>**Below is the code which I wrote... | My problem is that the video works fine on web view but doesn't show or work in the Android emulator. I want to play this video in an emulator also. And all the videos are asset videos. If anyone knows the solution or if anyone can help please help. Thank You **Below is the code which I wrote for the video ** [CODE] [h... | android|flutter|video|emulation | 0 | 2022-09-11T19:55:45.287Z | 2,022 | 9 | 19 | 6 | 29 | 1 | 358 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
73,682,304 | how to add a points system to an app preferences DataStore Jetpack Compose | <p>I'm working on a <strong>Quiz app</strong> and I'm trying to <strong>add a points system</strong> to the app so that <strong>everytime the user gets a question right he gets a +1pts</strong>.
and for storing the points I use <strong>jetpack compose preferences Datastore</strong>.
the problem is whenever I want to ad... | I'm working on a Quiz app and I'm trying to add a points system to the app so that everytime the user gets a question right he gets a +1pts . and for storing the points I use jetpack compose preferences Datastore . the problem is whenever I want to add a point to the already saved points it doesn't work. this is my Poi... | kotlin|android-jetpack-compose|android-jetpack|datastore | 0 | 2022-09-11T20:01:19.013Z | 2,022 | 9 | 20 | 6 | 26 | 1 | 643 | 74 | 4 | 4 | true | false | false | false | false | false | zero |
73,682,470 | Cannot resolve symbol "Catalogue" Android Java | <p>I can not seem to figure out how to make this work.
It keeps giving me the following error:</p>
<pre><code>Cannot resolve symbol "Catalogue"
</code></pre>
<p>This is the code:</p>
<pre><code> ActivityManager aM = getApplicationContext().getSystemService(Catalogue.content_holder.getApplicationContext... | I can not seem to figure out how to make this work. It keeps giving me the following error: [CODE] This is the code: [CODE] Thanks | java|android | -1 | 2022-09-11T20:32:09.980Z | 2,022 | 9 | 20 | 6 | 10 | 0 | 130 | 46 | 2 | 2 | true | true | false | false | false | true | negative |
73,682,482 | Make own Android Emulator using Scatter File | <p>I have a android 9 device. The hardware is MTK. For Each week software team publish a new android image with scatter file. I install the new package to my device for testing via MTK SP Flash tool using scatter file including img files. I want to make automation software. How to make my own Andorid Emulator using my ... | I have a android 9 device. The hardware is MTK. For Each week software team publish a new android image with scatter file. I install the new package to my device for testing via MTK SP Flash tool using scatter file including img files. I want to make automation software. How to make my own Andorid Emulator using my sca... | android|android-emulator|android-9.0-pie | -1 | 2022-09-11T20:34:43.863Z | 2,022 | 9 | 20 | 6 | 21 | 0 | 465 | 44 | 3 | 1 | true | true | false | false | false | true | negative |
73,682,519 | Unable to parse Json result to ArrayList of objects | <p>In this app I am using <a href="https://api.nasa.gov/" rel="nofollow noreferrer">NASA API</a>, I facing some trouble converting the JSON objects to ArrayList of objects (Asteroid)</p>
<p><strong>Asteroid Data class</strong></p>
<pre><code>@Parcelize
data class Asteroid(val id: Long, val codename: String, val closeAp... | In this app I am using NASA API , I facing some trouble converting the JSON objects to ArrayList of objects (Asteroid) Asteroid Data class [CODE] NetwotkUtil (Parser class) the problem happened here [CODE] the API service class [CODE] and finally MainViewModel [CODE] The following is the demo result [CODE] I succeeded ... | android|json|kotlin|mvvm|retrofit2 | 0 | 2022-09-11T20:41:54.733Z | 2,022 | 9 | 20 | 6 | 37 | 0 | 479 | 51 | 5 | 5 | true | true | false | false | false | false | zero |
73,682,544 | usb bulk transfer endpoint with Android | <p>I'm trying to transfer data via USB, from Android device to PC.
I use AOA (Android Open Accessory) protocol and libusb for PC side.</p>
<p>In Android side, I have this function: <code>outputStream!!.write(data, 0, data!!.size)</code>.</p>
<p>In PC side, I use this function: <code>libusb_bulk_transfer()</code>, like ... | I'm trying to transfer data via USB, from Android device to PC. I use AOA (Android Open Accessory) protocol and libusb for PC side. In Android side, I have this function: outputStream!!.write(data, 0, data!!.size) . In PC side, I use this function: libusb_bulk_transfer() , like that: ret = libusb_bulk_transfer(handle, ... | android|linux|endpoint|libusb | 0 | 2022-09-11T20:47:04.083Z | 2,022 | 9 | 20 | 6 | 12 | 0 | 639 | 39 | 4 | 0 | false | true | false | false | false | false | zero |
73,682,561 | Different between Android onResume(), onStart() and lifecycleScope | <p>I have viewmodel call TestViewModel and a method call fetchDataFromDataSource() to call fetch data from the server, I used to call load data on <strong>OnResume()</strong> until I bump into <strong>lifecycleScope</strong></p>
<p>I have tried to read more but didn't really get which is better.</p>
<pre><code>class Te... | I have viewmodel call TestViewModel and a method call fetchDataFromDataSource() to call fetch data from the server, I used to call load data on OnResume() until I bump into lifecycleScope I have tried to read more but didn't really get which is better. [CODE] } where is the best place to call fetchDataFromDataSource(),... | android|android-lifecycle | 0 | 2022-09-11T20:50:49.677Z | 2,022 | 9 | 20 | 6 | 62 | 1 | 569 | 66 | 2 | 1 | true | false | false | false | false | false | zero |
73,682,562 | Using Compose navigation with deeplink within LazyColumn | <p>I've read <a href="https://developer.android.com/jetpack/compose/navigation#create-navhost" rel="nofollow noreferrer">the article about handling deeplinks with Compose</a>,
but I didn't find anything for my use case - for navigation within <code>LazyColumn</code>.
I have the following main Composable which I want to... | I've read the article about handling deeplinks with Compose , but I didn't find anything for my use case - for navigation within LazyColumn . I have the following main Composable which I want to make the root of the graph (I want it to be host for NavHost ): [CODE] and here is the remaining code: [CODE] And within MyCa... | android|navigation|android-jetpack-compose|deep-linking|android-deep-link | 0 | 2022-09-11T20:51:15.570Z | 2,022 | 9 | 20 | 6 | 21 | 0 | 652 | 56 | 5 | 3 | true | true | false | false | false | false | zero |
73,682,697 | Get PID by Package Name Android Java | <p>Is it possible to get the PID of an app by the Package Name?</p>
<p>I currently have this:</p>
<pre><code> ActivityManager aM = (ActivityManager)
getApplicationContext().getSystemService(ACTIVITY_SERVICE);
aM.killBackgroundProcesses("com.mcdonalds.mobileapp");
</code></pre>
<... | Is it possible to get the PID of an app by the Package Name? I currently have this: [CODE] Which does work, sort of. It doesn't force stop the process. I want it to force stop the program, how is this possible? I don't mind needing root access, as I am going to implement requesting for root anyway. | java|android | 0 | 2022-09-11T21:17:07.753Z | 2,022 | 9 | 21 | 6 | 20 | 0 | 299 | 36 | 2 | 1 | true | true | false | false | false | false | zero |
73,682,774 | Firestore and Changing Document Models in an App | <p>So we have an app that interacts directly with Firestore. In both queries for documents, creates new documents, updates, listens for changes, etc.</p>
<p>So we have one version of our app live. The question becomes how we can modify the model in the database, for example, adding a non-optional field, without breakin... | So we have an app that interacts directly with Firestore. In both queries for documents, creates new documents, updates, listens for changes, etc. So we have one version of our app live. The question becomes how we can modify the model in the database, for example, adding a non-optional field, without breaking the func... | android|ios|firebase|google-cloud-platform|google-cloud-firestore | -1 | 2022-09-11T21:34:02.917Z | 2,022 | 9 | 21 | 6 | 29 | 1 | 779 | 48 | 5 | 0 | false | false | false | false | false | true | negative |
73,682,785 | Chaquopy: ModuleNotFoundError: No module named 'distutils.util' | <p>I am trying to make an app with android studio, i imported <code>chaquopy</code> and python runs it.. (app is ok fine but when start python script <code>cv2</code> is missing)
in the python program I use <code>opencv</code> so I have to import the library the fact is that if I add:</p>
<pre><code> python { ... | I am trying to make an app with android studio, i imported chaquopy and python runs it.. (app is ok fine but when start python script cv2 is missing) in the python program I use opencv so I have to import the library the fact is that if I add: [CODE] in the defaultconfig and try sync now: [CODE] | android-studio|chaquopy | 0 | 2022-09-11T21:37:11.327Z | 2,022 | 9 | 21 | 6 | 38 | 2 | 296 | 63 | 2 | 2 | true | false | false | false | false | false | zero |
73,683,220 | Can't detect vibrator-service (vibratorManager) on Android 13 emulator | <p>I can detect whether vibrator is vibrating or not with <code>adb logcat -b system</code> on Android 12 emulator. However Android 13 emulator doesn't show anything. So I cannot assure the vibrator is working or not on Android 13.</p>
<p>For example:</p>
<pre><code> if (Build.VERSION.SDK_INT >= Build.VERSION_COD... | I can detect whether vibrator is vibrating or not with adb logcat -b system on Android 12 emulator. However Android 13 emulator doesn't show anything. So I cannot assure the vibrator is working or not on Android 13. For example: [CODE] If I use above code, logcat on Android 12 shows [CODE] However, on Android 13 emulat... | android|android-studio|android-vibration|android-13 | 0 | 2022-09-11T23:17:36.287Z | 2,022 | 9 | 23 | 6 | 23 | 0 | 800 | 70 | 4 | 4 | true | true | false | false | false | false | zero |
73,683,267 | NavigationView menu items with actionLayout. How can I set those action layout's attribute for each item? | <p>Following <a href="https://stackoverflow.com/a/51668942/3692177">this answer</a>, I learned how to add extra views to the <code>NavigationView</code>'s menu items, by adding an <code>action layout</code>. My question is, esentially, how can I tweak each of those individual <code>actionLayout</code>s dinamically, thr... | Following this answer , I learned how to add extra views to the NavigationView 's menu items, by adding an action layout . My question is, esentially, how can I tweak each of those individual actionLayout s dinamically, through Java? In my case, instead of adding a "switch" to the menu items, I used actionLay... | java|android|navigationview | 0 | 2022-09-11T23:31:55.107Z | 2,022 | 9 | 23 | 6 | 24 | 1 | 1,331 | 105 | 3 | 3 | true | false | false | false | false | false | zero |
73,683,392 | Not sure how to design in app notifications from interactions (likes, share, etc...) | <p>I am developing an Android application in Kotlin that can be thought of as similar to Instagram.</p>
<p>I am designing how to implement my in-app notifications. By "in-app notifications" I mean <strong>interactions</strong> such as likes, publication sharing, new chat message, etc.</p>
<p>For the moment, I... | I am developing an Android application in Kotlin that can be thought of as similar to Instagram. I am designing how to implement my in-app notifications. By "in-app notifications" I mean interactions such as likes, publication sharing, new chat message, etc. For the moment, I do want foreground notifications.... | android|firebase|websocket|firebase-cloud-messaging|amazon-sns | -1 | 2022-09-12T00:03:49.447Z | 2,022 | 9 | 0 | 0 | 28 | 1 | 2,063 | 84 | 5 | 0 | false | false | false | false | false | true | negative |
73,683,479 | Disable status bar android | <p>Hi i want disable the status bar in an java app android, like when the user pull down the bar doesnt go down</p> | Hi i want disable the status bar in an java app android, like when the user pull down the bar doesnt go down | java|android|android-studio|statusbar|disable | -2 | 2022-09-12T00:28:25.033Z | 2,022 | 9 | 0 | 0 | 37 | 3 | 108 | 26 | 5 | 0 | false | false | false | false | false | true | negative |
73,683,568 | react-native keyboard with 'hide keyboard' button? | <p>For iOS/Android i think there's a way to have a keyboard where instead of the 'Return' button there's a "Hide keyboard" button. But I can't see this as a type of option. I want to use a single line text input area, but let the user easily and obviously click to dismiss the keyboard.</p>
<p>ideally this wou... | For iOS/Android i think there's a way to have a keyboard where instead of the 'Return' button there's a "Hide keyboard" button. But I can't see this as a type of option. I want to use a single line text input area, but let the user easily and obviously click to dismiss the keyboard. ideally this would be cros... | android|ios|reactjs|react-native|keyboard | -1 | 2022-09-12T00:52:54.333Z | 2,022 | 9 | 0 | 0 | 31 | 1 | 847 | 50 | 5 | 0 | false | false | false | false | false | true | negative |
73,683,955 | How to translate device screen position to sendevent position? | <p>I know about the <code>input tap x y</code> shell command, however, I'm trying to understand how to
perform a click using the <code>sendevent</code> command. I been able to achieve it with the following command:</p>
<pre><code>sendevent /dev/input/event5 3 53 X &&
sendevent /dev/input/event5 3 54 Y &&... | I know about the input tap x y shell command, however, I'm trying to understand how to perform a click using the sendevent command. I been able to achieve it with the following command: [CODE] Where X and Y is the position that will be clicked, I'm testing it on the android emulator BlueStacks 5 which the Display Resol... | android|shell|adb | 4 | 2022-09-12T02:30:22.853Z | 2,022 | 9 | 2 | 0 | 102 | 1 | 1,519 | 62 | 3 | 4 | true | false | false | false | false | false | low |
73,684,081 | Android Emulator Hypervisor Driver for AMD Processors installation failed | <p>although I did the following "https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors"
<a href="https://i.stack.imgur.com/iEL7I.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p><a href="https://i.stack.imgur.com/5wUYE.jpg" rel="nofollow noreferrer">enter image ... | although I did the following "https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors" enter image description here enter image description here enter image description here | android-emulator|driver|hypervisor | 0 | 2022-09-12T03:01:33.273Z | 2,022 | 9 | 3 | 0 | 21 | 0 | 207 | 73 | 3 | 0 | false | true | false | false | false | false | zero |
73,684,169 | Androidx DropDownPreference how to apply business rules before saving to Shared Preferences | <p>So I am getting started with Androidx, writing for API release 32.
One thing I can't wrap my mind around is why Googly, decided to implement the Settings Screen the way they did.<br />
In my case, I am building an app that is to communicate with a Bluetooth device, but only one specific Bluetooth device is supported... | So I am getting started with Androidx, writing for API release 32. One thing I can't wrap my mind around is why Googly, decided to implement the Settings Screen the way they did. In my case, I am building an app that is to communicate with a Bluetooth device, but only one specific Bluetooth device is supported by the a... | android|sharedpreferences|dropdown|settings|business-logic | 0 | 2022-09-12T03:21:20.953Z | 2,022 | 9 | 3 | 0 | 32 | 0 | 1,152 | 91 | 5 | 1 | true | true | false | false | false | false | zero |
73,684,228 | Execution failed for task ':expo-modules-core:compileDebugJavaWithJavac' | <ul>
<li>I build android for a react native project in Ubuntu. And I got this error.
<a href="https://i.stack.imgur.com/25p1j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/25p1j.png" alt="enter image description here" /></a></li>
</ul>
<p>How can I fix this error? Please help me. Thank you first.</... | I build android for a react native project in Ubuntu. And I got this error. How can I fix this error? Please help me. Thank you first. | java|android|react-native|expo | 0 | 2022-09-12T03:33:06.653Z | 2,022 | 9 | 3 | 0 | 82 | 2 | 134 | 72 | 4 | 0 | false | false | false | false | false | false | zero |
73,684,319 | How to add webrtc dependency in android studio bumblebee? | <p>I am trying to add this dependency :</p>
<pre><code>// https://mvnrepository.com/artifact/org.webrtc/google-webrtc
implementation 'org.webrtc:google-webrtc:1.0.32006'
</code></pre>
<p>But I can not get it in studio bumblebee. Showing following error:</p>
<pre><code>Caused by: org.gradle.api.internal.artifacts.ivyse... | I am trying to add this dependency : [CODE] But I can not get it in studio bumblebee. Showing following error: [CODE] I tried to add maven url maven { url 'https://jitpack.io' } and https://mvnrepository.com/ in settings.gradles dependencyResolutionManagement - repositories block. But did not solve it. I am not certain... | android|gradle|webrtc | 0 | 2022-09-12T03:51:14.990Z | 2,022 | 9 | 3 | 0 | 33 | 0 | 394 | 57 | 3 | 2 | true | true | false | false | false | false | zero |
73,684,398 | Flutter Nested ListView in FutureBuilder with CheckboxListTyle Returns Constraint Error | <p>Hello so the problem i am having is the following code</p>
<pre><code>return Scaffold(
body: Padding(
padding: EdgeInsets.all(20),
child: Row(
children: [
const SizedBox(width: 15),
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignmen... | Hello so the problem i am having is the following code [CODE] is Returning the error 'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1869 pos 16: 'constraints.hasBoundedWidth': is not true. and i have no idea how to fix it, been trying every possible combination i can come up with. | android|flutter|dart|constraints | 0 | 2022-09-12T04:08:53.910Z | 2,022 | 9 | 4 | 0 | 27 | 1 | 304 | 87 | 4 | 1 | true | false | false | false | false | false | zero |
73,684,466 | How to set RTL for menu in Android | <p>In my application I want show <code>popup menu</code> for <code>Recyclerview</code>.<br>
I want show Icon <strong>right of Text</strong>!<br>
But for me show Icon left of Text!<br>
I don't want use <strong>supportRtl="true"</strong> in <code>manifest</code>!<br>
<strong>Menu codes :</strong></p>
<pre><code... | In my application I want show popup menu for Recyclerview . I want show Icon right of Text ! But for me show Icon left of Text! I don't want use supportRtl="true" in manifest ! Menu codes : [CODE] Result of above code : But I want show this icon right of text ! For show popup menu I write below code : [CODE] ... | android|kotlin | 0 | 2022-09-12T04:23:39.797Z | 2,022 | 9 | 4 | 0 | 33 | 0 | 336 | 34 | 2 | 2 | true | true | false | false | false | false | zero |
73,684,519 | How to pass params to AppGliceModule | <p>I need to add headers to Glide requests. I've found that <code>GlideModule</code> could be used for this purpuse.</p>
<p>I'm using OkHttpClient integration to use intercepters and add headers.</p>
<p>But I need to <strong>pass parameters</strong> to <code>registerComponents</code> method of <code>AppGlideModule</cod... | I need to add headers to Glide requests. I've found that GlideModule could be used for this purpuse. I'm using OkHttpClient integration to use intercepters and add headers. But I need to pass parameters to registerComponents method of AppGlideModule . How could it be done? My glide version is 4.13.2 My module looks lik... | android|android-glide | 0 | 2022-09-12T04:30:59.703Z | 2,022 | 9 | 4 | 0 | 30 | 2 | 334 | 36 | 2 | 1 | true | false | false | false | false | false | zero |
73,684,651 | Play Billing 5.0.0 Kotlin - How to override onProductDetailsResponse()? | <p>please reference this <a href="https://developer.android.com/google/play/billing/integrate#kts" rel="nofollow noreferrer">doc</a>.</p>
<p>It states: "<em>To handle the result of the asynchronous operation, you must also specify a listener which implements the ProductDetailsResponseListener interface. You can th... | please reference this doc . It states: " To handle the result of the asynchronous operation, you must also specify a listener which implements the ProductDetailsResponseListener interface. You can then override onProductDetailsResponse(), which notifies the listener when the query finishes, as shown in the followi... | android|kotlin|play-billing-library | 0 | 2022-09-12T04:58:12.077Z | 2,022 | 9 | 4 | 0 | 24 | 0 | 580 | 71 | 3 | 1 | true | true | false | false | false | false | zero |
73,684,659 | Most buttons turned blue on Android 12 One UI 4.1 (Galaxy S22) | <p>Not sure what happend but both mine and my wife's Android turned light blue for many things that had a distinctive colour before? Is this a result of a software update or maybe my little one found some settings I am unaware of? See screenshot... all incoming, outgoing and missed calls are now blue and also all butto... | Not sure what happend but both mine and my wife's Android turned light blue for many things that had a distinctive colour before? Is this a result of a software update or maybe my little one found some settings I am unaware of? See screenshot... all incoming, outgoing and missed calls are now blue and also all buttons ... | android | 0 | 2022-09-12T05:00:12.677Z | 2,022 | 9 | 5 | 0 | 15 | 0 | 401 | 62 | 1 | 0 | false | true | false | false | false | false | zero |
73,684,708 | How to use Room database in a background service | <p>I need to access my repository in a service. This is how I instantiate the repository in a ViewModel</p>
<pre><code>public MainMenuViewModel(@NonNull @NotNull Application application) {
super(application);
pendingTransactionRepository = new PendingTransactionRepository(application);
}
</code></pre>
<p>I have... | I need to access my repository in a service. This is how I instantiate the repository in a ViewModel [CODE] I have access to the "Application" so this is no problem for me.But when I use this repository in a background service, I get the "Application" from this part of the background service: [CODE]... | android | 0 | 2022-09-12T05:08:09.683Z | 2,022 | 9 | 5 | 0 | 26 | 1 | 483 | 48 | 1 | 4 | true | false | false | false | false | false | zero |
73,684,764 | How to make WorkManager alive when app is killed? | <p>I am downloading file with "Coroutine Worker" work Manager, when application is in background the downloading work properly but when application is killed, work Manager stop working.</p>
<p>I tried to keep it alive with a boolean variable in an infinite loop to make it work but it didn't work as well.</p>
... | I am downloading file with "Coroutine Worker" work Manager, when application is in background the downloading work properly but when application is killed, work Manager stop working. I tried to keep it alive with a boolean variable in an infinite loop to make it work but it didn't work as well. [CODE] [CODE] ... | android|android-workmanager|workmanagers | 1 | 2022-09-12T05:18:03.897Z | 2,022 | 9 | 5 | 0 | 38 | 2 | 392 | 49 | 3 | 2 | true | false | false | false | false | false | low |
73,684,838 | HorizontalPager not taking full width while scrolling in Compose | <p>I am using a <code>ComposeView</code> in an xml and loading a <code>HorizontalViewPager</code> in that view. My expected behaviour of that pager is when I scroll the items of that pager it should not be inside the bound of the padding of the parent layout but take the edge to edge scrolling instead.
Here is the curr... | I am using a ComposeView in an xml and loading a HorizontalViewPager in that view. My expected behaviour of that pager is when I scroll the items of that pager it should not be inside the bound of the padding of the parent layout but take the edge to edge scrolling instead. Here is the current look: But I want somethin... | android|android-jetpack-compose | 0 | 2022-09-12T05:28:50.747Z | 2,022 | 9 | 5 | 0 | 28 | 1 | 426 | 64 | 2 | 1 | true | false | false | false | false | false | zero |
73,684,881 | Flutter How to clickable the selected item in bottom navigation bar | <p>I'm trying to implement clickable the selected item in the Bottom navigation bar in my Flutter app. What I'm trying to achieve is when the user clicks any item in the Bottom navigation bar the selected item page contains the button which navigates to another inner page so if I want to try to click the select item in... | I'm trying to implement clickable the selected item in the Bottom navigation bar in my Flutter app. What I'm trying to achieve is when the user clicks any item in the Bottom navigation bar the selected item page contains the button which navigates to another inner page so if I want to try to click the select item in th... | android|flutter|dart|flutter-layout|flutter-navigation | 1 | 2022-09-12T05:35:14.873Z | 2,022 | 9 | 5 | 0 | 58 | 1 | 1,211 | 67 | 5 | 3 | true | false | false | false | false | false | low |
73,684,924 | Phone Number Hint API not working on Android 12 | <p>I am using the latest <a href="https://developers.google.com/identity/phone-number-hint/android" rel="nofollow noreferrer">Phone Number Hint API</a> library, provided by Google Play Services, for requesting phone number as hint. Here is my code :</p>
<pre><code>implementation 'com.google.android.gms:play-services-au... | I am using the latest Phone Number Hint API library, provided by Google Play Services, for requesting phone number as hint. Here is my code : [CODE] Above code is working fine on devices with Android version less than 12. But it is not working properly on devices with Android 12. I have tried on two different devices a... | android|kotlin|google-play-services | 1 | 2022-09-12T05:44:37.267Z | 2,022 | 9 | 5 | 0 | 54 | 0 | 1,122 | 47 | 3 | 1 | true | true | false | false | false | false | low |
73,685,015 | Gradle Build got failed | <p>I got error "java.lang.NullPointerException (no error message)" when build gradle. Here the error detail <a href="https://scans.gradle.com/s/elqrorxbkywzy/failure?expanded-stacktrace=WyIwLTEiXQ&focused-exception-line=0-1-0#1" rel="nofollow noreferrer">https://scans.gradle.com/s/elqrorxbkywzy/failure?ex... | I got error "java.lang.NullPointerException (no error message)" when build gradle. Here the error detail https://scans.gradle.com/s/elqrorxbkywzy/failure?expanded-stacktrace=WyIwLTEiXQ&focused-exception-line=0-1-0#1 . Please help me i got stuck after try this, I'm already delete .gradle from root project Alre... | android|linux|gradle | 0 | 2022-09-12T05:55:47.103Z | 2,022 | 9 | 5 | 0 | 40 | 0 | 509 | 23 | 3 | 3 | true | true | false | false | false | false | zero |
73,685,047 | How do I achieve this rounded corner shape around icon of a selected bottom nav item with Jetpack compose | <p><img src="https://i.stack.imgur.com/1g2mR.png" alt="Bottom navigation design" />.<br />
This is how my BottomNavigaionItem looks like.</p>
<pre><code> BottomNavigationItem(
selected = selected,
onClick = {...}
icon = {
Icon(
... | . This is how my BottomNavigaionItem looks like. [CODE] | android-studio|android-jetpack-compose | 1 | 2022-09-12T06:01:22.713Z | 2,022 | 9 | 6 | 0 | 47 | 1 | 55 | 105 | 2 | 1 | true | false | false | false | false | false | low |
73,685,051 | How Can I Directly Connect ESP32 BLE with Mobile Bluetooth using Micropython? | <p>I'm trying to Connect directly esp32 BLE with mobile without the help of the Bluetooth serial Terminal app. I used Thonny IDE for coding. When I tried to connect directly with mobile here is the pop-up I got.</p>
<p><a href="https://i.stack.imgur.com/fISYr.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/fIS... | I'm trying to Connect directly esp32 BLE with mobile without the help of the Bluetooth serial Terminal app. I used Thonny IDE for coding. When I tried to connect directly with mobile here is the pop-up I got. https://i.stack.imgur.com/fISYr.jpg here is the code i used [CODE] I can connect using the Bluetooth Serial Ter... | python|android|bluetooth-lowenergy|esp32|micropython | 0 | 2022-09-12T06:01:44.290Z | 2,022 | 9 | 6 | 0 | 58 | 0 | 419 | 77 | 5 | 1 | true | true | false | false | false | false | zero |
73,685,178 | Android Studio tells me it cannot resolve classes in layout xml file but it compiles fine | <p>Android Studio tells me it cannot resolve androidx.recyclerview.widget.RecyclerView and androidx.appcompat.widget.Toolbar in an xml layout file (main activity), but it compiles.
The suggested fix (adding the dependancies do not work, since they already are).
It isn't that big of a problem since it compiles fine but ... | Android Studio tells me it cannot resolve androidx.recyclerview.widget.RecyclerView and androidx.appcompat.widget.Toolbar in an xml layout file (main activity), but it compiles. The suggested fix (adding the dependancies do not work, since they already are). It isn't that big of a problem since it compiles fine but it ... | android|android-studio|android-layout|androidx | 0 | 2022-09-12T06:18:36.237Z | 2,022 | 9 | 6 | 0 | 29 | 0 | 556 | 89 | 4 | 2 | true | true | false | false | false | false | zero |
73,685,196 | Can't drag BottomSheet when clickable="true"? If not set clickable then click goes through it and fire on Recycleview item under it | <p>Here is my Persistent BottomSheet</p>
<pre><code><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id=&qu... | Here is my Persistent BottomSheet [CODE] When User scrolls RecycleView, BottomNavigation hides and I reduce height of BottomSheet accordingly in RecycleView's addOnScrollListener using: [CODE] After BottomNavigation is hidden and BottomSheet height is reduced, if BottomSheet is clickable, (either through code binding.b... | android|bottomnavigationview|bottom-sheet|android-bottomnavigationview | 2 | 2022-09-12T06:21:22.007Z | 2,022 | 9 | 6 | 0 | 105 | 1 | 992 | 131 | 4 | 2 | true | false | false | false | false | false | low |
73,685,227 | .NET MAUI - Tabbar in Android | <p>.NET MAUI - Android Tabbar on top of keyboard - Big issue it's not duplicate</p>
<p><a href="https://i.stack.imgur.com/vzbPM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzbPM.png" alt="enter image description here" /></a></p>
<p>Issue- When I clicked in entry, tabbar coming on top of keyboard.... | .NET MAUI - Android Tabbar on top of keyboard - Big issue it's not duplicate Issue- When I clicked in entry, tabbar coming on top of keyboard. Expected Behavior- Tabbar shouldn't be placed on top of keyboard while entry focus. | android|keyboard|tabbar|maui|.net-maui | -1 | 2022-09-12T06:26:04.127Z | 2,022 | 9 | 6 | 0 | 14 | 0 | 226 | 29 | 5 | 0 | false | true | false | false | false | true | negative |
73,685,237 | android cordova app does not prompt to ask media or storage when select image from phone storage | <p>I am developing an android/ios cordova app, and I need to create a button to click to select image from storage and perform QR scan.</p>
<p>Currently I am using the normal one as follow:</p>
<pre><code><input type="file" id="qr-img-file" accept="image/*" (change)="scanQrFile($ev... | I am developing an android/ios cordova app, and I need to create a button to click to select image from storage and perform QR scan. Currently I am using the normal one as follow: [CODE] I believe this is web approach, thus when I click on the button, it does not prompt me to ask for permission to access storage. I wou... | android|ios|angular|mobile|permissions | -1 | 2022-09-12T06:27:15.703Z | 2,022 | 9 | 6 | 0 | 14 | 0 | 548 | 96 | 5 | 1 | true | true | false | false | false | true | negative |
73,685,309 | Google Play Console Data Safety No data collected | <p><strong>How can i set my app collect data</strong></p>
<blockquote>
<p>No data collected</p>
</blockquote>
<blockquote>
<p>The developer says that this app doesn’t collect user data.</p>
</blockquote>
<p><strong>But i want to set my app collect user data</strong></p> | How can i set my app collect data No data collected The developer says that this app doesn’t collect user data. But i want to set my app collect user data | android|flutter|google-play|google-play-console | -4 | 2022-09-12T06:36:00.720Z | 2,022 | 9 | 6 | 0 | 48 | 1 | 154 | 49 | 4 | 0 | false | false | false | false | false | true | negative |
73,685,504 | How to enable "resizeableActivity" for only a singe Activity | <p>I am using samsung's foldable device - Galaxy Z Fold3 5G</p>
<p>I need to set <code>resizeableActivity = true</code> of only a single activity.</p>
<p>I cannot set it in main <code><application</code>> tag as it will be applied to the whole app.</p>
<pre><code><application
android:networkSecurityConfig... | I am using samsung's foldable device - Galaxy Z Fold3 5G I need to set resizeableActivity = true of only a single activity. I cannot set it in main <application > tag as it will be applied to the whole app. [CODE] I've also tried writing it in the <activity> , but it is not working there. [CODE] Any help? | android|android-activity|android-manifest|foldable-devices | 1 | 2022-09-12T06:58:56.620Z | 2,022 | 9 | 6 | 0 | 17 | 0 | 306 | 60 | 4 | 2 | true | true | false | false | false | false | low |
73,685,564 | Android compile against version 33 or later of the Android APIs | <p>Dependency 'androidx.compose.material3:material3:1.0.0-beta02' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.</p> | Dependency 'androidx.compose.material3:material3:1.0.0-beta02' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. | android|build.gradle | 0 | 2022-09-12T07:05:02.437Z | 2,022 | 9 | 7 | 0 | 43 | 1 | 176 | 63 | 2 | 0 | false | false | false | false | false | false | zero |
73,685,697 | (ANDROID) How to POST JSON to server by enter our username and password (Login Page)? | <p>i need help from how to input our username and password and post them to my server. i try few way its no working, tried .getText() and .toString() but still working. tried few solution from other tutorial web get nothing too. Please help. Thanks</p>
<pre><code>public class MainActivity extends AppCompatActivity {
... | i need help from how to input our username and password and post them to my server. i try few way its no working, tried .getText() and .toString() but still working. tried few solution from other tutorial web get nothing too. Please help. Thanks [CODE] i add here [CODE] no error for my coding after running it, just i c... | java|android|json|authentication|post | -2 | 2022-09-12T07:18:14.340Z | 2,022 | 9 | 7 | 0 | 22 | 1 | 375 | 85 | 5 | 2 | true | false | false | false | false | true | negative |
73,685,717 | React native android targeted android 31 send headless task | <p>I am new in react native development. I have an app where it is depended on android SDK 31. For some reason I want to send headless task when my app is killed. When I run my code on Android 10 it is running as well. When I try to run the same code on Android 12 and Android 11 it is retrieve an error like that:</p>
<... | I am new in react native development. I have an app where it is depended on android SDK 31. For some reason I want to send headless task when my app is killed. When I run my code on Android 10 it is running as well. When I try to run the same code on Android 12 and Android 11 it is retrieve an error like that: android.... | android|react-native | 0 | 2022-09-12T07:20:25.247Z | 2,022 | 9 | 7 | 0 | 21 | 0 | 606 | 59 | 2 | 2 | true | true | false | false | false | false | zero |
73,685,762 | Error: 'Unable to load class AndroidComponentsExtension' when building app with Hilt | <p>Trying to add Hilt to my project but sync fails.
My app gradle contains these lines:</p>
<pre><code>apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.h... | Trying to add Hilt to my project but sync fails. My app gradle contains these lines: [CODE] the last one triggers the error "Unable to load com.android.build.api.extension.AndroidComponentsExtension". Full trace here: https://pastebin.com/dZFg7yyX Kotlin version is: '1.6.10' Here the dependencies in the root ... | android|kotlin|gradle|dagger|dagger-hilt | 0 | 2022-09-12T07:23:20.647Z | 2,022 | 9 | 7 | 0 | 25 | 0 | 387 | 84 | 5 | 3 | true | true | false | false | false | false | zero |
73,685,763 | How to specify custom layout for a DropdownPreference? | <p>I want to use a custom layout for a DropDownPreference.</p>
<p>When I specify the layout as an android:layout="@layout/mylayout", I get a runtime error. Can anyone confirm if they have done this previously?</p> | I want to use a custom layout for a DropDownPreference. When I specify the layout as an android:layout="@layout/mylayout", I get a runtime error. Can anyone confirm if they have done this previously? | android|preferencescreen | 0 | 2022-09-12T07:23:22.573Z | 2,022 | 9 | 7 | 0 | 20 | 1 | 209 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
73,685,785 | Jetpack Compose Material 3 Error . Could not resolve all files for configuration ':app:debugRuntimeClasspath' | <p>I have Two lines of error when i run the simple Jetpack Compose Material 3 Project</p>
<p>build.gradle(Project:)</p>
<pre><code> buildscript {
ext {
compose_version = '1.3.0-beta02'
core_ktx_version = '1.9.0-rc01'
material3_version = 'material3:1.3.0-beta02'
lifecycle_version =... | I have Two lines of error when i run the simple Jetpack Compose Material 3 Project build.gradle(Project:) [CODE] build.gradle (Module : ) [CODE] settings.gradle: [CODE] when i run the project i have an error of : Execution failed for task ':app:desugarDebugFileDependencies'. Could not resolve all files for configuratio... | kotlin|android-jetpack-compose|dagger-hilt|android-mvvm|android-jetpack-compose-material3 | 1 | 2022-09-12T07:25:27.427Z | 2,022 | 9 | 7 | 0 | 178 | 1 | 417 | 109 | 5 | 3 | true | false | false | false | false | false | low |
73,685,803 | Coroutines and suspend related to main thread and dispatcher | <p>I have read one article which says the following :</p>
<p>* Room will provide main-safety automatically if you use suspend functions, RxJava, or LiveData.</p>
<p>** Networking libraries such as Retrofit and Volley manage their own threads and do not require explicit main-safety in your code when used with Kotlin cor... | I have read one article which says the following : * Room will provide main-safety automatically if you use suspend functions, RxJava, or LiveData. ** Networking libraries such as Retrofit and Volley manage their own threads and do not require explicit main-safety in your code when used with Kotlin coroutines. So I hav... | android|kotlin-coroutines | 0 | 2022-09-12T07:26:59.367Z | 2,022 | 9 | 7 | 0 | 29 | 2 | 864 | 60 | 2 | 0 | false | false | false | false | false | false | zero |
73,685,874 | Scheduling a task periodically in an android app using WorkManager(Coroutine Worker) | <p>I'm trying to run a task periodically every 12 hours, I'v used Work Manager and followed their <a href="https://developer.android.com/topic/libraries/architecture/workmanager" rel="nofollow noreferrer">documentation</a>. The task is running periodically well as long as the user is actually using the app.</p>
<p>But ... | I'm trying to run a task periodically every 12 hours, I'v used Work Manager and followed their documentation . The task is running periodically well as long as the user is actually using the app. But if i close the app, or even just let my phone be idle for a while, it seems like the task stops working. I searched for ... | job-scheduling|android-workmanager | 0 | 2022-09-12T07:34:52.283Z | 2,022 | 9 | 7 | 0 | 28 | 1 | 676 | 84 | 2 | 0 | false | false | false | false | false | false | zero |
73,685,896 | Playing an audio file in the background with Service | <p>I am trying to set up an Android app with Kotlin. It should be able to play an audio file in the background. For that I use Service.</p>
<p>For now the service is fired up to play the audio file, from the <em>onStop()</em> method of the main activity.</p>
<p>So when I send the app to the background, the sound playin... | I am trying to set up an Android app with Kotlin. It should be able to play an audio file in the background. For that I use Service. For now the service is fired up to play the audio file, from the onStop() method of the main activity. So when I send the app to the background, the sound playing starts. This works excep... | android|kotlin|service|android-mediaplayer | 0 | 2022-09-12T07:36:39.863Z | 2,022 | 9 | 7 | 0 | 36 | 2 | 778 | 52 | 4 | 3 | true | false | false | false | false | false | zero |
73,685,962 | Filed to find where images are located in the target's android device, then to view (cat command...) them using msfvenom | <p><strong>I failed to find images on my second device that I hacked using Msfvenom reverse tcp shell.<br><br>
It seems that the search command isn't working at all, and that I'm stuck with one directory on the target's android device.<br><br>
I know that the file containing images on my second device is called Downloa... | I failed to find images on my second device that I hacked using Msfvenom reverse tcp shell. It seems that the search command isn't working at all, and that I'm stuck with one directory on the target's android device. I know that the file containing images on my second device is called Download, but when I use search to... | android|linux|shell|termux|metasploit | -2 | 2022-09-12T07:43:40.790Z | 2,022 | 9 | 7 | 0 | 19 | 0 | 557 | 120 | 5 | 0 | false | true | false | false | false | true | negative |
73,686,011 | Get text from Chips in a ChipGroup | <p>I am using an EditText to create chips in a ChipGroup and I want that you can't create more than one of the same tags: <code>tag</code> & <code>tag</code> as example should not be possible.</p>
<p>I could create an array of strings from every chip/tag but I think it's not "elegant"</p>
<blockquote>
<p>... | I am using an EditText to create chips in a ChipGroup and I want that you can't create more than one of the same tags: tag & tag as example should not be possible. I could create an array of strings from every chip/tag but I think it's not "elegant" This just a section of my code but the whole code is not nec... | android|kotlin|material-components-android|android-chips | 1 | 2022-09-12T07:47:47.100Z | 2,022 | 9 | 7 | 0 | 24 | 1 | 377 | 34 | 4 | 1 | true | false | false | false | false | false | low |
73,686,057 | my own android Studio Library integrating with my test phone app | <p>i created a library which im intending to create functions in it. however i met an error, the error appears at ((RCApplication)getApplicationContext()).setRosClient(client); the error states Non-static method 'getApplicationContext()' cannot be referenced from a static context but my function needs to be static in o... | i created a library which im intending to create functions in it. however i met an error, the error appears at ((RCApplication)getApplicationContext()).setRosClient(client); the error states Non-static method 'getApplicationContext()' cannot be referenced from a static context but my function needs to be static in orde... | java|android|android-studio|oop | 0 | 2022-09-12T07:51:56.983Z | 2,022 | 9 | 7 | 0 | 23 | 0 | 635 | 64 | 4 | 2 | true | true | false | false | false | false | zero |
73,686,141 | Image Not uploading in base64 format using retrofit | <p>I Am uploading an image which I convert into base64 , and try to send image into server, using Retrofit Library, but problem is that, Sometime Image Are Uploading successfully but sometime its going on on Failure() method in Retrofit , and throwing the error is <strong>timeout</strong> , I don't know what is the pr... | I Am uploading an image which I convert into base64 , and try to send image into server, using Retrofit Library, but problem is that, Sometime Image Are Uploading successfully but sometime its going on on Failure() method in Retrofit , and throwing the error is timeout , I don't know what is the problem with that , som... | java|android|retrofit2 | 0 | 2022-09-12T07:58:12.670Z | 2,022 | 9 | 7 | 0 | 37 | 2 | 450 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
73,686,201 | Create .nomedia file in External Storage and hide media files in android 11 and above | <p>I have a chat app where users share images/video/audio etc. I need organized my directory structure, where i need to keep sent files in separate sub-folder and hide it from gallery apps but user can able to locate with file manager apps.</p>
<p>The only things comes in my mind that create .nomedia file in sent folde... | I have a chat app where users share images/video/audio etc. I need organized my directory structure, where i need to keep sent files in separate sub-folder and hide it from gallery apps but user can able to locate with file manager apps. The only things comes in my mind that create .nomedia file in sent folders but in ... | java|android|mediastore|android-external-storage | 0 | 2022-09-12T08:04:41.813Z | 2,022 | 9 | 8 | 0 | 25 | 0 | 812 | 85 | 4 | 1 | true | true | false | false | false | false | zero |
73,686,244 | How to find out which 3rd party libraries depend on Support library? | <p>I want to migrate completely from Support library to AndroidX. I changed my own dependencies in my project. But I also want to not depend on 3dr party libraries that have deprecated dependencies. And I don't want to use <code>android.enableJetifier=true</code>, because it increases the build time.</p>
<p>So, how to ... | I want to migrate completely from Support library to AndroidX. I changed my own dependencies in my project. But I also want to not depend on 3dr party libraries that have deprecated dependencies. And I don't want to use android.enableJetifier=true , because it increases the build time. So, how to find out which 3rd par... | android|androidx | 0 | 2022-09-12T08:08:59.513Z | 2,022 | 9 | 8 | 0 | 12 | 0 | 359 | 68 | 2 | 0 | false | true | false | false | false | false | zero |
73,686,261 | Calling method / function from another stateful class to another stateful class not working correctly using Keys | <p>So I'm trying to use a method from class BlackJacScreen in another class called BJSettings, for the implementation I tried using keys to access it.</p>
<p>the method I'm trying to run is</p>
<pre><code>void setBal(int tempVal) async {
SharedPreferences prefs = await SharedPreferences.getInstance();
await prefs.setIn... | So I'm trying to use a method from class BlackJacScreen in another class called BJSettings, for the implementation I tried using keys to access it. the method I'm trying to run is [CODE] } so in my BJSettings page I created a globalkey variable [CODE] and a button with an onpressed [CODE] how will i be able to run the ... | android|flutter|dart|oop|flutter-layout | 0 | 2022-09-12T08:10:44.413Z | 2,022 | 9 | 8 | 0 | 27 | 1 | 840 | 112 | 5 | 3 | true | false | false | false | false | false | zero |
73,686,377 | No internet-connected popup is displayed in sign up while recording native mobile application using Jmeter | <p>No internet-connected popup is displayed in sign up while recording native mobile application using Jmeter</p>
<p><strong>2022-09-11 21:23:28,028 WARN o.a.j.p.h.p.Proxy: [40243] Problem with SSL certificate for url for 'infinitedata-pa.googleapis.com'? Ensure browser is set to accept the JMeter proxy cert: Receive... | No internet-connected popup is displayed in sign up while recording native mobile application using Jmeter 2022-09-11 21:23:28,028 WARN o.a.j.p.h.p.Proxy: [40243] Problem with SSL certificate for url for 'infinitedata-pa.googleapis.com'? Ensure browser is set to accept the JMeter proxy cert: Received fatal alert: certi... | android|jmeter|ssl-certificate|performance-testing|load-testing | 0 | 2022-09-12T08:23:06.137Z | 2,022 | 9 | 8 | 0 | 20 | 0 | 687 | 106 | 5 | 0 | false | true | false | false | false | false | zero |
73,686,386 | How to enter a website and scrape text/div name/button code and save it to variable - Android Java | <p>I am an newbie in android / java topic so thanks to you all who responds and helps me! :)</p>
<p>So I am looking for a specific function to my android app.</p>
<p>I want my app to enter website (even in the background, not in webview) and scrape (copy) button code (for example URL of the button) / OR specific text.<... | I am an newbie in android / java topic so thanks to you all who responds and helps me! :) So I am looking for a specific function to my android app. I want my app to enter website (even in the background, not in webview) and scrape (copy) button code (for example URL of the button) / OR specific text. Regarding text (a... | java|android|android-studio | 0 | 2022-09-12T08:23:59.983Z | 2,022 | 9 | 8 | 0 | 26 | 0 | 768 | 98 | 3 | 0 | false | true | false | false | false | false | zero |
73,686,442 | React native setup error (app:processDebugResources FAILED) | <p>I'm running a new project of react native on vs code and after installing all possible libraries and environment variables I'm still facing these issues If anyone can help me ill be very thankful to you.</p>
<p><a href="https://i.stack.imgur.com/GOm3g.png" rel="nofollow noreferrer">enter image description here</a></... | I'm running a new project of react native on vs code and after installing all possible libraries and environment variables I'm still facing these issues If anyone can help me ill be very thankful to you. enter image description here | java|android|react-native|gradle | 0 | 2022-09-12T08:30:11.230Z | 2,022 | 9 | 8 | 0 | 19 | 0 | 232 | 59 | 4 | 0 | false | true | false | false | false | false | zero |
73,686,455 | Action Required: Your app is not compliant with Google Play Policies. Issue found: Invalid Data safety form. What is the solution? | <p>My app update on the google play store is rejected and I got this mail from the google play store :</p>
<pre><code>Action Required: Your app is not compliant with Google Play Policies
Issue found: Invalid Data safety form
We reviewed your app’s Data safety form in Play Console and found discrepancies between it and ... | My app update on the google play store is rejected and I got this mail from the google play store : [CODE] Note: My app is built with flutter and I am using this plugin for getting the device id of the user, to make sure the user can log in to 2 devices at maximum. Please suggest a solution so that the app can be updat... | android|google-play|google-play-console|privacy-policy | 0 | 2022-09-12T08:31:02.897Z | 2,022 | 9 | 8 | 0 | 123 | 1 | 348 | 130 | 4 | 1 | true | false | false | false | false | false | zero |
73,686,489 | How to publish custom keyboard on playstore? Is it acceptable, do they allow this kind of apps on playstore? | <p>I am creating a custom keyboard using <a href="https://developer.android.com/reference/android/view/inputmethod/InputMethod" rel="nofollow noreferrer">InputMethod</a> method class.</p>
<p>My goal is to collect user's data with their consent, but is there a way to import default keyboard and just tweak some of the fu... | I am creating a custom keyboard using InputMethod method class. My goal is to collect user's data with their consent, but is there a way to import default keyboard and just tweak some of the functionalities or add some on top of the existing ones. In addition to that is it necessary to create the keyboard to collect us... | android|google-play|android-input-method | -1 | 2022-09-12T08:33:06.497Z | 2,022 | 9 | 8 | 0 | 15 | 0 | 553 | 108 | 3 | 0 | false | true | false | false | false | true | negative |
73,686,690 | I am getting error in my Logcat and my app is not running its crashing | <p>Everything below given are all the code to create a find the current location in Google Map. But it's not working, I am getting all the error and my app is not even opening</p>
<p>But in a YouTube tutorial this code worked for the person who made that vedio.</p>
<p>I have tried a lot to fix but can't understand why ... | Everything below given are all the code to create a find the current location in Google Map. But it's not working, I am getting all the error and my app is not even opening But in a YouTube tutorial this code worked for the person who made that vedio. I have tried a lot to fix but can't understand why it's not working.... | android|kotlin | 0 | 2022-09-12T08:49:50.937Z | 2,022 | 9 | 8 | 0 | 44 | 0 | 452 | 70 | 2 | 5 | true | true | false | false | false | false | zero |
73,686,694 | How can I control position of scroll in recyclerview | <p>i need when scroll to top position or first item show in the recyclerview do something like show toolbar and when scroll down or hide first item in recyclerview hide toolbar or do somethinghing</p> | i need when scroll to top position or first item show in the recyclerview do something like show toolbar and when scroll down or hide first item in recyclerview hide toolbar or do somethinghing | java|android|android-studio|kotlin | 0 | 2022-09-12T08:50:04.613Z | 2,022 | 9 | 8 | 0 | 22 | 2 | 193 | 52 | 4 | 0 | false | false | false | false | false | false | zero |
73,686,711 | FileSystemException: Cannot copy file (OS Error: No such file or directory, errno = 2) Flutter | <p>I am trying to copy a picked image file from the image_picker flutter plugin but I get the following exception in doing so. I am not getting why this exception is thrown. The copy method should create a file to the given destination path. Any help is appreciated.</p>
<p>My code</p>
<pre><code> XFile? pickedImage;
... | I am trying to copy a picked image file from the image_picker flutter plugin but I get the following exception in doing so. I am not getting why this exception is thrown. The copy method should create a file to the given destination path. Any help is appreciated. My code [CODE] Following exception is thrown: [CODE] app... | android|flutter | 0 | 2022-09-12T08:51:30.563Z | 2,022 | 9 | 8 | 0 | 33 | 1 | 361 | 94 | 2 | 3 | true | false | false | false | false | false | zero |
73,686,722 | React Native SQLite dump | <p>I have a mobile App uses SQLite Database, developed in <code>React Native</code>, I need to dump Database.</p>
<p>How can I dump the SQLite database in React Native?</p>
<p>Or How can I extract the SQLite database file in React Native?</p> | I have a mobile App uses SQLite Database, developed in React Native , I need to dump Database. How can I dump the SQLite database in React Native? Or How can I extract the SQLite database file in React Native? | android|ios|react-native|sqlite|dump | 0 | 2022-09-12T08:52:35.873Z | 2,022 | 9 | 8 | 0 | 28 | 0 | 209 | 24 | 5 | 0 | false | true | false | false | false | false | zero |
73,686,732 | android:autoLink not working sometime when don't have space between URL and text | <p>Currently, I'm stuck here, I think it is the default of android but I hope we have some config for it.</p>
<p>My problem is when don't have space between URL and text the link is display incorrect like in the image below. Someone can help me. Thank you so much.</p>
<pre><code> <TextView
android:id="@+id/... | Currently, I'm stuck here, I think it is the default of android but I hope we have some config for it. My problem is when don't have space between URL and text the link is display incorrect like in the image below. Someone can help me. Thank you so much. [CODE] | android|kotlin | 0 | 2022-09-12T08:53:26.497Z | 2,022 | 9 | 8 | 0 | 15 | 0 | 261 | 80 | 2 | 1 | true | true | false | false | false | false | zero |
73,686,762 | Get the input field text element using jsoup in andoid studio | <p>I want to get the input values from input fields using jsoup. I am getting different differnt errors.</p>
<pre><code><div class="woocommerce-MyAccount-content">
<div class="woocommerce-notices-wrapper"></div>
</code></pre>
<pre><code><p class="woocommerce-form-row wooco... | I want to get the input values from input fields using jsoup. I am getting different differnt errors. [CODE] [CODE] this is mu html code from this I want to fetch account first, last etc. using Jsoup in android studio. [CODE] I have this code written I don't know whether it is right code or not? Please help. | android|android-studio|jsoup|mobile-website | 0 | 2022-09-12T08:56:12.877Z | 2,022 | 9 | 8 | 0 | 15 | 0 | 309 | 61 | 4 | 3 | true | true | false | false | false | false | zero |
73,686,888 | Why the colors-night is not triggered while Splashscreen is running? | <p>I use the Core Splashscreen by Google in my app and that works perfectly. However, when it comes to a dark mode, the splash screen does not use trigger colors from colors.xml in values-night. Here is my implementation:</p>
<pre><code><application
android:name=".App"
android:allowBackup=&... | I use the Core Splashscreen by Google in my app and that works perfectly. However, when it comes to a dark mode, the splash screen does not use trigger colors from colors.xml in values-night. Here is my implementation: [CODE] Base theme: [CODE] Light theme: [CODE] Dark theme: [CODE] Light colors: [CODE] Dark colors: [C... | android|splash-screen | 0 | 2022-09-12T09:07:22.803Z | 2,022 | 9 | 9 | 0 | 24 | 0 | 649 | 68 | 2 | 7 | true | true | false | false | false | false | zero |
73,686,906 | Facebook app on Android will not open facebook page links in app | <p>I send out emails to customers with a link to the review section of my facebook page, but these link will not open in the facebook app on Android, it only comes up with the option to open in a browser...</p>
<p>Same problem with links pointing to the FB PAGE itsef, but the strange thing is that, links that point to ... | I send out emails to customers with a link to the review section of my facebook page, but these link will not open in the facebook app on Android, it only comes up with the option to open in a browser... Same problem with links pointing to the FB PAGE itsef, but the strange thing is that, links that point to a specific... | android|facebook|facebook-app-settings | 0 | 2022-09-12T09:09:04.330Z | 2,022 | 9 | 9 | 0 | 54 | 0 | 516 | 64 | 3 | 1 | true | true | false | false | false | false | zero |
73,686,962 | No supported devices found with name or id matching '00008030-00094D38363B802E' | <p>The flutter App is running successfully in all emulators on android, ios, and on android devices. Unfortunately not running anymore on my iPhone device. kindly help me with an <strong>Updated solution</strong> for this issue. I tried many suggestions and solutions on StackOverflow and GitHub but still the same issue... | The flutter App is running successfully in all emulators on android, ios, and on android devices. Unfortunately not running anymore on my iPhone device. kindly help me with an Updated solution for this issue. I tried many suggestions and solutions on StackOverflow and GitHub but still the same issue. I invalidate cache... | android|ios|flutter | 0 | 2022-09-12T09:14:15.663Z | 2,022 | 9 | 9 | 0 | 36 | 0 | 466 | 79 | 3 | 0 | false | true | false | false | false | false | zero |
73,686,969 | Flutter android testing stuck on installing build/app/outputs/flutter-apk/app.apk | <p>ive been developing an app, but ive only been testing it on ios, and im planning on launching it soon, however i have started to attempt to test it on android, and whenever i try to run on an android emulator it gets stuck at installing build/app/outputs/flutter-apk/app.apk...</p> | ive been developing an app, but ive only been testing it on ios, and im planning on launching it soon, however i have started to attempt to test it on android, and whenever i try to run on an android emulator it gets stuck at installing build/app/outputs/flutter-apk/app.apk... | android|flutter|android-studio|flutter-dependencies | 0 | 2022-09-12T09:14:39.940Z | 2,022 | 9 | 9 | 0 | 21 | 1 | 277 | 81 | 4 | 0 | false | false | false | false | false | false | zero |
73,687,001 | Migration script fails with IllegalStateException due to SHADOW_TABLE_NAME_SUFFIXES | <p>I've updated the Room version from <strong>2.4.3</strong> to <strong>2.5.0-alpha03</strong> and after the last migration, the JSON generated will once in a while fail with</p>
<pre><code>Caused by: java.lang.IllegalStateException: Cannot parse existing schema file: C:\mypath\com.example.MyDatabase\74.json. If you've... | I've updated the Room version from 2.4.3 to 2.5.0-alpha03 and after the last migration, the JSON generated will once in a while fail with [CODE] After checking out the differences between the last schema file 73.json and the new one, 74.json , apart from the changes I've wanted to make, there's this block: [CODE] insid... | kotlin|android-room|database-migration | 4 | 2022-09-12T09:17:37.897Z | 2,022 | 9 | 9 | 0 | 62 | 1 | 722 | 83 | 3 | 2 | true | false | false | false | false | false | low |
73,687,002 | Kotlin / Gradle DSL integration to manage dependency version variables | <h1>Kotlin / Gradle DSL integration to manage dependency version variables</h1>
<p>My question is about the best way to manage dependency version variables in IntelliJ Idea / Android Studio using Gradle
Kotlin DSL</p>
<p>The secondary purpose is to have the IDE perform version upgrades upon clicking the suggestion to c... | Kotlin / Gradle DSL integration to manage dependency version variables My question is about the best way to manage dependency version variables in IntelliJ Idea / Android Studio using Gradle Kotlin DSL The secondary purpose is to have the IDE perform version upgrades upon clicking the suggestion to change to newer vers... | android-studio|gradle|intellij-idea|gradle-kotlin-dsl | 1 | 2022-09-12T09:17:48.760Z | 2,022 | 9 | 9 | 0 | 23 | 0 | 2,053 | 70 | 4 | 8 | true | true | false | false | false | false | low |
73,687,064 | Horizontal RecyclerView - when selected item is out of viewport (scrolling left/right), change background of the most left/right item | <p>So I have a horizontal recyclerview that can be scrolled both left and right (around 50 items in it). When the selected item in the recycler view is out of viewport, because I scrolled right, I want to change the background of the most right item, as an indicator that selected item is on the right, and same if I scr... | So I have a horizontal recyclerview that can be scrolled both left and right (around 50 items in it). When the selected item in the recycler view is out of viewport, because I scrolled right, I want to change the background of the most right item, as an indicator that selected item is on the right, and same if I scroll... | android|kotlin|android-recyclerview | 0 | 2022-09-12T09:23:16.723Z | 2,022 | 9 | 9 | 0 | 20 | 1 | 457 | 133 | 3 | 0 | false | false | false | false | false | false | zero |
73,687,066 | Jetpack Compose - Cannot animate Scaffold's bottom bar's height | <p>I need to reveal some floating action buttons at the bottom of the screen when some other buttons, in a scrollable list, are no longer visible on the screen. Naturally, I feel like using <code>LazyColumn</code>, <code>AnimatedVisibility</code> and <code>Scaffold</code>'s bottom bar for this (I need the snackbar and ... | I need to reveal some floating action buttons at the bottom of the screen when some other buttons, in a scrollable list, are no longer visible on the screen. Naturally, I feel like using LazyColumn , AnimatedVisibility and Scaffold 's bottom bar for this (I need the snackbar and the screen's content be above the floati... | android|android-jetpack-compose | 0 | 2022-09-12T09:23:42.640Z | 2,022 | 9 | 9 | 0 | 143 | 3 | 582 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
73,687,109 | Inside a RecyclerView : how to keep a Favourite ImageButton switched On? (now it switches off in half a second) | <p>I have 2 buttons inside a holder inside a recyclerview: Red Button and Black Button
Ideally, I would like the Red favourite button to remain VISIBLE inside RecyclerView for each item I saved to Favourites - and black for normal items. The default button should appear black.</p>
<p>Everything works (saving into DAO t... | I have 2 buttons inside a holder inside a recyclerview: Red Button and Black Button Ideally, I would like the Red favourite button to remain VISIBLE inside RecyclerView for each item I saved to Favourites - and black for normal items. The default button should appear black. Everything works (saving into DAO the right i... | kotlin|android-recyclerview|onclick|android-databinding|android-imagebutton | 0 | 2022-09-12T09:27:37.237Z | 2,022 | 9 | 9 | 0 | 12 | 0 | 1,046 | 111 | 5 | 2 | true | true | false | false | false | false | zero |
73,687,138 | Firebase - Dynamic Link not working with Android 12 | <p>I am sending an authentication link to the user's email address using Android and Firebase.
Everything works as expected with Android 9, 10, and 11, with both release and debug versions. However, when tapping on the authentication link on devices running Android 12, the browsers (I tried with several browsers) redir... | I am sending an authentication link to the user's email address using Android and Firebase. Everything works as expected with Android 9, 10, and 11, with both release and debug versions. However, when tapping on the authentication link on devices running Android 12, the browsers (I tried with several browsers) redirect... | android|redirect|google-cloud-firestore|firebase-authentication|password-less | 0 | 2022-09-12T09:29:04.183Z | 2,022 | 9 | 9 | 0 | 38 | 1 | 527 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
73,687,150 | Can we do constructor injection in service class in android? | <p>here is my Service class</p>
<pre><code>class MyFirebaseMessagingService @Inject constructor(private val repository : Repository) :
FirebaseMessagingService() {....}
class Repository @Inject constructor(private val apiService: ApiService) {}
</code></pre>
<p>and ApiService is Interface</p>
<p>The problem is on ... | here is my Service class [CODE] and ApiService is Interface The problem is on the first launch of app. This app is crashing with below message [CODE] But after this crash, on second launch of app , this project works fine without crash, what is the root cause ? | android|kotlin|dagger | 1 | 2022-09-12T09:29:36.480Z | 2,022 | 9 | 9 | 0 | 43 | 1 | 261 | 60 | 3 | 2 | true | false | false | false | false | false | low |
73,687,240 | Hello, I am receiving a json string, I need to separate data by class properties | <p>I am receiving a json string, I need to separate data by class properties. The problem is that I can only know part of the key. For example, the key is 12345@666.777, I only know @666.777. Is it possible to somehow use regular expressions or look for values by part of the key?</p> | I am receiving a json string, I need to separate data by class properties. The problem is that I can only know part of the key. For example, the key is 12345@666.777, I only know @666.777. Is it possible to somehow use regular expressions or look for values by part of the key? | android|json|kotlin|retrofit2 | 1 | 2022-09-12T09:37:47.853Z | 2,022 | 9 | 9 | 0 | 26 | 1 | 277 | 80 | 4 | 0 | false | false | false | false | false | false | low |
73,687,320 | Flutter while refreshToken getting old refresh token | <p>I making refresh token with dio interceptors. Its working well but while i have multiple request in same time its trying using old refresh token. What can i do for fix it ? I tried use QueuedInterceptorsWrapper too but it has same result. Let me show you my codes first :</p>
<p><strong>My Interceptor on constructor.... | I making refresh token with dio interceptors. Its working well but while i have multiple request in same time its trying using old refresh token. What can i do for fix it ? I tried use QueuedInterceptorsWrapper too but it has same result. Let me show you my codes first : My Interceptor on constructor. [CODE] Refresh to... | android|ios|flutter|mobile|token | 0 | 2022-09-12T09:44:26.907Z | 2,022 | 9 | 9 | 0 | 35 | 0 | 801 | 52 | 5 | 2 | true | true | false | false | false | false | zero |
73,687,351 | How do I save files to device storage when the app is installed? | <p>is there a way to write all the images in the drawables to the device storage when the app is installed? I don’t want to have to check everytime the main activity is created</p> | is there a way to write all the images in the drawables to the device storage when the app is installed? I don’t want to have to check everytime the main activity is created | android|kotlin | -1 | 2022-09-12T09:47:21.923Z | 2,022 | 9 | 9 | 0 | 30 | 1 | 173 | 64 | 2 | 0 | false | false | false | false | false | true | negative |
73,687,420 | Does Locale.getDefault().getLanguages() method needs location permission? | <p>I am working on one application that uses Adobe Analytics and I send language settings via <code>Locale.getDefault().getLanguage()</code> method. I have received a warning from Google Play service that I am using the location of user and I couldn't find anything else except this one. Is it possible that this method ... | I am working on one application that uses Adobe Analytics and I send language settings via Locale.getDefault().getLanguage() method. I have received a warning from Google Play service that I am using the location of user and I couldn't find anything else except this one. Is it possible that this method is using user's ... | android|permissions|location | 1 | 2022-09-12T09:51:53.947Z | 2,022 | 9 | 9 | 0 | 19 | 0 | 329 | 73 | 3 | 0 | false | true | false | false | false | false | low |
73,687,440 | How to fake ViewModel in android for unit tests | <p>I need to write the test for Fragment and I need it takes a data from fake repository. I created fake Fragment for test with val fragmentScenario = launchFragmentInContainer and initialized repository with a fake repository but if I just use real view model it is try to take a data from real repository. So I guess ... | I need to write the test for Fragment and I need it takes a data from fake repository. I created fake Fragment for test with val fragmentScenario = launchFragmentInContainer and initialized repository with a fake repository but if I just use real view model it is try to take a data from real repository. So I guess I ha... | android|unit-testing|kotlin|fragment|viewmodel | 0 | 2022-09-12T09:53:29.130Z | 2,022 | 9 | 9 | 0 | 19 | 0 | 447 | 47 | 5 | 1 | true | true | false | false | false | false | zero |
73,687,505 | Is there a way to get R.drawable.filename to change using a variable for filename? | <p>So I am creating a data class in kotlin that I would like to have a reference to a drawable resource, but there are ~40 different birds that the data class could be. What I am trying to do is have different birds that then will show a different picture depending on a bird number.</p>
<p>for example:</p>
<pre><code>v... | So I am creating a data class in kotlin that I would like to have a reference to a drawable resource, but there are ~40 different birds that the data class could be. What I am trying to do is have different birds that then will show a different picture depending on a bird number. for example: [CODE] Or is there a way t... | android-studio|kotlin | -1 | 2022-09-12T09:59:14.090Z | 2,022 | 9 | 9 | 0 | 21 | 1 | 599 | 82 | 2 | 3 | true | false | false | false | false | true | negative |
73,687,590 | Handle android device that doesn't have the DO not Disturb permission accessible? | <p>So I have an app that needs do not disturb permissions, which I get like this:</p>
<pre><code>NotificationManager manager = (NotificationManager) getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
if (manager != null && manager.isNotificationPolicyAccessGranted())
</code></pre>
<p>But on some d... | So I have an app that needs do not disturb permissions, which I get like this: [CODE] But on some devices (Alcatel for instance) DND permissions aren't available. If a device doesn't have DND permissions I'd like to ignore them, if it does I'd like to require them for a certain feature. Is there any way to programmatic... | android|permissions|android-permissions|do-not-disturb | 1 | 2022-09-12T10:06:46.087Z | 2,022 | 9 | 10 | 0 | 25 | 0 | 583 | 81 | 4 | 1 | true | true | false | false | false | false | low |
73,687,614 | Reduce lag of PlatformView on flutter android | <p>How to reduce the lag of PlatformView while scrolling? I know PlatformView's are heavy and in the doc they say what to do about it but there isn't doc about how to do it here is what the doc says about performance and here is a video of lag. I used ExoPlayer on the PlatformView</p>
<p><a href="https://i.stack.imgur.... | How to reduce the lag of PlatformView while scrolling? I know PlatformView's are heavy and in the doc they say what to do about it but there isn't doc about how to do it here is what the doc says about performance and here is a video of lag. I used ExoPlayer on the PlatformView https://cdn.discordapp.com/attachments/42... | flutter|flutter-android | 0 | 2022-09-12T10:08:30.473Z | 2,022 | 9 | 10 | 0 | 16 | 0 | 378 | 45 | 2 | 0 | false | true | false | false | false | false | zero |
73,687,622 | App Lock not opening the lock screen overlay in various devices | <p>I am building an android app lock which is working but in only one device having android 12 but my target SDK version is 30 which is Android 11 and it is not working on Android 11 and 10 it is working perfectly on one device but not working on other devices</p>
<p><strong>Update</strong> : Working on Android 10 and ... | I am building an android app lock which is working but in only one device having android 12 but my target SDK version is 30 which is Android 11 and it is not working on Android 11 and 10 it is working perfectly on one device but not working on other devices Update : Working on Android 10 and 11 but lock acitivity not o... | java|android|applocker | 0 | 2022-09-12T10:09:18.823Z | 2,022 | 9 | 10 | 0 | 25 | 0 | 572 | 63 | 3 | 3 | true | true | false | false | false | false | zero |
73,687,676 | how to display each array item to recyclerview in kotin (FireStore) | <p>Database</p>
<p><a href="https://i.stack.imgur.com/0jXnz.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>output</p>
<p><a href="https://i.stack.imgur.com/kgIci.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>it only showing the last entry in array i wann show each entry<... | Database enter image description here output enter image description here it only showing the last entry in array i wann show each entry Adapter code [CODE] } if i use holder.comment.text = comments.list.toString() it will display all array items in single recyclerview block data class [CODE] fragment [CODE] } i want t... | android|firebase|kotlin|google-cloud-firestore | 1 | 2022-09-12T10:13:56.913Z | 2,022 | 9 | 10 | 0 | 33 | 1 | 428 | 67 | 4 | 3 | true | false | false | false | false | false | low |
73,687,707 | "The plugin `tflite` uses a deprecated version of the Android embedding." | <p>My flutter based android application is not working due to this one error, I have been trying since many days but no solution found.
Kindly help!</p>
<p>My build.gradle file has error on line 24 which looks like:</p>
<pre><code>version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
jcenter... | My flutter based android application is not working due to this one error, I have been trying since many days but no solution found. Kindly help! My build.gradle file has error on line 24 which looks like: [CODE] | android|flutter | -2 | 2022-09-12T10:15:30.427Z | 2,022 | 9 | 10 | 0 | 48 | 0 | 212 | 73 | 2 | 1 | true | true | false | false | false | true | negative |
73,687,756 | Retrofit and coroutines with the PokeApi don't work for me | <p>I try to make a recycler view with the name and picture of the pokemon, but it doesn't work, I don't understand why, the requests are not done because the pokemon list is never filled. I make a loop for calls because what I want is the name and picture of the pokemon, because when I ask for a list of pokemon objects... | I try to make a recycler view with the name and picture of the pokemon, but it doesn't work, I don't understand why, the requests are not done because the pokemon list is never filled. I make a loop for calls because what I want is the name and picture of the pokemon, because when I ask for a list of pokemon objects on... | android|kotlin|retrofit2|kotlin-coroutines | 1 | 2022-09-12T10:20:17.497Z | 2,022 | 9 | 10 | 0 | 26 | 1 | 611 | 58 | 4 | 3 | true | false | false | false | false | false | low |
73,687,924 | Kotlin error: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1 | <p>Seems this has been asked a few times, but the questions with solutions are seemingly outdated.</p>
<p>Here are my build.gradle files... any idea what I'm meant to be changing? (Complete Kotlin novice here, in case that wasn't obvious)</p>
<p>Build.gradle (Module)</p>
<pre><code> plugins {
id 'com.android.app... | Seems this has been asked a few times, but the questions with solutions are seemingly outdated. Here are my build.gradle files... any idea what I'm meant to be changing? (Complete Kotlin novice here, in case that wasn't obvious) Build.gradle (Module) [CODE] Build.gradle (Project) [CODE] Any help would be greatly apprec... | android|kotlin | 0 | 2022-09-12T10:34:27.800Z | 2,022 | 9 | 10 | 0 | 33 | 0 | 325 | 144 | 2 | 2 | true | true | false | false | false | false | zero |
73,688,001 | Is it okay to use/invoke new Handler() in a loop? | <p>I am using <code>new Handler().postDelayed</code> to set a delay when reloading an ad when the previous request of the ad has failed in the <code>requestNewInterstitial</code> method. I am wondering if invoking/creating many new Handlers would be okay as in my loop the new Handler line of code could be run up to 5 t... | I am using new Handler().postDelayed to set a delay when reloading an ad when the previous request of the ad has failed in the requestNewInterstitial method. I am wondering if invoking/creating many new Handlers would be okay as in my loop the new Handler line of code could be run up to 5 times. My question is, if late... | java|android|android-studio|admob|handler | -1 | 2022-09-12T10:41:39.480Z | 2,022 | 9 | 10 | 0 | 39 | 1 | 655 | 49 | 5 | 1 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.