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,159,779
Android Studio FFMPEG "Protocol not found"
<p>I am trying to run ffmpeg with android studio, but when I try the following code it shows this error message:</p> <p><strong>E/mobile-ffmpeg: content://media/external/video/media/68: Protocol not found E/mobile-ffmpeg: Did you mean file:content://media/external/video/media/68?</strong></p> <p>This is my code:</p> <p...
I am trying to run ffmpeg with android studio, but when I try the following code it shows this error message: E/mobile-ffmpeg: content://media/external/video/media/68: Protocol not found E/mobile-ffmpeg: Did you mean file:content://media/external/video/media/68? This is my code: [CODE] I think that the 'content:' in in...
android|ffmpeg
1
2022-05-08T09:43:48.407Z
2,022
5
9
6
215
0
535
42
2
1
true
true
false
false
false
false
low
72,159,782
onResume update view from recyclerview adapter?
<p>i have some problems with updating fragment view after item deleted. So i have one fragment which one showing all items added from another activity. And when im trying to delete item it's not updating view so i should restart fragment to see updated fragment.</p> <p>There is my fragment</p> <pre><code>public class M...
i have some problems with updating fragment view after item deleted. So i have one fragment which one showing all items added from another activity. And when im trying to delete item it's not updating view so i should restart fragment to see updated fragment. There is my fragment [CODE] also my Recyclerview Adapter [CO...
java|android|android-studio|android-fragments|android-recyclerview
0
2022-05-08T09:44:07.170Z
2,022
5
9
6
18
0
406
47
5
3
true
true
false
false
false
false
zero
72,159,852
Android RecyclerView only contain one item after adding items got from asynchronous retrofit calls
<p>I have a recycler view for image display with a simple adapter.</p> <pre><code>public class ImageListAdapter extends RecyclerView.Adapter&lt;ImageListAdapter.SingleItemRowHolder&gt; { private ArrayList&lt;Bitmap&gt; itemsList; public ImageListAdapter(ArrayList&lt;Bitmap&gt; itemsList) { this.itemsL...
I have a recycler view for image display with a simple adapter. [CODE] Nothing complex here. Just a simple adapter that getting bitmap list as input and show them in the recycle view. The point is, the bitmaps are asynchronously added via a retrofit call, as shown in the folloing: [CODE] As you can see here, the bitmap...
android|asynchronous|android-fragments|android-recyclerview|retrofit
3
2022-05-08T09:53:55.713Z
2,022
5
9
6
216
3
1,761
98
5
4
true
false
false
false
false
false
low
72,159,869
How to manage Login Validation with Room in Kotlin?
<p>I'm trying to make work the Login Validation form, but the program stops then reaches the second <strong>if</strong>, and I have <em>Invalid email</em> output. Run is clear and out of mistakes. Can't figure out what I'm doing wrong and why <strong>emailList</strong> is <strong>null</strong></p> <pre><code> privat...
I'm trying to make work the Login Validation form, but the program stops then reaches the second if , and I have Invalid email output. Run is clear and out of mistakes. Can't figure out what I'm doing wrong and why emailList is null [CODE] LoginViewModel [CODE]
android|sqlite|kotlin|authentication|android-room
0
2022-05-08T09:57:09.683Z
2,022
5
9
6
268
1
261
51
5
2
true
false
false
false
false
false
zero
72,160,018
How to read custom tags from file metadata [Java]
<p>I'm trying to read some of the more obscure metadata tags from an audio file but I'm having no luck. To get the basic ones (title, year, artist, etc) I'm using the corresponding <code>MediaStore.Audio.AudioColumns.X</code> and that works fine.</p> <p>But some tags don't exist in the AudioColumns options. How can I r...
I'm trying to read some of the more obscure metadata tags from an audio file but I'm having no luck. To get the basic ones (title, year, artist, etc) I'm using the corresponding MediaStore.Audio.AudioColumns.X and that works fine. But some tags don't exist in the AudioColumns options. How can I read those? For example,...
android|tags|metadata|mediastore
1
2022-05-08T10:17:53.423Z
2,022
5
10
6
38
0
422
49
4
0
false
true
false
false
false
false
low
72,160,039
Best practice for using Shared Preferences in MVVM Android?
<p>I've been searching for the best approach to using Shared Preferences in MVVM architecture in Android but I could just find pieces and thus having no clear image over ho to do it in the best way. Therefore I have a few questions:</p> <ol> <li>Should I keep a singleton instance of a SharedPrefs over the app?</li> <li...
I've been searching for the best approach to using Shared Preferences in MVVM architecture in Android but I could just find pieces and thus having no clear image over ho to do it in the best way. Therefore I have a few questions: Should I keep a singleton instance of a SharedPrefs over the app? Should ViewModel and Rep...
android|mvvm|sharedpreferences|android-architecture
2
2022-05-08T10:20:02.910Z
2,022
5
10
6
799
1
852
59
4
0
false
false
false
false
false
false
low
72,160,115
jetback compose keep pushing my view in Box
<p>jetpack compose keep pushing ProgressIndicator when keyboard is opened, I do not want the keyboard to overlap anything at all</p> <pre><code>Box( Modifier .fillMaxSize() ) { BasicTextField() ProgressIndicator( isVisible = uiState.isLoading ) } </code></pre>
jetpack compose keep pushing ProgressIndicator when keyboard is opened, I do not want the keyboard to overlap anything at all [CODE]
android|android-jetpack-compose
1
2022-05-08T10:30:13.853Z
2,022
5
10
6
49
1
132
43
2
1
true
false
false
false
false
false
low
72,160,212
LaunchedEffect() cannot be relaunched
<p>Read this <code>LaunchedEffect take a variable number of keys as a parameter that are used to restart the effect whenever one of those keys changes. </code> from <a href="https://developer.android.com/codelabs/jetpack-compose-advanced-state-side-effects?authuser=1&amp;continue=https%3A%2F%2Fdeveloper.android.com%2Fc...
Read this LaunchedEffect take a variable number of keys as a parameter that are used to restart the effect whenever one of those keys changes. from here . I am trying it out by changing the key and check if the LaunchEffect would be relaunched. Here is my code: [CODE] With code above, running the app, and I can see the...
android|android-jetpack-compose
1
2022-05-08T10:44:10.083Z
2,022
5
10
6
303
1
1,467
37
2
2
true
false
false
false
false
false
low
72,160,223
A problem occurred configuring project ':firebase_auth' in Flutter?
<p><a href="https://i.stack.imgur.com/46RVW.png" rel="nofollow noreferrer">Here is the image of a problem occurred configuring project ':firebase_auth' </a></p>
Here is the image of a problem occurred configuring project ':firebase_auth'
android-emulator|flutter-dependencies
0
2022-05-08T10:46:02.390Z
2,022
5
10
6
33
0
76
67
2
0
false
true
false
false
false
false
zero
72,160,224
android unique to device hash
<p>I am trying to develop an android app that allows users to access the webapp. For this, I need to keep a unique secret hash specific to a device. Is there any way to create this hash id?</p> <p>The hash needs to be unique to the device, and reinstalling the app should not change it.</p> <p>I use JAVA to develop the ...
I am trying to develop an android app that allows users to access the webapp. For this, I need to keep a unique secret hash specific to a device. Is there any way to create this hash id? The hash needs to be unique to the device, and reinstalling the app should not change it. I use JAVA to develop the app. Please any a...
java|android|android-studio|hash
0
2022-05-08T10:46:04.063Z
2,022
5
10
6
14
0
326
29
4
0
false
true
false
false
false
false
zero
72,160,289
Multiple broadcasting in a loop using LocalBroadcastManager.sendBroadcast(intent) from a service don't update the activity UI after each call
<p>I have a service which communicates with the activity using LocalBroadcastManager every time it gets a location update. The callback in the service is:</p> <pre><code> @Synchronized private fun requestLocationUpdates() { mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this) createLoca...
I have a service which communicates with the activity using LocalBroadcastManager every time it gets a location update. The callback in the service is: [CODE] The activity has an onrecieve handler: [CODE] When debugging with a breakpoint where the TextView is supposed to get updated, I see the calls to update the views...
android|kotlin|android-intent|android-activity|broadcastreceiver
1
2022-05-08T10:55:42.070Z
2,022
5
10
6
44
1
461
141
5
2
true
false
false
false
false
false
low
72,160,388
How to fix Unprotected broadcast receiver warning?
<p>I get the following warning from my broadcast receiver:</p> <p>This broadcast receiver declares an <code>intent-filter</code> for a protected broadcast action string, which can only be sent by the system, not third-party applications. However, the receiver's <code>onReceive</code> method does not appear to call <cod...
I get the following warning from my broadcast receiver: This broadcast receiver declares an intent-filter for a protected broadcast action string, which can only be sent by the system, not third-party applications. However, the receiver's onReceive method does not appear to call getAction to ensure that the received In...
java|android|android-studio|broadcastreceiver|warnings
0
2022-05-08T11:06:39.260Z
2,022
5
11
6
145
1
557
50
5
1
true
false
false
false
false
false
zero
72,160,485
API data not getting converted to java object
<p>I'm using a openweathermap API , which is One Call API, to get the current and future 7 days weather details. I'm able to retrieve all the static data which is not nested , but for the data which is nested(current,daily etc) , it says null pointer exception. I have defined all classes for the nested data, still it d...
I'm using a openweathermap API , which is One Call API, to get the current and future 7 days weather details. I'm able to retrieve all the static data which is not nested , but for the data which is nested(current,daily etc) , it says null pointer exception. I have defined all classes for the nested data, still it does...
java|android|android-studio|retrofit
1
2022-05-08T11:22:17.723Z
2,022
5
11
6
45
1
819
45
4
8
true
false
false
false
false
false
low
72,160,494
I am trying to display a QR code on button press, but the QR code does not show
<blockquote> <p>I am new to react JS, I am trying to display a QR code on button press, but the QR code does not show. This class is of the QR code</p> </blockquote> <pre><code>class HelloWorld extends Component { state = { text: 'http://facebook.github.io/react-native/', }; render() { return ( &l...
I am new to react JS, I am trying to display a QR code on button press, but the QR code does not show. This class is of the QR code [CODE] then I have created an object of hello world and called it in the profile, when a button is pressed. [CODE] In the output, the profile is displayed but when I press the button nothi...
android|reactjs|react-native
1
2022-05-08T11:23:16.927Z
2,022
5
11
6
51
1
359
79
3
2
true
false
false
false
false
false
low
72,160,607
AppLovin Ads are visible in unity but not in Android and iOS phones
<p>I have integrated appLovin ads from its documentation in unity <a href="https://dash.applovin.com/documentation/mediation/unity/getting-started/integration" rel="nofollow noreferrer">https://dash.applovin.com/documentation/mediation/unity/getting-started/integration</a></p> <p>and implemented banner ads also. In uni...
I have integrated appLovin ads from its documentation in unity https://dash.applovin.com/documentation/mediation/unity/getting-started/integration and implemented banner ads also. In unity, I can see banner ads but after the build neither it is working on android nor iOS. What could be the issue?
android|ios|unity3d|game-development|applovin
1
2022-05-08T11:38:12.567Z
2,022
5
11
6
225
1
297
67
5
0
false
false
false
false
false
false
low
72,160,619
Is there Android 4.4 KitKat with arm64-v8a?
<p>My goal is to emulate virtual device with Android 4.4 arm64-v8a on Mac Mini M1.</p> <p>The problem:</p> <ol> <li>Android Studio does not provide Android 4.4 with arm64-v8a.</li> <li>armeabi-v7a does not work with Apple Slicion.</li> </ol> <p>What I've done:</p> <ol> <li>I tried to emulate the device with armeabi-v7a...
My goal is to emulate virtual device with Android 4.4 arm64-v8a on Mac Mini M1. The problem: Android Studio does not provide Android 4.4 with arm64-v8a. armeabi-v7a does not work with Apple Slicion. What I've done: I tried to emulate the device with armeabi-v7a, but it throws The emulator process for AVD Pixel_2_APi_19...
android|android-studio|apple-m1|arm64|apple-silicon
1
2022-05-08T11:40:15.367Z
2,022
5
11
6
162
1
489
43
5
0
false
false
false
false
false
false
low
72,160,844
Is it required to add @Singleton on top of a function using dagger hilt if the module scope is already singleton?
<p>In the below code, I have a module where I call <code>@InstallIn(SingletonComponent::class)</code>. So the scope of this module is the application scope or singleton scope)) If I'll provide something inside the module, do I need to annotate that function with <code>singleton</code> as well?</p> <p><a href="https://i...
In the below code, I have a module where I call @InstallIn(SingletonComponent::class) . So the scope of this module is the application scope or singleton scope)) If I'll provide something inside the module, do I need to annotate that function with singleton as well?
android|kotlin|dagger-hilt
3
2022-05-08T12:08:41.130Z
2,022
5
12
6
303
1
266
113
3
0
false
false
false
false
false
false
low
72,160,859
Unable to read a text file from external storage (Android studio)
<p>I wrote a small script to check whether a text file exists in a folder. I have created a folder named depth_estimation and it contains a file named K.txt (Attaching screenshot for reference). While I try to read the text file it throws an error stating the file is not found but when I checked the folder the file act...
I wrote a small script to check whether a text file exists in a folder. I have created a folder named depth_estimation and it contains a file named K.txt (Attaching screenshot for reference). While I try to read the text file it throws an error stating the file is not found but when I checked the folder the file actual...
java|android|android-studio|oneplus7
1
2022-05-08T12:10:54.840Z
2,022
5
12
6
83
0
359
65
4
1
true
true
false
false
false
false
low
72,160,956
Android MVI Architecture problem with ui state
<p>I use MVI architecture and thought about this scenario that can occur</p> <pre class="lang-kotlin prettyprint-override"><code>class MainViewModel() : ViewModel() { private val _viewState = MutableLiveData&lt;MainViewState&gt;(MainViewState()) val viewState: LiveData&lt;MainViewState&gt; get() = _viewState f...
I use MVI architecture and thought about this scenario that can occur [CODE] The problem is that dogName didn't recieve the update because I took the same state value before updating it for the first time for DogName and changed catName with old value of dogName. Ofc I won't write code like this , but can it occur from...
android|architecture|android-livedata
1
2022-05-08T12:25:02.303Z
2,022
5
12
6
236
0
388
46
3
1
true
true
false
false
false
false
low
72,161,007
Android java, Side drawer menu is showing up whenever the app is launched and the app is getting crashed on closing the menu
<p>java.lang.IllegalArgumentException: No drawer view found with gravity LEFT</p> <p>at com.example.books.MainActivity.onOptionsItemSelected(MainActivity.java:245)</p> <p>The terminal shows that the error is with the onOptionsItemSelected function</p> <p>I have referred many StackOverflow posts regarding errors with si...
java.lang.IllegalArgumentException: No drawer view found with gravity LEFT at com.example.books.MainActivity.onOptionsItemSelected(MainActivity.java:245) The terminal shows that the error is with the onOptionsItemSelected function I have referred many StackOverflow posts regarding errors with side navigation drawer but...
java|android
1
2022-05-08T12:31:56.893Z
2,022
5
12
6
32
0
413
124
2
3
true
true
false
false
false
false
low
72,161,019
Android accelerometer mapping movement to custom coordinate system
<p>If I have custom coordinate system X - left/right, Y - forward/backward, Z - Up/down that is represented on my PC screen inside my unreal project, <strong>how would I map the accelerator values In a way that when I move my phone toward the PC screen (regardless of the phone orientation) so that my Y value goes up an...
If I have custom coordinate system X - left/right, Y - forward/backward, Z - Up/down that is represented on my PC screen inside my unreal project, how would I map the accelerator values In a way that when I move my phone toward the PC screen (regardless of the phone orientation) so that my Y value goes up and same for ...
android|accelerometer|coordinate-systems
0
2022-05-08T12:32:57.393Z
2,022
5
12
6
48
1
1,043
66
3
0
false
false
false
false
false
false
zero
72,161,116
ViewPager and tablayout not showing anything
<p>I am following a youtube tutorial on a login/signup screen using ViewPager and tablayout. Unfortunately, both aren't working. I would very much appreciate it if you could help me find the solution for this.</p> <p>activity_log_in.xml:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &l...
I am following a youtube tutorial on a login/signup screen using ViewPager and tablayout. Unfortunately, both aren't working. I would very much appreciate it if you could help me find the solution for this. activity_log_in.xml: [CODE] Login.java: [CODE] LoginAdapter.jave: [CODE] login_tab_fragment.java: [CODE] signup_t...
java|android|android-viewpager|tablayout
1
2022-05-08T12:43:53.350Z
2,022
5
12
6
19
0
413
44
4
5
true
true
false
false
false
false
low
72,161,157
Saving state of a specific like Button in recycler view
<p>In recycler view I have pictures with &quot;Like&quot; buttons on them. When I click a &quot;Like&quot; button for a specific picture, its color changes to red. But when I reopen the app, All &quot;Like&quot; buttons are red, even the ones which I didn't clicked.</p> <p>I'm using sharedPreferences to save the state ...
In recycler view I have pictures with &quot;Like&quot; buttons on them. When I click a &quot;Like&quot; button for a specific picture, its color changes to red. But when I reopen the app, All &quot;Like&quot; buttons are red, even the ones which I didn't clicked. I'm using sharedPreferences to save the state of the but...
android|android-recyclerview
0
2022-05-08T12:48:13.227Z
2,022
5
12
6
26
0
476
55
2
1
true
true
false
false
false
false
zero
72,161,178
Trying to show Recycler View in fragment of Navigation Drawer
<p>I've created a Navigation Drawer in Android Studio, using the default Navigation Drawer Activity (Android Studio Bublebee 2021.1.1.1).</p> <p>And I put a Recycler view in the fragment layout. After that I tried to get data from Firebase database, and put it in Recycler view, using Firebase UI. And since the default ...
I've created a Navigation Drawer in Android Studio, using the default Navigation Drawer Activity (Android Studio Bublebee 2021.1.1.1). And I put a Recycler view in the fragment layout. After that I tried to get data from Firebase database, and put it in Recycler view, using Firebase UI. And since the default code is di...
java|android-studio|android-fragments|android-recyclerview|navigation-drawer
0
2022-05-08T12:50:35.563Z
2,022
5
12
6
83
0
1,087
61
5
7
true
true
false
false
false
false
zero
72,161,207
ERROR "java.io.FileNotFoundException: /document/image:32: open failed: ENOENT (No such file or directory)" while sending Multipart in Kotlin Android
<p>Please, help....</p> <p>I am not sure what is wrong with my code. I am trying to send an image file to MongoDB using Ktor. Server side is ok, I can @POST a file using Postman Software but I can't sand Multipart data from android app.</p> <p>Uri is ok, I can display selected image on a screen with ActivityResultContr...
Please, help.... I am not sure what is wrong with my code. I am trying to send an image file to MongoDB using Ktor. Server side is ok, I can @POST a file using Postman Software but I can't sand Multipart data from android app. Uri is ok, I can display selected image on a screen with ActivityResultContracts.GetContent()...
android|kotlin|retrofit2|uri|enoent
0
2022-05-08T12:53:54.977Z
2,022
5
12
6
9
0
645
148
5
5
true
true
false
false
false
false
zero
72,161,329
get the data in recyclerview
<p>Hello everyone i am getting the messages of the users in android studio for that i am refreshing the recyclerview every second but the probem is scrolling when i am scrooling the recyclerview to old messages then its not scrooling becouse of the getting data every second can someone please help me in this</p> <p>bel...
Hello everyone i am getting the messages of the users in android studio for that i am refreshing the recyclerview every second but the probem is scrolling when i am scrooling the recyclerview to old messages then its not scrooling becouse of the getting data every second can someone please help me in this bellow is my ...
mysql|android-studio|android-recyclerview
0
2022-05-08T13:10:22.983Z
2,022
5
13
6
29
1
372
28
3
2
true
false
false
false
false
false
zero
72,161,393
Observing database using flow
<p>I am having trouble to implement this feature below.</p> <p>Let's say I hava a Content class.</p> <pre><code>interface ContentDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insertContent(content: Content) @Query(&quot;query to get content with id&quot;) fun getContent(contentId: ...
I am having trouble to implement this feature below. Let's say I hava a Content class. [CODE] I should not directly observe this in ui layer. Instead i need something like this [CODE] How can I implement this behaviour. Collector should not directly observe appdatabase. First it should update content. Then listen to da...
android|kotlin|android-room|kotlin-flow
0
2022-05-08T13:17:43.773Z
2,022
5
13
6
77
2
422
29
4
2
true
false
false
false
false
false
zero
72,161,412
unity call touch on device programmatically for playmode test cases
<p>I am writing playmode test case and want to emulate touch once scene is loaded how to create a fake touch on android de</p>
I am writing playmode test case and want to emulate touch once scene is loaded how to create a fake touch on android de
c#|android|unity3d|touch
0
2022-05-08T13:19:29.557Z
2,022
5
13
6
12
0
119
67
4
0
false
true
false
false
false
false
zero
72,161,460
Why does firebase not insert data correctly on other devices?
<p>So example of my database is below</p> <p><img src="https://i.stack.imgur.com/KXqpE.png" alt="Example of data being inserted wrong" /></p> <p>So on other devices the data being inserted is the node on the bottom, while the way I want my data to be inserted is the node thats above.</p> <p>Below is my code for the reg...
So example of my database is below So on other devices the data being inserted is the node on the bottom, while the way I want my data to be inserted is the node thats above. Below is my code for the registration [CODE] On a side note I also send the apk through firebase app distribution apk and when they register thou...
android|firebase|firebase-realtime-database|firebase-authentication
0
2022-05-08T13:26:11.340Z
2,022
5
13
6
51
0
389
61
4
1
true
true
false
false
false
false
zero
72,161,478
Button "Register" does not work, after clicking it
<p>Starting my program, writing all data, but button Register does not work (there sign on Russian). Also does not work any mistakes checker (like password length and other) I don't know where is the root of the problem. I made everything like in guide.</p> <p>activity_register.xml</p> <pre><code>&lt;?xml version=&quot...
Starting my program, writing all data, but button Register does not work (there sign on Russian). Also does not work any mistakes checker (like password length and other) I don't know where is the root of the problem. I made everything like in guide. activity_register.xml [CODE] Here is register. Register.java [CODE] H...
java|android|xml
1
2022-05-08T13:28:48.143Z
2,022
5
13
6
49
0
410
50
3
4
true
true
false
false
false
false
low
72,161,554
MEDIA_TYPE_DOCUMENT was added in Android API level 30, how to get all documents on Android < 30
<p>I am trying to get all the documents from android device, the solution I found is following but it works for Android API 30 or newer devices.</p> <pre><code> val musicUri: Uri = MediaStore.Files.getContentUri(&quot;external&quot;) val projection = arrayOf( MediaStore.MediaColumns.DISPLAY_NAME, ...
I am trying to get all the documents from android device, the solution I found is following but it works for Android API 30 or newer devices. [CODE] and then traversing through the cursor I was able to get all the documents but when it comes to android 29 or less, Android studio complains that the MediaStore.Files.File...
android|android-contentprovider
1
2022-05-08T13:37:17.840Z
2,022
5
13
6
61
0
510
95
2
1
true
true
false
false
false
false
low
72,161,566
Flyout Page with "split" FlyoutLayoutBehavior + Right-to-Left in Xamarin.Forms V5
<p><strong>Description</strong></p> <p>I'm trying to apply RTL direction on the Flyout page with split behavior , it works correctly on IOS(master page on the right ) .But in the android It stays on the left side. Any ideas or could somebody help me with custom renderer?</p> <p>I used Different solution without any res...
Description I'm trying to apply RTL direction on the Flyout page with split behavior , it works correctly on IOS(master page on the right ) .But in the android It stays on the left side. Any ideas or could somebody help me with custom renderer? I used Different solution without any result like below : 1- add android:su...
xamarin.android
0
2022-05-08T13:38:19.190Z
2,022
5
13
6
342
2
837
81
1
0
false
false
false
false
false
false
zero
72,161,578
Save items added to scroll view android studios
<p>I have created and been able to label items that have been added to a scroll view. I want to find a way to save and store the items created so that when the user clicks off the page they still remain there.</p> <p>I wanted to do this through the use of sharedprefs however I am not sure how and where the best place w...
I have created and been able to label items that have been added to a scroll view. I want to find a way to save and store the items created so that when the user clicks off the page they still remain there. I wanted to do this through the use of sharedprefs however I am not sure how and where the best place would be to...
java|android
1
2022-05-08T13:39:58.397Z
2,022
5
13
6
25
1
371
47
2
1
true
false
false
false
false
false
low
72,161,600
React Native IllegalViewOperationException: StackOverflowException Android
<p><strong>CONFIGURATION</strong></p> <p>I have this setup:</p> <p><strong>RootNavigation</strong></p> <pre><code>import React from &quot;react&quot;; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import EventScreen from &quot;../screens/EventScreen&quot;; import BottomTab from &quot;./B...
CONFIGURATION I have this setup: RootNavigation [CODE] BottomTab [CODE] EVENT SCREEN [CODE] Expected Behaviour When I go back from Event Screen I end up to Home Screen Problem On IOS there's no problems, it works fine. On Android when I go Back it crashes. The error is: com.facebook.react.uimanager.IllegalViewOperation...
android|reactjs|react-native|react-navigation
3
2022-05-08T13:43:37.433Z
2,022
5
13
6
169
1
385
74
4
4
true
false
false
false
false
false
low
72,161,678
Unresolved reference: string
<p>When creating a reusable top app bar, <code>string</code> became unresolved. Is there additional code that is needed to fix this?</p> <blockquote> <p>Unresolved reference: string</p> </blockquote> <pre><code>@Composable fun MyTopAppBar( title: String, ) { var showMenu by remember { mutableStateOf(false) } ...
When creating a reusable top app bar, string became unresolved. Is there additional code that is needed to fix this? Unresolved reference: string [CODE]
android|kotlin|android-jetpack-compose
0
2022-05-08T13:53:37.443Z
2,022
5
13
6
385
1
152
28
3
1
true
false
false
false
false
false
zero
72,161,680
Authorized ad account IDs in Facebook developers app: "Exceeded the number of permitted ad accounts."
<p>In my Facebook developers account, to which the application is linked and Google Play store is added, under &quot;Setting -&gt; Advanced&quot; in the &quot;Advertising Accounts -&gt; Authorized ad account IDs&quot; I add a list of ad accounts and encounter this error (Exceeded the number of permitted ad accounts.), ...
In my Facebook developers account, to which the application is linked and Google Play store is added, under &quot;Setting -> Advanced&quot; in the &quot;Advertising Accounts -> Authorized ad account IDs&quot; I add a list of ad accounts and encounter this error (Exceeded the number of permitted ad accounts.), when auth...
android|facebook|facebook-graph-api|android-webview|google-developers-console
1
2022-05-08T13:53:54.240Z
2,022
5
13
6
112
0
513
101
5
0
false
true
false
false
false
false
low
72,161,786
How to fetch data from SendLocationEvent in background locator
<p>I am building application which needs to track user trajectories to detect if user has a pattern .</p> <p>I am using flutter and Carp background location which is built around another package that is called background locator .</p> <p>background locator tracks user even when app is closed or terminated by making the...
I am building application which needs to track user trajectories to detect if user has a pattern . I am using flutter and Carp background location which is built around another package that is called background locator . background locator tracks user even when app is closed or terminated by making the service a foregr...
android|flutter|background|geolocation|android-gps
1
2022-05-08T14:06:05.247Z
2,022
5
14
6
76
0
737
62
5
0
false
true
false
false
false
false
low
72,161,852
Android TTS stops reading aloud after the screen is turned off for a while
<p>I am working on an app that needs to keep reading aloud text after the screen is turned off. To achieve this goal, I put the Text-to-speech (TTS) code in the foreground service, so the TTS can keep running when the screen is off.</p> <p>It worked well on my phone before. But after I upgraded my phone from Android 11...
I am working on an app that needs to keep reading aloud text after the screen is turned off. To achieve this goal, I put the Text-to-speech (TTS) code in the foreground service, so the TTS can keep running when the screen is off. It worked well on my phone before. But after I upgraded my phone from Android 11 to Androi...
android|background|text-to-speech|foreground-service|screen-off
2
2022-05-08T14:14:13.743Z
2,022
5
14
6
212
1
1,585
74
5
0
false
false
false
false
false
false
low
72,161,873
MaterialTimePicker with all-day support - Android Material Components
<p>Does anyone know of a fork of the material-components-android repo (or similar library) that implements an &quot;All day&quot; checkbox, or better yet, an All-day + time range selection feature?</p> <p>Right now I am resorting to showing a few dialogs one after the other, like dateRangeDialog -&gt; all day or set ti...
Does anyone know of a fork of the material-components-android repo (or similar library) that implements an &quot;All day&quot; checkbox, or better yet, an All-day + time range selection feature? Right now I am resorting to showing a few dialogs one after the other, like dateRangeDialog -> all day or set times dialog ->...
android|datetimepicker|material-components-android|material-components|android-timepicker
1
2022-05-08T14:16:39.373Z
2,022
5
14
6
48
0
612
69
5
0
false
true
false
false
false
false
low
72,161,904
How to put any logo over hdmi video signal?
<p>im trying to figure out how to put my logo over the tv signal, so customers see it over any channel, does somebody knows how to do that??? Thanks a lot!!</p>
im trying to figure out how to put my logo over the tv signal, so customers see it over any channel, does somebody knows how to do that??? Thanks a lot!!
javascript|android|raspberry-pi|television|hdmi
0
2022-05-08T14:20:29.633Z
2,022
5
14
6
14
0
153
43
5
0
false
true
false
false
false
false
zero
72,162,068
App crashes when i and ranking to my query string
<pre><code>&quot;SELECT * FROM &quot; + STUDENT_TABLES; </code></pre> <p>this code works but i want to have ranking column so i added updated it to this</p> <pre><code> String queryString = &quot;SELECT *,RANK () OVER&quot; + &quot;( &quot; +&quot;ORDER BY &quot; + STUDENT_NAME_COL + &quot; )&quot; + SP + &quot; FROM...
[CODE] this code works but i want to have ranking column so i added updated it to this [CODE] it gives me this error code under the opening bracket <compound,>,FROM,GROUP,ORDER.WHERE,COMMA or SEMMICOLON expected, got &quot;(&quot; and app crashes; this is how it views enter image description here
java|android|database|sqlite|android-sqlite
1
2022-05-08T14:40:36.483Z
2,022
5
14
6
58
1
297
49
5
2
true
false
false
false
false
false
low
72,162,120
kotlin add method, having difficulty understanding the "it" argument
<pre><code>private fun defaultOptions() { val options = ArrayList&lt;TextView&gt;() tvoptionone?.let { options.add(0, it) } } </code></pre> <p>I am currently using the <code>add(index, element)</code> method in kotlin, However, I don't seem to understand what it represents in the element parameter of the add me...
[CODE] I am currently using the add(index, element) method in kotlin, However, I don't seem to understand what it represents in the element parameter of the add method. These are the parameters for the add method I am trying to use [CODE]
android|kotlin
2
2022-05-08T14:45:50.170Z
2,022
5
14
6
79
4
238
68
2
2
true
false
false
false
false
false
low
72,162,207
Is it enough to wrap exported functions of a C library using JNI for it to work using JNI?
<p>I am trying to wrap a C library using JNI.</p> <p>I am interested about the prospects of using <strong>any</strong> C library using JNI (particularly with Android, but I assumed this compatability should be the same as being compatible with JNI).</p> <p>Without being an original developer of a C library, I've found ...
I am trying to wrap a C library using JNI. I am interested about the prospects of using any C library using JNI (particularly with Android, but I assumed this compatability should be the same as being compatible with JNI). Without being an original developer of a C library, I've found it confusing to know, what methods...
android|java-native-interface
1
2022-05-08T14:55:05.280Z
2,022
5
14
6
39
1
1,246
90
2
1
true
false
false
false
false
false
low
72,162,210
Android Studio Kotlin show next textview integer
<p>Im trying to create a generator, when i click the start button, the textview gives me a a random number. This works great, but i want to show the numbers still i click stop so it must give me every few secons a new random number from my mutable List. How could I do this? My first opinion was, recursive function.</p>...
Im trying to create a generator, when i click the start button, the textview gives me a a random number. This works great, but i want to show the numbers still i click stop so it must give me every few secons a new random number from my mutable List. How could I do this? My first opinion was, recursive function. [CODE]
android-studio|kotlin|textview
0
2022-05-08T14:55:22.360Z
2,022
5
14
6
50
1
320
48
3
1
true
false
false
false
false
false
zero
72,162,369
ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50200010 }
<p>I am getting some ANR reports on the Google Play console. It seems to affect every Android version and multiple devices. I have the same ANR report both with stack trace (below) and with stack trace not available (the majority) Does anyone have any idea where the problem may be?</p> <p>Full Stack Trace here: <a href...
I am getting some ANR reports on the Google Play console. It seems to affect every Android version and multiple devices. I have the same ANR report both with stack trace (below) and with stack trace not available (the majority) Does anyone have any idea where the problem may be? Full Stack Trace here: https://pastebin....
android|google-play-console|android-anr-dialog
3
2022-05-08T15:12:03.417Z
2,022
5
15
6
1,321
0
339
79
3
1
true
true
false
false
false
false
low
72,162,551
Flutter The method 'map' was called on null. Receiver: null error
<p>I'm having this super annoying issue of being unable to grab and display a table from my server hosted on PhpmyAdmin. (I've managed to grab the data and have it printed in the console, but now that I'm trying to display it in a table I can't seem to get it working)</p> <p>I've tried nulling my variables but I'm not ...
I'm having this super annoying issue of being unable to grab and display a table from my server hosted on PhpmyAdmin. (I've managed to grab the data and have it printed in the console, but now that I'm trying to display it in a table I can't seem to get it working) I've tried nulling my variables but I'm not really sur...
android|ios|flutter|android-studio|dart
1
2022-05-08T15:34:02.490Z
2,022
5
15
6
79
2
465
65
5
2
true
false
false
false
false
false
low
72,162,562
How to make a connection from mobile to pc in flutter
<p>So my problem is I want to make an app that can connect to the desktop and communicate with the device in a real production app.... not through usb debugging. In short an app that will connect to a pc and communicate with it either through usb or bluetooth or websocket ports. But I want to do this in a production ap...
So my problem is I want to make an app that can connect to the desktop and communicate with the device in a real production app.... not through usb debugging. In short an app that will connect to a pc and communicate with it either through usb or bluetooth or websocket ports. But I want to do this in a production app, ...
android|windows|flutter
0
2022-05-08T15:35:27.453Z
2,022
5
15
6
61
0
406
53
3
0
false
true
false
false
false
false
zero
72,162,676
How to add native iOS/Android screens to flutter app
<p>I'm very new to flutter and I got Idea how to add flutter screen into native app but my requirements is opposite.</p> <p>In my app, I have a flutter app with Login flow and once login is done, I want to show native iOS/Android screens flow.</p> <p>Could you please help me how to do this?</p> <p>Any idea would be gre...
I'm very new to flutter and I got Idea how to add flutter screen into native app but my requirements is opposite. In my app, I have a flutter app with Login flow and once login is done, I want to show native iOS/Android screens flow. Could you please help me how to do this? Any idea would be great.
android|ios|flutter|dart
1
2022-05-08T15:47:04.373Z
2,022
5
15
6
76
0
299
52
4
0
false
true
false
false
false
false
low
72,162,704
How to solve 'XXX frames skipped' problem in flutter?
<p>Everything was fine before but after I ran my project on android Emulator I started getting these 'Skipped xxx frames' error.</p> <pre><code>__Debug service listening on ws://127.0.0.1:57783/O6dZq3yKkk4=/ws Syncing files to device AOSP on IA Emulator... I/Choreographer(14845): Skipped 52 frames! The application may...
Everything was fine before but after I ran my project on android Emulator I started getting these 'Skipped xxx frames' error. [CODE]
flutter|error-handling|android-emulator|frame
0
2022-05-08T15:49:19.813Z
2,022
5
15
6
84
1
132
53
4
1
true
false
false
false
false
false
zero
72,162,734
How to control number of reading send by accelerometer in android smart phone?
<p>I am currently using below call back sensor method to read the accelerometer reading for all the 3 axis and its sending more than 10 times each second and wish to know how can it reduce sending once every second.</p> <pre><code> @Override public void onSensorChanged(SensorEvent sensorEvent) { ...
I am currently using below call back sensor method to read the accelerometer reading for all the 3 axis and its sending more than 10 times each second and wish to know how can it reduce sending once every second. [CODE]
accelerometer|sensors|android-sensors
0
2022-05-08T15:52:59.270Z
2,022
5
15
6
15
0
219
78
3
1
true
true
false
false
false
false
zero
72,162,741
How to get location updates using FusedLocationProviderClient?
<p>I'm an Android noob and also this is my first post on stackoverflow. I've been trying for some time to find a solution to my problem but couldn't find anything so that's why I'm asking here.</p> <p>I'm trying to make an app that has a courier activity and a client activity. In the courier activity i'm trying to get ...
I'm an Android noob and also this is my first post on stackoverflow. I've been trying for some time to find a solution to my problem but couldn't find anything so that's why I'm asking here. I'm trying to make an app that has a courier activity and a client activity. In the courier activity i'm trying to get the curren...
java|android|google-maps|location|fusedlocationproviderclient
2
2022-05-08T15:53:37.540Z
2,022
5
15
6
49
0
710
62
5
1
true
true
false
false
false
false
low
72,162,851
Could not find apksig-7.1.3.jar in android studio
<p>I'm trying to sync build.gradle for a flutter app in android studio but it gave this error</p> <p><a href="https://i.stack.imgur.com/tt8FZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tt8FZ.png" alt="enter image description here" /></a></p> <p>this error comes after I tried solving &quot;ssl p...
I'm trying to sync build.gradle for a flutter app in android studio but it gave this error this error comes after I tried solving &quot;ssl peer shut down incorrectly&quot; error using the first answer in this question . I followed all three steps of that solution but without adding the certificates and then I reconver...
flutter|android-studio|build.gradle
0
2022-05-08T16:08:08.513Z
2,022
5
16
6
47
0
466
49
3
0
false
true
false
false
false
false
zero
72,162,871
How to create a Countdown timer that runs even when the app is completely closed?
<p>I am trying to create a timer (in a game project) that will countdown 24 hours (even when the user closes the app) and then it will send the user a notification that says the timer finished, but I can't code a Countdown timer that runs when the user closes the app, I have used countdown timer that works with broadca...
I am trying to create a timer (in a game project) that will countdown 24 hours (even when the user closes the app) and then it will send the user a notification that says the timer finished, but I can't code a Countdown timer that runs when the user closes the app, I have used countdown timer that works with broadcast ...
java|android-studio|service|timer|countdown
-1
2022-05-08T16:09:05.393Z
2,022
5
16
6
94
1
467
81
5
0
false
false
false
false
false
true
negative
72,162,925
Finding installed android applications that can install other applications
<p>I want to find applications that the user has allowed to install other applications. I know that if I look for &quot;android.permission.INSTALL_PACKAGES&quot; I would find mainly system packages that can install applications but I'd like to find applications (like the browser, or email) that the user allowed to inst...
I want to find applications that the user has allowed to install other applications. I know that if I look for &quot;android.permission.INSTALL_PACKAGES&quot; I would find mainly system packages that can install applications but I'd like to find applications (like the browser, or email) that the user allowed to install...
android
1
2022-05-08T16:14:46.770Z
2,022
5
16
6
29
1
530
74
1
1
true
false
false
false
false
false
low
72,162,951
Project :app declares a dependency from configuration 'implementation' to configuration 'debug' which is not declared in the descriptor for project
<p>I am trying to add a Kotlin Multiplatform Module as part of an Android project I am building. In the library, my top level <code>build.gradle.kts</code> looks like this:</p> <pre><code>buildscript { repositories { gradlePluginPortal() google() mavenCentral() } dependencies { ...
I am trying to add a Kotlin Multiplatform Module as part of an Android project I am building. In the library, my top level build.gradle.kts looks like this: [CODE] Then my app level build.gradle.kts looks like this: [CODE] Back in my Android project I am including the file in the settings.gradle like this: [CODE] Then ...
android|gradle|kotlin-multiplatform
1
2022-05-08T16:17:43.277Z
2,022
5
16
6
213
0
466
147
3
5
true
true
false
false
false
false
low
72,162,975
Firestore Delete elements from a nested map kotlin
<p>I have a collection, I want to delete 2 documents from this collection <a href="https://i.stack.imgur.com/n034j.png" rel="nofollow noreferrer">Paradas collection</a> and delete it from the nested map too <a href="https://i.stack.imgur.com/GItSs.png" rel="nofollow noreferrer">Nested map</a> like in SQL, when you del...
I have a collection, I want to delete 2 documents from this collection Paradas collection and delete it from the nested map too Nested map like in SQL, when you delete it from a table to delete it from elsewhere too. I tried [CODE] Edit: The error that appears is this: After i execute the code, the whole map changes to...
android|firebase|kotlin|google-cloud-firestore
2
2022-05-08T16:21:08.483Z
2,022
5
16
6
86
1
399
50
4
1
true
false
false
false
false
false
low
72,162,988
UI doesn't update when mutableStateOf changes
<p>I have @Composable item - ThumbButton and Text which displays current likes number. When I click button I want to increment likes number. I don't know why it doesn't work</p> <pre><code>val likesCounter = remember { mutableStateOf(0)} Row( modifier = Modifier.wrapContentSize(), verticalAlignment...
I have @Composable item - ThumbButton and Text which displays current likes number. When I click button I want to increment likes number. I don't know why it doesn't work [CODE]
kotlin|android-jetpack-compose|android-jetpack
0
2022-05-08T16:22:20.850Z
2,022
5
16
6
259
1
177
45
3
1
true
false
false
false
false
false
zero
72,163,162
Prevent Webview to open browser without using WebViewClient
<p>I need to load url in WebView and DO NOT open default browser of device, without setting WebViewClient/WebChromeClient. The reason i need to prevent using WebViewClient while loading url in webview is that, without WebViewClient urls loading 2,3 times faster.</p> <p>Problem is that i have multiple urls and some of u...
I need to load url in WebView and DO NOT open default browser of device, without setting WebViewClient/WebChromeClient. The reason i need to prevent using WebViewClient while loading url in webview is that, without WebViewClient urls loading 2,3 times faster. Problem is that i have multiple urls and some of urls openin...
java|android|webview|android-webview
2
2022-05-08T16:42:34.253Z
2,022
5
16
6
34
0
348
59
4
0
false
true
false
false
false
false
low
72,163,247
How can i get my buttons working for Android Studio?
<p>I have an Activity which has two buttons on it. The first button adds the user data to a database and the second takes us to a different activity. The buttons in my main activity are working but not in this activity. The code seems to be correct.</p> <p>Activity:</p> <pre><code>public class addData extends AppCompa...
I have an Activity which has two buttons on it. The first button adds the user data to a database and the second takes us to a different activity. The buttons in my main activity are working but not in this activity. The code seems to be correct. Activity: [CODE] [CODE]
android
-2
2022-05-08T16:53:53.217Z
2,022
5
16
6
32
2
270
52
1
2
true
false
false
false
false
true
negative
72,163,266
weird crash maybe related with CFI in android
<p>I saw a weird crash maybe related with CFI but no any idea how to fix it. the crash stack as below:</p> <pre><code>F DEBUG : Timestamp: 2022-05-08 15:54:30+0000 F DEBUG : pid: 3734, tid: 4654, name: AsyncTask #1 &gt;&gt;&gt; com.android.nfc &lt;&lt;&lt; F DEBUG : uid: 1027 F DEBUG : signal 6 (SIGABRT), cod...
I saw a weird crash maybe related with CFI but no any idea how to fix it. the crash stack as below: [CODE] The crash code line is: [CODE] The gki_cb is a instance not a pointer, it should not crash. since I saw a .cfi keyword in the stack line. Maybe it's CFI related crash but how to fix such issues?
android|linux|crash
1
2022-05-08T16:56:37.867Z
2,022
5
16
6
30
0
301
45
3
2
true
true
false
false
false
false
low
72,163,280
Xamarin change searchbar underline color and Icon Spacing Fix
<p>Ok so i want to change the gray underline of the searchbar to another color</p> <p><a href="https://i.stack.imgur.com/m5mqo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m5mqo.png" alt="searchbar picture" /></a></p> <p>Because i tried to use this code in a custom render</p> <pre><code> va...
Ok so i want to change the gray underline of the searchbar to another color Because i tried to use this code in a custom render [CODE] But it removes the underline and changes the background color (Not what I want) If I change the color to Transparent it looks like this (And I just want to change color...) Bonus side q...
c#|android|xamarin
0
2022-05-08T16:57:50.303Z
2,022
5
16
6
13
0
442
61
3
2
true
true
false
false
false
false
zero
72,163,307
How to make sub-categories on flutter
<p>I am giving an example when I click on the category group (fertilizer, medicine, etc.) that appears in the current picture, it will show 4 sub-categories, of course, it will be closed when I press it again. How can I do this in the most convenient way? Thank you everyone in advance</p> <p>I am giving an example when...
I am giving an example when I click on the category group (fertilizer, medicine, etc.) that appears in the current picture, it will show 4 sub-categories, of course, it will be closed when I press it again. How can I do this in the most convenient way? Thank you everyone in advance I am giving an example when I click o...
android|ios|flutter|user-interface|categories
1
2022-05-08T17:00:26.373Z
2,022
5
17
6
75
2
572
37
5
1
true
false
false
false
false
false
low
72,163,375
Flutter : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI
<p>My flutter app isn't install on Android 12 version. I tried with <code>android:exported</code>, but nothing work. It's show me this type of error-</p> <pre><code>✓ Built build/app/outputs/flutter-apk/app-debug.apk. Installing build/app/outputs/flutter-apk/app.apk... 3.3s Error: ADB exited with exit ...
My flutter app isn't install on Android 12 version. I tried with android:exported , but nothing work. It's show me this type of error- [CODE] Here is my AndroidManifest.xml file [CODE] What did I miss ?
firebase|flutter|android-intent|android-12
3
2022-05-08T17:08:37.707Z
2,022
5
17
6
2,978
4
202
87
4
2
true
false
true
false
false
false
low
72,163,495
How can stop receiving data from Bluetooth without Loss the Previous data?
<p>I want to receive sensor data from Arduino with HC-05 Bluetooth module in Kotlin.<br /> I have a <strong>receiveData</strong> function and when I clicking on the start button , <strong>receiveData</strong> is called and data show on the text view ; This is working correctly.<br /> But I want to <em>stop receive dat...
I want to receive sensor data from Arduino with HC-05 Bluetooth module in Kotlin. I have a receiveData function and when I clicking on the start button , receiveData is called and data show on the text view ; This is working correctly. But I want to stop receive data when I clicking on the Stop button and keep that Pre...
android|kotlin|arduino|bluetooth
1
2022-05-08T17:24:23.420Z
2,022
5
17
6
29
0
498
74
4
2
true
true
false
false
false
false
low
72,163,526
How to create my own Lottie animations in Android
<p>I want to create my own Lottie animations but don't know from where to start. Please guide me for this. I am creating animated gifts and entries for my live streaming app and for that I need to create my own Lottie animations</p>
I want to create my own Lottie animations but don't know from where to start. Please guide me for this. I am creating animated gifts and entries for my live streaming app and for that I need to create my own Lottie animations
android|android-studio|animation|android-animation|lottie
-1
2022-05-08T17:27:41.903Z
2,022
5
17
6
46
1
225
49
5
0
false
false
false
false
false
true
negative
72,163,617
How to use libraries other than google libraries in android studio 2021.1
<p>I created a blank android project that works very well but when I try to use this library found on github I get this error.</p> <pre><code>failed org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspat...
I created a blank android project that works very well but when I try to use this library found on github I get this error. [CODE] The error occurs when I use any github library but google libraries compile without problem. What should I do please? Here is my build.gradle [CODE] And here is my settings.gradle [CODE] I ...
android|android-studio|github
2
2022-05-08T17:38:38.593Z
2,022
5
17
6
74
1
398
73
3
3
true
false
false
false
false
false
low
72,163,666
If we save cache data in application directory instead of cache directory can we prevent data purging when phone is on low memory or software upgrade
<p>The data stored in the cache directory is getting deleted when phone is on low memory. if we cache the data in application's internal storage directory where user data is stored can this be avoided.</p>
The data stored in the cache directory is getting deleted when phone is on low memory. if we cache the data in application's internal storage directory where user data is stored can this be avoided.
android|ios|flutter|flutter-dependencies
1
2022-05-08T17:43:09.933Z
2,022
5
17
6
44
0
198
149
4
0
false
true
false
false
false
false
low
72,163,684
Get position of a specific item in an Array based on a string value
<p>I have a basic data model that includes a string value. This model is returned in an Array.</p> <p><strong>My data:</strong></p> <pre><code>fun getFruits() : Array&lt;FruitModel&gt;{ return arrayOf( FruitModel(name: &quot;Apple&quot;), FruitModel(name: &quot;Tomato&quot;), FruitModel(name...
I have a basic data model that includes a string value. This model is returned in an Array. My data: [CODE] I need to get the position of a specific item based on the fruit name. Example: If I specify &quot;Plum&quot;, I will get 3. If I specify &quot;Blueberry&quot;, I will get 7. How do I get the position of items in...
android|arrays|kotlin|position
1
2022-05-08T17:45:38.990Z
2,022
5
17
6
35
1
375
67
4
1
true
false
false
false
false
false
low
72,163,741
Upload a file received from there into Firebase Storage
<p>In my code, I get a file from Firebase Storage and try to upload it there as well.</p> <pre><code>mStorageRef.child(&quot;write_but2.jpg&quot;).getDownloadUrl().addOnSuccessListener(new OnSuccessListener&lt;Uri&gt;() { @Override public void onSuccess(Uri uri) { mStorageRef.child(&quot;wri...
In my code, I get a file from Firebase Storage and try to upload it there as well. [CODE] Does not work: [CODE] Please tell me what should I do?
java|android|firebase|google-cloud-platform|firebase-storage
1
2022-05-08T17:52:07.493Z
2,022
5
17
6
59
2
144
55
5
2
true
false
false
false
false
false
low
72,163,914
Unable to test LiveData inside ViewModel
<p>So, I have this ViewModel class</p> <pre><code>@HiltViewModel class HomeViewModel @Inject constructor(private val starWarsRepository: StarWarsRepository) : ViewModel() { /** * Two-Way binding variable */ val searchQuery: MutableLiveData&lt;String&gt; = MutableLiveData() val characters = searc...
So, I have this ViewModel class [CODE] and here it's counter TestingClass [CODE] Here is the repository [CODE] I'm using this extension function from a google sample. [CODE] The problem is I'm getting an exception from the getOrAwaitValue that LiveData value was never set. ?
android|unit-testing|kotlin|junit
1
2022-05-08T18:14:01.843Z
2,022
5
18
6
209
0
275
40
4
4
true
true
false
false
false
false
low
72,163,945
Upgrading from java-based android app to react native and SQLite storage
<p>I believe there is only one location databases can be stored on Android but also wondering if the file extension for SQLiteOpenHelper is .db3, .db, or user defined and if not defined there is no extension.</p> <p>Any help?</p> <p>My scenario is: I have a java based android app in the play store currently and it open...
I believe there is only one location databases can be stored on Android but also wondering if the file extension for SQLiteOpenHelper is .db3, .db, or user defined and if not defined there is no extension. Any help? My scenario is: I have a java based android app in the play store currently and it opens the database li...
android|react-native|sqliteopenhelper|react-native-sqlite-storage
1
2022-05-08T18:19:33.607Z
2,022
5
18
6
38
0
1,039
72
4
2
true
true
false
false
false
false
low
72,163,958
boolean variable always equals false
<p>When opening the menu in my application it shows an extra option depending on the state of the game (paused or not started) however the controlling variable for what the button should do always returns as false. I have attempted splitting the if statements into separate statements and performing the processing that ...
When opening the menu in my application it shows an extra option depending on the state of the game (paused or not started) however the controlling variable for what the button should do always returns as false. I have attempted splitting the if statements into separate statements and performing the processing that was...
java|android-studio|boolean
-2
2022-05-08T18:21:19.830Z
2,022
5
18
6
89
1
1,137
36
3
1
true
false
false
false
false
true
negative
72,164,031
How to make two different RecyclerView animations from bottom and top?
<p>I need that when I scroll the RecyclerView each element appears or disappears on the screen, with animation. This option:</p> <pre><code>android:layoutAnimation=&quot;@anim/layout_animation&quot; </code></pre> <p>Starts animation only on first run Also tried like this</p> <pre><code> private fun setAnimation(view...
I need that when I scroll the RecyclerView each element appears or disappears on the screen, with animation. This option: [CODE] Starts animation only on first run Also tried like this [CODE] In onBindViewHolder , there is an animation when scrolling in both directions, but not only when the element appears on the scre...
android|animation|android-recyclerview
2
2022-05-08T18:30:36.320Z
2,022
5
18
6
44
0
755
70
3
2
true
true
false
false
false
false
low
72,164,063
Xamarin - The "XamlCTask" task failed unexpectedly on visual studio
<p>I'm getting this error each time I try to build my Xamarin project on Android emulator. I have vs2019.</p> <pre><code>System.Runtime.Serialization.SerializationException: No se puede encontrar el ensamblado 'Mono.Cecil, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e'. Server stack trace: en ...
I'm getting this error each time I try to build my Xamarin project on Android emulator. I have vs2019. [CODE] It says it can't find the &quot;Mono.Cecil&quot; assembly. How do I fix this? Please help.
c#|android|xamarin|compiler-errors|.net-5
1
2022-05-08T18:35:51.360Z
2,022
5
18
6
159
0
200
67
5
1
true
true
false
false
false
false
low
72,164,137
Add custom theme in application?
<p>I am building an android application. Where I am adding custom theme Color(Blue, Red, Yellow ETC) which can be choose by users.</p> <p>I am able to apply custom theme for my view, text and icon. The challenging part is to add different color for primary button and secondary button for single theme.</p> <p>Example - ...
I am building an android application. Where I am adding custom theme Color(Blue, Red, Yellow ETC) which can be choose by users. I am able to apply custom theme for my view, text and icon. The challenging part is to add different color for primary button and secondary button for single theme. Example - For Blue theme Pr...
android|css|styles|themes|branding
1
2022-05-08T18:45:25.670Z
2,022
5
18
6
142
2
427
32
5
1
true
false
false
false
false
false
low
72,164,154
infinite looping when updating nodes in firebase android studio
<p>Here is my code</p> <pre><code>if (v == btnAddition) { dbRef = FirebaseDatabase.getInstance(&quot;https://mathcc-652c5-default-rtdb.asia-southeast1.firebasedatabase.app/&quot;).getReference(&quot;Quizzes&quot;).child(&quot;1&quot;); System.out.println(dbRef.child(&quot;addition&quot;).get().toString()); ...
Here is my code [CODE] it keeps looping into eternity whenever I click the button. I don't know what I'm doing wrong . Im fairly new to firebase and android please help The data I'm trying to change in my database:
android|firebase|firebase-realtime-database
1
2022-05-08T18:48:27.593Z
2,022
5
18
6
26
1
214
63
3
1
true
false
false
false
false
false
low
72,164,317
Capacitor Hard ware back button closing the app in release build
<p>I am handling the back button by adding a listener in the _app.tsx of my react project like so</p> <pre><code>useEffect(() =&gt; { CapacitorApp.addListener(&quot;backButton&quot;, () =&gt; { if (router.pathname === &quot;/&quot;) { CapacitorApp.exitApp(); } else { ...
I am handling the back button by adding a listener in the _app.tsx of my react project like so [CODE] and it is working as expected in the dev build without any issues. But in the release build the back button is closing the app My capacitor package versions [CODE] I have tried removing the whole android folder and rea...
android|reactjs|ionic-framework|capacitor|capacitor-plugin
0
2022-05-08T19:08:41.390Z
2,022
5
19
6
132
2
479
64
5
2
true
false
false
false
false
false
zero
72,164,508
Handling subscription cancellations in Xamarin Forms app
<p>If I understand it correctly -- both iOS and Android -- subscription cancellations are NOT handled in my app but in Settings and Play Store in iOS and Android respectively.</p> <p>Two questions:</p> <ol> <li>Am I understanding this correctly?</li> <li>If that's the case, do we need to do anything in our apps such as...
If I understand it correctly -- both iOS and Android -- subscription cancellations are NOT handled in my app but in Settings and Play Store in iOS and Android respectively. Two questions: Am I understanding this correctly? If that's the case, do we need to do anything in our apps such as provide instructions, etc?
android|ios|xamarin|in-app-purchase|in-app-subscription
1
2022-05-08T19:35:09.717Z
2,022
5
19
6
67
1
315
56
5
0
false
false
false
false
false
false
low
72,164,514
Python kivy save Image to android gallery
<p>I'm making an app in python kivy and I have an draggable Image in my tacscreen, my goal is to save that draggable Image to the users Android gallery whenever they press the button on my tacscreen. How can I do that? Below is my code. Thanks for any help.</p> <pre><code>&lt;tacscreen&gt;: canvas.before: ...
I'm making an app in python kivy and I have an draggable Image in my tacscreen, my goal is to save that draggable Image to the users Android gallery whenever they press the button on my tacscreen. How can I do that? Below is my code. Thanks for any help. [CODE]
python|android|kivy|kivy-language|kivymd
0
2022-05-08T19:36:13.927Z
2,022
5
19
6
38
0
261
41
5
1
true
true
false
false
false
false
zero
72,164,515
Making separate class for string values in flutter
<p>I was confused whether is it a good practice to make a separate class for all string values in my flutter app code. It increases the code, but it looks a lot cleaner.</p>
I was confused whether is it a good practice to make a separate class for all string values in my flutter app code. It increases the code, but it looks a lot cleaner.
android|string|flutter|class|dart
1
2022-05-08T19:36:21.263Z
2,022
5
19
6
68
0
166
50
5
0
false
true
false
false
false
false
low
72,164,575
Expected stack map table for method with non-linear control flow
<p>When I targeting to Android 30+, I got a bunch of warnings in the title about the library provided by Samsung (accessory-v2.6.4.jar) to included in the project for communicating with a Galaxy wearable.</p> <ol> <li>Can I get rid of this warning?</li> <li>Can I ignore this warning?</li> <li>What is this warning meani...
When I targeting to Android 30+, I got a bunch of warnings in the title about the library provided by Samsung (accessory-v2.6.4.jar) to included in the project for communicating with a Galaxy wearable. Can I get rid of this warning? Can I ignore this warning? What is this warning meaning?
android|tizen|tizen-wearable-sdk|tizen-native-app
1
2022-05-08T19:45:44.770Z
2,022
5
19
6
109
0
289
64
4
0
false
true
false
false
false
false
low
72,164,600
Error message when testing an app in the Android Studio emulator: 'The app keeps stopping'
<p>When I try an app I was developing in the Android Studio emulator, the following message appears: 'App keeps stopping' and it doesn't open.</p> <p>This is the code for the MainActivity:</p> <pre><code>import android.content.Intent import android.os.Bundle import android.widget.Toast import androidx.appcompat.app.App...
When I try an app I was developing in the Android Studio emulator, the following message appears: 'App keeps stopping' and it doesn't open. This is the code for the MainActivity: [CODE] On the other hand, in the LogCat, I get this message: [CODE] The problem is that I don't know where to go to fix it. I am new to this ...
android|android-studio|kotlin
0
2022-05-08T19:48:42.897Z
2,022
5
19
6
65
1
470
90
3
2
true
false
false
false
false
false
zero
72,164,643
Prevent GSON from Adding Null when Deserializing JSON
<p>I am using GSON (Scarlet GSON) to parse objects that I got from the server (web socket) into two types: <code>TypeA</code> and <code>TypeB</code>:</p> <pre><code>data class TypeA( val id: UUID, val name: String, val number1: Int, ) </code></pre> <pre><code>data class TypeB( val id: UUID, val name...
I am using GSON (Scarlet GSON) to parse objects that I got from the server (web socket) into two types: TypeA and TypeB : [CODE] [CODE] [CODE] My Scarlet builder looks like this: [CODE] However, whenever I have an object from the server sent to the client, GSON always tries to decode for both types. If the server sends...
android|json|gson
1
2022-05-08T19:55:11.603Z
2,022
5
19
6
49
0
881
53
3
4
true
true
false
false
false
false
low
72,164,660
webview html rendering issue, image is getting cropped
<p>I am trying to render an image as html in webview of android but not able to calibrate it correctly in mobile, original image gets cropped both left and right using below code. how should I fix this and how to know if it will render fine on mobile (by running in browser only) ? below is what I am doing.</p> <p>image...
I am trying to render an image as html in webview of android but not able to calibrate it correctly in mobile, original image gets cropped both left and right using below code. how should I fix this and how to know if it will render fine on mobile (by running in browser only) ? below is what I am doing. image dimension...
android|html|css|web|android-webview
2
2022-05-08T19:58:03.423Z
2,022
5
19
6
40
0
342
54
5
1
true
true
false
false
false
false
low
72,164,782
No action works when "RefreshControll" in running in react native
<p>When a FlatList or ScrollView RefreshControll is running I can't click any button, it freezes everything until the loading is complete! If I click a navigation button during a refreshController it doesn't work and the action executes automatically right after the loading!</p>
When a FlatList or ScrollView RefreshControll is running I can't click any button, it freezes everything until the loading is complete! If I click a navigation button during a refreshController it doesn't work and the action executes automatically right after the loading!
javascript|android|reactjs|react-native|performance
0
2022-05-08T20:15:27.347Z
2,022
5
20
6
13
0
272
65
5
0
false
true
false
false
false
false
zero
72,164,785
how to reduce apk filesize for flutter build apk?
<p>Want to know how to reduce you flutter apk files? Currently the files produced are quite large, usually around 80 mb. This is simply too large for many purposes and it may help you to reduce the file size.</p>
Want to know how to reduce you flutter apk files? Currently the files produced are quite large, usually around 80 mb. This is simply too large for many purposes and it may help you to reduce the file size.
android|flutter|android-studio|apk
1
2022-05-08T20:15:47.957Z
2,022
5
20
6
111
3
205
49
4
0
false
false
false
false
false
false
low
72,164,858
How to show Toast on homescreen
<p>I have an activity that uses:</p> <pre><code>val i = Intent(Intent.ACTION_MAIN) i.addCategory(Intent.CATEGORY_HOME) startActivity(i) Toast.makeText(this, &quot;Fetching attendance, hold your phone close to the terminal ...&quot;, Toast.LENGTH_SHORT).show() </code></pre> <p>To automatically return to the ho...
I have an activity that uses: [CODE] To automatically return to the home screen once the function above is called, but the toast does not show up. How can I make a toast show up while on the home screen?
android|kotlin|toast|android-toast|onpause
0
2022-05-08T20:28:30.810Z
2,022
5
20
6
58
1
203
31
5
1
true
false
false
false
false
false
zero
72,164,910
Android foreground process slows down after 20 minutes
<p>I have android app that communicates with the bluetooth device every second. I run communitation thread from Foreground process. All works fine when app is active but if app is not active after about 20 minutes I see that my app pings device every 20-30 seconds. Is there way for me to keep it at 1 second or its andr...
I have android app that communicates with the bluetooth device every second. I run communitation thread from Foreground process. All works fine when app is active but if app is not active after about 20 minutes I see that my app pings device every 20-30 seconds. Is there way for me to keep it at 1 second or its android...
android|service|foreground-service
0
2022-05-08T20:36:49.557Z
2,022
5
20
6
37
0
357
54
3
0
false
true
false
false
false
false
zero
72,164,935
How do I get my ionic app to work in my Android Phone
<p>I am writing my First Ionic and Node express API. Node JS is a simple http get which gets top 10 rows from a db. Ionic has a button, onclick calls the http address. The URL works from my chrome browser on my phone. But when I create the APK from ionic and copy/install the APK, the button does not respond with any da...
I am writing my First Ionic and Node express API. Node JS is a simple http get which gets top 10 rows from a db. Ionic has a button, onclick calls the http address. The URL works from my chrome browser on my phone. But when I create the APK from ionic and copy/install the APK, the button does not respond with any data ...
android
1
2022-05-08T20:39:47.090Z
2,022
5
20
6
9
1
510
53
1
3
true
false
false
false
false
false
low
72,165,017
Calling canvas.scale() doesn't scale the click listener area of the views
<p>I have a bunch of Buttons in a LinearLayout. In the LinearLayout, I override onDraw() to call canvas.scale(scale, scale) where scale is some number. The buttons in the LinearLayout scales visually but the click area doesn't move and scale with the visual representation. In other words, the click area registers in th...
I have a bunch of Buttons in a LinearLayout. In the LinearLayout, I override onDraw() to call canvas.scale(scale, scale) where scale is some number. The buttons in the LinearLayout scales visually but the click area doesn't move and scale with the visual representation. In other words, the click area registers in the o...
android|kotlin|canvas|onclick
0
2022-05-08T20:52:43.360Z
2,022
5
20
6
110
1
1,010
73
4
3
true
false
false
false
false
false
zero
72,165,240
How to searchh recyclerview items and click the filtered item
<p>I have a program with a recyclerview that has a list of patients. when I search and find the person I am looking for and if I click to get more information I am taken to the person on the top of the recyclerview list always.</p>
I have a program with a recyclerview that has a list of patients. when I search and find the person I am looking for and if I click to get more information I am taken to the person on the top of the recyclerview list always.
search|android-recyclerview
0
2022-05-08T21:32:23.967Z
2,022
5
21
6
6
0
224
61
2
0
false
true
false
false
false
false
zero
72,165,265
AndroidX Room generated class error: "Class is public, should be declared in a file named class.java"
<p>Numerous similar questions on SO but they do not pertain to classes generated by the AndroidX Room library. Please do not mark this question a duplicate, because similar questions relate to traditional Java classes, not those generated by Room.</p> <p>Following the <a href="https://developer.android.com/training/dat...
Numerous similar questions on SO but they do not pertain to classes generated by the AndroidX Room library. Please do not mark this question a duplicate, because similar questions relate to traditional Java classes, not those generated by Room. Following the documentation on Android Room, I have defined a database and ...
android|android-room|androidx
2
2022-05-08T21:36:46.013Z
2,022
5
21
6
43
1
582
101
3
2
true
false
false
false
false
false
low
72,165,266
Issue with screen size on Android
<p>I have a problem with screen size in multiple devices. I have developed my app using Kivy framework and everything is pretty fine on my PC, but when I tried to compile my app to apk file I found that there is an issue with screen size, all elements located in wrong positions and size of every elements (text, button ...
I have a problem with screen size in multiple devices. I have developed my app using Kivy framework and everything is pretty fine on my PC, but when I tried to compile my app to apk file I found that there is an issue with screen size, all elements located in wrong positions and size of every elements (text, button etc...
python|android|python-3.x|kivy
0
2022-05-08T21:36:59.907Z
2,022
5
21
6
55
0
798
33
4
1
true
true
false
false
false
false
zero
72,165,362
Movesense can't set DataLoggerConfig get error 400
<p>I'm trying to set DataLogger Config to start measuring but get error 400. Don't have problems reading config or starting DataLogger. But since setting config doesn't work there is nothing to store. I'm using Flutter with native Java code to communicate with Movesens API. Please what is the issue here?</p> <p>This pa...
I'm trying to set DataLogger Config to start measuring but get error 400. Don't have problems reading config or starting DataLogger. But since setting config doesn't work there is nothing to store. I'm using Flutter with native Java code to communicate with Movesens API. Please what is the issue here? This package isn'...
android|flutter|movesense
0
2022-05-08T21:56:51.243Z
2,022
5
21
6
44
1
448
50
3
3
true
false
false
false
false
false
zero
72,165,460
Firebase Messages get count badge The Unread new Messages Recived
<p><strong>I use Firebase to send messages between users, and I'd like to use a new unread message badge and the number of unread messages.</strong></p> <p><strong>I want to help solve this problem so I can get the number of unread messages when they are received from the other user and displayed in the user's list</st...
I use Firebase to send messages between users, and I'd like to use a new unread message badge and the number of unread messages. I want to help solve this problem so I can get the number of unread messages when they are received from the other user and displayed in the user's list like this [CODE] item Uaer Massage [CO...
java|android|firebase|android-studio|firebase-cloud-messaging
0
2022-05-08T22:16:54.827Z
2,022
5
22
6
174
0
341
65
5
3
true
true
false
false
false
false
zero
72,165,475
How to check if a headset button is pressed when connecting in Kotlin
<p><br />I need to check if a headset button is pressed when connecting it to the terminal. In the app I capture the button press, but if when connecting the headset it is pressed, the logic of the button is reversed. I don't know if it is a technical limitation or if I can make a call to detect that pulsation when con...
I need to check if a headset button is pressed when connecting it to the terminal. In the app I capture the button press, but if when connecting the headset it is pressed, the logic of the button is reversed. I don't know if it is a technical limitation or if I can make a call to detect that pulsation when connecting. ...
kotlin|android-button|headset
0
2022-05-08T22:19:44.423Z
2,022
5
22
6
22
0
375
69
3
0
false
true
false
false
false
false
zero
72,165,508
I have a problem with Media Player when playing the audio, it does not stop even when I exit the application How do I release this code?
<pre><code>enter code here </code></pre> <p>mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override</p> <pre><code> public void onCompletion(MediaPlayer mp) { btPause.setVisibility(View.GONE); btPlay.setVisibility(View.VISIBLE); mediaPlayer.seek...
[CODE] mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override [CODE] } [CODE]
java|android
1
2022-05-08T22:25:09.313Z
2,022
5
22
6
16
1
109
136
2
3
true
false
false
false
false
false
low
72,165,673
How does the chain of wrapContentSize, width and fillMaxSize modifiers work together in Compose
<p>The <a href="https://developer.android.com/codelabs/jetpack-compose-animation" rel="nofollow noreferrer">Jetpack Compose Animation Codelab</a> contains a custom TabRow's indicator <code>HomeTabIndicator</code>. It takes the <code>TabPosition</code> coordinates and renders a <code>Box</code> using the following chain...
The Jetpack Compose Animation Codelab contains a custom TabRow's indicator HomeTabIndicator . It takes the TabPosition coordinates and renders a Box using the following chain of modifiers: [CODE] How do the modifiers in the chain fillMaxSize > wrapContentSize > offset > width > fillMaxSize play together?
android-jetpack-compose|android-jetpack-compose-modifier
0
2022-05-08T23:08:29.243Z
2,022
5
23
6
27
0
305
95
2
1
true
true
false
false
false
false
zero
72,165,708
AOSP error - FAILED: LLVM ERROR: out of memory [ 44% 50307/112979] clang++ android/hardware/automotive/evs/1.1/EvsCameraStreamAll.cpp
<p>Getting this error when i run ‘lunch sdk_phone_x86_64’ and 'm' Help me ! 32G memory</p> <p>build fail; log</p> <pre><code>PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=11 TARGET_PRODUCT=sdk_phone_x86_64 TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_ARCH=x86_64 TARGET_ARCH_VARIANT=x86_64 TARGET_2ND_ARCH=...
Getting this error when i run ‘lunch sdk_phone_x86_64’ and 'm' Help me ! 32G memory build fail; log [CODE] [CODE]
android|c++|linux|clang
0
2022-05-08T23:19:23.043Z
2,022
5
23
6
43
0
113
133
4
2
true
true
false
false
false
false
zero
72,165,750
How to refactor getIntent() code to use parseUri() instead?
<p>According to <a href="https://developer.android.com/reference/android/content/Intent#getIntent(java.lang.String)" rel="nofollow noreferrer"><code>getIntent</code></a> documentation, the method was deprecated in Android API 15. Instead, we are recommended to &quot;Use <a href="https://developer.android.com/reference/...
According to getIntent documentation, the method was deprecated in Android API 15. Instead, we are recommended to &quot;Use parseUri(String, int) instead.&quot; and to &quot;Call parseUri(String, int) with 0 flags.&quot; This advice is kind of confusing since getIntent could be called without arguments. For example, he...
java|android
1
2022-05-08T23:30:12.620Z
2,022
5
23
6
44
0
520
59
2
2
true
true
false
false
false
false
low