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,233,368 | NPE: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference | <p><em>I've this basic app called Navigation that I was trying to make to understand some concepts where there are 2 activities MainActivity and ActivityB
MainActivity has a textview and a button to go on to ActivityB and ActivityB has an edit text and a button to go back to MainActivity editText takes string and strin... | I've this basic app called Navigation that I was trying to make to understand some concepts where there are 2 activities MainActivity and ActivityB MainActivity has a textview and a button to go on to ActivityB and ActivityB has an edit text and a button to go back to MainActivity editText takes string and string gets ... | java|android|android-studio|kotlin|nullpointerexception | 0 | 2022-05-13T17:23:04.757Z | 2,022 | 5 | 17 | 4 | 431 | 0 | 4,410 | 146 | 5 | 2 | true | true | false | false | false | false | zero |
72,233,397 | How to fetch genre of a movie using its genre_ids from tmdb api in android | <p>I'd like to use the tmdb api in Android to display the movie's genre, but the problem is that we have to first find the genre id before we can display the genre name, and I'm not able to display the genre id and the genre name. Please assist me. <a href="https://developers.themoviedb.org/3/genres/get-movie-list" rel... | I'd like to use the tmdb api in Android to display the movie's genre, but the problem is that we have to first find the genre id before we can display the genre name, and I'm not able to display the genre id and the genre name. Please assist me. I am getting the genre from the TMDB documentation This is what the genre ... | java|android|api | 0 | 2022-05-13T17:25:50.163Z | 2,022 | 5 | 17 | 4 | 34 | 0 | 840 | 74 | 3 | 1 | true | true | false | false | false | false | zero |
72,233,543 | Storing constants in Fragment's companion object - a memory leak? | <p>My understanding of companion object in Kotlin is that they are analogous to <code>static</code> modifiers in Java.</p>
<p>It's bad practice to store static fields in Activities and Fragments as it can lead to memory leaks.</p>
<p>With that in mind, will this kind of code lead to memory leak?</p>
<pre><code> clas... | My understanding of companion object in Kotlin is that they are analogous to static modifiers in Java. It's bad practice to store static fields in Activities and Fragments as it can lead to memory leaks. With that in mind, will this kind of code lead to memory leak? [CODE] | java|android|kotlin | 0 | 2022-05-13T17:41:45.247Z | 2,022 | 5 | 17 | 4 | 42 | 0 | 273 | 65 | 3 | 1 | true | true | false | false | false | false | zero |
72,233,598 | ANR in com.google.android.googlequicksearchbox:search | <p>I am having problems deploying an app onto the Google Play Store. The exception that is getting returned is such:</p>
<pre><code>05-10 14:14:31.383: E/ActivityManager(1572): ANR in com.google.android.googlequicksearchbox:search
05-10 14:14:31.383: E/ActivityManager(1572): PID: 16601
05-10 14:14:31.383: E/ActivityMan... | I am having problems deploying an app onto the Google Play Store. The exception that is getting returned is such: [CODE] https://pastebin.com/ApYNL7KC Any advice would be greatly appreciated! | android|xamarin|sdk|android-anr-dialog | 11 | 2022-05-13T17:46:46.043Z | 2,022 | 5 | 17 | 4 | 2,439 | 2 | 191 | 53 | 4 | 1 | true | false | false | false | true | false | medium |
72,233,632 | RecyclerView editText text change show another field in android | <p>I have recyclerView where i have added a editText. But when I type text to one edittext, text shows another edittext too. Here is the image..</p>
<p><a href="https://i.stack.imgur.com/IGLGw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IGLGw.jpg" alt="enter image description here" /></a></p>
<p>... | I have recyclerView where i have added a editText. But when I type text to one edittext, text shows another edittext too. Here is the image.. Above image, I type 100 to other item, but it also shows in Settlements Here is my adapter: [CODE] Here is my Child View holder [CODE] I call from activity: [CODE] What is the wr... | java|android|android-recyclerview | 0 | 2022-05-13T17:49:09.993Z | 2,022 | 5 | 17 | 4 | 61 | 0 | 354 | 63 | 3 | 3 | true | true | false | false | false | false | zero |
72,233,635 | How to pass array list data to a fragment from main activity when using bottom navigation view and Android Navigation component? | <p>I am trying to pass array list data to one of my fragments in the nav bar from main activity. Is there a simple way to implement this? Or should I use activity instead of the fragment? I need to pass the array list data to my HomeFragment and use recycler view adapter in the fragment, but now the issue is I don't kn... | I am trying to pass array list data to one of my fragments in the nav bar from main activity. Is there a simple way to implement this? Or should I use activity instead of the fragment? I need to pass the array list data to my HomeFragment and use recycler view adapter in the fragment, but now the issue is I don't know ... | android-studio|kotlin | 0 | 2022-05-13T17:49:23.327Z | 2,022 | 5 | 17 | 4 | 396 | 1 | 433 | 128 | 2 | 1 | true | false | false | false | false | false | zero |
72,233,715 | Could not compile build file, startup failed in android studio | <p>1 Build File "C:\Users\Macking Crasher\Desktop\Nasmus\gl/1a.gradle Tanw: 19</p>
<p>Could not compile auslaste "C:users\Macking Crusher\Desktop\nashoploustd.greate'.</p>
<p>startup failed!</p>
<p>build File "FLAWLeca\lingking, Crusher\Deskto='\Viesti\23.0,qraffle"# 39; only builoscript (1, pluginm... | 1 Build File "C:\Users\Macking Crasher\Desktop\Nasmus\gl/1a.gradle Tanw: 19 Could not compile auslaste "C:users\Macking Crusher\Desktop\nashoploustd.greate'. startup failed! build File "FLAWLeca\lingking, Crusher\Deskto='\Viesti\23.0,qraffle"# 39; only builoscript (1, pluginmanagement () and other p... | android|android-studio|kotlin | 0 | 2022-05-13T17:57:51.080Z | 2,022 | 5 | 17 | 4 | 211 | 0 | 443 | 62 | 3 | 0 | false | true | false | false | false | false | zero |
72,233,761 | Android stud. not building apk | <p>my problem is that I want to make a signed apk file, I choose create signed apk file enter anything I need to enter, but the apk isn't appearing at the desktop (apk dest. location:Desktop)
Here is the build log:</p>
<pre><code>Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Running 'after' tas... | my problem is that I want to make a signed apk file, I choose create signed apk file enter anything I need to enter, but the apk isn't appearing at the desktop (apk dest. location:Desktop) Here is the build log: [CODE] | android-studio|apk | 0 | 2022-05-13T18:02:54.567Z | 2,022 | 5 | 18 | 4 | 47 | 1 | 218 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
72,233,805 | Git not working properly in Android studio, not showing changes for XML files | <p>I have been having an issue, git does not recognize changes on any XML file on Android Studio, for example, androidManifest.xml, or any XML file on the res folder. I have used Android Studio as my Git client, I have changed it thinking that the problem was a bug on Android Studio, and now I am using GitHub Desktop, ... | I have been having an issue, git does not recognize changes on any XML file on Android Studio, for example, androidManifest.xml, or any XML file on the res folder. I have used Android Studio as my Git client, I have changed it thinking that the problem was a bug on Android Studio, and now I am using GitHub Desktop, but... | git|android-studio | 2 | 2022-05-13T18:06:53.553Z | 2,022 | 5 | 18 | 4 | 476 | 1 | 879 | 77 | 2 | 1 | true | false | false | false | false | false | low |
72,233,842 | How to use WorkManager with Glance composable? | <p>In the the below medium article written by a Google Android Engineer, it states that the best way to fetch data in a glance widget is to use <code>WorkManager</code>.</p>
<p><em>The best way to fetch data asynchronously from the background is by using WorkManager and storing the data as recommended in the Guide to b... | In the the below medium article written by a Google Android Engineer, it states that the best way to fetch data in a glance widget is to use WorkManager . The best way to fetch data asynchronously from the background is by using WorkManager and storing the data as recommended in the Guide to background work. The import... | android-workmanager|glance-appwidget | 0 | 2022-05-13T18:11:30.137Z | 2,022 | 5 | 18 | 4 | 76 | 1 | 693 | 46 | 2 | 0 | false | false | false | false | false | false | zero |
72,233,983 | How to call a element from Layout without use findViewId() in Kotlin? | <p>I didn't know this was possible, but I was following an example and I see this piece of code:</p>
<pre><code>import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVie... | I didn't know this was possible, but I was following an example and I see this piece of code: [CODE] Here is the code: https://gist.github.com/smartherd/0803ba4e287d6aa0d441d0a221eeb013 "toggleButtonGroup" is the ID of the element in layout, and he doesn´t declare it anywhere in the MainActivity, how can I do... | java|android|android-studio|kotlin|intellij-idea | 0 | 2022-05-13T18:25:54.773Z | 2,022 | 5 | 18 | 4 | 58 | 1 | 326 | 69 | 5 | 1 | true | false | false | false | false | false | zero |
72,233,993 | How to clear webview cache when server side content updated? | <p>I have a HTML cache enabled WebView app that sends Javascript fetch request to server and gets images list from server, images on server updating every random hour like: today 11:00, 16:00, tomorrow 14:00, 19:00. Images count is always 20 and their names are always like: 0.png, 1.png, 2.png,... 20.png.</p>
<p>Proble... | I have a HTML cache enabled WebView app that sends Javascript fetch request to server and gets images list from server, images on server updating every random hour like: today 11:00, 16:00, tomorrow 14:00, 19:00. Images count is always 20 and their names are always like: 0.png, 1.png, 2.png,... 20.png. Problem is once ... | java|caching|webview|android-webview | 0 | 2022-05-13T18:26:52.583Z | 2,022 | 5 | 18 | 4 | 81 | 0 | 753 | 60 | 4 | 1 | true | true | false | false | false | false | zero |
72,234,194 | Flutter: Stack Overlap widget with second widget | <p><a href="https://i.stack.imgur.com/O5jOe.jpg" rel="nofollow noreferrer">Image link</a></p>
<p>How can I push the child widget outside the stack's bound.</p>
<p>I want to overlap the search bar at AppBar widget.</p>
<p>Stack's overflow property not working what we use instead of it.</p>
<p>I am using the positioned w... | Image link How can I push the child widget outside the stack's bound. I want to overlap the search bar at AppBar widget. Stack's overflow property not working what we use instead of it. I am using the positioned widget to move on child widget to outside the stack's boundary, but it remains same I am getting issue I nee... | android|flutter|visual-studio-2010|flutter-layout | 1 | 2022-05-13T18:45:58.170Z | 2,022 | 5 | 18 | 4 | 69 | 1 | 365 | 48 | 4 | 1 | true | false | false | false | false | false | low |
72,234,403 | How to open SQLite DB created by one Xamarin Android app in another app? | <p>I have a Xamarin Android app which creates SQLite DB. After reinstaling this app I am not able open the DB with a new version of the app. For the testing purpose the DB file is located at a Download folder.
When the app is just updated not reinstaled it access the DB normaly.</p>
<p>A motivation: To get an independe... | I have a Xamarin Android app which creates SQLite DB. After reinstaling this app I am not able open the DB with a new version of the app. For the testing purpose the DB file is located at a Download folder. When the app is just updated not reinstaled it access the DB normaly. A motivation: To get an independent DB file... | c#|android|sqlite|xamarin | 1 | 2022-05-13T19:08:44.190Z | 2,022 | 5 | 19 | 4 | 121 | 1 | 454 | 72 | 4 | 2 | true | false | false | false | false | false | low |
72,234,573 | Socket connection not workin in flutter release apk | <p>I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I am trying socket programming.</p>
<p>The server code is fairly simple, I create a new thread for every client connected and I give them a bunch of URLs, later... | I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I am trying socket programming. The server code is fairly simple, I create a new thread for every client connected and I give them a bunch of URLs, later on, this ... | java|android|flutter|dart|sockets | 1 | 2022-05-13T19:28:36.530Z | 2,022 | 5 | 19 | 4 | 58 | 0 | 1,721 | 51 | 5 | 2 | true | true | false | false | false | false | low |
72,234,590 | Android: How do I programmatically DOWNLOAD an SSL certificate from a provided HTTPS URL? | <pre><code> try {
final SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket();
Timber.e("RAWR: BEFORE CONNECT");
sslSocket.connect(new InetSocketAddress("192.168.1.90", 8443));
Timber.e("RAWR: AFT... | [CODE] I want to DOWNLOAD the certificates using the getPeerCertificates() but it throws SSLPeerUnverifiedException before it can get the certs. The environments I'm dealing with have 100% self-signed certificates and they CANNOT be loaded on device before hand. The idea is customers do not have to load this themselves... | java|android|ssl|networking | 1 | 2022-05-13T19:31:22Z | -1 | -1 | -1 | -1 | 316 | 1 | 408 | 89 | 4 | 1 | true | false | false | false | false | false | low |
72,234,716 | Fatal Exception startactivity in Android studio | <p>I am totally new at Android / Java. and i have some project school and i have this code</p>
<pre><code>```
package com.example.utsmobileprograming;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.CheckBox;
i... | I am totally new at Android / Java. and i have some project school and i have this code [CODE] but i didn't find my error because i see this the log in my android studio [CODE] how to solve this? is the startActivity my problem ? | android-studio | 0 | 2022-05-13T19:45:19.380Z | 2,022 | 5 | 19 | 4 | 48 | 1 | 229 | 47 | 1 | 2 | true | false | false | false | false | false | zero |
72,234,729 | MainActivity is not showing log statements | <p>Hi I am new to android development and the problem is Whenever I am using MainActivity in logcat as a filter it is not showing me Log statements for this <code> Log.i(TAG, "TAG on Fb")</code>(my tag is also MainActivity) and <code>Log.i(TAG, "onitemclick $position")</code> for this it is shown by... | Hi I am new to android development and the problem is Whenever I am using MainActivity in logcat as a filter it is not showing me Log statements for this Log.i(TAG, "TAG on Fb") (my tag is also MainActivity) and Log.i(TAG, "onitemclick $position") for this it is shown by its function that is onItemC... | android-studio|kotlin | 0 | 2022-05-13T19:46:58.507Z | 2,022 | 5 | 19 | 4 | 15 | 0 | 434 | 42 | 2 | 1 | true | true | false | false | false | false | zero |
72,234,740 | Firebase read and onClick handler Error in reading the Firebase value: pricecode | <p>Please tell me specifically how to fix the function so that when the button is clicked (onclick handler) passes the value from the database to the firebase USER - "price" branch. I can't figure it out for about two days. I will be grateful for a <strong>concrete example</strong> and correction of my functi... | Please tell me specifically how to fix the function so that when the button is clicked (onclick handler) passes the value from the database to the firebase USER - "price" branch. I can't figure it out for about two days. I will be grateful for a concrete example and correction of my function. Thanks. enter im... | java|android|firebase|firebase-realtime-database | 1 | 2022-05-13T19:48:16.130Z | 2,022 | 5 | 19 | 4 | 32 | 0 | 347 | 80 | 4 | 1 | true | true | false | false | false | false | low |
72,235,018 | How can I Make from Flutter Project files a one single file to install it on Android or IOS? | <p>I am just starting learn Flutter, I build a simple as you see on the photos.
My problem is I have a windows 11 and I don't have any MacOS Device, But I want to use my app on my iPhone, and I want to get a file so I can download the app and use it on my iPhone, and I would like to know the same thing for Android devi... | I am just starting learn Flutter, I build a simple as you see on the photos. My problem is I have a windows 11 and I don't have any MacOS Device, But I want to use my app on my iPhone, and I want to get a file so I can download the app and use it on my iPhone, and I would like to know the same thing for Android devices... | android|ios|flutter|flutter-test | 0 | 2022-05-13T20:18:09.883Z | 2,022 | 5 | 20 | 4 | 97 | 1 | 456 | 92 | 4 | 0 | false | false | false | false | false | false | zero |
72,235,081 | Can React Native's PlatformColor get colors for dark mode when the system is in light mode? | <p>I can't find any details on whether or not <a href="https://reactnative.dev/docs/platformcolor" rel="nofollow noreferrer"><code>PlatformColor</code></a> can access colors that aren't part of the currently selected system theme.</p>
<p>For example, if the system theme is set to "light," can we get the color... | I can't find any details on whether or not PlatformColor can access colors that aren't part of the currently selected system theme. For example, if the system theme is set to "light," can we get the colors for dark mode? | javascript|android|ios|react-native | 1 | 2022-05-13T20:24:36.270Z | 2,022 | 5 | 20 | 4 | 69 | 0 | 230 | 91 | 4 | 0 | false | true | false | false | false | false | low |
72,235,110 | Save image to internal storage using ActivityResultContracts.GetContent(). - (Kotlin/Java/Android) | <p>I'm new to file storage. My main goal is to take a picture with the camera, store it with good quality, then display it in an ImageView. I want to avoid asking for user permission (to use camera and external storage), and want to make this as simple as possible.</p>
<p>To take a picture, I'm using</p>
<p><code>val c... | I'm new to file storage. My main goal is to take a picture with the camera, store it with good quality, then display it in an ImageView. I want to avoid asking for user permission (to use camera and external storage), and want to make this as simple as possible. To take a picture, I'm using val capturePicture = registe... | android|image|kotlin|android-camera|internal-storage | 1 | 2022-05-13T20:27:19.137Z | 2,022 | 5 | 20 | 4 | 434 | 1 | 828 | 98 | 5 | 0 | false | false | false | false | false | false | low |
72,235,432 | How to programmatically read and open Bluetooth location permission setting for Android app | <p>I am designing an app in Android Studio.
It scans for BLE (Bluettoth Low Energy) devices.</p>
<p>As soon as I try to scan I get the following popup message:</p>
<blockquote>
<p>Location permission required</p>
<p>Starting from Android M (6.0), the system requires apps to be granted
location access in order to scan f... | I am designing an app in Android Studio. It scans for BLE (Bluettoth Low Energy) devices. As soon as I try to scan I get the following popup message: Location permission required Starting from Android M (6.0), the system requires apps to be granted location access in order to scan for BLE devices. There is no OK button... | android-studio|permissions|bluetooth-lowenergy | 0 | 2022-05-13T21:06:42.533Z | 2,022 | 5 | 21 | 4 | 416 | 1 | 1,783 | 91 | 3 | 3 | true | false | false | false | false | false | zero |
72,235,587 | Query method parameters should either be a type that can be converted into a database column or a List | <pre><code>package com.example.hand.data;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.TypeConverters;
import androidx.room.Update;
import java.util.ArrayList;
import java.util.Date;
import java.... | [CODE] the error C:\Users\MCD\AndroidStudioProjects\Hand\app\src\main\java\com\example\hand\data\salaryDao.java:30: error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this. LiveData<Lis... | java|android|android-room | 1 | 2022-05-13T21:27:40.580Z | 2,022 | 5 | 21 | 4 | 61 | 1 | 347 | 102 | 3 | 1 | true | false | false | false | false | false | low |
72,235,701 | best way to compare images for similarity in android | <p>how to compare two images, to know are they similar for 100%?
I was getting path of all images from mediastore, then converted to bitmap and compared using bitmap.sameAs(bitmapToCompare), but it takes to much memory and got outofmemory exepcetion
Now i am trying to use OpenCv library as:</p>
<pre><code> val img1: M... | how to compare two images, to know are they similar for 100%? I was getting path of all images from mediastore, then converted to bitmap and compared using bitmap.sameAs(bitmapToCompare), but it takes to much memory and got outofmemory exepcetion Now i am trying to use OpenCv library as: [CODE] but get an error in Core... | android|kotlin | -1 | 2022-05-13T21:43:44.587Z | 2,022 | 5 | 21 | 4 | 181 | 1 | 397 | 52 | 2 | 2 | true | false | false | false | false | true | negative |
72,235,706 | Android: Automatically modify metadata of any new file(s) saved or downloaded | <p>Is there a way to attach a piece of custom code to the Android OS which automatically deletes all the metadata of any new file(s) saved or downloaded (e.x. owner, last updated by, creation date, etc.)?</p> | Is there a way to attach a piece of custom code to the Android OS which automatically deletes all the metadata of any new file(s) saved or downloaded (e.x. owner, last updated by, creation date, etc.)? | java|android|kotlin|operating-system | 1 | 2022-05-13T21:44:24.583Z | 2,022 | 5 | 21 | 4 | 52 | 0 | 201 | 77 | 4 | 0 | false | true | false | false | false | false | low |
72,235,807 | Usecase inside a custom view | <p>First of all, sorry for my english, this is google translator.</p>
<p>I am learning mvvm, maybe I have some misconception but I think I can understand it well.</p>
<p>My goal is to load an image in an imageview, but the final path of the image is built with the width of the imageview</p>
<pre><code>GET /images
&... | First of all, sorry for my english, this is google translator. I am learning mvvm, maybe I have some misconception but I think I can understand it well. My goal is to load an image in an imageview, but the final path of the image is built with the width of the imageview [CODE] [CODE] Now if I want to display john's ava... | android|android-studio|mvvm|viewmodel | 1 | 2022-05-13T22:03:09.273Z | 2,022 | 5 | 22 | 4 | 70 | 0 | 858 | 28 | 4 | 6 | true | true | false | false | false | false | low |
72,235,873 | How can I use a virtual audio sink on an android emulator in headless mode? Getting pulseaudio init error when launching emulator | <p>I have a virtual sink on my host machine. pulseaudio is running as a system wide daemon. When trying to launch an emulator with the follow command:</p>
<p><code>emulator -avd emulator -no-window</code></p>
<p>I get the following output:</p>
<p><code>pulseaudio: Failed to initialize PA contextCould not init 'pa' audi... | I have a virtual sink on my host machine. pulseaudio is running as a system wide daemon. When trying to launch an emulator with the follow command: emulator -avd emulator -no-window I get the following output: pulseaudio: Failed to initialize PA contextCould not init 'pa' audio driver If I were to exclude -no-window fl... | android|android-studio|emulation|qemu|pulseaudio | 4 | 2022-05-13T22:15:12.500Z | 2,022 | 5 | 22 | 4 | 122 | 0 | 422 | 129 | 5 | 0 | false | true | false | false | false | false | low |
72,235,891 | How to update listview in Fragment with custom adapter | <p>I am giving product id with barcode scanner. I can add product to listView but when i try to increase or decrease amount of the product. It doesn't update UI. I used Toast message to see weather list is updated, it updates list but doesn't update UI</p>
<p>I have tried to use runOnUiThread() but i couldn't find any ... | I am giving product id with barcode scanner. I can add product to listView but when i try to increase or decrease amount of the product. It doesn't update UI. I used Toast message to see weather list is updated, it updates list but doesn't update UI I have tried to use runOnUiThread() but i couldn't find any solution. ... | java|android | 0 | 2022-05-13T22:19:33.527Z | 2,022 | 5 | 22 | 4 | 23 | 1 | 477 | 54 | 2 | 3 | true | false | false | false | false | false | zero |
72,235,896 | Change switch color programmatically in Android Studio using Kotlin | <p>I am trying to add a color to the switches in Android Studio using Kotlin
I tried few answers fronm this forum and couldn't get it to work</p>
<p>Is it possible to make this work programmatically?</p>
<p><a href="https://i.stack.imgur.com/Om7fR.png" rel="nofollow noreferrer">Switch color</a></p>
<p>I modified my cod... | I am trying to add a color to the switches in Android Studio using Kotlin I tried few answers fronm this forum and couldn't get it to work Is it possible to make this work programmatically? Switch color I modified my code as mentioned in answer @vishnu Full code is below: [CODE] I am not seeing the color while loading ... | android|kotlin | 1 | 2022-05-13T22:20:08.980Z | 2,022 | 5 | 22 | 4 | 124 | 3 | 507 | 67 | 2 | 1 | true | false | false | false | false | false | low |
72,235,984 | Getting the ProductDetails price in android-billing-5.0 | <p>I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now deprecated so I am migrating to using ProductDetails using the <a href="https://developer.android.com/google/play/billing/migrate-gpblv5" rel="noreferrer">migration instructions</a>.</p>
<p>Previously I displayed the purcha... | I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now deprecated so I am migrating to using ProductDetails using the migration instructions . Previously I displayed the purchase price for in-app purchases to the user using SkuDetails.price , but I cannot find a similar method in ... | android|kotlin|in-app-billing|android-billing|play-billing-library | 12 | 2022-05-13T22:34:23.527Z | 2,022 | 5 | 22 | 4 | 1,985 | 2 | 464 | 55 | 5 | 0 | false | false | false | false | true | false | medium |
72,235,985 | Call Fragment Dialog from Activity | <p>I call "DialogFragment" in "fragment" which invokes "FloatingActionButton" in "Activity" and "CallBack interface". But in "Fragment" which calls "DialogFragment" returns the Null value for "GetParentFragmentManager"</p>
<p>In "MainA... | I call "DialogFragment" in "fragment" which invokes "FloatingActionButton" in "Activity" and "CallBack interface". But in "Fragment" which calls "DialogFragment" returns the Null value for "GetParentFragmentManager" In "MainActivity&qu... | android|android-studio | 2 | 2022-05-13T22:34:36.803Z | 2,022 | 5 | 22 | 4 | 21 | 0 | 892 | 34 | 2 | 3 | true | true | false | false | false | false | low |
72,236,021 | Is there a way to trigger an external event or app when Google Maps says "You have arrived"? | <p>Is there a way to hook the "You have arrived" event in the Google Maps android app?</p>
<p>The Maps API can do this, but only if I recreate a lot of the functionality of the Android app, which is a lot of wheel to re-invent just to catch a single event.</p>
<p>Has anybody done anything similar.</p>
<p>The ... | Is there a way to hook the "You have arrived" event in the Google Maps android app? The Maps API can do this, but only if I recreate a lot of the functionality of the Android app, which is a lot of wheel to re-invent just to catch a single event. Has anybody done anything similar. The end result is that I wan... | android|google-maps | 1 | 2022-05-13T22:41:08.773Z | 2,022 | 5 | 22 | 4 | 58 | 1 | 423 | 92 | 2 | 0 | false | false | false | false | false | false | low |
72,236,143 | Ways to work around the Android workManager 15 minute minimum interval? | <p>The game I am working on is a missile-oriented GPS-based combat game on Android. The app checks every 15 minutes to see if the user is under attack by any other players, and if so, sends them a notification that they are under attack. Currently, because of the minimum 15 minute interval, the app sends these notifica... | The game I am working on is a missile-oriented GPS-based combat game on Android. The app checks every 15 minutes to see if the user is under attack by any other players, and if so, sends them a notification that they are under attack. Currently, because of the minimum 15 minute interval, the app sends these notificatio... | java|android | 1 | 2022-05-13T23:06:10.997Z | 2,022 | 5 | 23 | 4 | 91 | 2 | 624 | 71 | 2 | 1 | true | false | false | false | false | false | low |
72,236,145 | Android Studio Kotlin app "keeps stopping" when I run it | <p>I am just trying to set up a spinner configured as a dropdown menu, but I can't even test my app to see if it works because every time I run it, it immediately crashes. I know that my issue is related to a null object reference at line 21 in my MainActivity.kt file. Here is the problem code:
<code>val spinner: Spinn... | I am just trying to set up a spinner configured as a dropdown menu, but I can't even test my app to see if it works because every time I run it, it immediately crashes. I know that my issue is related to a null object reference at line 21 in my MainActivity.kt file. Here is the problem code: val spinner: Spinner = find... | android-studio|kotlin|null | 0 | 2022-05-13T23:06:21.377Z | 2,022 | 5 | 23 | 4 | 39 | 1 | 494 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
72,236,227 | How to refresh snapshot in flutter | <p>I what to refresh home page so I create widget called <code>RefreshWidget</code> look like this</p>
<pre><code> import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class RefreshWidget extends StatefulWidget {
// final GlobalKey<Refre... | I what to refresh home page so I create widget called RefreshWidget look like this [CODE] I use it in home and it work just fine like this in side body after check the loading [CODE] loadPost [CODE] getTheData [CODE] The problem The post save uid. And I retrieve in the following code (copied from the first code I showe... | android|firebase|flutter|dart|google-cloud-firestore | 1 | 2022-05-13T23:25:02.263Z | 2,022 | 5 | 23 | 4 | 178 | 0 | 650 | 34 | 5 | 5 | true | true | false | false | false | false | low |
72,236,276 | How can i change the entire speed (timing) of a android game made with cocos2dx? | <p>i'm making reverse engineering on a android game made with cocos2dx library, editing the .so file (libcocos2dcpp.so) with ida pro and a hex editor. i've getting success changing small things, like swapping buttons functions (changing the jump addresses).</p>
<p>I think this game action too slow, there is someway to ... | i'm making reverse engineering on a android game made with cocos2dx library, editing the .so file (libcocos2dcpp.so) with ida pro and a hex editor. i've getting success changing small things, like swapping buttons functions (changing the jump addresses). I think this game action too slow, there is someway to increase t... | android|cocos2d-iphone|cocos2d-x|reverse-engineering|ida | 1 | 2022-05-13T23:36:31.470Z | 2,022 | 5 | 23 | 4 | 62 | 0 | 807 | 80 | 5 | 0 | false | true | false | false | false | false | low |
72,236,377 | Intent action type ("image/jpeg") not enforced by all registered apps, which return incorrect filetypes | <h2>Objective</h2>
<p>Send an intent to open the gallery for selecting photos, show photos only, and allow multi select. Simple.</p>
<h2>Problem</h2>
<p>There are some apps that are registered to receive this intent, but don't appear to properly enforce the photos-only-requirement. For example, an app called "File... | Objective Send an intent to open the gallery for selecting photos, show photos only, and allow multi select. Simple. Problem There are some apps that are registered to receive this intent, but don't appear to properly enforce the photos-only-requirement. For example, an app called "File Manager" with over 50M... | android|android-intent|photo|pick | 4 | 2022-05-14T00:00:13.370Z | 2,022 | 5 | 0 | 5 | 82 | 0 | 1,335 | 103 | 4 | 4 | true | true | false | false | false | false | low |
72,236,470 | How to check if the device uses the right-to-left direction using Jetpack Compose? | <p>On Android we can use <a href="https://stackoverflow.com/questions/26549354/android-determine-if-device-is-in-right-to-left-language-layout">android determine if device is in right to left language/layout</a>.</p>
<p>But does Jetpack Compose provide any API to check the layout direction? Without interacting with the... | On Android we can use android determine if device is in right to left language/layout . But does Jetpack Compose provide any API to check the layout direction? Without interacting with the resources or other Android APIs. | android|android-jetpack-compose | 0 | 2022-05-14T00:22:20.007Z | 2,022 | 5 | 0 | 5 | 175 | 1 | 221 | 82 | 2 | 0 | false | false | false | false | false | false | zero |
72,236,568 | how to get through 'Future<List<QuerySnapshot<Map<String, dynamic>>>> and get data | <p>I have a list of type <code>'Future<List<QuerySnapshot<Map<String, dynamic>>>></code>
that looks like this,</p>
<pre><code>var postlist = FirebaseFirestore.instance.collection('posts').orderBy("datePublished", descending: true).where('uid', whereIn: theUserData['following']).snapsho... | I have a list of type 'Future<List<QuerySnapshot<Map<String, dynamic>>>> that looks like this, [CODE] and i want it to go through post list and get data, how? and thank you in advance!! <3 | android|firebase|flutter|android-studio | 0 | 2022-05-14T00:50:29.660Z | 2,022 | 5 | 0 | 5 | 27 | 1 | 188 | 82 | 4 | 1 | true | false | false | false | false | false | zero |
72,236,582 | How to create a folder and save files in root directory from api 30 android? | <p>note: when I say root, I mean the folder where the download, documents, music, android folders are located, etc…</p>
<pre><code>Environment.getExternalStoragePublicDirectory
</code></pre>
<p>Guys, I'm new to the android ecosystem, I'm not a professional programmer, but I come from PHP,
i'm learning kotlin on the int... | note: when I say root, I mean the folder where the download, documents, music, android folders are located, etc… [CODE] Guys, I'm new to the android ecosystem, I'm not a professional programmer, but I come from PHP, i'm learning kotlin on the internet, and i started making an app, a download manager to be more specific... | java|android|android-studio|kotlin | 1 | 2022-05-14T00:53:48.510Z | 2,022 | 5 | 0 | 5 | 517 | 0 | 2,564 | 76 | 4 | 4 | true | true | false | false | false | false | low |
72,236,701 | Reading Latitude and longitude from CSV file and display in google map after applying filtering to a column | <p>I managed to fetch long and lat values from CSV and loop them to display all values in google map .Now i need to filter column Fuel_Type = "Unleaded 91" how to add this to while loop ?
<em>while( (line = reader.readLine()) != null)</em></p>
<p>here is my code to fetch data from CSV</p>
<pre><code> private ... | I managed to fetch long and lat values from CSV and loop them to display all values in google map .Now i need to filter column Fuel_Type = "Unleaded 91" how to add this to while loop ? while( (line = reader.readLine()) != null) here is my code to fetch data from CSV [CODE] my CSV file : [CODE] | android|csv|google-maps|arraylist | 0 | 2022-05-14T01:29:49.090Z | 2,022 | 5 | 1 | 5 | 113 | 1 | 304 | 107 | 4 | 2 | true | false | false | false | false | false | zero |
72,236,725 | Material3 CircularProgressIndicator not working in Mi11x Pro | <p>Hi I am using android material 3, I try to show Progress Indicator as per google guidelines
<a href="https://github.com/material-components/material-components-android/blob/master/docs/components/ProgressIndicator.md" rel="nofollow noreferrer">https://github.com/material-components/material-components-android/blob/m... | Hi I am using android material 3, I try to show Progress Indicator as per google guidelines https://github.com/material-components/material-components-android/blob/master/docs/components/ProgressIndicator.md // Material Design 3 implementation 'com.google.android.material:material:1.7.0-alpha01' The progress indicator ... | android|material-design|material-components-android|material-components | 0 | 2022-05-14T01:38:42.837Z | 2,022 | 5 | 1 | 5 | 205 | 0 | 558 | 60 | 4 | 2 | true | true | false | false | false | false | zero |
72,236,761 | Why does build folder in Android Development studio grow to 1 GB when resulting compile file is 50 MB? | <p>The build folder grew to 1 GB when compile size is 50 MB using Android studio. Why is this happening? Is it normal?</p> | The build folder grew to 1 GB when compile size is 50 MB using Android studio. Why is this happening? Is it normal? | android|android-studio | 0 | 2022-05-14T01:48:34.440Z | 2,022 | 5 | 1 | 5 | 31 | 1 | 115 | 102 | 2 | 0 | false | false | false | false | false | false | zero |
72,236,821 | .class file too large | <p>I have a kotlin file with a function that returns a list of strings with 10,000 elements, but when compiling it generates an error, saying that the .class file is too large. What I can do?</p>
<pre><code> return listOf( "string 1", "string 2", ... "string 10,000" )
</code></pre>
<p>eac... | I have a kotlin file with a function that returns a list of strings with 10,000 elements, but when compiling it generates an error, saying that the .class file is too large. What I can do? [CODE] each string is between 5 and 20 characters or so. The file has nothing but the function error [CODE] | android|kotlin|runtimeexception|.class-file | 0 | 2022-05-14T02:08:29.790Z | 2,022 | 5 | 2 | 5 | 66 | 0 | 296 | 21 | 4 | 2 | true | true | false | false | false | false | zero |
72,236,847 | How can i get the value inside the child and put it on a array | <p>heres a image of my database:</p>
<p><img src="https://i.stack.imgur.com/xfxcF.png" alt="heres a image of my database" /></p>
<p>heres my code</p>
<pre><code>Query countQuery = databaseReference.child("evacuation").orderByChild("evacuationNumber");
List<Places> placesList = new ArrayList&l... | heres a image of my database: heres my code [CODE] | android|firebase-realtime-database|data-retrieval | 0 | 2022-05-14T02:17:15.403Z | 2,022 | 5 | 2 | 5 | 19 | 0 | 50 | 62 | 3 | 1 | true | true | false | false | false | false | zero |
72,236,931 | Trying to implement Facebook Login using Firebase on Android Studio. Screen is stuck loading facebook login page when i try to sign in | <p>i'm a beginner who is learning how to use Android studio and this is my first time posting on Stack Overflow. I wish to implement Facebook login on my android app. I mostly followed this tutorial (<a href="https://www.youtube.com/watch?v=ImbuK35vmzs&t=1540s" rel="nofollow noreferrer">https://www.youtube.com/watc... | i'm a beginner who is learning how to use Android studio and this is my first time posting on Stack Overflow. I wish to implement Facebook login on my android app. I mostly followed this tutorial ( https://www.youtube.com/watch?v=ImbuK35vmzs&t=1540s ) to create the sign in using facebook. While I'm able to run the app,... | java|android|firebase|facebook|authentication | 0 | 2022-05-14T02:41:02.800Z | 2,022 | 5 | 2 | 5 | 52 | 0 | 831 | 134 | 5 | 1 | true | true | false | false | false | false | zero |
72,236,965 | The relationship between kswapd、low memory killer(lmk) and low memory killer daemon(lmkd)? | <p>In my cognition.if lmk does not exist,lmkd will kill process.otherwise,it will call lmk to kill process.I have some question about this way.</p>
<ol>
<li>Is lmk called by utilizing a callback function when shrink_slab is called?if it's correct, then can i think that lmkd wakes up lmk by shrink_slab?</li>
<li>Kswapd ... | In my cognition.if lmk does not exist,lmkd will kill process.otherwise,it will call lmk to kill process.I have some question about this way. Is lmk called by utilizing a callback function when shrink_slab is called?if it's correct, then can i think that lmkd wakes up lmk by shrink_slab? Kswapd will call shrink_slab,so ... | android|linux-kernel|low-memory | 0 | 2022-05-14T02:50:34.533Z | 2,022 | 5 | 2 | 5 | 87 | 0 | 459 | 90 | 3 | 0 | false | true | false | false | false | false | zero |
72,236,968 | Can't show/hide menu items on Kotlin - Android Studio | <p>my application has a menu of 3 options, and what I want is that according to a condition that I define, it shows only 2 options, or it shows 3.
I have tried all the options that I have found on google and here, but none have worked for me.</p>
<p>My idea is that as soon as the view is created, the menu already shows... | my application has a menu of 3 options, and what I want is that according to a condition that I define, it shows only 2 options, or it shows 3. I have tried all the options that I have found on google and here, but none have worked for me. My idea is that as soon as the view is created, the menu already shows the optio... | android|android-studio|kotlin|show-hide | 0 | 2022-05-14T02:51:00.937Z | 2,022 | 5 | 2 | 5 | 99 | 1 | 632 | 53 | 4 | 3 | true | false | false | false | false | false | zero |
72,237,358 | How to convert an activity to fragment in Android studio | <p>Can someone tell me how i do that or someone can change this activity to fragment for me.
i have very few experiance in cooding right now, so i can't do this my self.</p>
<pre><code>public class SplashActivity extends AppCompatActivity {
FirebaseAuth auth;
FirebaseUser user;
@Override
protected void onCreate(Bundl... | Can someone tell me how i do that or someone can change this activity to fragment for me. i have very few experiance in cooding right now, so i can't do this my self. [CODE] } | android|android-fragments|android-activity | 0 | 2022-05-14T04:28:45.083Z | 2,022 | 5 | 4 | 5 | 90 | 1 | 175 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
72,237,656 | error: incompatible types: ImageActivity cannot be converted to Context | <p>I'm getting this incompatible type error for my code. The error shows in ImageActivity class.</p>
<p>The error is in line: <code>imageAdapter = new ImageAdapter(ImageActivity.this, uploads);</code>
It says <code>ImageActivity.this</code> can't convert to Context type and I'm not sure why.</p>
<p>I did some research ... | I'm getting this incompatible type error for my code. The error shows in ImageActivity class. The error is in line: imageAdapter = new ImageAdapter(ImageActivity.this, uploads); It says ImageActivity.this can't convert to Context type and I'm not sure why. I did some research and I found that I could use getActivity() ... | java|android|firebase | 0 | 2022-05-14T05:43:51.520Z | 2,022 | 5 | 5 | 5 | 54 | 1 | 497 | 71 | 3 | 2 | true | false | false | false | false | false | zero |
72,237,755 | this application requires the latest version of arcore but installed | <p>I'm using AR for my app.
when I want to use AR I got this message:</p>
<blockquote>
<p>this application requires the latest version of arcore but installed</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/A2GYD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A2GYD.jpg" alt="enter image desc... | I'm using AR for my app. when I want to use AR I got this message: this application requires the latest version of arcore but installed but it installed: [CODE] | java|android|sceneform | 0 | 2022-05-14T06:06:14.580Z | 2,022 | 5 | 6 | 5 | 45 | 0 | 160 | 68 | 3 | 1 | true | true | false | false | false | false | zero |
72,237,784 | Android UI broken when run | <p>I am facing very strange problem, though I am beginner level on Android. after designed my layout file, when i run this android project by using physical device then i actually not find expected UI.
Here is the Layout UI and it's XML code:-</p>
<p>Design:-</p>
<p><a href="https://i.stack.imgur.com/wRiy6.png" rel="no... | I am facing very strange problem, though I am beginner level on Android. after designed my layout file, when i run this android project by using physical device then i actually not find expected UI. Here is the Layout UI and it's XML code:- Design:- XML Code:- [CODE] And this is my physical devices unexpected output:- ... | java|android|android-studio | 0 | 2022-05-14T06:12:41.890Z | 2,022 | 5 | 6 | 5 | 48 | 1 | 427 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
72,237,859 | How to handle exo players in recycler view? | <p>How can we use multiple exo player in a recycler view? I saw many posts and videos like <a href="https://www.youtube.com/watch?v=UsxZrMXzYzo" rel="nofollow noreferrer">this</a> and <a href="https://androidwave.com/exoplayer-in-recyclerview-in-android" rel="nofollow noreferrer">this</a> but that all use a custom recy... | How can we use multiple exo player in a recycler view? I saw many posts and videos like this and this but that all use a custom recycler view class. I could continue with that. But, I wanted to make a complete Insta clone where I can send gif and image and videos. Now, when I use the custom recycler view class, I dont ... | android|kotlin|android-recyclerview|exoplayer|exoplayer2.x | 0 | 2022-05-14T06:28:02.537Z | 2,022 | 5 | 6 | 5 | 139 | 1 | 426 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
72,237,933 | Android & Firestore - deducting value from an object | <p>General context: The app I'm making manages activities with resources at hand. Once users create <em>cases</em>, the amount of materials each case needs is deducted from the inventory of materials.</p>
<p>What I'm trying to do: I've saved the materials on <em>Firestore</em> and would like to deduct the quantity of t... | General context: The app I'm making manages activities with resources at hand. Once users create cases , the amount of materials each case needs is deducted from the inventory of materials. What I'm trying to do: I've saved the materials on Firestore and would like to deduct the quantity of the material used up by a ca... | android|google-cloud-firestore | 0 | 2022-05-14T06:42:02.087Z | 2,022 | 5 | 6 | 5 | 29 | 0 | 753 | 52 | 2 | 2 | true | true | false | false | false | false | zero |
72,237,961 | what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose? | <p>Simple question, what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose?
if they both do the same things so what's the difference ?</p> | Simple question, what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose? if they both do the same things so what's the difference ? | android|kotlin|android-jetpack-compose | 1 | 2022-05-14T06:47:10.810Z | 2,022 | 5 | 6 | 5 | 200 | 1 | 160 | 84 | 3 | 0 | false | false | false | false | false | false | low |
72,237,974 | Automatic call Picker android kotlin | <p>How can I create an app that can take incoming calls automatically in kotlin android 10 and above
anybody I have tried using the <strong>BroadcastReceiver()</strong> class but it did not work in detecting incoming calls but it did not work</p> | How can I create an app that can take incoming calls automatically in kotlin android 10 and above anybody I have tried using the BroadcastReceiver() class but it did not work in detecting incoming calls but it did not work | android|kotlin|android-permissions | 0 | 2022-05-14T06:50:05.203Z | 2,022 | 5 | 6 | 5 | 21 | 0 | 222 | 36 | 3 | 0 | false | true | false | false | false | false | zero |
72,238,095 | Is there a material TimerPicker widget in Flutter? | <p>I want to implement a time picker widget to allow users to record duration (hours and minutes) and I also want to show differently depending on the device platform (iOS or Android).</p>
<p>For iOS, I can use <code>CupertinoTimerPicker</code> and <code>CupertinoActionSheet</code> widgets, which are originally include... | I want to implement a time picker widget to allow users to record duration (hours and minutes) and I also want to show differently depending on the device platform (iOS or Android). For iOS, I can use CupertinoTimerPicker and CupertinoActionSheet widgets, which are originally included in Flutter. (like this: CupertinoT... | android|ios|flutter|timepicker|cupertinopicker | 0 | 2022-05-14T07:12:27.950Z | 2,022 | 5 | 7 | 5 | 65 | 1 | 586 | 50 | 5 | 0 | false | false | false | false | false | false | zero |
72,238,178 | Android Volley POST request out of synchronization | <p>I'm using the implementation 'com.android.volley:volley:1.1.1' to make a POST call to a REST web service. Unfortunately, the conclusion (i.e. User does not exist) is reached before the response comes back from the server and is always wrong (In reality user actually does exist).</p>
<p>On the console, the logger mes... | I'm using the implementation 'com.android.volley:volley:1.1.1' to make a POST call to a REST web service. Unfortunately, the conclusion (i.e. User does not exist) is reached before the response comes back from the server and is always wrong (In reality user actually does exist). On the console, the logger messages appe... | post|callback|android-volley | 0 | 2022-05-14T07:27:14.917Z | 2,022 | 5 | 7 | 5 | 25 | 0 | 738 | 50 | 3 | 3 | true | true | false | false | false | false | zero |
72,238,339 | Kotlin - The feature "unit conversion" is disabled | <p>I am still a relative newbie at Kotlin and, after a fair bit of digging, cant fix what looks to be a simple problem. For the code below the compiler returns: The feature "unit conversion" is disabled for
"function = positiveButtonClick"
and
function = negativeButtonClick"</p>
<p>Why? What d... | I am still a relative newbie at Kotlin and, after a fair bit of digging, cant fix what looks to be a simple problem. For the code below the compiler returns: The feature "unit conversion" is disabled for "function = positiveButtonClick" and function = negativeButtonClick" Why? What do I need to... | android|kotlin | 1 | 2022-05-14T07:56:31.333Z | 2,022 | 5 | 7 | 5 | 755 | 2 | 338 | 50 | 2 | 1 | true | false | false | false | false | false | low |
72,238,358 | How can I make code responsive with any language? Support multiple languages | <p><strong>strings (English is the default)</strong></p>
<pre><code><string-array name="languagesList">
<item>English</item>
<item>Arabic</item>
<item>Spanish</item>
<item>French</item>
<item>Chinese</item>
</string-array... | strings (English is the default) [CODE] strings-ar [CODE] strings-es [CODE] strings-fr [CODE] strings-zh [CODE] Inside SettingsFragment user can change the app language, The buttons look like Chips, When the user clicks on Chip 1 I'll pass en, Chip 2 I'll pass ar, Chip 3 I'll pass es, etc... I'll give the source code t... | android|localization | 0 | 2022-05-14T07:59:05.140Z | 2,022 | 5 | 7 | 5 | 17 | 0 | 451 | 76 | 2 | 5 | true | true | false | false | false | false | zero |
72,238,362 | How do I load an item from API to a fragment inside an Activity? | <p>I need to load elements from my API to a fragment inside an activity, but once I initialize the element inside of the Activity Class present in the fragment like the TextView the app crashes.</p>
<p><a href="https://i.stack.imgur.com/tJolj.png" rel="nofollow noreferrer">This is what the property Profile Activity loo... | I need to load elements from my API to a fragment inside an activity, but once I initialize the element inside of the Activity Class present in the fragment like the TextView the app crashes. This is what the property Profile Activity looks like this is the PropertyProfile Kotlin Code [CODE] this is the code in the Mai... | android|android-studio|kotlin | 0 | 2022-05-14T07:59:36.853Z | 2,022 | 5 | 7 | 5 | 40 | 1 | 464 | 64 | 3 | 3 | true | false | false | false | false | false | zero |
72,238,442 | Using the Android 12 knownSigner protection level flag | <p>so I basically want to explicitly give another app the permission to access my broadcast receiver via the <code>signature|knownSigner</code> protection level.</p>
<p>I am running <code>Android 12.0 (S) API 31</code> using <code>Android SDK Build-Tools 33-rc4</code> with the following android attribute in my <code>bu... | so I basically want to explicitly give another app the permission to access my broadcast receiver via the signature|knownSigner protection level. I am running Android 12.0 (S) API 31 using Android SDK Build-Tools 33-rc4 with the following android attribute in my build.gradle : [CODE] According to these sources https://... | android|security|sdk | 1 | 2022-05-14T08:15:27.867Z | 2,022 | 5 | 8 | 5 | 131 | 1 | 875 | 54 | 3 | 3 | true | false | false | false | false | false | low |
72,238,445 | Accessibility services problem happens when dealing with auto-click scripts on Android devices | <p>I'm testing an auto-click script.But on some applications .It doesn't work! Such as Meituan.</p>
<p>It's like Meituan/etc. can detect which touch is not human's. It seems like when a programmatically touch/swipe done on this app,it immediatly blocks that behavior, or generate a overlay to block it.</p... | I'm testing an auto-click script.But on some applications .It doesn't work! Such as Meituan. It's like Meituan/etc. can detect which touch is not human's. It seems like when a programmatically touch/swipe done on this app,it immediatly blocks that behavior, or generate a overlay to block it. My phone is rooted,I'm conc... | android|automation | 0 | 2022-05-14T08:15:46.323Z | 2,022 | 5 | 8 | 5 | 48 | 0 | 532 | 94 | 2 | 0 | false | true | false | false | false | false | zero |
72,238,452 | Can I sign in with a Google account in my app instead of adding a Google account to my phone? | <p>I'm developing an Android app and I'm using Google sdk for Google oauth login, when using Google login. When I sign in with Google, the system pops up an option to use an existing Google account or to add another Google account.</p>
<p>Can the option pop up that I just want to sign in by entering the username and pa... | I'm developing an Android app and I'm using Google sdk for Google oauth login, when using Google login. When I sign in with Google, the system pops up an option to use an existing Google account or to add another Google account. Can the option pop up that I just want to sign in by entering the username and password of ... | android|google-account | 0 | 2022-05-14T08:16:59.797Z | 2,022 | 5 | 8 | 5 | 44 | 0 | 398 | 93 | 2 | 0 | false | true | false | false | false | false | zero |
72,238,574 | Unable to load class 'ijmapper_a3g8yazybfvfygf10kzeu3s98' | <p>[<strong>How to fix this Unable to load class 'ijmapper_a3g8yazybfvfygf10kzeu3s98'</strong>]</p> | [ How to fix this Unable to load class 'ijmapper_a3g8yazybfvfygf10kzeu3s98' ] | android|android-studio | 0 | 2022-05-14T08:35:44.827Z | 2,022 | 5 | 8 | 5 | 122 | 0 | 77 | 57 | 2 | 0 | false | true | false | false | false | false | zero |
72,238,608 | Could not resolve all files for configuration ':app:debugRuntimeClasspath' android studio | <p>I'm new to Android development with Java. I made an app that allows you to log in with Google and Facebook. Everything worked fine until about three days ago when the following message appeared:</p>
<blockquote>
<p>org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:
Cou... | I'm new to Android development with Java. I made an app that allows you to log in with Google and Facebook. Everything worked fine until about three days ago when the following message appeared: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all file... | java|android|gradle | 2 | 2022-05-14T08:41:04.123Z | 2,022 | 5 | 8 | 5 | 1,360 | 1 | 572 | 89 | 3 | 3 | true | false | false | false | false | false | low |
72,238,631 | Live data observer triggered twice on fragment created | <p>The issue that I have is not actually bug or big problem. And all works as it should, but nevertheless it annoys me.</p>
<p>In Fragment pbserver:</p>
<pre><code>viewModel.pageNumbersPosition.observe(viewLifecycleOwner) {
if (it!=null) {
SharedPreferenceHelper.pagesNumber = viewModel.pageNumbersAr... | The issue that I have is not actually bug or big problem. And all works as it should, but nevertheless it annoys me. In Fragment pbserver: [CODE] ViewModel: [CODE] Spinner: [CODE] What happes is viewModel.pageNumbersPosition.observe triggered twice on start. Once from the initiation of the fragment and second time when... | android|kotlin|android-livedata|mutablelivedata | 1 | 2022-05-14T08:43:43.897Z | 2,022 | 5 | 8 | 5 | 270 | 2 | 429 | 54 | 4 | 3 | true | false | false | false | false | false | low |
72,238,638 | What's the best way to get the package name of the application in the foreground? | <p>I'm working on an AOSP project and as part of that I'm modifying the Bluetooth SDK. I have made changes in android.bluetooth.BluetoothAdapter::getDefaultAdapter() method and I'd like to know which application has called that method.</p>
<p>There is a mContext member in that class and it's null in most of the cases a... | I'm working on an AOSP project and as part of that I'm modifying the Bluetooth SDK. I have made changes in android.bluetooth.BluetoothAdapter::getDefaultAdapter() method and I'd like to know which application has called that method. There is a mContext member in that class and it's null in most of the cases and sometim... | android|process|android-source|foreground | 0 | 2022-05-14T08:44:50.860Z | 2,022 | 5 | 8 | 5 | 91 | 1 | 1,248 | 81 | 4 | 0 | false | false | false | false | false | false | zero |
72,238,791 | Barcode Scanner - (Data Wedge) TC26 device reads data twice in EditText | <p>I am working on a barcode scanner using DataWedge API's for TC26 device. I can see sometimes the value in EditTextBox the value is shown twice randomly. For example : value 123 is scanned but in EdittextBox it shows 123123. I've tried clearing EditTextBox and set the value again but still no luck.</p>
<p>Code for re... | I am working on a barcode scanner using DataWedge API's for TC26 device. I can see sometimes the value in EditTextBox the value is shown twice randomly. For example : value 123 is scanned but in EdittextBox it shows 123123. I've tried clearing EditTextBox and set the value again but still no luck. Code for receiving th... | android|kotlin|android-edittext|datawedge|zebra-scanners | 0 | 2022-05-14T09:09:33.313Z | 2,022 | 5 | 9 | 5 | 145 | 2 | 732 | 71 | 5 | 2 | true | false | false | false | false | false | zero |
72,238,834 | Android Manifest error after creating a Flutter Application | <p>Everytime i create a flutter application using Android Studio, i always have errors/red lines in the Android Manifest file. Any ideas why this keeps happening?</p>
<p><a href="https://i.stack.imgur.com/qsaZM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qsaZM.png" alt="enter image description he... | Everytime i create a flutter application using Android Studio, i always have errors/red lines in the Android Manifest file. Any ideas why this keeps happening? | android|flutter|manifest | 1 | 2022-05-14T09:17:01.067Z | 2,022 | 5 | 9 | 5 | 325 | 0 | 159 | 59 | 3 | 0 | false | true | false | false | false | false | low |
72,238,840 | Custom layout ignores size of composeable | <p>I'm currently playing around with custom Layouts in Jetpack Compose. This is what i got so far just for testing:</p>
<pre><code>@Preview(widthDp = 1000, heightDp = 1000)
@Composable
fun MyLayout() {
Layout({ Box(Modifier.size(48.dp).background(Color.Blue)) }) { measurables, constraints ->
val placeabl... | I'm currently playing around with custom Layouts in Jetpack Compose. This is what i got so far just for testing: [CODE] My problem here is that the Box fills the whole layout and not only it's size of 48.dp . Can someone explain to me why this is? I read here about creating custom layouts but couldn't find anything use... | android|android-jetpack-compose | 3 | 2022-05-14T09:17:50.770Z | 2,022 | 5 | 9 | 5 | 198 | 2 | 325 | 41 | 2 | 1 | true | false | false | false | false | false | low |
72,238,849 | Google.Drive.Api Oauth 2 Credientials in Xamarin android application | <p>I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for Android to be authorized to access Google drive.</p>
<p>The debugging stops here :</p>
<pre><code>credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
... | I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for Android to be authorized to access Google drive. The debugging stops here : [CODE] and raises and exception : System.AggregateException: 'One or more errors occu... | c#|android|xamarin|google-drive-api|google-api-dotnet-client | 1 | 2022-05-14T09:19:21.330Z | 2,022 | 5 | 9 | 5 | 90 | 1 | 756 | 68 | 5 | 1 | true | false | false | false | false | false | low |
72,238,860 | How do we open google map from a button inside onBindViewHolder? | <p>I would like to open google map on button click. The code below works but when I went back to the app, it throws FATAL EXCEPTION. The button is located inside onBindViewHolder method on class ProductAdapter which inherits from FirebaseRecyclerAdapter.</p>
<pre><code>public class ProductAdapter extends FirebaseRecycl... | I would like to open google map on button click. The code below works but when I went back to the app, it throws FATAL EXCEPTION. The button is located inside onBindViewHolder method on class ProductAdapter which inherits from FirebaseRecyclerAdapter. [CODE] } I've been following and modifying the code in this youtube ... | java|android|firebase-realtime-database|android-recyclerview | 0 | 2022-05-14T09:21:38.010Z | 2,022 | 5 | 9 | 5 | 16 | 0 | 362 | 64 | 4 | 2 | true | true | false | false | false | false | zero |
72,238,895 | Cmake : Building .dylib to test Android JUnit tests | <p>I am working on Android native project using <code>C++</code> code built using <code>CMake</code>. Currently my app is running fine and native lib(<code>.so</code>) is successfully loaded using <code>System.loadLibrary()</code>.</p>
<p>But I want to test <code>JUnit</code> tests on my mac in <code>Android Studio</co... | I am working on Android native project using C++ code built using CMake . Currently my app is running fine and native lib( .so ) is successfully loaded using System.loadLibrary() . But I want to test JUnit tests on my mac in Android Studio . When running tests on mac, It throws error [CODE] Here is my CMakeLists.txt : ... | android|cmake|android-ndk | 0 | 2022-05-14T09:26:21.963Z | 2,022 | 5 | 9 | 5 | 56 | 0 | 630 | 51 | 3 | 3 | true | true | false | false | false | false | zero |
72,238,935 | Fastlane. No such file or directory - GIT_TERMINAL_PROMPT=0, can't clone repository | <p>When I run fastlane to build project, I get error:</p>
<pre><code>C:\Users\Me\AndroidStudioProjects\MyProject\MyProject-android>fastlane staging app:MyApp
[✔]
[11:56:13]: fastlane detected a Gemfile in the current directory
[11:56:13]: However, it seems like you didn't use bundle exec
[11:56:13]: To launch fastl... | When I run fastlane to build project, I get error: [CODE] But if I run : $ git clone git@bitbucket.org:MyProject/MyProject-certificates.git C:/Users/ME~1/AppData/Local/Temp/d20220514-12820-9gt23v or or if I run GIT_TERMINAL_PROMPT=0 git clone git@bitbucket.org:MyProject/MyProject-certificates.git cloning is successful.... | android|git|fastlane | 1 | 2022-05-14T09:30:38.380Z | 2,022 | 5 | 9 | 5 | 78 | 0 | 340 | 83 | 3 | 2 | true | true | false | false | false | false | low |
72,239,025 | react-native android project not found error | <p>I am trying to create a react-native project using react-native cli. Command I used to create project</p>
<ul>
<li>npx react-native init test</li>
</ul>
<p>After this if I try to run this app by</p>
<ul>
<li>cd test & npx react-native run-android</li>
</ul>
<p>But I get this error:</p>
<p><strong>error Android p... | I am trying to create a react-native project using react-native cli. Command I used to create project npx react-native init test After this if I try to run this app by cd test & npx react-native run-android But I get this error: error Android project not found. Are you sure this is a React Native project? If your Andro... | android|react-native|react-native-cli | 3 | 2022-05-14T09:44:05.907Z | 2,022 | 5 | 9 | 5 | 1,685 | 4 | 584 | 44 | 3 | 1 | true | false | false | false | false | false | low |
72,239,208 | Handle Notification Bidirectional Body Text in the Correct Way | <p>I have a notification service that sends a notification to the client according to its language.
The notification body language can be either <strong>Arabic</strong> or <strong>English</strong>.
It also may have some words in the opposite language.
Let's say that we have a notification template for each language tha... | I have a notification service that sends a notification to the client according to its language. The notification body language can be either Arabic or English . It also may have some words in the opposite language. Let's say that we have a notification template for each language that takes parameters: English Template... | android|node.js|flutter|firebase-cloud-messaging | 1 | 2022-05-14T10:09:46.563Z | 2,022 | 5 | 10 | 5 | 31 | 1 | 1,134 | 62 | 4 | 0 | false | false | false | false | false | false | low |
72,239,241 | Android widget OnReceive() being called multiple times when running WorkManager request | <p>I have an app which has a home screen widget via <code>GlanceAppWidget()</code>.</p>
<p>I would like to run a worker inside the <code>Content()</code> function of <code>GlanceAppWidget()</code>. I have used <code>enqueue(work)</code> from <code>WorkManager</code> api to successfully execute my worker.</p>
<p>The pro... | I have an app which has a home screen widget via GlanceAppWidget() . I would like to run a worker inside the Content() function of GlanceAppWidget() . I have used enqueue(work) from WorkManager api to successfully execute my worker. The problem is that onReceive is getting called multiple (infinite) number of times. Ho... | android|android-workmanager|glance-appwidget | 0 | 2022-05-14T10:14:28.913Z | 2,022 | 5 | 10 | 5 | 106 | 0 | 416 | 87 | 3 | 3 | true | true | false | false | false | false | zero |
72,239,272 | Problem with firebase auth kotlin library version 21.0.4 | <p>When I update the com.google.firebase:firebase-auth-ktx library to a version higher than 21.0.1 I get the following warning:</p>
<blockquote>
<p>Kotlin library {0} was compiled with a newer Kotlin compiler and can't be read. Please update Kotlin plugin.</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/XsIFg.p... | When I update the com.google.firebase:firebase-auth-ktx library to a version higher than 21.0.1 I get the following warning: Kotlin library {0} was compiled with a newer Kotlin compiler and can't be read. Please update Kotlin plugin. I already tried to update the Kotlin plugin in tools->Kotlin->Configure Kotlin Plugin ... | firebase|android-studio|kotlin|intellij-idea|firebase-authentication | 1 | 2022-05-14T10:18:55.680Z | 2,022 | 5 | 10 | 5 | 107 | 1 | 477 | 56 | 5 | 0 | false | false | false | false | false | false | low |
72,239,282 | Change ImageView after choosing photo from Gallery | <p>I am trying to change my imageview when its on click and then choose image from gallery then change it. But I don't think its working since when I tried running my project, it just crashes out of the app.</p>
<p><strong>Navigation Drawer</strong></p>
<p><a href="https://i.stack.imgur.com/XQhcL.png" rel="nofollow nor... | I am trying to change my imageview when its on click and then choose image from gallery then change it. But I don't think its working since when I tried running my project, it just crashes out of the app. Navigation Drawer ActivityResult [CODE] ImageView [CODE] p.s. The ImageView is inside my navigation drawer. what I ... | android-studio | 1 | 2022-05-14T10:19:24.053Z | 2,022 | 5 | 10 | 5 | 19 | 0 | 706 | 50 | 1 | 3 | true | true | false | false | false | false | low |
72,239,294 | Share Intent for dynamic image in imageview without saving, using kotlin with little permissions as possible | <p>I need to share the image in the imageView and the following code is promising (though not quite what I ) but returns some errors:</p>
<p>Kotlin:</p>
<pre><code> fun shareImage (iv: ImageView){
val bitmap: Bitmap = iv.drawToBitmap()
val imageName = "/image.jpg"
try {
... | I need to share the image in the imageView and the following code is promising (though not quite what I ) but returns some errors: Kotlin: [CODE] Manifest: [CODE] filepaths xml: [CODE] Result: [CODE] Even this doesn't work but it is not even close to what I require. I need to share the image in the imageView with 2022 ... | android|kotlin | 0 | 2022-05-14T10:21:19.727Z | 2,022 | 5 | 10 | 5 | 43 | 0 | 570 | 108 | 2 | 4 | true | true | false | false | false | false | zero |
72,239,324 | Jetpack Compose - Resizing Image after Image PIcker (ContentResolver Exception?) | <p>I'm just trying to resize an image after the user launches the Image Picker from my app and chooses an image file on the local device (handling a remote image from Dropbox or something will be another battle) and while this has worked for me previously, now I'm getting this exception:</p>
<pre><code>java.lang.Runtim... | I'm just trying to resize an image after the user launches the Image Picker from my app and chooses an image file on the local device (handling a remote image from Dropbox or something will be another battle) and while this has worked for me previously, now I'm getting this exception: [CODE] This occurs after the image... | android|android-contentresolver|imagepicker|imagedecoder | 0 | 2022-05-14T10:24:18.407Z | 2,022 | 5 | 10 | 5 | 166 | 1 | 1,556 | 80 | 4 | 3 | true | false | false | false | false | false | zero |
72,239,347 | Toggle button doesn't with drawer navigation | <p>My toggle button doesn't work, when I press him I see like it is pressed but there is not action.
I can open my drawer layout, it changes when swipe, but there is not action on its, why?
I set custom toolbar in the fragment, I know it could be the problem there but I try to solve it for weeks and still nothing :)
Th... | My toggle button doesn't work, when I press him I see like it is pressed but there is not action. I can open my drawer layout, it changes when swipe, but there is not action on its, why? I set custom toolbar in the fragment, I know it could be the problem there but I try to solve it for weeks and still nothing :) Thank... | android|navigation-drawer|toolbar|android-toolbar | 0 | 2022-05-14T10:27:00.053Z | 2,022 | 5 | 10 | 5 | 30 | 0 | 419 | 44 | 4 | 5 | true | true | false | false | false | false | zero |
72,239,524 | Why is the second background image not displaying after rotating my device? | <p>I have two background images to create a layered effect and to keep the file sizes small. There's a repeating star pattern in the back, and a white "cutout" on top (there are two versions of the latter: for desktop and mobile). Stripping <a href="https://jsfiddle.net/L6cg2rqa/1/" rel="nofollow noreferrer">... | I have two background images to create a layered effect and to keep the file sizes small. There's a repeating star pattern in the back, and a white "cutout" on top (there are two versions of the latter: for desktop and mobile). Stripping my code down to the very basics, this is what it should look like on dev... | android|css|background|background-image|samsung-galaxy | 0 | 2022-05-14T10:53:47.293Z | 2,022 | 5 | 10 | 5 | 41 | 1 | 1,280 | 75 | 5 | 1 | true | false | false | false | false | false | zero |
72,239,632 | Bottom overflowed by xxx pixel using TabBarView() in flutter | <p>I have 2 columns on the top is simple container and the the bottom is TabBarView()
what I want to achieve is the tabbarview() result is scrollable using singlechildscrollview() and <strong>dynamic height</strong>, my problem is <strong>Bottom overflowed by xxx pixel</strong></p>
<p>I tried the following but doesn't ... | I have 2 columns on the top is simple container and the the bottom is TabBarView() what I want to achieve is the tabbarview() result is scrollable using singlechildscrollview() and dynamic height , my problem is Bottom overflowed by xxx pixel I tried the following but doesn't work. height: double.maxFinite height: Medi... | android|ios|flutter|dart | 0 | 2022-05-14T11:08:19.373Z | 2,022 | 5 | 11 | 5 | 587 | 1 | 387 | 60 | 4 | 1 | true | false | false | false | false | false | zero |
72,239,644 | Three type of action on single button | <p>I am creating a simple counting app when the button pressed on button ACTION_DOWN and ACTION_UP store the time. When time difference is less than 300 ms increment one time or countdown difference time and increment one. I like to stop the countdown on the next click on the same button. How can I do this?</p>
<pre cl... | I am creating a simple counting app when the button pressed on button ACTION_DOWN and ACTION_UP store the time. When time difference is less than 300 ms increment one time or countdown difference time and increment one. I like to stop the countdown on the next click on the same button. How can I do this? [CODE] XML [CO... | java|android | 0 | 2022-05-14T11:10:46.790Z | 2,022 | 5 | 11 | 5 | 22 | 0 | 323 | 37 | 2 | 2 | true | true | false | false | false | false | zero |
72,239,662 | Edit apk without android stud | <p>is it possible to edit a file in apk (like in 7zip, not android stud.)?
If yes, after i edited the file the apk won't install on my mobile.
I tried to edit it in 7zip, android stud. (apk won't build) and apktool.</p> | is it possible to edit a file in apk (like in 7zip, not android stud.)? If yes, after i edited the file the apk won't install on my mobile. I tried to edit it in 7zip, android stud. (apk won't build) and apktool. | android|apk | -2 | 2022-05-14T11:14:03.183Z | 2,022 | 5 | 11 | 5 | 94 | 1 | 212 | 29 | 2 | 0 | false | false | false | false | false | true | negative |
72,239,689 | How to change fonts and add page number to epub android flutter | <p>I have library using epub package to read the E-book files
but it didn't show the page number, also I want to add my customized fonts.
please tell me if anyone know how to slows this.</p> | I have library using epub package to read the E-book files but it didn't show the page number, also I want to add my customized fonts. please tell me if anyone know how to slows this. | android|flutter|epub | 0 | 2022-05-14T11:18:30.017Z | 2,022 | 5 | 11 | 5 | 39 | 0 | 183 | 63 | 3 | 0 | false | true | false | false | false | false | zero |
72,239,750 | Can I use printf in an Android native binary | <p>Let's assume the phone is rooted and arm binaries can be installed. Can I make a console binary using Android Studio with <code>printf</code> output?</p>
<p>Is there a step-by-step guide to writing and compiling such binaries with a traditional C Program <code>int main()</code> with Android Studio or creation of the... | Let's assume the phone is rooted and arm binaries can be installed. Can I make a console binary using Android Studio with printf output? Is there a step-by-step guide to writing and compiling such binaries with a traditional C Program int main() with Android Studio or creation of the Android.mk file There are some proj... | c|android-ndk|adb|console-application|arm64 | -1 | 2022-05-14T11:27:33.713Z | 2,022 | 5 | 11 | 5 | 83 | 1 | 464 | 44 | 5 | 0 | false | false | false | false | false | true | negative |
72,239,769 | How to retrieve large datasets from Firestore in chunks? | <p>My app has around 50K objects. And I need to retrieve atleast 10000 objects to build charts for stats;
I am not able to get more than 600 objects in a single call. So I tried doing it in chunks using pagination. The code is below:</p>
<pre><code>late DocumentSnapshot _lastDocument;
List<Booking> entries = List... | My app has around 50K objects. And I need to retrieve atleast 10000 objects to build charts for stats; I am not able to get more than 600 objects in a single call. So I tried doing it in chunks using pagination. The code is below: [CODE] When I run the code, getMoreEntries() gets called once while the total length of e... | android|firebase|flutter|dart|google-cloud-firestore | 0 | 2022-05-14T11:30:04.330Z | 2,022 | 5 | 11 | 5 | 54 | 0 | 498 | 56 | 5 | 1 | true | true | false | false | false | false | zero |
72,239,854 | Jetpack Compose structure | <p>I have a question</p>
<p>Now, for example, in the old days, we had different activities, we had different fragments
The code was divided into different files</p>
<p>For example, each of the 200 lines of code could be easily worked with
The ui code was completely separate in xml
There were logical codes in the fragme... | I have a question Now, for example, in the old days, we had different activities, we had different fragments The code was divided into different files For example, each of the 200 lines of code could be easily worked with The ui code was completely separate in xml There were logical codes in the fragment, and eventuall... | android|kotlin|android-jetpack-compose | 0 | 2022-05-14T11:42:24.130Z | 2,022 | 5 | 11 | 5 | 144 | 0 | 607 | 25 | 3 | 0 | false | true | false | false | false | false | zero |
72,239,910 | Unable to install and run Android Emulator for VSCode without Installing Android Studio | <p>I'm new to VScode and Flutter development. I'm attempting to install and run an android emulator in VScode without installing Android studio. The following is the step my step process which I have followed.</p>
<ol>
<li>Installed VSCode in "C:\Program Files\Microsoft VS Code\Code.exe".</li>
<li>Extracted F... | I'm new to VScode and Flutter development. I'm attempting to install and run an android emulator in VScode without installing Android studio. The following is the step my step process which I have followed. Installed VSCode in "C:\Program Files\Microsoft VS Code\Code.exe". Extracted Flutter SDK 3.0.0 in E:\ a... | android|flutter|dart|visual-studio-code|emulation | 0 | 2022-05-14T11:51:04.210Z | 2,022 | 5 | 11 | 5 | 390 | 1 | 1,066 | 87 | 5 | 2 | true | false | false | false | false | false | zero |
72,239,911 | Why is onReceive called multiple times? | <p>I am running a worker in a glance composable on android.</p>
<p>why is onReceive being continuously called in an infinite loop?</p>
<p>What am I missing here?</p>
<pre><code>class MyWidget : GlanceAppWidget() {
@Composable
override fun Content() {
val work = OneTimeWorkRequest.Builder(MyWorker::class... | I am running a worker in a glance composable on android. why is onReceive being continuously called in an infinite loop? What am I missing here? [CODE] | android|broadcastreceiver|android-workmanager|android-appwidget|glance-appwidget | -1 | 2022-05-14T11:51:41.343Z | 2,022 | 5 | 11 | 5 | 107 | 1 | 151 | 39 | 5 | 1 | true | false | false | false | false | true | negative |
72,240,077 | Creating a list of objects from a nested JSON in Flutter | <p>There's a URL address that I decoded to JSON, and there's a certain header (result) that I'm trying to convert to a list of objects (Book).<br />
When I print the content of this header I do get the desired result (first print), but when I create the list and try to print one of the fields of the first object in the... | There's a URL address that I decoded to JSON, and there's a certain header (result) that I'm trying to convert to a list of objects (Book). When I print the content of this header I do get the desired result (first print), but when I create the list and try to print one of the fields of the first object in the list not... | android|json|flutter|dart | 1 | 2022-05-14T12:13:56.070Z | 2,022 | 5 | 12 | 5 | 99 | 1 | 736 | 56 | 4 | 1 | true | false | false | false | false | false | low |
72,240,194 | LazyVerticalGrid item full span width | <p>Now that GridItemSpan is NOT available jetpack compose, how do we make certain items in LazyVerticalGrid span the entire width of the screen? Below image shows desired result. GridItemSpan is not available in the new Jetpack Compose API, so there has to be another way.</p>
<p><a href="https://i.stack.imgur.com/UDfOR... | Now that GridItemSpan is NOT available jetpack compose, how do we make certain items in LazyVerticalGrid span the entire width of the screen? Below image shows desired result. GridItemSpan is not available in the new Jetpack Compose API, so there has to be another way. | kotlin|android-jetpack-compose | 0 | 2022-05-14T12:28:18.780Z | 2,022 | 5 | 12 | 5 | 36 | 0 | 269 | 37 | 2 | 0 | false | true | false | false | false | false | zero |
72,240,234 | How can I request turn on the location? | <p>I have previously requested location permission in Android Studio (Java) for Android version higher 6.0, and now I want to request to turn it on.</p>
<p>On the other hand, I also requested Bluetooth permission and turn it on, using the following Intent:</p>
<pre><code>if (!adapter.isEnabled()) {
Intent enableBlu... | I have previously requested location permission in Android Studio (Java) for Android version higher 6.0, and now I want to request to turn it on. On the other hand, I also requested Bluetooth permission and turn it on, using the following Intent: [CODE] Nevertheless, I don't know which intent I could throw in order to ... | android-studio|permissions|location|android-reactivelocation | 0 | 2022-05-14T12:33:14.850Z | 2,022 | 5 | 12 | 5 | 47 | 0 | 364 | 39 | 4 | 1 | true | true | false | false | false | false | zero |
72,240,252 | How to sign Multiple Flavor APK's with a Single Keystore | <p>I have 11 flavors for an app and one Keystore for an app. I hoped to use one keystore to sign multiple product flavors like below.</p>
<pre><code>signingConfigs {
release {
storeFile file("Users/avalon/retailr.jks")
storePassword storePassword
keyAlias "alias"
... | I have 11 flavors for an app and one Keystore for an app. I hoped to use one keystore to sign multiple product flavors like below. [CODE] However i keep getting an error during running a Configuration that The apk for your currently selected variant cannot be signed. Please specify a signing configuration for this vari... | android|android-keystore | 0 | 2022-05-14T12:35:53.633Z | 2,022 | 5 | 12 | 5 | 97 | 2 | 459 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
72,240,432 | Jetpack Nav-Graph navigation to current fragment itself also having it in stack | <p>Fragment Structure</p>
<p><em>Fragment Stack</em> I want so that on back press I load fragment with my old data state</p>
<p><strong>A->B->C->C</strong></p>
<p><em>Fragment Stack</em>, nav graph created even if I move from C to C again. (that is what I judge while implementing)</p>
<p><strong>A->B->C<... | Fragment Structure Fragment Stack I want so that on back press I load fragment with my old data state A->B->C->C Fragment Stack , nav graph created even if I move from C to C again. (that is what I judge while implementing) A->B->C I want to go to C itself many times and then also on back press getting all loaded C fra... | android-studio|android-fragments|android-jetpack|android-navigation | 0 | 2022-05-14T12:59:07.670Z | 2,022 | 5 | 12 | 5 | 40 | 0 | 353 | 79 | 4 | 0 | false | true | false | false | false | false | zero |
72,240,435 | react native expo webview crash application when open pdf uri android | <p>Try to preview a file(pdf,word,doc),once select from document picker?
using webview, but it crash the application in android</p>
<p>How to read and preview file uri from document picker?
<WebView
source={{
uri: "file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540anonymous%252FHalo-6108c6f8-a72d/... | Try to preview a file(pdf,word,doc),once select from document picker? using webview, but it crash the application in android How to read and preview file uri from document picker? <WebView source={{ uri: "file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540anonymous%252FHalo-6108c6f8-a72d/DocumentPicke... | android|reactjs|react-native|expo | 1 | 2022-05-14T12:59:58.060Z | 2,022 | 5 | 12 | 5 | 112 | 0 | 339 | 69 | 4 | 0 | false | true | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.