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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,794,715 | How can I use findViewById method inside AsyncTask? | <p>I have an AsyncTask to execute while trying to connect the phone to a Bluetooth device, I want to change an icon from a button if it connects successfully</p>
<p>(I'm new to Kotlin programming)</p>
<p><a href="https://i.stack.imgur.com/ucglB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ucglB.pn... | I have an AsyncTask to execute while trying to connect the phone to a Bluetooth device, I want to change an icon from a button if it connects successfully (I'm new to Kotlin programming) I would be very grateful if anyone could help. | android|kotlin|android-asynctask|findviewbyid | 1 | 2022-06-29T01:12:00.663Z | 2,022 | 6 | 1 | 2 | 39 | 3 | 233 | 51 | 4 | 0 | false | false | false | false | false | false | low |
72,794,723 | Android Workmanager, expedited work show notification even if app is already in foreground | <p>Using the Setexpedited() function in Workmanager ( 2.7 >), is useful to start a persistent work that last even if the user close the app and/or put it in background.</p>
<p>The problem is that it needs to show a notification everytime the work starts, even when the app is already active and in foreground, so a no... | Using the Setexpedited() function in Workmanager ( 2.7 >), is useful to start a persistent work that last even if the user close the app and/or put it in background. The problem is that it needs to show a notification everytime the work starts, even when the app is already active and in foreground, so a notification sh... | android|android-workmanager | 0 | 2022-06-29T01:13:27.260Z | 2,022 | 6 | 1 | 2 | 55 | 1 | 445 | 90 | 2 | 0 | false | false | false | false | false | false | zero |
72,794,736 | Room is not binding value properly to model class | <p>In Below Query budget_iD and budget is not binded to budgetID and budget variables</p>
<pre><code>@Query("select post.budget_id as budgetID,cat.category_id as categoryId,category_name as categoryName, ifnull(post.budget,0) as budget from category cat left join (select category_id, budget_id,budget from tbl_cate... | In Below Query budget_iD and budget is not binded to budgetID and budget variables [CODE] But when I change the query like below it works fine. [CODE] The first query is running properly in app Inspection. What is the reason behind that? My BudgetCategoryQuery class [CODE] | android|sqlite|android-room|roomdb | 0 | 2022-06-29T01:16:12.453Z | 2,022 | 6 | 1 | 2 | 17 | 0 | 273 | 49 | 4 | 3 | true | true | false | false | false | false | zero |
72,794,823 | Error in database does not see column OS error - 11:Try again | <p>I ran into such a problem, at the beginning of creating the application I made a database, then I needed to refer to it and I get the error "no CollectionId column", changing the version of the database did not help. Please let me know what could be the problem Thank you in advance</p>
<p>DB</p>
<pre><code... | I ran into such a problem, at the beginning of creating the application I made a database, then I needed to refer to it and I get the error "no CollectionId column", changing the version of the database did not help. Please let me know what could be the problem Thank you in advance DB [CODE] Location of error... | java|android|sqlite | 1 | 2022-06-29T01:31:35.197Z | 2,022 | 6 | 1 | 2 | 35 | 0 | 356 | 61 | 3 | 4 | true | true | false | false | false | false | low |
72,794,881 | Verify that at least one of the three TextView is written | <p>hi everyone I hello everyone I have an application
with three TextView in a fragment and I want at least one of the three TextView is never empty, that is, at least one of the three extview must always be written.
My code is:</p>
<pre><code>TextView comment_text = getActivity().findViewById(R.id.addtext_comment);
Te... | hi everyone I hello everyone I have an application with three TextView in a fragment and I want at least one of the three TextView is never empty, that is, at least one of the three extview must always be written. My code is: [CODE] Now my code, if I write in one of the three textView, it returns the alert "please... | java|android|alert | 0 | 2022-06-29T01:41:59.977Z | 2,022 | 6 | 1 | 2 | 25 | 1 | 625 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
72,794,913 | Use ViewPropertyAnimator to animate a fade in and out of the LottieAnimationView. Does it take effect for each layer instead of the whole? | <p>I'm using Lottie to load an animation and I want to set a fade effect for the LottieAnimationViewbelow.But it seems to be the transparency effect of each layer. I didn't find the relevant explanation and method</p>
<p>Files:</p>
<p><a href="https://lottiefiles.com/110855-cube-animation" rel="nofollow noreferrer">htt... | I'm using Lottie to load an animation and I want to set a fade effect for the LottieAnimationViewbelow.But it seems to be the transparency effect of each layer. I didn't find the relevant explanation and method Files: https://lottiefiles.com/110855-cube-animation https://lottiefiles.com/108322-circle-chart Code: [CODE]... | android|android-animation|lottie | 0 | 2022-06-29T01:48:48.033Z | 2,022 | 6 | 1 | 2 | 29 | 0 | 443 | 138 | 3 | 1 | true | true | false | false | false | false | zero |
72,794,943 | Using one activity for multiple Fragments, how many ViewModels should I use | <p>I've got an app that only uses one ViewModel to handle GroceryItem.kt items from local Room database. I'm planning on adding multiple fragments using bottom navigation with NavGraph and want to include an additional ViewModel class to obtain Recipe.kt items from an API using Retrofit.</p>
<p>I've read from online th... | I've got an app that only uses one ViewModel to handle GroceryItem.kt items from local Room database. I'm planning on adding multiple fragments using bottom navigation with NavGraph and want to include an additional ViewModel class to obtain Recipe.kt items from an API using Retrofit. I've read from online that I need ... | android|android-fragments|mvvm|viewmodel | 0 | 2022-06-29T01:54:21.230Z | 2,022 | 6 | 1 | 2 | 45 | 0 | 448 | 75 | 4 | 0 | false | true | false | false | false | false | zero |
72,795,201 | Why is onCreate() method not being called? | <p>I made a new class and I wanted to make an OnClickListener for a button but I notice that the onCreate wasn't being called. Any help is appreciated.</p>
<pre><code>public class BedtimeBottomSheet extends Activity {
private static final String TAG = "BedtimeBottomSheet";
@Override
protected v... | I made a new class and I wanted to make an OnClickListener for a button but I notice that the onCreate wasn't being called. Any help is appreciated. [CODE] | java|android|android-studio|oncreate | 0 | 2022-06-29T02:41:18.497Z | 2,022 | 6 | 2 | 2 | 50 | 1 | 155 | 42 | 4 | 1 | true | false | false | false | false | false | zero |
72,795,328 | How to solve the error when building the android kernel? | <p>make -j5</p>
<pre><code>drivers/gpu/mali400/Kconfig:12:error: recursive dependency detected!
drivers/gpu/mali400/Kconfig:12: choice <choice> contains symbol MALI400
drivers/gpu/mali400/r4p0/Kconfig:1: symbol MALI400 depends on <choice>
</code></pre>
<hr />
<p>How can I solve this problem?</p>
<p>Here is ... | make -j5 [CODE] How can I solve this problem? Here is the content of Kconfig: [CODE] Does it need to be corrected somehow? How? | android|linux|build|linux-kernel|android-kernel | 0 | 2022-06-29T03:03:52.440Z | 2,022 | 6 | 3 | 2 | 84 | 0 | 127 | 56 | 5 | 2 | true | true | false | false | false | false | zero |
72,795,363 | unable to create multiple NotificationCompat.Builders | <p>In our android app, we are trying to send different two types of notifications, one that stays for a longer time and uses .setFullScreenIntent parameter and one that is without setFullscreenIntent. So we created two notification compat builder vide code as given hereunder:</p>
<pre><code>NotificationCompat.Builder n... | In our android app, we are trying to send different two types of notifications, one that stays for a longer time and uses .setFullScreenIntent parameter and one that is without setFullscreenIntent. So we created two notification compat builder vide code as given hereunder: [CODE] And now in Firebase messaging post proc... | android|push-notification | 0 | 2022-06-29T03:10:10.453Z | 2,022 | 6 | 3 | 2 | 20 | 0 | 717 | 53 | 2 | 3 | true | true | false | false | false | false | zero |
72,795,401 | uninstall app fully still appears the error INSTALL_FAILED_VERSION_DOWNGRADE when I install my app | <p>background:</p>
<pre><code>1. I have installed the APK with the 1.1.30 version built by flutter.
2. I want to install it back to 1.1.29
3. I uninstall the 1.1.30 app.
4. I install the 1.1.29 package, and it will throw the error package appears to be invalid.
5. I try to use ADB to install it, but the error will cha... | background: [CODE] can someone explain why this happened? is the app can not uninstall completely? thanks. also refer to this link: Error: ADB exited with exit code 1 Failure [INSTALL_FAILED_VERSION_DOWNGRADE] it seems the same to me who still can not install it even though the app was removed. some information added: ... | android|flutter|apk | 0 | 2022-06-29T03:14:32.490Z | 2,022 | 6 | 3 | 2 | 126 | 0 | 472 | 98 | 3 | 1 | true | true | false | false | false | false | zero |
72,795,408 | Android SMS receiver call twice | <p>I would like to notify the incoming sms message. I implemented the <code>BroadcastReceiver</code> for SMS receiver. And I also implemented the service for <code>BOOT_COMPLETED</code> action. Because the receiver cannot be registered if the device is reboot. When I launch the apps, that only call <code>onReceiver</co... | I would like to notify the incoming sms message. I implemented the BroadcastReceiver for SMS receiver. And I also implemented the service for BOOT_COMPLETED action. Because the receiver cannot be registered if the device is reboot. When I launch the apps, that only call onReceiver once. But I reboot the device and star... | java|android|service|receiver | 0 | 2022-06-29T03:15:46.323Z | 2,022 | 6 | 3 | 2 | 33 | 0 | 731 | 31 | 4 | 4 | true | true | false | false | false | false | zero |
72,795,413 | Export excel, pdf from android webview | <p>When i export execel or pdf file from android webview, file downloading with empty data. where is my mistake? I am using following code:</p>
<pre><code> //Runtime External storage permission for saving download files
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
i... | When i export execel or pdf file from android webview, file downloading with empty data. where is my mistake? I am using following code: [CODE] | webview|android-webview | 0 | 2022-06-29T03:16:31.473Z | 2,022 | 6 | 3 | 2 | 38 | 0 | 143 | 38 | 2 | 1 | true | true | false | false | false | false | zero |
72,795,480 | How to fix the error : 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference | <p>I am making Chat application and receive error showing that:</p>
<pre><code>enter code here java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference
at com.tonyapp.chatroom.Adapter.UserAdapter$2.onDataChange(User... | I am making Chat application and receive error showing that: [CODE] I checked in my userAdapter class and below code I wrote from line 150 to line 164 [CODE] I try to figure out but nothing fix. Can anyone help me solve this error please? thanks you all | java|android|firebase-realtime-database|firebase-authentication|logout | 0 | 2022-06-29T03:26:05.267Z | 2,022 | 6 | 3 | 2 | 57 | 1 | 253 | 115 | 5 | 2 | true | false | false | false | false | false | zero |
72,795,574 | How Can I Implement Wide Angle Camera using CameraX and Camera2 | <p>I want to add Wide Angle Camera's result in MLKit vision library. I have tried using Camera2 but unable to integrate it in Live Image Analysis and in CameraX can't find that much wide angle.
Can anyone suggest how can I implement it.</p> | I want to add Wide Angle Camera's result in MLKit vision library. I have tried using Camera2 but unable to integrate it in Live Image Analysis and in CameraX can't find that much wide angle. Can anyone suggest how can I implement it. | android|camera|android-camera2|android-camerax | 1 | 2022-06-29T03:44:55.207Z | 2,022 | 6 | 3 | 2 | 62 | 0 | 233 | 63 | 4 | 0 | false | true | false | false | false | false | low |
72,795,578 | Android Jitsi SDK: throws exception "Failed to load config" | <p>On Android API32, I am using Jitsi SDK 5.1.0. While connecting to meeting on Jitsi server (not our custom server), it throws following exception. Please check and let me know what might be wrong. Appreciate your help.</p>
<h2>Exception stacktrace</h2>
<pre><code>Failed to load config from https://meet.jit.si/config.... | On Android API32, I am using Jitsi SDK 5.1.0. While connecting to meeting on Jitsi server (not our custom server), it throws following exception. Please check and let me know what might be wrong. Appreciate your help. Exception stacktrace [CODE] Conference Options snippet [CODE] | android|jitsi-meet | 0 | 2022-06-29T03:45:26.820Z | 2,022 | 6 | 3 | 2 | 52 | 1 | 279 | 59 | 2 | 2 | true | false | false | false | false | false | zero |
72,795,645 | android service crash behavior | <p>I have some questions about android service crash:</p>
<p>1、A app is running in the foreground; If activity and service run in the same process, activity don't call service . if service crashes , will the app crash?</p>
<p>2、A app is running in the foreground;If activity run in one process, the service run in the an... | I have some questions about android service crash: 1、A app is running in the foreground; If activity and service run in the same process, activity don't call service . if service crashes , will the app crash? 2、A app is running in the foreground;If activity run in one process, the service run in the another process own... | android|crash | 0 | 2022-06-29T03:57:33.760Z | 2,022 | 6 | 3 | 2 | 42 | 1 | 834 | 30 | 2 | 0 | false | false | false | false | false | false | zero |
72,795,652 | how to know whether the app currently has the 'All Files Access' permission or not. Android 11 | <p>but how to validate if the app currently has the 'All Files Access' permission or not. i use this method to ask permission.</p>
<pre><code>Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);
intent.addCategory("android.intent.category.DEFAULT");
inten... | but how to validate if the app currently has the 'All Files Access' permission or not. i use this method to ask permission. [CODE] Please help me to fix this :( | java|android|android-studio|native | 1 | 2022-06-29T03:59:12.910Z | 2,022 | 6 | 3 | 2 | 86 | 2 | 160 | 94 | 4 | 1 | true | false | false | false | false | false | low |
72,795,782 | How to go back to particular fragment from activity on back press | <p>I have a main activity which has a main fragment - Fragment A and from that Fragment A on button click I am calling another fragment-Fragment B and that fragmentB have switch statement which calls different scenarios. One scenario is starting a kotlin activity-ActivityA.kt but in ActivityA.kt, there is a back arrow ... | I have a main activity which has a main fragment - Fragment A and from that Fragment A on button click I am calling another fragment-Fragment B and that fragmentB have switch statement which calls different scenarios. One scenario is starting a kotlin activity-ActivityA.kt but in ActivityA.kt, there is a back arrow in ... | android-fragments|fragment|fragment-backstack | 0 | 2022-06-29T04:24:08.903Z | 2,022 | 6 | 4 | 2 | 11 | 0 | 468 | 65 | 3 | 0 | false | true | false | false | false | false | zero |
72,795,793 | What happens if I use `takePersistableUriPermission` for files stored in the cloud but cached locally? | <p>Basically, I'm trying to let users choose pictures from their phone's image gallery to use as background images in my app.</p>
<p>I'm considering using <code>takePersistableUriPermission</code>. I'm wondering how this works with files that are cached locally, but exist on a remote server.</p>
<p>For example, the Goo... | Basically, I'm trying to let users choose pictures from their phone's image gallery to use as background images in my app. I'm considering using takePersistableUriPermission . I'm wondering how this works with files that are cached locally, but exist on a remote server. For example, the Google Photos app permanently st... | android|cloud|storage|android-contentprovider|android-contentresolver | 1 | 2022-06-29T04:26:33.927Z | 2,022 | 6 | 4 | 2 | 52 | 0 | 1,026 | 102 | 5 | 1 | true | true | false | false | false | false | low |
72,795,797 | Could not find aapt2-proto-7.0.0-beta04-7396180.jar | <p>I was working on Flutter project when suddenly this problem displayed:</p>
<pre><code>Launching lib\main.dart on RMX3031 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_plugin_android_lifecycle:extractDebugAnnot... | I was working on Flutter project when suddenly this problem displayed: [CODE] I searched a lot but there isn't any question on this Error. android/build.gradle: [CODE] android/app/build.gradle: [CODE] I could download aapt2-proto-7.0.0-beta04-7396180.jar Manually But how could I add it to my flutter Project or to the g... | android|flutter|android-studio|gradle|build.gradle | 2 | 2022-06-29T04:27:18.650Z | 2,022 | 6 | 4 | 2 | 54 | 1 | 393 | 51 | 5 | 3 | true | false | false | false | false | false | low |
72,795,864 | How to run my module if the same file exists | <p>libMain -> lib Module</p>
<p>app - > application module</p>
<p>libMain in com.ykchoi.librarymodule.mainActivity(a) If the file is in the following place</p>
<p>app in com.ykchoi.librarymodule.mainActivity(b) If the file is in the following place</p>
<p>How to run app module (b) if the same file exists ?</p... | libMain -> lib Module app - > application module libMain in com.ykchoi.librarymodule.mainActivity(a) If the file is in the following place app in com.ykchoi.librarymodule.mainActivity(b) If the file is in the following place How to run app module (b) if the same file exists ? | android|module | 0 | 2022-06-29T04:40:51.137Z | 2,022 | 6 | 4 | 2 | 20 | 0 | 276 | 44 | 2 | 0 | false | true | false | false | false | false | zero |
72,795,944 | how to change the background color of my listview based on a given data as a parameter in android | <p>I have an android application that basically scan a barcode. I have a lists of items and I would like to change a color of my list once the item has been scanned.</p>
<p>Please find the image below for reference.</p>
<p><a href="https://i.stack.imgur.com/M1GXQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack... | I have an android application that basically scan a barcode. I have a lists of items and I would like to change a color of my list once the item has been scanned. Please find the image below for reference. I would like to change a background color of item to red only if the item remaining is zero. There is a item remai... | java|android|android-studio|arraylist|android-listview | 0 | 2022-06-29T04:54:19.840Z | 2,022 | 6 | 4 | 2 | 31 | 1 | 384 | 97 | 5 | 0 | false | false | false | false | false | false | zero |
72,795,959 | Offline sensitive document storage for users | <p>I have to implement a local secure offline file storage for users where users Can either download files from our other feature(kinda like mail box) or put a file from mobile to our storage. At the end the user should be able to share those files via intents.
Ofc there should be some management like renaming, deletin... | I have to implement a local secure offline file storage for users where users Can either download files from our other feature(kinda like mail box) or put a file from mobile to our storage. At the end the user should be able to share those files via intents. Ofc there should be some management like renaming, deleting, ... | android|database|security|storage|document | 0 | 2022-06-29T04:56:25.473Z | 2,022 | 6 | 4 | 2 | 49 | 0 | 986 | 44 | 5 | 0 | false | true | false | false | false | false | zero |
72,796,014 | How do I use FlavorDimensions | <p>I am creating a dummy app for testing purposes. The Android app crashes everytime I use flavorDimensions. Please help</p>
<pre><code>flavorDimensions "tier"
productFlavor {
dev {
dimension "tier"
minSdkVersion rootProject.ext.minSdkVersion
... | I am creating a dummy app for testing purposes. The Android app crashes everytime I use flavorDimensions. Please help [CODE] This is the error I got [CODE] Any help would be appreciated. | android|react-native|kotlin | 0 | 2022-06-29T05:05:37.023Z | 2,022 | 6 | 5 | 2 | 28 | 0 | 186 | 29 | 3 | 2 | true | true | false | false | false | false | zero |
72,796,063 | My Android Application misbehaves it is showing spread color like ink on the paper anyone knows why so? | <p>I have not use black bg in my whole application</p>
<p><a href="https://i.stack.imgur.com/7xY1d.jpg" rel="nofollow noreferrer">First it shows like this which is expected</a></p>
<p><a href="https://i.stack.imgur.com/3mV41.jpg" rel="nofollow noreferrer">after clicking floating action button bg color of listview chang... | I have not use black bg in my whole application First it shows like this which is expected after clicking floating action button bg color of listview changes but then it shows like this after action | android-layout|android-xml | 0 | 2022-06-29T05:12:59.420Z | 2,022 | 6 | 5 | 2 | 12 | 0 | 198 | 103 | 2 | 0 | false | true | false | false | false | false | zero |
72,796,083 | Where can I store private images for my app (outside of internal storage)? | <p><strong>Is there a place where I can store and manage my own images outside of internal storage?</strong> I don't want other apps to be able to see or access these images. Should I use external storage? Does such a place exist in the new <code>MediaStore</code>? It's fine if they're deleted when the app is deleted.<... | Is there a place where I can store and manage my own images outside of internal storage? I don't want other apps to be able to see or access these images. Should I use external storage? Does such a place exist in the new MediaStore ? It's fine if they're deleted when the app is deleted. This solution needs to support A... | android|file|local-storage|storage|android-contentprovider | 0 | 2022-06-29T05:15:37.597Z | 2,022 | 6 | 5 | 2 | 164 | 5 | 1,731 | 74 | 5 | 0 | false | false | false | false | false | false | zero |
72,796,115 | java.io.IOException: Unexpected end of stream on com.android.okhttp.Address@ | <p>I have an native android app. For Api, we have used soap web service. My method kind of look like this-</p>
<pre><code>public String callApi(String a,
String b,
String c) {
Object objLoginResponse = null;
String response = "";
try... | I have an native android app. For Api, we have used soap web service. My method kind of look like this- [CODE] Sometimes this line >>"androidHttpTransport.call(SOAP_ACTION, envelope);" throws the above mentioned error and sometimes it doesn't. Can Anyone tell me what is causing the error or how to solve it. | android|api|soap | 1 | 2022-06-29T05:19:55.043Z | 2,022 | 6 | 5 | 2 | 84 | 0 | 318 | 76 | 3 | 1 | true | true | false | false | false | false | low |
72,796,143 | flutter : value not passed to the previous screen and is shown null while using constructor | <p>Basically, I have two classes Register and AddUser. I want to navigate value from the AddUser page to the RegisterPage but I am not getting any values despite using the constructor and getting null value while debugging.
User First lands on the Register page where there is floatingAction button and it navigates to t... | Basically, I have two classes Register and AddUser. I want to navigate value from the AddUser page to the RegisterPage but I am not getting any values despite using the constructor and getting null value while debugging. User First lands on the Register page where there is floatingAction button and it navigates to the ... | list|flutter|android-studio|dart|constructor | 1 | 2022-06-29T05:22:39.483Z | 2,022 | 6 | 5 | 2 | 48 | 3 | 471 | 91 | 5 | 1 | true | false | false | false | false | false | low |
72,796,215 | How to use Logical AND in cloud firestore for ANDROID? | <p>Hi I would like to use logical AND in the firebase firestore query and add the particular count to the array object. I would like to get the count according to my logical and condition but the query which I wrote was giving me the whole count for m=obj.getUid().More over the value "c" is not getting added ... | Hi I would like to use logical AND in the firebase firestore query and add the particular count to the array object. I would like to get the count according to my logical and condition but the query which I wrote was giving me the whole count for m=obj.getUid().More over the value "c" is not getting added to ... | java|android|firebase|google-cloud-firestore|android-activity | 0 | 2022-06-29T05:31:40.273Z | 2,022 | 6 | 5 | 2 | 49 | 1 | 507 | 54 | 5 | 1 | true | false | false | false | false | false | zero |
72,796,265 | I am not able to read logcat in android studio after update new version | <p>After Update of android studio chipmunk | 2021.2.1 Patch 1 I am not able to debug my application due to * format. I am attaching logcat screenshot.</p>
<p><a href="https://i.stack.imgur.com/eSiLE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eSiLE.png" alt="After Update of android studio chipmun... | After Update of android studio chipmunk | 2021.2.1 Patch 1 I am not able to debug my application due to * format. I am attaching logcat screenshot. | android|android-studio|logcat | 0 | 2022-06-29T05:38:51.863Z | 2,022 | 6 | 5 | 2 | 122 | 0 | 147 | 71 | 3 | 0 | false | true | false | false | false | false | zero |
72,796,308 | How create a scrollable levels map for a game in snake form that goes from level 1 to level 1000 | <p>Here is the UI I want <a href="https://i.stack.imgur.com/sUtG0.png" rel="nofollow noreferrer">enter image description here</a></p> | Here is the UI I want enter image description here | android-studio|android-layout|user-interface|android-custom-view | 0 | 2022-06-29T05:43:35.637Z | 2,022 | 6 | 5 | 2 | 28 | 0 | 50 | 96 | 4 | 0 | false | true | false | false | false | false | zero |
72,796,327 | Is their a better way to populate ignored column from another table using room | <p>I have two related tables <code>item</code> and <code>purchase</code>. The <code>purchase</code> class contains an <code>ignored</code> column <code>itemName</code> which I want to fill with <code>itemName from item</code></p>
<blockquote>
<p>Although I have a method but I am concerned if there is <code>a better way... | I have two related tables item and purchase . The purchase class contains an ignored column itemName which I want to fill with itemName from item Although I have a method but I am concerned if there is a better way to achieve it because my way has to do with reading all items from the database then comparing purchase.i... | android|kotlin|android-room | 1 | 2022-06-29T05:45:55.350Z | 2,022 | 6 | 5 | 2 | 42 | 1 | 465 | 78 | 3 | 5 | true | false | false | false | false | false | low |
72,796,490 | how to set kotlin version for gradle runtime? | <p><strong>Background Info:</strong></p>
<p>I am using jetpack compose for android developing and for some reason I CANNOT use gradle 7+. Currently I tried gradle 6.7.1 but it says</p>
<pre><code>./gradlew -v
------------------------------------------------------------
Gradle 6.7.1
------... | Background Info: I am using jetpack compose for android developing and for some reason I CANNOT use gradle 7+. Currently I tried gradle 6.7.1 but it says [CODE] And jetpack compose 1.1.1 that I am using needs at least kotlin version 1.5.10. Wants I am seeking for How to set gradle runtime version from 1.3 to the versio... | android|kotlin|gradle | 0 | 2022-06-29T06:03:40.530Z | 2,022 | 6 | 6 | 2 | 58 | 2 | 450 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
72,796,503 | How to Implement Fade In / Fade Out Animation in Horizontal Pager Android Compose | <p>Iam designing a Horizontal Pager in Android Jetpack Compose using googles accompanist Pager
(implementation "com.google.accompanist:accompanist-pager:0.24.2-alpha").
I Implement this Horizontal Pager Correctly. But I want to change the default Animation of pager from horizontal left/ right swipe to fadein/... | Iam designing a Horizontal Pager in Android Jetpack Compose using googles accompanist Pager (implementation "com.google.accompanist:accompanist-pager:0.24.2-alpha"). I Implement this Horizontal Pager Correctly. But I want to change the default Animation of pager from horizontal left/ right swipe to fadein/ fa... | android|android-studio|kotlin|android-viewpager|android-jetpack-compose | 1 | 2022-06-29T06:05:46.623Z | 2,022 | 6 | 6 | 2 | 508 | 1 | 615 | 81 | 5 | 1 | true | false | false | false | false | false | low |
72,796,552 | how to make tablayout transperent in android | <pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto... | [CODE] above is my xml code i am trying to make bottom tab-layout with transparent background but i am unable to make it i have applied transparent background color in tab layout but its not working. current screen : enter image description here expected screen : enter image description here Please help me with this . ... | android | 0 | 2022-06-29T06:12:44.067Z | 2,022 | 6 | 6 | 2 | 25 | 1 | 326 | 44 | 1 | 1 | true | false | false | false | false | false | zero |
72,796,617 | Attempt to invoke virtual method 'boolean android.content.Intent.migrateExtraStreamToClipData()' on a null object reference | <p>The error appears when I'm trying to swipe a button. Here is the code of the activity, the error log shows the issue is in the saveReservation() method at startActivity(parentIntent):</p>
<pre><code>private MakeReservationPresenter presenter;
private GridViewAdapter adapter;
private SwipeButton swipeButton;
private... | The error appears when I'm trying to swipe a button. Here is the code of the activity, the error log shows the issue is in the saveReservation() method at startActivity(parentIntent): [CODE] And here is the error log: [CODE] My emulator has the Google Store app and I have updated it inside the emulator so I don't under... | java|android|android-studio|nullpointerexception|google-play | 0 | 2022-06-29T06:19:25.497Z | 2,022 | 6 | 6 | 2 | 64 | 0 | 371 | 123 | 5 | 2 | true | true | false | false | false | false | zero |
72,796,621 | Latest Android Studio - Problem adding Google Service Gradle plugin to build.gradle file | <p>I am having trouble adding Google Service Gradle plugin to build.gradle file in latest <strong>Android Studio Chipmunk</strong>. Specifically I am trying to add <strong>classpath 'com.google.gms:google-services:4.3.12'</strong>.
It seems project level build.gradle file has changed from previous versions. I don't kno... | I am having trouble adding Google Service Gradle plugin to build.gradle file in latest Android Studio Chipmunk . Specifically I am trying to add classpath 'com.google.gms:google-services:4.3.12' . It seems project level build.gradle file has changed from previous versions. I don't know where to add the above dependency... | android|gradle|dependencies|classpath|chipmunk | 0 | 2022-06-29T06:19:45.053Z | 2,022 | 6 | 6 | 2 | 461 | 2 | 367 | 88 | 5 | 0 | false | false | false | false | false | false | zero |
72,796,702 | How to wallpaper on android and iOS device in flutter? | <p>I'm creating a wallpaper app and I want to change the device wallpaper (like the Home and lock screen wallpaper). I'm showing lots of sites and videos but I didn't get answers properly. Can you please guys help me step by step process.</p> | I'm creating a wallpaper app and I want to change the device wallpaper (like the Home and lock screen wallpaper). I'm showing lots of sites and videos but I didn't get answers properly. Can you please guys help me step by step process. | android|ios|flutter|dart|wallpapermanager | 0 | 2022-06-29T06:29:18.190Z | 2,022 | 6 | 6 | 2 | 67 | 1 | 235 | 54 | 5 | 0 | false | false | false | false | false | false | zero |
72,796,709 | Get ImageView by ID on different kt file to set image which is in CardView of different kt file | <p>So basically I'm making an activity in which in button click one alert dialog displays on screen and it contain recyclerview with cardview and one close button. now, by clicking on cardview I have successfully toast a message but now there is requirement to get the image of cardview and then set it into imageview of... | So basically I'm making an activity in which in button click one alert dialog displays on screen and it contain recyclerview with cardview and one close button. now, by clicking on cardview I have successfully toast a message but now there is requirement to get the image of cardview and then set it into imageview of di... | android|kotlin|find|imageview|findviewbyid | 0 | 2022-06-29T06:29:38.253Z | 2,022 | 6 | 6 | 2 | 67 | 1 | 1,214 | 95 | 5 | 2 | true | false | false | false | false | false | zero |
72,796,759 | Unresolved reference: inflate, Android studio veiwBinding error | <p>I was trying to implement <code>viewBinding</code> in Kotlin android studio project but it pops up an error like this: <code>Unresolved reference: inflate</code> I tried all the suggestions given on this site and the actions suggested by android studio (to import various things), but I was still not able to resolve ... | I was trying to implement viewBinding in Kotlin android studio project but it pops up an error like this: Unresolved reference: inflate I tried all the suggestions given on this site and the actions suggested by android studio (to import various things), but I was still not able to resolve it. My code is as follows: [C... | android-studio|kotlin | 1 | 2022-06-29T06:33:52.333Z | 2,022 | 6 | 6 | 2 | 84 | 1 | 488 | 63 | 2 | 2 | true | false | false | false | false | false | low |
72,796,772 | HighchartView inside RecyclerView or NestedScrollView causes laggy scroll | <p>When i place HIChartView(From HighCharts library) inside NestedScrollView or RecyclerView and try to scroll up the page by touching on the chartView, the recyclerview scroll movement is very laggy.
This is happening only when i touch the chartview and try to scroll the page up. But the recyclerview scroll is smooth ... | When i place HIChartView(From HighCharts library) inside NestedScrollView or RecyclerView and try to scroll up the page by touching on the chartView, the recyclerview scroll movement is very laggy. This is happening only when i touch the chartview and try to scroll the page up. But the recyclerview scroll is smooth whe... | android|android-recyclerview|highcharts|scroll|android-nestedscrollview | 0 | 2022-06-29T06:35:25.840Z | 2,022 | 6 | 6 | 2 | 42 | 0 | 660 | 73 | 5 | 1 | true | true | false | false | false | false | zero |
72,796,907 | Android BLE data in different characteristic exchange when onCharacteristicChanged | <p>I have a sensor it will notify data with fixed length in different characteristic.<br />
The Char3 only notify data with 48 bytes.<br />
The Char4 only notify data with 240 bytes.</p>
<p>When I use the Redmi note T8 to develop my android app.
I sometimes see 240 bytes in char3 and the 48 bytes in Char4.<br />
The da... | I have a sensor it will notify data with fixed length in different characteristic. The Char3 only notify data with 48 bytes. The Char4 only notify data with 240 bytes. When I use the Redmi note T8 to develop my android app. I sometimes see 240 bytes in char3 and the 48 bytes in Char4. The data are exchange. That's so w... | android|bluetooth-lowenergy|characteristics | 0 | 2022-06-29T06:47:52.527Z | 2,022 | 6 | 6 | 2 | 20 | 0 | 683 | 82 | 3 | 1 | true | true | false | false | false | false | zero |
72,796,957 | how to preview video and upload that video file to firebase in android kotlin | <p>I am trying to upload a video file to firebase.:-</p>
<p>this is the code:-</p>
<pre><code>lateinit var file: Any
private fun selectingVideo() {
val videoPickIntent = Intent(Intent.ACTION_PICK)
videoPickIntent.type = "video/*"
startActivityForResult(Intent.createChooser(videoPickIntent, "... | I am trying to upload a video file to firebase.:- this is the code:- [CODE] I am getting this as the error.:- [CODE] I have tried all the possible ways to solve it. But Still I am getting this error. I tried other methods as well still they are not working for my requirements. | android|firebase|kotlin|firebase-storage|android-videoview | 1 | 2022-06-29T06:52:58.200Z | 2,022 | 6 | 6 | 2 | 60 | 1 | 277 | 77 | 5 | 2 | true | false | false | false | false | false | low |
72,797,032 | Files are not getting saved in Android Download Folder | <p>I am using Download Manager to Download PDFs and Images. Downloaded files are not getting saved in Download Folder. Here is my code.</p>
<p>`</p>
<pre><code>val fileName = "MG Uploaded Documents"
val request = DownloadManager.Request(Uri.parse(downloadUrl))
.setTitle("Download&quo... | I am using Download Manager to Download PDFs and Images. Downloaded files are not getting saved in Download Folder. Here is my code. ` [CODE] ` This code is in Home Activity. Any help. | android|kotlin|android-download-manager | 0 | 2022-06-29T06:58:00.910Z | 2,022 | 6 | 6 | 2 | 63 | 1 | 184 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
72,797,137 | How to prefab headers generated at build time | <p>I am packaging C++ library into AAR using Android Gradle Pluging 7.2. According to instructions I have to enable prefab publishing like following:</p>
<pre><code>buildFeatures {
prefabPublishing true
}
prefab {
mylib {
headers "src/main/cpp/include"
}
}
</code></pre>
<p>Some of librar... | I am packaging C++ library into AAR using Android Gradle Pluging 7.2. According to instructions I have to enable prefab publishing like following: [CODE] Some of library headers are generated at configure time and are not yet available when gradle build starts, they are however available in the cmake build dir after cm... | android|gradle|android-ndk|android-gradle-plugin | 0 | 2022-06-29T07:06:43.713Z | 2,022 | 6 | 7 | 2 | 25 | 0 | 786 | 45 | 4 | 1 | true | true | false | false | false | false | zero |
72,797,166 | Android - Data Binding cannot find method, using BottomSheetBehavior | <p>Example Code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout 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">
... | Example Code [CODE] Then, if I use it BottomSheetBehavior with the code below, [CODE] This code throws the error [CODE] Why is it? I think this code may not executed properly. because BottomSheetBehavior's state return value is not Observable. So, is there anyone who can explain meaning of this error? | android|android-databinding|android-bottomsheetdialog | 1 | 2022-06-29T07:08:48.323Z | 2,022 | 6 | 7 | 2 | 66 | 2 | 302 | 68 | 3 | 3 | true | false | false | false | false | false | low |
72,797,169 | How to set MaterialButton style programmatically in Material3 or Material You design | <p>As per new <a href="https://m3.material.io/libraries/mdc-android/getting-started" rel="nofollow noreferrer">material design 3</a>, you can set the different button styles like:</p>
<p><a href="https://i.stack.imgur.com/ZN2N2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZN2N2.png" alt="enter ima... | As per new material design 3 , you can set the different button styles like: Using below code in xml layout: [CODE] What I want is, I want to apply this Filled style of button when user press on button first time. So when user click on Elevated button, it should turn into Filled style button. Means, I want to apply the... | android|material-ui|material-design|material-you | 0 | 2022-06-29T07:08:55.190Z | 2,022 | 6 | 7 | 2 | 75 | 0 | 757 | 84 | 4 | 1 | true | true | false | false | false | false | zero |
72,797,280 | I have error related retrofit dependency how can I resolve it? | <p>Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.squareup.retrofit2:retrofit:2.4.0.
I have this kind of error and how it to solve.
I have already added dependency like
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:convert... | Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.squareup.retrofit2:retrofit:2.4.0. I have this kind of error and how it to solve. I have already added dependency like implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-... | java|android|dependencies|retrofit|retrofit2 | 0 | 2022-06-29T07:18:41.197Z | 2,022 | 6 | 7 | 2 | 47 | 2 | 331 | 62 | 5 | 0 | false | false | false | false | false | false | zero |
72,797,395 | is there a way of showing the user name on another activity after logging in? | <p>i have created a register and login page in android studio which work perfectly fine, but now i want when a user logs in, his or her user name is captured and shown in the next activity which is the main activity.</p>
<p><strong>Here is the login</strong></p>
<pre><code>public class Login extends AppCompatActivity {... | i have created a register and login page in android studio which work perfectly fine, but now i want when a user logs in, his or her user name is captured and shown in the next activity which is the main activity. Here is the login [CODE] And the MainActivity.java where i want the user name to be shown. [CODE] please h... | php|android | 0 | 2022-06-29T07:27:44.980Z | 2,022 | 6 | 7 | 2 | 31 | 1 | 389 | 77 | 2 | 2 | true | false | false | false | false | false | zero |
72,797,424 | Use NDK/JNI to keep secret keys in Android with high security | <p>We can write methods to get the key as below both Method 1 and Method 2 for the Android app</p>
<p>Are both Methods have the same security strength? or is there any security weakness in one of the below Methods while decompile/reverse engineering or other app cracking procedures?</p>
<p><strong>Method 1</strong></p>... | We can write methods to get the key as below both Method 1 and Method 2 for the Android app Are both Methods have the same security strength? or is there any security weakness in one of the below Methods while decompile/reverse engineering or other app cracking procedures? Method 1 declare/assign key inside the method ... | android|c++ | 0 | 2022-06-29T07:29:01.957Z | 2,022 | 6 | 7 | 2 | 50 | 2 | 513 | 61 | 2 | 3 | true | false | false | false | false | false | zero |
72,797,454 | Android How to Copy and paste image using ClipboardManager? | <p>How I can copy and paste images using Clipboard Manager that supports all the latest versions, I have tried with the code below but it's not working.</p>
<pre><code>ClipboardManager mClipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
Uri imageUri = FileProvider.getUriForFile(Activity.this, g... | How I can copy and paste images using Clipboard Manager that supports all the latest versions, I have tried with the code below but it's not working. [CODE] | android|image|copy-paste|clipboardmanager | 0 | 2022-06-29T07:31:17.403Z | 2,022 | 6 | 7 | 2 | 45 | 0 | 156 | 59 | 4 | 1 | true | true | false | false | false | false | zero |
72,797,491 | Possibility to draw and fill edittext at the same time | <p>I have an application with notes, where I have two edit texts -> title, description.
It saves data to room, then display it in recyclerview. I would like to have possibility when I enter <code>addingFragment</code> where I put title and description also have a possibility to draw on this.
My idea was to create so... | I have an application with notes, where I have two edit texts -> title, description. It saves data to room, then display it in recyclerview. I would like to have possibility when I enter addingFragment where I put title and description also have a possibility to draw on this. My idea was to create somekind of two butto... | android|kotlin|android-layout|bitmap|draw | 0 | 2022-06-29T07:36:06.070Z | 2,022 | 6 | 7 | 2 | 18 | 0 | 690 | 54 | 5 | 0 | false | true | false | false | false | false | zero |
72,797,499 | Android 12: can't create new folder in downloads when app is uploaded to Google Play | <p>When code bellow as a part of application is executed locally (directly started from Android Studio) it works correct.</p>
<pre><code>String folderName = Environment.DIRECTORY_DOWNLOADS;
File folder = new File(Environment.getExternalStoragePublicDirectory(folderName) + "/SampleApp/");
if (!folder.mkdirs()... | When code bellow as a part of application is executed locally (directly started from Android Studio) it works correct. [CODE] The full path where new folder gets created is: [CODE] But when the same code as a part of application gets uploaded to Google Play and then installed to the same phone, folder can't create and ... | android|android-12 | 0 | 2022-06-29T07:36:13.693Z | 2,022 | 6 | 7 | 2 | 391 | 1 | 666 | 84 | 2 | 3 | true | false | false | false | false | false | zero |
72,797,618 | How to apply Locale to Plural resource? | <p>I'm using plurals in resources just like docs saying:</p>
<p><a href="https://developer.android.com/guide/topics/resources/string-resource#Plurals" rel="nofollow noreferrer">https://developer.android.com/guide/topics/resources/string-resource#Plurals</a></p>
<p>My app using only one language, so i want to use my lan... | I'm using plurals in resources just like docs saying: https://developer.android.com/guide/topics/resources/string-resource#Plurals My app using only one language, so i want to use my language's rules no matter which language is set on device. How can i use Locale in my plurals? [CODE] | android|kotlin | 0 | 2022-06-29T07:45:59.710Z | 2,022 | 6 | 7 | 2 | 25 | 1 | 285 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
72,797,621 | Finding all the event listeners for an Android element | <p>I'm facing a problem in Android GUI testing. When using the UIAutomator to get all the elements in a certain GUI, I can not determine whether I can input some contents in an element, or swipe it left or right.</p>
<p>I'm wondering if there is a way like Chrome Dev Tools that assists in finding all the binding events... | I'm facing a problem in Android GUI testing. When using the UIAutomator to get all the elements in a certain GUI, I can not determine whether I can input some contents in an element, or swipe it left or right. I'm wondering if there is a way like Chrome Dev Tools that assists in finding all the binding events for a cer... | android|user-interface|testing|black-box-testing | 0 | 2022-06-29T07:46:27.693Z | 2,022 | 6 | 7 | 2 | 12 | 0 | 364 | 54 | 4 | 0 | false | true | false | false | false | false | zero |
72,797,654 | start_url: "" in manifest.json generated when using favicons-webpack-plugin (webpack 4, react js) does not work correctly for Android | <p>There is a site on React JS. Webpack uses favicons-webpack-plugin. This plugin allows you to create a manifest file that uses the start_url for the website icon on the home screen. My task when clicking on the icon on the smartphone should open the current page of the site, which was opened when this icon was create... | There is a site on React JS. Webpack uses favicons-webpack-plugin. This plugin allows you to create a manifest file that uses the start_url for the website icon on the home screen. My task when clicking on the icon on the smartphone should open the current page of the site, which was opened when this icon was created t... | android|reactjs|webpack|manifest.json | 0 | 2022-06-29T07:49:40.053Z | 2,022 | 6 | 7 | 2 | 94 | 0 | 995 | 133 | 4 | 1 | true | true | false | false | false | false | zero |
72,797,787 | using findNavController.navigate(R.id.action) the status bar color changes | <p>I have change the status bar color to white, but when i move from mainFragment to billing fragment using findNavController().navigate(R.id.action) then the status bar color changes to colorPrimary which is blue.
but when i use
FragmentUtils.getParent(this, MainTabUIDelegate::class.java)
?.setCurrentTab(BottomNavBar.... | I have change the status bar color to white, but when i move from mainFragment to billing fragment using findNavController().navigate(R.id.action) then the status bar color changes to colorPrimary which is blue. but when i use FragmentUtils.getParent(this, MainTabUIDelegate::class.java) ?.setCurrentTab(BottomNavBar.TAB... | java|android|android-studio|kotlin|navigation | 0 | 2022-06-29T08:00:05.650Z | 2,022 | 6 | 8 | 2 | 27 | 0 | 482 | 74 | 5 | 0 | false | true | false | false | false | false | zero |
72,797,836 | Deeplink not working when copy and paste the link in websearch | <p>AndroidManifest.xml</p>
<p><activity</p>
<pre><code> android:name="com.argonne.evrest.ui.splash.SplashActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true">
<intent-filter>
<action android:... | AndroidManifest.xml <activity [CODE] Link: If that doesn't work, copy and paste the following link in your browser: evrest://evrest?token=mGfpnJM5UVF2fLXU9UjMqe2Dy33DBu when I copy and paste the search link browser does not show the app name in android. | android|android-manifest|android-deep-link | 0 | 2022-06-29T08:03:30.243Z | 2,022 | 6 | 8 | 2 | 35 | 0 | 253 | 62 | 3 | 1 | true | true | false | false | false | false | zero |
72,797,858 | I am not able to access id from itemView | <p>I am learning to create RecyclerView using Kotlin from this video.</p>
<p><a href="https://youtu.be/HtwDXRWjMcU?t=1040" rel="nofollow noreferrer">RECYCLERVIEW - Android Fundamentals</a></p>
<p>According to this video I can access <code>tvTitle</code> and <code>cbDone</code> from <code>itemView</code>.</p>
<p>But in ... | I am learning to create RecyclerView using Kotlin from this video. RECYCLERVIEW - Android Fundamentals According to this video I can access tvTitle and cbDone from itemView . But in my code it is not showing any suggestion, and if I type by my self it show error. Screenshots | android|kotlin|android-recyclerview | 0 | 2022-06-29T08:05:17.947Z | 2,022 | 6 | 8 | 2 | 53 | 1 | 275 | 40 | 3 | 0 | false | false | false | false | false | false | zero |
72,797,912 | java.lang.NullPointerException: Attempt to invoke virtual method, causing app to crash | <p>I'm particularly new to this field. I'm trying to create a login page using fragments and it crashed when I tried to run it. I checked the logcat, turns out its a NullPointerException. It highlighted the error here:</p>
<pre><code>register = (Button) findViewById(R.id.RegisterUser);
register.setOnClickListener(this)... | I'm particularly new to this field. I'm trying to create a login page using fragments and it crashed when I tried to run it. I checked the logcat, turns out its a NullPointerException. It highlighted the error here: [CODE] Here is my code this is mainactivity [CODE] | java|android|nullpointerexception | 0 | 2022-06-29T08:08:46.803Z | 2,022 | 6 | 8 | 2 | 59 | 2 | 266 | 86 | 3 | 2 | true | false | false | false | false | false | zero |
72,797,969 | How create a random answers in quiz, android studio(java)? | <p>I am tring to do a quiz app, there is a random flag and random 4 answers, one of them should be a correct answer and random 3.</p>
<p>For now I have only been able to random answers, but sometimes I have the same answer several times. Fails to random 3 different answers that will not repeat themselves and add to tha... | I am tring to do a quiz app, there is a random flag and random 4 answers, one of them should be a correct answer and random 3. For now I have only been able to random answers, but sometimes I have the same answer several times. Fails to random 3 different answers that will not repeat themselves and add to that the corr... | java|android|android-studio|random | 0 | 2022-06-29T08:12:51.153Z | 2,022 | 6 | 8 | 2 | 97 | 2 | 338 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
72,798,009 | How to continue polling with observable interval if error occurs | <p>I have a simple network polling function with observable intervals</p>
<pre><code>private fun pollFromApi(): Observable<MyState> {
return Observable.interval(3L, TimeUnit.SECONDS, schedulerProvider.io())
.startWith(0L)
.flatMap {
api.getState().toObservable()
}
.... | I have a simple network polling function with observable intervals [CODE] The problem I have is that if in the middle of polling one of the network API calls fails, the polling stops. Ideally what I want is to keep retrying until takeUntil stops the polling and if an error occurs, just ignore it and do not emit anythin... | java|android|kotlin|rx-java | 1 | 2022-06-29T08:16:21.657Z | 2,022 | 6 | 8 | 2 | 50 | 2 | 419 | 64 | 4 | 1 | true | false | false | false | false | false | low |
72,798,088 | Android: Touching spinner crashes app on android 7 only | <p>I'm trying to create a spinner inside a popup window, from which users can select their grade level. Code for inflating my popup window:</p>
<pre><code> LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View popupView = inflater.inflate(R.layout.register_window, null);
... | I'm trying to create a spinner inside a popup window, from which users can select their grade level. Code for inflating my popup window: [CODE] Code for populating my spinner: [CODE] showAtLocation, which I call last: [CODE] The code works perfectly on android 8, 9, and 11, but on android 7 (api 24), the app crashes as... | java|android|android-spinner | 0 | 2022-06-29T08:23:00.677Z | 2,022 | 6 | 8 | 2 | 22 | 0 | 422 | 55 | 3 | 4 | true | true | false | false | false | false | zero |
72,798,206 | Flutter/Android Signing issue - App Bundle was not signed (no manifest) | <p>I'm presently attempting to sign a Flutter-Android app bundle so it can be updated on on the Play store. It compiles without issues, however when uploaded the store give me a <code>The Android App Bundle was not signed</code> error.</p>
<p>Firstly, before I run flutter build, I tun both flutter pub get and flutter c... | I'm presently attempting to sign a Flutter-Android app bundle so it can be updated on on the Play store. It compiles without issues, however when uploaded the store give me a The Android App Bundle was not signed error. Firstly, before I run flutter build, I tun both flutter pub get and flutter clean, in that order. Se... | android|flutter|build.gradle|keystore|signing | 0 | 2022-06-29T08:31:02.360Z | 2,022 | 6 | 8 | 2 | 161 | 2 | 1,249 | 71 | 5 | 3 | true | false | false | false | false | false | zero |
72,798,290 | How to get high quality image from arcore | <p>**I need high quality image with arcore. Currently I can extract the image but the armodel does not show.
I have tried to get the image from draw frame
**</p> | **I need high quality image with arcore. Currently I can extract the image but the armodel does not show. I have tried to get the image from draw frame ** | java|android|kotlin|arcore | 0 | 2022-06-29T08:36:32.413Z | 2,022 | 6 | 8 | 2 | 32 | 1 | 154 | 41 | 4 | 0 | false | false | false | false | false | false | zero |
72,798,338 | unable passing multiple actions to notification action intent | <p>Be informed, we are trying to send notification with a button using Addaction. The button Start has a intent that directly opens a url in a webview, which works perfectly fine with code given below</p>
<pre><code> Intent intent = new Intent(this, MainActivity.class);
intent.putExtra("uri", uri);
... | Be informed, we are trying to send notification with a button using Addaction. The button Start has a intent that directly opens a url in a webview, which works perfectly fine with code given below [CODE] Update: I'm sorry but i'm not actually a expert or a regular coder in android java, so you gotta help me here a lit... | android | 1 | 2022-06-29T08:40:45.350Z | 2,022 | 6 | 8 | 2 | 50 | 1 | 839 | 61 | 1 | 2 | true | false | false | false | false | false | low |
72,798,374 | Jetpack Compose - Best practice regarding responsibility of fragment/activity | <p>With the introduction of Jetpack Compose and having access to <code>LocalContext.current</code> we can reduce the responsibilities of the Activity/Fragment by a lot and move much of that into Compose. But should we do that? Where do we draw the line between what Jetpack Compose is responsible for regarding the Andro... | With the introduction of Jetpack Compose and having access to LocalContext.current we can reduce the responsibilities of the Activity/Fragment by a lot and move much of that into Compose. But should we do that? Where do we draw the line between what Jetpack Compose is responsible for regarding the Android framework, an... | android|android-fragments|android-activity|android-jetpack-compose | 0 | 2022-06-29T08:43:00.060Z | 2,022 | 6 | 8 | 2 | 161 | 0 | 1,321 | 77 | 4 | 0 | false | true | false | false | false | false | zero |
72,798,432 | Does Android Management API WebTokens expire? | <p>The Android Management API WebToken resource can only be created so I guess it is designed to expire at some time. What is the exact behavior as I did not find this information in the documentation?</p> | The Android Management API WebToken resource can only be created so I guess it is designed to expire at some time. What is the exact behavior as I did not find this information in the documentation? | android-management-api | 0 | 2022-06-29T08:46:28.690Z | 2,022 | 6 | 8 | 2 | 33 | 0 | 198 | 45 | 1 | 0 | false | true | false | false | false | false | zero |
72,798,449 | Tried to build flutter app and got this Error "A problem occurred configuring root project 'android'" | <h3>The errors are below</h3>
FAILURE: Build failed with an exception.
<p>What went wrong:
A problem occurred configuring root project 'android'.</p>
<blockquote>
<p>Could not resolve all files for configuration ':classpath'.
Could not download kotlin-gradle-plugin-1.6.10.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:... | The errors are below FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android'. Could not resolve all files for configuration ':classpath'. Could not download kotlin-gradle-plugin-1.6.10.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10) > Could not get resource... | flutter|android-studio|kotlin|dart|visual-studio-code | -1 | 2022-06-29T08:48:16.753Z | 2,022 | 6 | 8 | 2 | 118 | 1 | 992 | 101 | 5 | 1 | true | false | false | false | false | true | negative |
72,798,566 | Cannot find DaggerAppComponent inside Application class | <p>I'm using kotlin latest version and trying to implement dagger2, but after rebuilding the project the suggestions would never give me "DaggerAppComponent" to build.</p>
<p>my dependencies</p>
<pre><code>implementation 'com.google.dagger:dagger:2.38.1'
implementation 'com.google.dagger:dagger-android:2.38.1... | I'm using kotlin latest version and trying to implement dagger2, but after rebuilding the project the suggestions would never give me "DaggerAppComponent" to build. my dependencies [CODE] And I already added [CODE] } here is my AppComponent class, [CODE] And here is my Application class, already added to mani... | android|kotlin|dagger-2 | 0 | 2022-06-29T08:57:06.213Z | 2,022 | 6 | 8 | 2 | 216 | 3 | 505 | 55 | 3 | 4 | true | false | false | false | false | false | zero |
72,798,577 | Data class primary constructor must have only property (val / var) parameters | <p>I am converting my Json into data object class:</p>
<p>The JSON comes in this format:</p>
<pre><code>entry":[
{
"im:name": {"label":"Growin' Up"}
....
}
</code></pre>
<p>So in my data class I have:</p>
<pre><code>data class Entry(
val im:name: ImName
)
</code></pre>
<p>But I am ... | I am converting my Json into data object class: The JSON comes in this format: [CODE] So in my data class I have: [CODE] But I am having an arror: [CODE] I cant change the JSON returned | java|android|json|kotlin | 0 | 2022-06-29T08:57:51.457Z | 2,022 | 6 | 8 | 2 | 89 | 1 | 185 | 77 | 4 | 3 | true | false | false | false | false | false | zero |
72,798,646 | can i create a folder for my application under storage/emulated/0 (android 12) | <p>i found this in android developers website<br />
App-specific directory on external storage
Starting in Android 11, apps cannot create their own app-specific directory on external storage. To access the directory that the system provides for your app, call getExternalFilesDirs().</p> | i found this in android developers website App-specific directory on external storage Starting in Android 11, apps cannot create their own app-specific directory on external storage. To access the directory that the system provides for your app, call getExternalFilesDirs(). | android|flutter|kotlin|android-12 | 0 | 2022-06-29T09:03:08.143Z | 2,022 | 6 | 9 | 2 | 109 | 0 | 274 | 78 | 4 | 0 | false | true | false | false | false | false | zero |
72,798,686 | How to display debug error in xamarin vscode? | <p>When attempting to redirect to another page on my xamarin app, if there is a runtime error in the xaml page that I am redirecting to or the constructor for the view model, the page doesn't redirect but it also does not display any error and sits on the same page. Is there a way to debug this in vscode like I would w... | When attempting to redirect to another page on my xamarin app, if there is a runtime error in the xaml page that I am redirecting to or the constructor for the view model, the page doesn't redirect but it also does not display any error and sits on the same page. Is there a way to debug this in vscode like I would with... | visual-studio|xamarin|xamarin.android | 0 | 2022-06-29T09:06:07.687Z | 2,022 | 6 | 9 | 2 | 27 | 1 | 456 | 45 | 3 | 0 | false | false | false | false | false | false | zero |
72,798,689 | After changing the package name in android studio, I can't access the camera in my application. When I restore the package name, it works fine | <p>I changed the package name in android studio, I don't get any error, but my application does not open the camera, when I click on the camera, the application closes</p> | I changed the package name in android studio, I don't get any error, but my application does not open the camera, when I click on the camera, the application closes | android|android-camera|package-name | 0 | 2022-06-29T09:06:15.103Z | 2,022 | 6 | 9 | 2 | 35 | 0 | 164 | 142 | 3 | 0 | false | true | false | false | false | false | zero |
72,798,708 | Remove whitespace before Paste with a Max Length | <p>So I use TextInputEditText with a max length of 8 .</p>
<p>If I paste "1234 1234", it will become "1234 123".
My goal is for it to become "12341234"</p>
<p>The hard part is the max length, because if I use the usual filter or onTextChange, it won't work due to the length cutted first be... | So I use TextInputEditText with a max length of 8 . If I paste "1234 1234", it will become "1234 123". My goal is for it to become "12341234" The hard part is the max length, because if I use the usual filter or onTextChange, it won't work due to the length cutted first before it trim whit... | java|android|android-edittext|android-textinputlayout | 1 | 2022-06-29T09:07:28.080Z | 2,022 | 6 | 9 | 2 | 68 | 1 | 874 | 48 | 4 | 0 | false | false | false | false | false | false | low |
72,798,792 | Input field works good on web and iPhone but not on android | <p>Added my code, this is the input field
<a href="https://i.stack.imgur.com/Ny8VS.png" rel="nofollow noreferrer">enter image description here</a></p>
<pre><code> <div
ref={ref}
className={classes.part}
onKeyDown={disabled ? undefined : handleKeyDown}
onClick={disabled ? undefined : h... | Added my code, this is the input field enter image description here [CODE] | javascript|android|mobile|react-hooks|client | 0 | 2022-06-29T09:13:00.043Z | 2,022 | 6 | 9 | 2 | 15 | 0 | 74 | 59 | 5 | 1 | true | true | false | false | false | false | zero |
72,798,874 | Recompose screen on coming back from an activity | <p>I am working on Android jetpack compose. I have bottom navigation and on an event going to an Activity. I want to recompose the screen when coming back to the previous screen so that the data refreshes.</p> | I am working on Android jetpack compose. I have bottom navigation and on an event going to an Activity. I want to recompose the screen when coming back to the previous screen so that the data refreshes. | android|android-jetpack-compose|android-jetpack | 1 | 2022-06-29T09:18:20.020Z | 2,022 | 6 | 9 | 2 | 62 | 1 | 202 | 48 | 3 | 0 | false | false | false | false | false | false | low |
72,798,945 | Not able to run ./gradlew assembleRelease command | <p>I am completely new to react native. I was trying to build an apk file out of react native application.</p>
<p>1.I went into android directory by cd android.
2.Then I typed ./gradlew assembleRelease command.</p>
<p>It is showing me like this :
'.' is not recognised as internal or external command.</p>
<p>Please hel... | I am completely new to react native. I was trying to build an apk file out of react native application. 1.I went into android directory by cd android. 2.Then I typed ./gradlew assembleRelease command. It is showing me like this : '.' is not recognised as internal or external command. Please help me with this | android|react-native|gradle|build.gradle | 0 | 2022-06-29T09:23:07.423Z | 2,022 | 6 | 9 | 2 | 50 | 1 | 309 | 49 | 4 | 0 | false | false | false | false | false | false | zero |
72,799,197 | how to save android.graphics.path in database and redraw them from database | <p>I'm developing an android app with drawing functionality. I want to save those drawing Paths, so i can redraw them when I reopen the activity from history. I just want to save everything either its a path or custom shape on canvas.</p>
<pre><code>private val drawShapes = Stack<ShapeAndPaint?>()
private val red... | I'm developing an android app with drawing functionality. I want to save those drawing Paths, so i can redraw them when I reopen the activity from history. I just want to save everything either its a path or custom shape on canvas. [CODE] } this is my DrawingView class. is there any possible solution? Thanks in advance... | android|canvas|graphics|drawing|android-canvas | 0 | 2022-06-29T09:42:54.403Z | 2,022 | 6 | 9 | 2 | 41 | 0 | 321 | 75 | 5 | 1 | true | true | false | false | false | false | zero |
72,799,228 | Ensuring maximum required permissions during Android manifest merging for location/bluetooth permissions | <p>I have a modular codebase. One of my modules needs to always request <code>ACCESS_FINE_LOCATION</code></p>
<pre><code><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</code></pre>
<p>Another module only needs to request this permission up to SDK level 30.</p>
<pre><code><... | I have a modular codebase. One of my modules needs to always request ACCESS_FINE_LOCATION [CODE] Another module only needs to request this permission up to SDK level 30. [CODE] If I build an app which includes both of those modules, I would expect the merged manifest to contain. [CODE] However, it shows up with maxSdkV... | android|android-manifest | 1 | 2022-06-29T09:44:45.803Z | 2,022 | 6 | 9 | 2 | 36 | 0 | 625 | 104 | 2 | 3 | true | true | false | false | false | false | low |
72,799,356 | latitude more than 65: Error value should not be infinite or NaN, using adhan package | <p>latitude values between (-67.5944046 and -90) and between (65.9277379 and 90)
throw Unhandled exception!</p>
<p>minimum code that reproduce the error:</p>
<pre><code>import 'package:adhan/adhan.dart';
void main() {
//latitude values between (-67.5944046 and -90) and between (65.9277379 and 90)
//throw Unhandled ex... | latitude values between (-67.5944046 and -90) and between (65.9277379 and 90) throw Unhandled exception! minimum code that reproduce the error: [CODE] Expected behavior should output the actual prayer time of the giving parameters. but it throws an error: [CODE] run flutter doctor: [CODE] Adhan-Dart Version: [adhan: ^2... | android|flutter|dart | 0 | 2022-06-29T09:53:45.883Z | 2,022 | 6 | 9 | 2 | 42 | 1 | 462 | 85 | 3 | 3 | true | false | false | false | false | false | zero |
72,799,509 | No matching view exception, but view shown in hierarchy | <p>I've been trying to create a testcase where I go into an inbox and tap on the cross-icon to delete a message. There are multiple messages in the inbox so I want to tap the first occurrence by default.</p>
<p>There are a couple of ways I've tried to achieve this, for instance:
<a href="https://stackoverflow.com/quest... | I've been trying to create a testcase where I go into an inbox and tap on the cross-icon to delete a message. There are multiple messages in the inbox so I want to tap the first occurrence by default. There are a couple of ways I've tried to achieve this, for instance: Espresso match first element found when many are i... | android|testing|android-espresso|ui-testing | 0 | 2022-06-29T10:04:47.780Z | 2,022 | 6 | 10 | 2 | 17 | 0 | 962 | 55 | 4 | 0 | false | true | false | false | false | false | zero |
72,799,527 | How to migrate a Room database from one encryption passphrase to another? | <p>I ran into an issue where an application I'm working on has encryption enabled for the Room database, using SQLCipher, but the actual passphrase was not formed securely. I have the new, secure method of setting up new databases up and running, but there's a problem: how to migrate the existing database to use the ne... | I ran into an issue where an application I'm working on has encryption enabled for the Room database, using SQLCipher, but the actual passphrase was not formed securely. I have the new, secure method of setting up new databases up and running, but there's a problem: how to migrate the existing database to use the new p... | android|android-room|sqlcipher-android | 1 | 2022-06-29T10:05:57.843Z | 2,022 | 6 | 10 | 2 | 24 | 1 | 609 | 73 | 3 | 1 | true | false | false | false | false | false | low |
72,799,537 | How can I solve this connection problem with firebees? | <p>what the Solution for this problem</p>
<p><img src="https://i.stack.imgur.com/pi5Fi.png" alt="enter image description here" /></p> | what the Solution for this problem | android-studio|kotlin|google-cloud-firestore|firebase-assistant | 0 | 2022-06-29T10:06:47.457Z | 2,022 | 6 | 10 | 2 | 31 | 0 | 34 | 54 | 4 | 0 | false | true | false | false | false | false | zero |
72,799,540 | Need clarity of Publishing app to playstore and appstore | <p>Once the mobile application is reviewed by play/App store, How long can we hold the release with out publishing. What will happen if we hold it for long? Documentation is not saying about the same.</p> | Once the mobile application is reviewed by play/App store, How long can we hold the release with out publishing. What will happen if we hold it for long? Documentation is not saying about the same. | android|ios|react-native | 0 | 2022-06-29T10:06:57.643Z | 2,022 | 6 | 10 | 2 | 34 | 1 | 197 | 56 | 3 | 0 | false | false | false | false | false | false | zero |
72,799,851 | Inserting an AnnotatedString into an EditText (Jetpack Compose) | <p>I'm trying to solve the following issue. For example, I'm writing this text - "Hello *world*". After I stop writing, for example, after a second, the word "*world*" should be replaced by "world" in bold.
I've tried to do this, but so far it doesn't work.</p>
<pre><code> val originalT... | I'm trying to solve the following issue. For example, I'm writing this text - "Hello *world*". After I stop writing, for example, after a second, the word "*world*" should be replaced by "world" in bold. I've tried to do this, but so far it doesn't work. [CODE] And trying to insert to Edit... | android-edittext|android-jetpack-compose|debounce | 0 | 2022-06-29T10:29:48.877Z | 2,022 | 6 | 10 | 2 | 109 | 1 | 571 | 63 | 3 | 2 | true | false | false | false | false | false | zero |
72,799,878 | How to use Bottom Navigation within a Fragment rather than Main Activity | <p>I'm trying to use Bottom Navigation in my app. Most explanations online are about using Bottom Navigation to navigate a fragment container from WITHIN the MainActivity. However, I am trying to use the Bottom Navigation from within a fragment and not an activity. Can anybody help me? This is the code I have thus far,... | I'm trying to use Bottom Navigation in my app. Most explanations online are about using Bottom Navigation to navigate a fragment container from WITHIN the MainActivity. However, I am trying to use the Bottom Navigation from within a fragment and not an activity. Can anybody help me? This is the code I have thus far, th... | android|android-fragments|navigation|bottomnavigationview | 0 | 2022-06-29T10:31:25.403Z | 2,022 | 6 | 10 | 2 | 37 | 0 | 504 | 72 | 4 | 1 | true | true | false | false | false | false | zero |
72,799,888 | How to access SimpleExoPlayer instance inside MediaBrowserServiceCompat with PlayerControlView? | <p>I have been trying to build an audio podcast app in which I need one feature of playing audio that should show in the notification bar/ lock screen just like any other music app.</p>
<p>For that, I have used <code>SimpleExoPlayer</code> for media, and <code>PlayerControlView</code> for UI.</p>
<p>For feature, I have... | I have been trying to build an audio podcast app in which I need one feature of playing audio that should show in the notification bar/ lock screen just like any other music app. For that, I have used SimpleExoPlayer for media, and PlayerControlView for UI. For feature, I have used MediaBrowserServiceCompat by followin... | android|android-notifications|exoplayer|mediabrowserservicecompat|mediabrowser | 0 | 2022-06-29T10:31:58.573Z | 2,022 | 6 | 10 | 2 | 34 | 0 | 952 | 95 | 5 | 1 | true | true | false | false | false | false | zero |
72,799,894 | How to save google calendar event from fragment? | <p>I would like to save my event automatically in calendar event it could be silent adding or directly added by user after navigation to calendar.</p>
<p>in ViewModel</p>
<pre><code> fun saveInGoogleCalendar(goalTitle: String, contentResolver: ContentResolver) {
val calID: Long = 3
val values = Conte... | I would like to save my event automatically in calendar event it could be silent adding or directly added by user after navigation to calendar. in ViewModel [CODE] fragment [CODE] I also use this method after saving element. other option from VM i tried [CODE] Nothing works, second option doesn't launch to the activity... | android|kotlin|android-intent|google-calendar-api|android-contentresolver | 0 | 2022-06-29T10:32:11.883Z | 2,022 | 6 | 10 | 2 | 38 | 0 | 333 | 48 | 5 | 3 | true | true | false | false | false | false | zero |
72,800,027 | react native table components | <p><a href="https://i.stack.imgur.com/NcnCW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NcnCW.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/Te4e9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Te4e9.png" alt="enter image description h... | Hello there, I world be extremely grateful if someone could help me with this problem. I am new to react native and I wanted to the data inside the table instead of having its text because I think it will look better.I have stuck with this problem for a quite while and I couldnt find any sources to deal with this probl... | android|node.js|react-native | 0 | 2022-06-29T10:42:12.810Z | 2,022 | 6 | 10 | 2 | 26 | 0 | 369 | 29 | 3 | 1 | true | true | false | false | false | false | zero |
72,800,057 | How to check Badge is visible in BottomNavigationView with Android Espresso | <p>I want to check if a red badge on a menu item is shown to the user.</p>
<p><a href="https://i.stack.imgur.com/XzVvO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XzVvO.png" alt="enter image description here" /></a></p>
<p>But right know i don't know how to write the correct matcher for the icon.... | I want to check if a red badge on a menu item is shown to the user. But right know i don't know how to write the correct matcher for the icon. I do know the resource name of the icon/menu entry itself, but how to get the icon in the subtree of it onView(allOf(withId(???), isDescendantOfA(withId(R.id.menuentry1)))).chec... | android|android-espresso | 0 | 2022-06-29T10:44:58.113Z | 2,022 | 6 | 10 | 2 | 21 | 0 | 336 | 75 | 2 | 0 | false | true | false | false | false | false | zero |
72,800,086 | Firebase RTDB: Call keepSynced while offline | <p>I'm working on a Flutter app that uses Firebase RTDB. I'm a bit unclear on the mechanism of <code>keepSynced()</code>:</p>
<p>Our app creates new collections and adds data to these collections. The app also observes these collections to display the data. In the process, we call <code>keepSynced(true)</code> in order... | I'm working on a Flutter app that uses Firebase RTDB. I'm a bit unclear on the mechanism of keepSynced() : Our app creates new collections and adds data to these collections. The app also observes these collections to display the data. In the process, we call keepSynced(true) in order to keep the offline cache alive fo... | android|ios|flutter|firebase|firebase-realtime-database | 0 | 2022-06-29T10:46:44.670Z | 2,022 | 6 | 10 | 2 | 56 | 1 | 1,217 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
72,800,090 | Android R.string ids mix in multi-module tests | <p>My app is implemented as a multi-module project (with dynamics module), where there is a shared module with espresso tests. These espresso tests give me different outcomes depending if I run them from Android Studio or from the command line.</p>
<p>The issue I find when I run the tests from the command line is that ... | My app is implemented as a multi-module project (with dynamics module), where there is a shared module with espresso tests. These espresso tests give me different outcomes depending if I run them from Android Studio or from the command line. The issue I find when I run the tests from the command line is that it tries t... | android|android-espresso|android-multi-module | 3 | 2022-06-29T10:46:52.657Z | 2,022 | 6 | 10 | 2 | 43 | 1 | 911 | 46 | 3 | 3 | true | false | false | false | false | false | low |
72,800,092 | JAVA-Assertion fails even expected output seems to be matching with the actual output. Please help me out with the possible solutions | <p>This is the result of Integration testing!</p>
<p>Message:
N/A
Stack trace:
org.opentest4j.AssertionFailedError: <strong>expected</strong>: <Songs Loaded successfully
1 Kiran</p>
<p>Playlist ID - 1</p>
<p>Playlist ID - 2</p>
<p>Delete Successful</p>
<p>Current Song Playing</p>
<p>Song - South of the Border</p>
<p... | This is the result of Integration testing! Message: N/A Stack trace: org.opentest4j.AssertionFailedError: expected : <Songs Loaded successfully 1 Kiran Playlist ID - 1 Playlist ID - 2 Delete Successful Current Song Playing Song - South of the Border Album - No.6 Collaborations Project Artists - Ed Sheeran,Cardi.B,Camil... | java|android|visual-studio-code|project|object-oriented-analysis | 0 | 2022-06-29T10:47:08.440Z | 2,022 | 6 | 10 | 2 | 22 | 0 | 2,134 | 133 | 5 | 1 | true | true | false | false | false | false | zero |
72,800,139 | How to start automatic application after reboot/ turn off on google tv with adb shell? | <p>before i use this command to run apps
adb shell am start /</p>
<p>after reboot device, the apps not running automatic, it must give command " adb shell am start / " again.</p>
<p>any solution about this ?</p> | before i use this command to run apps adb shell am start / after reboot device, the apps not running automatic, it must give command " adb shell am start / " again. any solution about this ? | android | 0 | 2022-06-29T10:50:49.483Z | 2,022 | 6 | 10 | 2 | 28 | 0 | 200 | 86 | 1 | 0 | false | true | false | false | false | false | zero |
72,800,210 | Can't read External Storage files, even after giving permission | <p>I am trying to make a music player in Android Studio.
I have made a function to fetch songs from storage:</p>
<pre><code>public ArrayList<File> fetchSongs(File file){
file.setReadable(true , false);
File [] songs = file.listFiles();
ArrayList<File> ar = new ArrayList<>();
... | I am trying to make a music player in Android Studio. I have made a function to fetch songs from storage: [CODE] file.exists() returns true but file.canRead() returns false I have given permission in Manifest file too: [CODE] I have also requested the permission too using Dexter library. My code in onCreate() : [CODE] | android|android-permissions|android-external-storage | 2 | 2022-06-29T10:56:29.970Z | 2,022 | 6 | 10 | 2 | 24 | 0 | 319 | 63 | 3 | 3 | true | true | false | false | false | false | low |
72,800,362 | Replace "," with ". " in TextWatcher | <p>I am using this TextWatcher for .addtextOnChangeListener, the output of the string is ex: "123,456,77" i want it to be "123.456,77" if i use the replace method on "et" in the "afterTextChanged" method, the number isn't even formatting. With the code below the listener works an... | I am using this TextWatcher for .addtextOnChangeListener, the output of the string is ex: "123,456,77" i want it to be "123.456,77" if i use the replace method on "et" in the "afterTextChanged" method, the number isn't even formatting. With the code below the listener works and e... | java|android|string|replace|textwatcher | 0 | 2022-06-29T11:07:58.647Z | 2,022 | 6 | 11 | 2 | 47 | 1 | 556 | 36 | 5 | 1 | true | false | false | false | false | false | zero |
72,800,399 | ListView cant access last element of the list | <p>I have a list of objects I want to list on the screen and im using a ListView with an adapter. And I have added a listViewItem click event like this:</p>
<pre><code>lstViewData.ItemClick += OnListViewItemClicked;
</code></pre>
<p>The event itself:</p>
<pre><code> private void OnListViewItemClicked(object sender, ... | I have a list of objects I want to list on the screen and im using a ListView with an adapter. And I have added a listViewItem click event like this: [CODE] The event itself: [CODE] The lstViewData has 5 elements in it. So for the purpose of the for loop means i goes from 0 to 4. Which it does. The issue is once i gets... | c#|xamarin|xamarin.android | 0 | 2022-06-29T11:10:44.770Z | 2,022 | 6 | 11 | 2 | 75 | 1 | 709 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
72,800,451 | Starting Activity using Compose Navigation | <p>I'm trying to launch an Activity by clicking on a button set on a BottomNavBar. There's a Compose Navigation set up using <code>NavGraphBuilder.navigation()</code> with a <code>composable()</code> call for each Compose screen like:</p>
<pre><code>navigation(
startDestination = "home",
route = "... | I'm trying to launch an Activity by clicking on a button set on a BottomNavBar. There's a Compose Navigation set up using NavGraphBuilder.navigation() with a composable() call for each Compose screen like: [CODE] I've found out about NavGraphBuilder.activity() , so I was thinking something like: [CODE] And it works, if... | android|android-jetpack-compose|android-navigation|jetpack-compose-navigation | 0 | 2022-06-29T11:14:11.927Z | 2,022 | 6 | 11 | 2 | 184 | 0 | 861 | 42 | 4 | 3 | true | true | 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.