id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
73,663,087
MediaRecorder API and Preview Image of Recorded video
<p>I perfectly record a refreshing bitmap as video file by MediaRecorder API with below code pieces. However when i browse my video file there is no preview image for the file. Is there any method to select a frame or embed an image in order to easily identify the file by preview image?</p> <p>Initialization of MediaRe...
I perfectly record a refreshing bitmap as video file by MediaRecorder API with below code pieces. However when i browse my video file there is no preview image for the file. Is there any method to select a frame or embed an image in order to easily identify the file by preview image? Initialization of MediaRecorder obj...
android|mediarecorder
0
2022-09-09T13:41:39.550Z
2,022
9
13
4
12
1
384
53
2
2
true
false
false
false
false
false
zero
73,663,255
AndroidManifest select style defined in manifest resources
<p>Im using Delphi to develop wear os application. I want set android:windowSwipeToDismiss to false but in Delphi I can modify only Android manifest, cant change style (or i dont know how) So i want do somthing like that</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;!-- BEGIN_INCL...
Im using Delphi to develop wear os application. I want set android:windowSwipeToDismiss to false but in Delphi I can modify only Android manifest, cant change style (or i dont know how) So i want do somthing like that [CODE] but have problem here : [CODE] i getting error: C:\path\AndroidManifest.xml:51: error: Error: N...
android|delphi|android-manifest|wear-os|android-styles
1
2022-09-09T13:55:55.737Z
2,022
9
13
4
57
1
630
58
5
2
true
false
false
false
false
false
low
73,663,336
React-Native - native-base - use-subscription could not be found within the project
<p>I'm using native-base third party in the react-native project. I'm getting the below error :</p> <pre><code>error: Error: Unable to resolve module use-subscription from node_modules/native-base/src/core/color-mode/hooks.tsx: use-subscription could not be found within the project or in these directories: node_modul...
I'm using native-base third party in the react-native project. I'm getting the below error : [CODE] below is the version used in the project: [CODE] I am getting the same error in android and ios both. Any help! Thank you in advance!
android|ios|react-native|native-base
0
2022-09-09T14:01:59.380Z
2,022
9
14
4
45
1
233
83
4
2
true
false
false
false
false
false
zero
73,663,338
ViewModel unexpected onCleared() call
<p>I have a viewpager with 10+ pages in it, each page corresponds to its <code>PageFragment</code> and <code>PageViewModel</code> instances. When I start to swipe fragments one after another the <code>onCleared()</code> method is called for viewmodel that was left behind 2-3 steps ago, for example when I'm on page 7 th...
I have a viewpager with 10+ pages in it, each page corresponds to its PageFragment and PageViewModel instances. When I start to swipe fragments one after another the onCleared() method is called for viewmodel that was left behind 2-3 steps ago, for example when I'm on page 7 the 4-th viewmodel is destroyed. The problem...
android|android-viewpager|viewmodel|android-lifecycle|android-viewmodel
0
2022-09-09T14:02:18.053Z
2,022
9
14
4
22
0
1,016
37
5
0
false
true
false
false
false
false
zero
73,663,351
How to launch ActivityResultLauncher for picking contact?
<p>I need to get contact info from activity which is out of my app. I read <a href="https://developer.android.com/training/basics/intents/result#kotlin" rel="nofollow noreferrer">doc</a> and try getting info as doc says. I can't understand what argument I must pass to launch method of ActivityResultLauncher.</p> <pre c...
I need to get contact info from activity which is out of my app. I read doc and try getting info as doc says. I can't understand what argument I must pass to launch method of ActivityResultLauncher. [CODE]
android|fragment|registerforactivityresult
0
2022-09-09T14:03:18.690Z
2,022
9
14
4
18
1
205
57
3
1
true
false
false
false
false
false
zero
73,663,390
send "Incoming Call" just when app is in foreground (iOS to android)
<p>Android to android:</p> <ul> <li>when app is in foreground, notification service send &quot;Incoming Call&quot; to starting call (work good)</li> <li>when a call started and app came to foreground, notification service send &quot;Incoming Call&quot; to starting call (work good)</li> </ul> <p>iOS to android:</p> <ul>...
Android to android: when app is in foreground, notification service send &quot;Incoming Call&quot; to starting call (work good) when a call started and app came to foreground, notification service send &quot;Incoming Call&quot; to starting call (work good) iOS to android: when app is in foreground, notification service...
android|firebase|push-notification|firebase-cloud-messaging
0
2022-09-09T14:06:19.927Z
2,022
9
14
4
15
0
572
68
4
2
true
true
false
false
false
false
zero
73,663,452
How pick file with absolute path on Android OS
<p>I need pick file namely with ABSOLUTE PATH. I wanna read selected file with periodically 30 seconds. How can I make this?</p> <p>INTENT OPEN_DOCUMENT return content:/com.android.externalstorage.documents/document/primary%3Afile.db but I need /storage/emulated/0/file.db</p> <p>INTENT OPEN_DOCUMENT return content:/com...
I need pick file namely with ABSOLUTE PATH. I wanna read selected file with periodically 30 seconds. How can I make this? INTENT OPEN_DOCUMENT return content:/com.android.externalstorage.documents/document/primary%3Afile.db but I need /storage/emulated/0/file.db INTENT OPEN_DOCUMENT return content:/com.android.external...
android|file|uri|android-contentprovider
-1
2022-09-09T14:11:17.773Z
2,022
9
14
4
12
0
403
46
4
0
false
true
false
false
false
true
negative
73,663,475
> Could not find method apply() for arguments [com.google.gms.google-services] on project ':app' of type org.gradle.api.Project
<p><img src="https://i.stack.imgur.com/b5vS4.png" alt="this was the error" /><img src="https://i.stack.imgur.com/p34sW.png" alt="This is the code Build file 'C:\Users\ANAM\AndroidStudioProjects\employeedetails\android\app\build.gradle' line: 25" /></p> <p>I tried upgrading the gradle plugin, also tried deleting the gra...
I tried upgrading the gradle plugin, also tried deleting the gradle folder. But the error is in line:25 in app level build.gradle file. [CODE] according to error, showing there. Hoping for early reply as possible
flutter|firebase|google-cloud-firestore|android-gradle-plugin|google-play-services
0
2022-09-09T14:12:44.910Z
2,022
9
14
4
49
1
212
127
5
1
true
false
false
false
false
false
zero
73,663,492
Recycler view check box unticks itself when adding a new item
<p>I've created a recycler view adapater that takes items from a list based on their position. At the current moment, when I try to add a new item it currently unticks some items, but not others (those that are beyond position 7). My original code was:</p> <pre><code>public void onBindViewHolder(ViewHolder holder, int ...
I've created a recycler view adapater that takes items from a list based on their position. At the current moment, when I try to add a new item it currently unticks some items, but not others (those that are beyond position 7). My original code was: [CODE] I thought it was then I was not updating the shoppingList or th...
java|android|android-recyclerview
0
2022-09-09T14:13:46.350Z
2,022
9
14
4
10
1
570
61
3
2
true
false
false
false
false
false
zero
73,663,509
Recycleview Grid layout Measure time too long
<p>in android recycelview while loading a large number of items in recycleview getting &quot;[ANR Warning]onMeasure time too long&quot; how to solve that please help me</p> <p>i am using the recicle view as a child view of a nestedscrollview which is a child view of relarive layout in a fragment.</p> <p>i want to use...
in android recycelview while loading a large number of items in recycleview getting &quot;[ANR Warning]onMeasure time too long&quot; how to solve that please help me i am using the recicle view as a child view of a nestedscrollview which is a child view of relarive layout in a fragment. i want to use &quot; [CODE] but ...
java|android|android-studio|recycleview
0
2022-09-09T14:14:57.153Z
2,022
9
14
4
21
0
368
45
4
2
true
true
false
false
false
false
zero
73,663,534
Maui Android RuntimeIdentifiers and SelfContained
<p>Im very lost with this, try different solutions i search here and nothing works. I published the first apk version a week ago, but when i run visual studio today, it doesn't build.</p> <p>EveryTime i build the app output gives -&gt; &quot;<strong>NETSDK1031 It is not supported to build or publish a self-contained ap...
Im very lost with this, try different solutions i search here and nothing works. I published the first apk version a week ago, but when i run visual studio today, it doesn't build. EveryTime i build the app output gives -> &quot; NETSDK1031 It is not supported to build or publish a self-contained application without sp...
xamarin.android|maui
0
2022-09-09T14:16:53.420Z
2,022
9
14
4
37
1
529
49
2
1
true
false
false
false
false
false
zero
73,663,575
Is there a resource on the web that would help me build a clean android studio app is correct implementation versions?
<p>I've been working with Android Studio only for a short time and it's giving me a lot of grief. I have a project that (so far) requires</p> <pre><code> implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot; implementation &quot;org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0&quot; ...
I've been working with Android Studio only for a short time and it's giving me a lot of grief. I have a project that (so far) requires [CODE] where [CODE] I've spent several hours trying to find a good set that does result in build warnings because of conflicting JDK version reported as well as messages saying I have t...
android|compilation
0
2022-09-09T14:19:39.463Z
2,022
9
14
4
18
0
643
118
2
2
true
true
false
false
false
false
zero
73,663,587
ViewBinding is not able to use views from the layout file
<p>I'm building a Resume Builder App. For that I have to use view binding. In my app everting works well I'm able to create a view binding object of the variable with a particular layout. But when I call the views from the binding variable it's working in the .kt file but not while running the app. Binding object shows...
I'm building a Resume Builder App. For that I have to use view binding. In my app everting works well I'm able to create a view binding object of the variable with a particular layout. But when I call the views from the binding variable it's working in the .kt file but not while running the app. Binding object shows th...
android|xml|kotlin|android-viewbinding
0
2022-09-09T14:20:24.270Z
2,022
9
14
4
29
2
653
57
4
1
true
false
false
false
false
false
zero
73,663,594
How add buttons horizontally in flutter
<p>I'm a beginner and trying to add 3 buttons horizontally I have added but they don't contain &quot;match parent&quot; like in android.</p> <pre><code>my code Row( mainAxisAlignment:MainAxisAlignment.spaceBetween, children: [ ElevatedButton(onP...
I'm a beginner and trying to add 3 buttons horizontally I have added but they don't contain &quot;match parent&quot; like in android. [CODE] you can view the image image
flutter|flutter-layout|flutter-android
0
2022-09-09T14:21:20.133Z
2,022
9
14
4
58
4
169
39
3
1
true
false
false
false
false
false
zero
73,663,629
FusedLocation doesnt allow access to last location even though I have location permission
<p>So I'm trying to get the last location from fusedLocationProvider. I ask for the permission in the manifest and in the activity but i still get the error saying that I'm missing required permissions</p> <p>Here is the most important parts of the code</p> <p>`</p> <pre><code>package com.example.graterenowa import an...
So I'm trying to get the last location from fusedLocationProvider. I ask for the permission in the manifest and in the activity but i still get the error saying that I'm missing required permissions Here is the most important parts of the code ` [CODE] ` As I said I put the required permissions in the manifest and ask ...
android|kotlin|location|fusedlocationproviderapi
0
2022-09-09T14:24:03.490Z
2,022
9
14
4
13
0
422
89
4
1
true
true
false
false
false
false
zero
73,663,639
Android. Navigation component, how to open fragment on top of previous?
<p>I'm using navigation component and here my code to navigate from one fragment to another:</p> <pre><code> NavHostFragment.findNavController(fragment).navigate(navId) </code></pre> <p>The problem that navigate() just replace fragment, but I need to add my fragment to top of previous.</p> <p>I know there is dialog des...
I'm using navigation component and here my code to navigate from one fragment to another: [CODE] The problem that navigate() just replace fragment, but I need to add my fragment to top of previous. I know there is dialog destinations but I don't need fragment to inherit from DialogFragment, it does not suit me. Is it p...
android|android-fragments|android-jetpack-navigation|navigationcontroller|fragmenttransaction
0
2022-09-09T14:24:46.130Z
2,022
9
14
4
18
0
427
71
5
1
true
true
false
false
false
false
zero
73,663,679
RecyclerView - change item value only if item satisfies a condition?
<p>I am having an issue with RecyclerView - in onBindViewHolder(), when I make a condition for each item in the list (going through the whole list, position by position), and want to change the item text value, it doesn't work. I assume that's because RecyclerView recycles items. `</p> <pre><code>override fun onBindVie...
I am having an issue with RecyclerView - in onBindViewHolder(), when I make a condition for each item in the list (going through the whole list, position by position), and want to change the item text value, it doesn't work. I assume that's because RecyclerView recycles items. ` [CODE] [CODE]
android|kotlin|android-recyclerview
0
2022-09-09T14:28:04.160Z
2,022
9
14
4
38
1
293
68
3
2
true
false
false
false
false
false
zero
73,663,727
Your app includes non compliant SDK version com.my.tracker:mytracker-sdk
<p>I recently updated my Flutter app with Appodeal ads, later I got a message.</p> <p>Google Play Console:</p> <p>Your app **** version code *** includes SDK com.my.tracker:mytracker-sdk or an SDK that one of your libraries depends on, which collects personal or sensitive data that includes but may not be limited to Ad...
I recently updated my Flutter app with Appodeal ads, later I got a message. Google Play Console: Your app **** version code *** includes SDK com.my.tracker:mytracker-sdk or an SDK that one of your libraries depends on, which collects personal or sensitive data that includes but may not be limited to Advertising ID, And...
android|flutter|ads|google-play-console|appodeal
3
2022-09-09T14:30:34.400Z
2,022
9
14
4
426
3
825
72
5
1
true
false
false
false
false
false
low
73,663,820
Not able to build flutter application in android
<p>When I run the application using the flutter run command in an android phone attached to the system, it shows me the below error. Not able to figure out what's the problem. Saw some github discussions on this, tried few solutions given by the developers on that discussion, but still showing me the same error.</p> <p...
When I run the application using the flutter run command in an android phone attached to the system, it shows me the below error. Not able to figure out what's the problem. Saw some github discussions on this, tried few solutions given by the developers on that discussion, but still showing me the same error. The error...
android|flutter|flutter-dependencies|flutter-build|tflite
0
2022-09-09T14:37:40.840Z
2,022
9
14
4
17
0
534
48
5
2
true
true
false
false
false
false
zero
73,663,860
Radio button not showing correctly in jetpack compose
<p>I created a component selectableListItem() that has a title, subtitle, and radio button icon but it shows differently on different android devices. On the emulator, it shows fine...on a real device, no radio button is showing on second item and the first item radio button is small. On another real device... the radi...
I created a component selectableListItem() that has a title, subtitle, and radio button icon but it shows differently on different android devices. On the emulator, it shows fine...on a real device, no radio button is showing on second item and the first item radio button is small. On another real device... the radio b...
android|kotlin|radio-button|android-jetpack-compose
1
2022-09-09T14:40:56.387Z
2,022
9
14
4
60
0
415
53
4
1
true
true
false
false
false
false
low
73,663,956
AndroidManifest.xml.orig: Operation not permitted in Apktool
<p>I want to edit an APK file, for this purpose I use the following command in Linux (Kali):</p> <pre><code>apktool d ed28.apk </code></pre> <p>and result is:</p> <pre><code> I: Using Apktool 2.6.1-dirty on ed28.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource tab...
I want to edit an APK file, for this purpose I use the following command in Linux (Kali): [CODE] and result is: [CODE] After editing one of the smalli files, i want to recompile it again, so i used this command: [CODE] but i get this error: I: Using Apktool 2.6.1-dirty I: Smaling smali folder into classes.dex... ed28/A...
android|linux|apktool
1
2022-09-09T14:49:36.380Z
2,022
9
14
4
28
0
446
60
3
3
true
true
false
false
false
false
low
73,663,967
what is the difference between context.theme.obtainStyledAttributes and context.withStyledAttributes
<p>i am still new in the android and i have searched the documentations and it seems that the 2 functions are just the same so are there any difference between them ?</p> <p>there is the link of the documentations</p> <p><a href="https://developer.android.com/reference/android/content/res/Resources.Theme#obtainStyledAt...
i am still new in the android and i have searched the documentations and it seems that the 2 functions are just the same so are there any difference between them ? there is the link of the documentations obtainStyledAttributes documentations withStyledAttributtes documentations
android|kotlin
-1
2022-09-09T14:50:27.237Z
2,022
9
14
4
22
0
278
100
2
0
false
true
false
false
false
true
negative
73,664,028
Gradle not finding main method after changing project structure
<p>Hey you Devs out there,</p> <p>I am currently rebuilding an old app using Flutter, a good proactive to learn the framework.</p> <p>When I started, I've only had a single file containing my source code: main.dart</p> <p>Now I've re-steuctured my project, and the void main() is now located in app.dart</p> <p>When buil...
Hey you Devs out there, I am currently rebuilding an old app using Flutter, a good proactive to learn the framework. When I started, I've only had a single file containing my source code: main.dart Now I've re-steuctured my project, and the void main() is now located in app.dart When building a signed APK using gradle,...
android|flutter|gradle
0
2022-09-09T14:54:37.797Z
2,022
9
14
4
27
1
846
63
3
0
false
false
false
false
false
false
zero
73,664,038
How to get color by id from another android xml file
<p>I'm new in android development and I facing with the following problem: I have .xml vector images in drawable and I want to create several color presets for them.</p> <p>As I understand it, to achieve this purpose i need to create sets of colors for presets in colors.xml and then get a certain set i need.</p> <p>The...
I'm new in android development and I facing with the following problem: I have .xml vector images in drawable and I want to create several color presets for them. As I understand it, to achieve this purpose i need to create sets of colors for presets in colors.xml and then get a certain set i need. The question is how ...
java|android|android-layout
2
2022-09-09T14:55:37.113Z
2,022
9
14
4
27
1
602
52
3
0
false
false
false
false
false
false
low
73,664,115
Android Studio - How to upgrade jetpack compose?
<p>I am currently using Android studio (2021.2.1 Patch 2). On choosing empty compose activity, the compose version being used is <code>1.1.0-beta01</code> .How can I upgrade it to <code>1.2.0-beta01</code> as the earlier one gives error while using LazyVerticalGrid? I am beginner to android. Any help would be greatly a...
I am currently using Android studio (2021.2.1 Patch 2). On choosing empty compose activity, the compose version being used is 1.1.0-beta01 .How can I upgrade it to 1.2.0-beta01 as the earlier one gives error while using LazyVerticalGrid? I am beginner to android. Any help would be greatly appreciated. Here is the app/ ...
android|android-studio|build.gradle|android-jetpack-compose
1
2022-09-09T15:01:40.010Z
2,022
9
15
4
95
1
586
48
4
2
true
false
false
false
false
false
low
73,664,134
Max lines with height set as wrap_content
<p>I have two TextViews in a vertical LinearLayout, one serves as a display for a book's title and the latter as a display for the book's author(s). I need the first to have wrap_content as its height, so it takes a good part of the linear layout. However, I want it to cap out at three lines max, so that there is still...
I have two TextViews in a vertical LinearLayout, one serves as a display for a book's title and the latter as a display for the book's author(s). I need the first to have wrap_content as its height, so it takes a good part of the linear layout. However, I want it to cap out at three lines max, so that there is still so...
android|android-layout|textview|android-linearlayout
1
2022-09-09T15:02:48.390Z
2,022
9
15
4
24
2
1,052
41
4
0
false
false
false
false
false
false
low
73,664,187
Save the RecyclerView scroll position using StateRestorationPolicy
<p>I tried to save and restore the RecyclerView scroll position using StateRestorationPolicy.PREVENT_WHEN_EMPTYbut it doesn't work. Am I doing anything wrong?</p> <pre><code> private fun initRecyclerView() { val recyclerView = binding.activityMainRecyclerView val snap = LinearSnapHelper() re...
I tried to save and restore the RecyclerView scroll position using StateRestorationPolicy.PREVENT_WHEN_EMPTYbut it doesn't work. Am I doing anything wrong? [CODE]
android|kotlin|android-recyclerview
0
2022-09-09T15:07:36.020Z
2,022
9
15
4
24
0
162
66
3
1
true
true
false
false
false
false
zero
73,664,225
Getting Selected DropDownButton Value from Child Widget
<p>I'm currently building a screen in Flutter where I have a main parent widget that uses a child widget. The child widget contains 2 Textfields and a DropDownButton. I have a weird situation where my '<strong>selectedUserValue</strong>' value for the DropDownButton isn't being updated correctly. Whenever I do a print(...
I'm currently building a screen in Flutter where I have a main parent widget that uses a child widget. The child widget contains 2 Textfields and a DropDownButton. I have a weird situation where my ' selectedUserValue ' value for the DropDownButton isn't being updated correctly. Whenever I do a print(&quot;$selectedUse...
android|flutter|dart
0
2022-09-09T15:11:04.333Z
2,022
9
15
4
29
1
526
55
3
2
true
false
false
false
false
false
zero
73,664,227
Kotlin/Java: Add multiple items to a Builder class that only allows one .add() at a time
<p>Problem: I'm using an AWS DynamoDb Enhanced Java client V2 in Kotlin (the details of the client might not be important), where I want to make a <code>BatchWriteItemEnhancedRequest</code> containing a bunch of requests. The standard usage according to the <a href="https://docs.aws.amazon.com/sdk-for-java/latest/devel...
Problem: I'm using an AWS DynamoDb Enhanced Java client V2 in Kotlin (the details of the client might not be important), where I want to make a BatchWriteItemEnhancedRequest containing a bunch of requests. The standard usage according to the docs goes: [CODE] Obviously this can't handle an anonymous list of putRequest ...
java|android|kotlin|amazon-dynamodb
1
2022-09-09T15:11:10.910Z
2,022
9
15
4
56
2
636
88
4
2
true
false
false
false
false
false
low
73,664,239
Is there an alternative to Android app actions that support more languages
<p>I'm looking to add support for google assistant to my mobile map. I tried out app actions and it works but as I can see it only supports a limited number of languages (for the intents that I need only english). From what I saw it's been the same languages for the last 2 years at least.</p> <p>I also checked out the ...
I'm looking to add support for google assistant to my mobile map. I tried out app actions and it works but as I can see it only supports a limited number of languages (for the intents that I need only english). From what I saw it's been the same languages for the last 2 years at least. I also checked out the action con...
android|google-assistant|app-actions|google-voice-actions
0
2022-09-09T15:12:03.040Z
2,022
9
15
4
24
0
484
74
4
0
false
true
false
false
false
false
zero
73,664,290
blocking some email extensions firebase
<p>I am using firebase authentication in my app. My mail verification feature is active. Some users use one-time mail verification extensions and open an account. They are doing this for abuse of the app. How can I prevent &quot;nezid.com , xcoxc.com , jeoce.com , cdfaq.com &quot; from registering with these mail exten...
I am using firebase authentication in my app. My mail verification feature is active. Some users use one-time mail verification extensions and open an account. They are doing this for abuse of the app. How can I prevent &quot;nezid.com , xcoxc.com , jeoce.com , cdfaq.com &quot; from registering with these mail extensio...
android|firebase|authentication|firebase-realtime-database|firebase-authentication
0
2022-09-09T15:17:32.603Z
2,022
9
15
4
39
1
355
39
5
2
true
false
false
false
false
false
zero
73,664,435
How to move the cursor to any part of the text using TextFieldValue (w/ FocusRequester) upon pressing/clicking the text value
<p>I tried to look around but I can't find a way to force a <code>focus</code>, set the <code>cursor</code> to the end of text and still be able to move the <code>cursor</code> to any part of the text upon pressing/clicking.</p> <p>With <code>FocusRequester</code> the cursor is set to the start of text, but with <code>...
I tried to look around but I can't find a way to force a focus , set the cursor to the end of text and still be able to move the cursor to any part of the text upon pressing/clicking. With FocusRequester the cursor is set to the start of text, but with TextFieldValue(<text>, <range>) I'm able to place the cursor at the...
focus|cursor|android-jetpack-compose|textfield|text-cursor
0
2022-09-09T15:29:31.003Z
2,022
9
15
4
22
1
1,123
125
5
1
true
false
false
false
false
false
zero
73,664,530
Remove BasicTextField Indicator Bulb in Jetpack Compose?
<p>Im not sure what this is called so I call it a indicator bulb, its the image thats hanging off of the indicator. It appears above my bottom modal and I think that looks funky, how do we remove this?</p> <p><a href="https://i.stack.imgur.com/clp4B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/clp...
Im not sure what this is called so I call it a indicator bulb, its the image thats hanging off of the indicator. It appears above my bottom modal and I think that looks funky, how do we remove this?
android|android-jetpack-compose
0
2022-09-09T15:38:48.323Z
2,022
9
15
4
48
1
198
56
2
0
false
false
false
false
false
false
zero
73,664,541
Xml Suggestions not getting after change compileSdk & targetSdk to 33
<p>I am getting some issue while updating compilesdk and targetsdk to 33.</p> <p>And if I set compilesdk or targetsdk to 32, 31 or less, I get another library support issue during compilation, as described below...</p> <pre><code> 1. Dependency 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.0-alpha02' requires librari...
I am getting some issue while updating compilesdk and targetsdk to 33. And if I set compilesdk or targetsdk to 32, 31 or less, I get another library support issue during compilation, as described below... [CODE] and getting this same issue with all newly added library to the gradle I'm not sure if this is a sdk 33 or l...
android|xml|gradle
2
2022-09-09T15:40:02.883Z
2,022
9
15
4
286
1
494
69
3
1
true
false
false
false
false
false
low
73,664,648
Why edittext not inflate text with settext()?
<p>I am trying to set predefined text in <code>EditText</code> field but it is empty. Please take a look at the code</p> <pre><code>var yes: Button? = null var no: Button? = null private lateinit var title : EditText private lateinit var description : EditText override fun onCreate(savedInstanceState: Bundle?) { s...
I am trying to set predefined text in EditText field but it is empty. Please take a look at the code [CODE]
android
0
2022-09-09T15:49:54.073Z
2,022
9
15
4
24
0
107
45
1
1
true
true
false
false
false
false
zero
73,664,765
Showing a text field in the app bar in Jetpack Compose with Material3
<p>Many Android apps feature a search box in the app bar / toolbar, that looks somewhat like this screenshot:</p> <img src="https://i.stack.imgur.com/pqRlr.png"> <p><em>How do I recreate something similar in Jetpack Compose + Material3?</em> I would like the text field to have these features:</p> <ul> <li>support showi...
Many Android apps feature a search box in the app bar / toolbar, that looks somewhat like this screenshot: How do I recreate something similar in Jetpack Compose + Material3? I would like the text field to have these features: support showing a hint when the content string is empty (e.g. &quot;Type your search...&quot;...
android|android-jetpack-compose|android-jetpack-compose-material3|material3
1
2022-09-09T16:01:27.417Z
2,022
9
16
4
52
1
745
69
4
0
false
false
false
false
false
false
low
73,664,769
Can PWAs listen to device notifications?
<p>I have a doubt regarding PWAs. So, using the native android SDK we can through f.e. NotificationListenerService listen to specific/all device notifications like a smartwatch application does when it has to display the same notifications on the watch as the smartphone does. Is this possible to be done on a PWA?</p> <...
I have a doubt regarding PWAs. So, using the native android SDK we can through f.e. NotificationListenerService listen to specific/all device notifications like a smartwatch application does when it has to display the same notifications on the watch as the smartphone does. Is this possible to be done on a PWA? For exam...
android|push-notification|notifications|progressive-web-apps
0
2022-09-09T16:01:48.063Z
2,022
9
16
4
22
0
515
40
4
0
false
true
false
false
false
false
zero
73,665,079
Android adapt layout height to its content until parent's height be reached
<p>I have a layout which looks like that :</p> <pre><code> ------------- | BUTTON 1 | ------------- ------------- | SCROLLVIEW | ------------- ------------- | BUTTON 2 | ------------- </code></pre> <p>The content of the scrollview can grow in height dynamically. I woukd like that if the scrollview's content...
I have a layout which looks like that : [CODE] The content of the scrollview can grow in height dynamically. I woukd like that if the scrollview's content grows the scrollview grows too, pushing the button 2 down. But I don't want that the layout height can exceed his parent's height. If it happens the button 2 has to ...
android|layout
-1
2022-09-09T16:30:42.390Z
2,022
9
16
4
16
1
463
75
2
1
true
false
false
false
false
true
negative
73,665,120
How to get the file name using a returned URI
<p>I'm letting users pick a file from their device using:</p> <pre class="lang-kotlin prettyprint-override"><code>registerForActivityResult(ActivityResultContracts.GetContent()) { uri: Uri? -&gt; ... } </code></pre> <p>I want to find out what is the name of the file they've picked. How can I retrieve the file name?</p>
I'm letting users pick a file from their device using: [CODE] I want to find out what is the name of the file they've picked. How can I retrieve the file name?
android|kotlin
-1
2022-09-09T16:35:27.580Z
2,022
9
16
4
32
1
159
45
2
1
true
false
false
false
false
true
negative
73,665,160
Making the background of Flutter app project to the device's background
<p>I am creating a launcher app with Flutter. But i want the launcher's background is match with the device's background. Like in another launchers in Play Store. How can I do it? Please answer. :)</p> <p>I tried <code>Color.transparent</code> but it is just making the black background. Then I Googled the my question b...
I am creating a launcher app with Flutter. But i want the launcher's background is match with the device's background. Like in another launchers in Play Store. How can I do it? Please answer. :) I tried Color.transparent but it is just making the black background. Then I Googled the my question but i didn't find the an...
android|flutter|launcher
-1
2022-09-09T16:38:47.667Z
2,022
9
16
4
34
1
357
71
3
0
false
false
false
false
false
true
negative
73,665,207
Dao files queries changed style format Android studio
<p>As you can see in the image below, the queries inside the &quot;&quot;&quot; quotes are written like a string and i have lost the autocomplete functionality of the query while i am typing it.</p> <p><a href="https://i.stack.imgur.com/bpJSI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bpJSI.png"...
As you can see in the image below, the queries inside the &quot;&quot;&quot; quotes are written like a string and i have lost the autocomplete functionality of the query while i am typing it. It used to be like a query written text with format and style as a Sql query but now its like a regular string. What has changed...
android|android-studio|android-room
0
2022-09-09T16:43:16.907Z
2,022
9
16
4
19
0
344
53
3
0
false
true
false
false
false
false
zero
73,665,237
video on infinite scroll list
<p>I am developing in android (kotlin).</p> <p>I can't achive the performance or smoothness of apps like 9gag/instagram for making an infinity scroll list of items containing videos. I am using a ListView for the infinite scrolling, and VideoView to play videos. any help, article, or best practices for this?</p> <p>tha...
I am developing in android (kotlin). I can't achive the performance or smoothness of apps like 9gag/instagram for making an infinity scroll list of items containing videos. I am using a ListView for the infinite scrolling, and VideoView to play videos. any help, article, or best practices for this? thanks
android|kotlin|listview|android-videoview
1
2022-09-09T16:46:34.277Z
2,022
9
16
4
22
1
306
29
4
0
false
false
false
false
false
false
low
73,665,357
React PWA application blank page when open it with android/ios
<p>After creating a PWA with react every thing works perfectly except when i want to open the app with a mobile device android/ios....it displays a white screen with no informations. ///// The app is deployed with IIS manager</p> <p>my service **service-worker.ts ** `</p> <pre><code>/// &lt;reference lib=&quot;webwork...
After creating a PWA with react every thing works perfectly except when i want to open the app with a mobile device android/ios....it displays a white screen with no informations. ///// The app is deployed with IIS manager my service **service-worker.ts ** ` [CODE] ` PS : My start_url : &quot;/&quot; in the manifest.js...
android|ios|reactjs|progressive-web-apps
0
2022-09-09T16:59:02.030Z
2,022
9
16
4
34
0
379
62
4
1
true
true
false
false
false
false
zero
73,665,428
How to identify which apps are showing my ad?
<p>The company I work for is advertising their web site through an ad network, the ads are displayed in different apps through banners. My boss asked me to find a way to find out which apps are showing the company's advertising, be it Facebook, Snaptube, etc. Is there any way to know which apps are showing the ads?</p>
The company I work for is advertising their web site through an ad network, the ads are displayed in different apps through banners. My boss asked me to find a way to find out which apps are showing the company's advertising, be it Facebook, Snaptube, etc. Is there any way to know which apps are showing the ads?
android|ads
-1
2022-09-09T17:07:41.933Z
2,022
9
17
4
20
0
313
45
2
0
false
true
false
false
false
true
negative
73,665,438
Android SDK 33: How to cancel PendingIntents on the AlarmManager that were created using FLAG_UPDATE_CURRENT
<p>In our app users can setup reminders for different tasks. In the current version (built with SDK 30), the notifications are basically created the following way:</p> <pre><code>... PendingIntent notification = PendingIntent.getBroadcast(context, notificationID, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); ...
In our app users can setup reminders for different tasks. In the current version (built with SDK 30), the notifications are basically created the following way: [CODE] Now Google forces us to upgrade to SDK 33, which is what we did. Unfortunately, after upgrading we were facing the following error when calling the meth...
android|alarmmanager|android-pendingintent|notificationmanager|android-13
1
2022-09-09T17:08:47.940Z
2,022
9
17
4
51
2
1,996
108
5
2
true
false
false
false
false
false
low
73,665,507
Creating a simple activity in onCreate()
<p>I am a newbie in Android, I don't know if what I want to do is possible or not. I want to create a layout dynamically inside the onCreate() method.</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { setContentView(createNewLayout()); super.onCreate(savedInstanceState); } p...
I am a newbie in Android, I don't know if what I want to do is possible or not. I want to create a layout dynamically inside the onCreate() method. [CODE] Note That the xmlAttribute is a concept, I want to be able to specify xml attributes of the layout. Is this possible? and if it is how can it be done? Thank you in a...
android
-1
2022-09-09T17:16:45.867Z
2,022
9
17
4
30
0
327
40
1
1
true
true
false
false
false
true
negative
73,665,573
How to start pip mode when switching in recent apps
<p>I used this example code to show pip window when the app will go to background,but i find this no used be on recent app switch. and the enterPictureInPictureMode() will return false. everyone can help me to slove this problem ,thx</p> <pre><code>@Override public void onUserLeaveHint () {     if (iWantToBeInPipModeNo...
I used this example code to show pip window when the app will go to background,but i find this no used be on recent app switch. and the enterPictureInPictureMode() will return false. everyone can help me to slove this problem ,thx [CODE] I want to app on recent app switch that can go to pip mode
android|picture-in-picture|android-picture-in-picture
0
2022-09-09T17:21:53.690Z
2,022
9
17
4
13
0
296
51
3
1
true
true
false
false
false
false
zero
73,665,795
How to push/pull multiple files to/from Android with ADB using Powershell on Windows?
<p>I need to specifically use Windows 10 Powershell, not gitbash or cygwin or CMD, as other answers on SO have provided. I need to be able to use wildcards. I need to be able to push from Windows to Android to a specific folder using wildcards (not entire folder at a time as other answers on SO have provided).</p> <pre...
I need to specifically use Windows 10 Powershell, not gitbash or cygwin or CMD, as other answers on SO have provided. I need to be able to use wildcards. I need to be able to push from Windows to Android to a specific folder using wildcards (not entire folder at a time as other answers on SO have provided). [CODE] Apol...
android|powershell|push|wildcard|pull
0
2022-09-09T17:44:13.250Z
2,022
9
17
4
50
1
393
85
5
1
true
false
false
false
false
false
zero
73,665,817
Is there a way to make filled + rounded icons in jetpack compose?
<p>I just wanted to ask, if there is any way of making an icon in Android Studio that is rounded and filled or rounded and outlined at the same time. Because, I like the rounded icons more but if I add a rounded icon, I can't make it outlined. I also don't want to import an svg. Thank you for your answer!</p>
I just wanted to ask, if there is any way of making an icon in Android Studio that is rounded and filled or rounded and outlined at the same time. Because, I like the rounded icons more but if I add a rounded icon, I can't make it outlined. I also don't want to import an svg. Thank you for your answer!
android-studio|android-jetpack-compose|material-icons
0
2022-09-09T17:45:17.197Z
2,022
9
17
4
29
0
303
65
3
0
false
true
false
false
false
false
zero
73,665,861
unable to pass number into Fragment
<p><code>fragment</code> run:</p> <pre><code> val fragment = DescriptionFragment() val bundle = Bundle() bundle.putInt(&quot;position&quot;, position) fragment.setArguments(bundle) val activity=context.context as AppCompatActivity activity.supportF...
fragment run: [CODE] teaching a number inside a fragment : [CODE] but it is not possible to pass a number, position is always 0 in details: [CODE]
android|kotlin|android-fragments|fragment
0
2022-09-09T17:51:07.013Z
2,022
9
17
4
37
0
146
35
4
3
true
true
false
false
false
false
zero
73,665,881
Android Studio actionProviderClass issue
<pre><code> &lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:ankidroid=&quot;http://schemas.android.com/apk/res-auto&quot; &gt; &lt;item android:id=&quot;@+id/action_undo&quot; android:enabled=&quot;true&quot; android:icon=&quot;@drawable/ic_undo_whit...
[CODE] This is the xml file and below is the action provider class used in action_undo item/button. So basically the undo_action button is not working in the fragment when set on item click [CODE] this is the fragment in which the option click listener is set [CODE] All the other buttons are working fine even the undo ...
android|kotlin
-1
2022-09-09T17:52:39.870Z
2,022
9
17
4
33
0
452
40
2
3
true
true
false
false
false
true
negative
73,665,983
Search in firestore is not working android
<p>Hey I am working on an application where i have a list of products in my recyclerview whom i am retriving from firestore now i have a searchview on the top of home where all the items are retrieving. I have implemented the firestore query but it not working.</p> <p><strong>CODE OF SEARCHBAR</strong></p> <pre><code> ...
Hey I am working on an application where i have a list of products in my recyclerview whom i am retriving from firestore now i have a searchview on the top of home where all the items are retrieving. I have implemented the firestore query but it not working. CODE OF SEARCHBAR [CODE] CODE OF SEARCH METHOD [CODE]
java|android|firebase|google-cloud-firestore
0
2022-09-09T18:04:08.937Z
2,022
9
18
4
45
0
312
42
4
2
true
true
false
false
false
false
zero
73,666,142
Google Drive is Unable to Upload files with Error using the ACTION_SEND intent
<p>as the title says, Im getting errors when trying to share to Gdrive some pictures. However, in my device, the application is working without problems, but when I tested it to 2 other devices, they encountered an error saying Upload 'Error, Cannot plan the upload of the file'. Need help as I have no idea what is caus...
as the title says, Im getting errors when trying to share to Gdrive some pictures. However, in my device, the application is working without problems, but when I tested it to 2 other devices, they encountered an error saying Upload 'Error, Cannot plan the upload of the file'. Need help as I have no idea what is causing...
android|android-studio|google-drive-api|action-send
0
2022-09-09T18:21:12.627Z
2,022
9
18
4
20
0
400
78
4
1
true
true
false
false
false
false
zero
73,666,150
Avoid duplicate entries in room Database
<p>I am trying to make a function which will check whether this id is already present or not in the database, But it is not working as required.It take the insert value in database.</p> <pre><code>private fun CheckDuplicateId(id:String,donorDao:DonorDao):Boolean{ var result=true lifecycleScope.launch { ...
I am trying to make a function which will check whether this id is already present or not in the database, But it is not working as required.It take the insert value in database. [CODE] I am using this function in while inserting the entry [CODE] here donor entity [CODE] here donor dao [CODE] here the database [CODE]
android|database|kotlin|dao
0
2022-09-09T18:22:06.900Z
2,022
9
18
4
41
2
318
40
4
5
true
false
false
false
false
false
zero
73,666,158
Application not compatible with older Android versions
<p>I'm generating an Android application via <code>mvn -Pandroid gluonfx:build gluonfx:package</code>. Here are the versions from the POM:</p> <pre><code> &lt;maven-compiler-plugin-version&gt;3.10.1&lt;/maven-compiler-plugin-version&gt; &lt;maven-surefire-plugin-version&gt;3.0.0-M6&lt;/maven-surefire-plu...
I'm generating an Android application via mvn -Pandroid gluonfx:build gluonfx:package . Here are the versions from the POM: [CODE] Using graalvm-svm-java17-linux-gluon-22.1.0.1-Final The application works well on Android 8. However, when trying to install it on Android 7.0, a message pops up saying that the application...
java|android|gluon-mobile
0
2022-09-09T18:22:40.040Z
2,022
9
18
4
32
1
813
54
3
3
true
false
false
false
false
false
zero
73,666,201
Image Normalization Prior to Pytorch_Mobile Prediction in Dart/Flutter?
<p>I am attempting to run an image through a pytorch model I have created and incorporated into a mobile flutter app. In the Training process, prior to moving the model to my mobile dev environment, I normalize my training images in python using Pytorch Transforms with the following line of code:</p> <pre><code>transfo...
I am attempting to run an image through a pytorch model I have created and incorporated into a mobile flutter app. In the Training process, prior to moving the model to my mobile dev environment, I normalize my training images in python using Pytorch Transforms with the following line of code: [CODE] I have tried to fi...
android|ios|flutter|dart|pytorch
0
2022-09-09T18:28:23.050Z
2,022
9
18
4
13
0
953
71
5
2
true
true
false
false
false
false
zero
73,666,259
Android background service calls onDestroy() before coroutine finishes work
<p>I have background service in Android to handle Google Firebase Push Notifications:</p> <pre class="lang-kotlin prettyprint-override"><code>class MyFirebaseMessagingService : FirebaseMessagingService() { @Inject lateinit var repository: Repository @Inject lateinit var coroutineDispatchers: Coroutine...
I have background service in Android to handle Google Firebase Push Notifications: [CODE] My problem is that job is getting cancelled before finishing, because onDestroy() is called. Any idea why Service is killing itself before job is done?
android|kotlin|firebase-cloud-messaging|android-service|dagger-2
0
2022-09-09T18:36:13.897Z
2,022
9
18
4
47
1
241
75
5
1
true
false
false
false
false
false
zero
73,666,471
How to solve queryIntentActivities deprecated in API 33
<p>I am getting a strange behavior in Android Studio with API33. In the following code,</p> <pre><code>Intent chooser = Intent.createChooser(sharingIntent, filename); List&lt;ResolveInfo&gt; resInfoList = context.getPackageManager().queryIntentActivities(chooser, android.content.pm.PackageManager.MATCH_DEFAULT_ONLY); <...
I am getting a strange behavior in Android Studio with API33. In the following code, [CODE] I am getting queryIntentActivities(Intent,int) in PackageManager has been deprecated . In the docs, it says: This method was deprecated in API level 33. Use queryIntentActivities(android.content.Intent, android.content.pm.Packag...
android|android-studio|deprecated
1
2022-09-09T18:57:38.843Z
2,022
9
18
4
136
2
568
55
3
1
true
false
false
false
false
false
low
73,666,565
Kotlin for loop does not wait for function to finish
<p>I have the following for loop.</p> <pre><code>for (song in songArray){ playSong(song) } </code></pre> <p>and playSong as below:</p> <pre><code>fun playSong(song){ mediaPlayer.create(context, R.raw.song) mediaPlayer.start mediaPlayer?.setOnCompletionListener { mediaPlayer!!.release() mediaPlayer ...
I have the following for loop. [CODE] and playSong as below: [CODE] The for loop does not wait for the entire playSong function to complete, and just immediately starts the next song. I want the the listener to be heard and the song to complete before iterating to the next song. If you could give me some guidance on th...
android|kotlin
0
2022-09-09T19:09:01.720Z
2,022
9
19
4
82
2
346
52
2
2
true
false
false
false
false
false
zero
73,666,584
Node.js-Flutter-FCM :i'm not receiving Push notifications
<pre><code>async function sendNotif( title, body0,token){ return await admin.messaging().sendMulticast({ tokens: [token],//&quot;dHUKMkIxRbS3uIpdnA1Qef:APA91bHQd2XUpFyWzfdbKrpPV2T9b0uJx9TfKZcyF-O_oAbQ13yA5R-52t_RTb_QSPrMpxw1OV9z8sNFRth5wGuCAld_9VsKr4oRdSWsMzqhrbKcTLC2rAp5QLOUALqiTadyvyvcjTmb!&quot;, notification:{ t...
[CODE] this is my AndroidManifest.xml [CODE] and this is my flutter code i've installed all needed packages and imported it (local_notification and firebase_messaging) [CODE] } } [CODE] i'm trying to fix the issue for a week, but i'm still not getting results, i had some issues in manifest so i took a new one from a ne...
android|node.js|flutter|firebase-cloud-messaging
0
2022-09-09T19:11:06.090Z
2,022
9
19
4
23
0
508
57
4
4
true
true
false
false
false
false
zero
73,666,585
Error running app :@react-native-community_art:checkDebugManifest FAILED
<p>I need to update a project that uses react-native, first I needed to update the SDK version and everything went well. But I also need to update my project's gradle version which currently uses version 6.5, when trying to update to version 7.2 I get the following error:</p> <blockquote> <p>Task :@react-native-communi...
I need to update a project that uses react-native, first I needed to update the SDK version and everything went well. But I also need to update my project's gradle version which currently uses version 6.5, when trying to update to version 7.2 I get the following error: Task :@react-native-community_art:checkDebugManife...
android|react-native
0
2022-09-09T19:11:06.877Z
2,022
9
19
4
17
1
514
72
2
3
true
false
false
false
false
false
zero
73,666,724
Why am I unable to clear a notification with NotificationManager in my NotificationListenerService?
<p>I have an Android app that implements a NotificationListenerService. In my notification listener service, I intercept notifications from another app (package) and try to cancel them.</p> <p>When I call the NotificationManager.cancel() method...nothing happens. No cancel occurs and the notification persists.</p> <p>T...
I have an Android app that implements a NotificationListenerService. In my notification listener service, I intercept notifications from another app (package) and try to cancel them. When I call the NotificationManager.cancel() method...nothing happens. No cancel occurs and the notification persists. The notifications ...
android|push-notification|notifications|firebase-cloud-messaging
0
2022-09-09T19:29:42.997Z
2,022
9
19
4
15
1
847
99
4
2
true
false
false
false
false
false
zero
73,666,842
how do i retrieve a nested object from Firebase?
<p>I am trying to retrieve a nested list of workouts from a Realtime Database and I don't know how to do it.</p> <p>I made some research and still couldn't really figure out how am supposed to do it.</p> <p>The Realtime Database JSON file looks like this :</p> <p><a href="https://i.stack.imgur.com/tlXxw.png" rel="nofol...
I am trying to retrieve a nested list of workouts from a Realtime Database and I don't know how to do it. I made some research and still couldn't really figure out how am supposed to do it. The Realtime Database JSON file looks like this : I am looking to retrieve data by workout, for example, if someone presses the wo...
java|android|firebase|google-cloud-platform|firebase-realtime-database
0
2022-09-09T19:45:00.430Z
2,022
9
19
4
41
2
526
48
5
0
false
false
false
false
false
false
zero
73,666,889
No emulators are currently running
<p><a href="https://i.stack.imgur.com/EmtZ5.jpg" rel="nofollow noreferrer">No emulators are currently running</a></p> <p>Wrote a program in Kotlin. Everything was fine, everything worked. I turned on my laptop a week later. Launched Android Studio/AS/. The code opens fine. Only emulators do not display the phone. Write...
No emulators are currently running Wrote a program in Kotlin. Everything was fine, everything worked. I turned on my laptop a week later. Launched Android Studio/AS/. The code opens fine. Only emulators do not display the phone. Writes that there are no working emulators. No reboots of either the system or the AS, upda...
android|android-studio|kotlin|android-emulator|virtual-device-manager
0
2022-09-09T19:50:51.763Z
2,022
9
19
4
45
0
763
34
5
0
false
true
false
false
false
false
zero
73,666,903
Running Geekbench in loop
<p>I need to run below Geekbench test in multiple loops from adb shell:</p> <pre><code>**parrot:/data/local/tmp/perf/geekbench_5.1.0 #** sh runit 80 'time -p' 0 1 207 </code></pre> <p>Can anyone please help how to run it in loop?</p>
I need to run below Geekbench test in multiple loops from adb shell: [CODE] Can anyone please help how to run it in loop?
android|adb
0
2022-09-09T19:52:10.037Z
2,022
9
19
4
16
0
121
25
2
1
true
true
false
false
false
false
zero
73,666,991
How can I send an "non-protected" broadcast from a system service when I don't care about security?
<p>I have an Android Service running in Foreground mode. This service is running using the <code>sharedUserId=&quot;android.uid.system&quot;</code> and all is good...this runs fine.</p> <p>I also have several other user space applications that I want to send custom broadcasts to. These other applications register their...
I have an Android Service running in Foreground mode. This service is running using the sharedUserId=&quot;android.uid.system&quot; and all is good...this runs fine. I also have several other user space applications that I want to send custom broadcasts to. These other applications register their own &quot;broadcast ac...
android
0
2022-09-09T20:03:21.483Z
2,022
9
20
4
29
0
1,486
99
1
2
true
true
false
false
false
false
zero
73,667,075
Firestore Rules - Update document that has FieldValue.delete()
<p>I am looking for the correct Firestore Rules settings that will allow deleting certain document fields.</p> <p>I need to update the document if the following happens:</p> <pre><code>DocumentReference documentReference = firebaseFirestore.collection(&quot;test&quot;).document(questionId); WriteBatch writeBatch = acti...
I am looking for the correct Firestore Rules settings that will allow deleting certain document fields. I need to update the document if the following happens: [CODE] User can only update the document if the field &quot; disable &quot; is set to true, and the fields &quot; user_id &quot; and &quot; user_name &quot; are...
android|firebase|google-cloud-firestore|firebase-security
0
2022-09-09T20:12:15.197Z
2,022
9
20
4
18
1
485
62
4
2
true
false
false
false
false
false
zero
73,667,147
Tons of "Unknown attribute" errors in AndroidManifest file
<p>After upgrading to API 33 in Android studio, I am getting tons of &quot;Unknown attribute&quot; errors in the AndroidManifest.xml file. I tried invalidating cache and restarting, I tried removing the ~/.gradle/caches/ folder, and still getting the errors. The first two already the versionCode and versionName:</p> <p...
After upgrading to API 33 in Android studio, I am getting tons of &quot;Unknown attribute&quot; errors in the AndroidManifest.xml file. I tried invalidating cache and restarting, I tried removing the ~/.gradle/caches/ folder, and still getting the errors. The first two already the versionCode and versionName: [CODE] St...
android-studio|android-manifest|attributeerror
2
2022-09-09T20:21:08.407Z
2,022
9
20
4
53
2
378
58
3
1
true
false
false
false
false
false
low
73,667,190
Android Wear startForeground not displaying notification
<p>I am writing an Android Wear app that uses a foreground service. I have verified that the foreground service <em>wokrs</em>, and the code inside the service executes as needed (SensorEventListener) and I even use intents to display information in the UI.</p> <p>However, the notification for the service is not postin...
I am writing an Android Wear app that uses a foreground service. I have verified that the foreground service wokrs , and the code inside the service executes as needed (SensorEventListener) and I even use intents to display information in the UI. However, the notification for the service is not posting in the list of n...
android|wear-os
1
2022-09-09T20:26:26.963Z
2,022
9
20
4
20
0
471
56
2
1
true
true
false
false
false
false
low
73,667,217
How to append aapt flags to Android.bp dynamically
<p>I need to dynamically append new flags to <code>aaptflags</code> property from <code>android_app</code> from <strong>Android.bp</strong>, based in some conditions. I am trying something similar to this <a href="https://stackoverflow.com/a/56626010">answer</a>, the Go script is executed (I can see it when I add some ...
I need to dynamically append new flags to aaptflags property from android_app from Android.bp , based in some conditions. I am trying something similar to this answer , the Go script is executed (I can see it when I add some prints), but the flags are not added. This is my code, any idea what I'm missing? my_defaults.g...
android|go|android-source|aapt|android-soong
1
2022-09-09T20:29:19.883Z
2,022
9
20
4
29
0
353
50
5
2
true
true
false
false
false
false
low
73,667,417
Non-case sensitive Flutter
<p>I'm new in Flutter and have been trying to find a solution for this, but is there a way I can just accept the username ignoring if it's lowercase or uppercase? As long as it matches with their username it's fine to proceed.</p> <pre><code> Widget emailField() { return TextFormField( textInputAction: TextI...
I'm new in Flutter and have been trying to find a solution for this, but is there a way I can just accept the username ignoring if it's lowercase or uppercase? As long as it matches with their username it's fine to proceed. [CODE] [CODE]
android|ios|flutter|dart
0
2022-09-09T20:56:27.933Z
2,022
9
20
4
33
1
237
26
4
2
true
false
false
false
false
false
zero
73,667,527
Is there any way to reduce flutter app size
<p>My query is regarding Flutter App Size I am building an application currently only for android user So can i remove the entire IOS folder thing (i am beginner so please do not bother if it seems silly) Or any other alternative to reduce app size Thank you.</p>
My query is regarding Flutter App Size I am building an application currently only for android user So can i remove the entire IOS folder thing (i am beginner so please do not bother if it seems silly) Or any other alternative to reduce app size Thank you.
android|ios|flutter|dart
0
2022-09-09T21:11:44.987Z
2,022
9
21
4
52
2
256
43
4
0
false
false
false
false
false
false
zero
73,667,565
Security Exception while using Android DownloadManager.enqueue()
<p>Getting error :</p> <pre><code>java.lang.SecurityException: Permission Denial: writing com.android.providers.downloads.DownloadProvider uri content://downloads/my_downloads from pid=3608, uid=10081 requires android.permission.INTERNET, or grantUriPermission() at android.os.Parcel.readException(Parcel.java:16...
Getting error : [CODE] Method to call DownloadManager to start Download file kotlin [CODE] In Manifest using : [CODE]
android|kotlin|android-download-manager|securityexception
0
2022-09-09T21:18:36.790Z
2,022
9
21
4
43
1
117
64
4
3
true
false
false
false
false
false
zero
73,667,590
How to implement sliding animation for selector in Jetpack Compose?
<p>I have the following code:</p> <pre><code>@Composable internal fun ActivityInputBottomSheet() { val items = listOf(&quot;Calories&quot;, &quot;Steps&quot;, &quot;Water&quot;) var currentActive by remember { mutableStateOf(items[0]) } Column( modifier = Modifier.fillMaxWidth(), ...
I have the following code: [CODE] Here I implemented a selector with 3 options (when user clicks at the one option it becomes active, and all other become inactive). It works correctly, but I want to add animation of sliding from the one option to another while changing state of selector (for example if user clicks at ...
android-jetpack-compose
0
2022-09-09T21:21:44.837Z
2,022
9
21
4
23
0
500
67
1
1
true
true
false
false
false
false
zero
73,667,599
POJO class from JSON response with dynamic sub-object into an HashMap in Android Retrofit
<p>I want serialize a JSON response in Android with Retrofit and GSON libraries. This response contains an object with &quot;flights&quot; key that can have one or two nested object with different keys. It can be like this:</p> <pre><code>{ &quot;status&quot;: &quot;OK&quot;, &quot;session_id&quot;: &quot;A4ZCUaH6...
I want serialize a JSON response in Android with Retrofit and GSON libraries. This response contains an object with &quot;flights&quot; key that can have one or two nested object with different keys. It can be like this: [CODE] or like this: [CODE] This is my Android code to serialize the JSON: [CODE] [CODE] The Flight...
android|serialization|gson|retrofit|retrofit2
0
2022-09-09T21:22:37.127Z
2,022
9
21
4
21
0
734
89
5
6
true
true
false
false
false
false
zero
73,667,676
Trying to solve "executable: No such file or directory" when running on Android
<p>I have an executable:</p> <pre><code> ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked </code></pre> <p>that runs fine on my machine:</p> <pre><code>Linux debian 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 </code></pre> <p>but fails with</p> <blockquote> <p>No such file o...
I have an executable: [CODE] that runs fine on my machine: [CODE] but fails with No such file or directory when run on: [CODE] Question: Do I need to copy over all of the libs that I see when I do: [CODE] over to the Android device (emulated) to overcome this error? (I'm thinking yes, since it is dynamically linked.). ...
android|dynamic|static
0
2022-09-09T21:31:00.383Z
2,022
9
21
4
35
0
621
79
3
4
true
true
false
false
false
false
zero
73,668,250
Format time to mm:ss.S with String.format in Kotlin/Java
<p>I want my time to be formated like: 03:04.9 (example)</p> <p>This is what I have right now:</p> <pre><code>fun formatTime(data: Long): String { val seconds = ((data / 1000.0) % 60.0) val minutes = (TimeUnit.MILLISECONDS.toMinutes(data) % 60).toInt() return String.format(Locale.US, &quot;%02d:%.1f&quot;, ...
I want my time to be formated like: 03:04.9 (example) This is what I have right now: [CODE] It kind of works but doesn't make sure that the seconds value has two digits. This is how the output looks like when the seconds are under 10: 03:4.9 I think I'm so close but just can't get it right
java|android|kotlin|formatting|duration
1
2022-09-09T23:14:24.303Z
2,022
9
23
4
55
1
290
56
5
1
true
false
false
false
false
false
low
73,668,277
Callbacks for Firebase ValueEventListener
<p>In my android project I have a google map with markers that should update live. I decided to implement callbacks as a way to make sure I have the data before I draw the markers. However when <strong>Firebase Realtime Database gets updated when I am on the map my app crashes</strong>. I believe this is due to calling...
In my android project I have a google map with markers that should update live. I decided to implement callbacks as a way to make sure I have the data before I draw the markers. However when Firebase Realtime Database gets updated when I am on the map my app crashes . I believe this is due to calling a callback even th...
android|kotlin|firebase-realtime-database
0
2022-09-09T23:22:28.897Z
2,022
9
23
4
21
0
738
41
3
3
true
true
false
false
false
false
zero
73,668,426
Android Studio Java app crashing when trying to update TextView
<p>I'm trying to create a new Thread that updates a TextView's value every 1 second and for some reason this code crashes the app</p> <pre><code>new Thread(){ @Override public void run() { super.run(); try { while(!this.isInterrupted()){ Thread...
I'm trying to create a new Thread that updates a TextView's value every 1 second and for some reason this code crashes the app [CODE] That is in the onCreate function in my MainActivity Just to clarify, I'm trying to update the values in the Views [CODE] to the values in [CODE] (also if the ...getLegajoAlumno() is 0, R...
java|android|android-studio
0
2022-09-10T00:00:13.623Z
2,022
9
0
5
50
2
562
63
3
4
true
false
false
false
false
false
zero
73,668,436
Convert videofiles in flv-format (Android - Java)
<p>How is it possible to convert video files from the devices into an flv file in my android app (Android Studio)? I know ffmpeg is capable of this. However, I don't know how to use it.</p>
How is it possible to convert video files from the devices into an flv file in my android app (Android Studio)? I know ffmpeg is capable of this. However, I don't know how to use it.
java|android|video|format|flv
-1
2022-09-10T00:02:45.793Z
2,022
9
0
5
83
1
182
49
5
0
false
false
false
false
false
true
negative
73,668,471
android bitbucket pipleine build ./gradlew assembleQADebug failure but local build works?
<p>I enabled the pipleline and created the bitbuket-pipelines.yaml for my android project in bitbucket repo.</p> <p>The pipeline build seems started fine and I can see the gradle tasks are being executed in the output console, just like executing the same gradlew build on my local machine:</p> <p>./gradlew assembleQADe...
I enabled the pipleline and created the bitbuket-pipelines.yaml for my android project in bitbucket repo. The pipeline build seems started fine and I can see the gradle tasks are being executed in the output console, just like executing the same gradlew build on my local machine: ./gradlew assembleQADebug however, one ...
android|gradle|bitbucket|android-safe-args
0
2022-09-10T00:12:37.220Z
2,022
9
0
5
20
0
588
89
4
2
true
true
false
false
false
false
zero
73,668,548
how to call android default browser setting page
<p>I need to open the default browser setting page on android for my application. This question has been asked before, but unfortunately the answer is not working. Since my English is poor and the translation is not good, I do not understand much when I read the documents. I am sorry. I will be grateful for your he...
I need to open the default browser setting page on android for my application. This question has been asked before, but unfortunately the answer is not working. Since my English is poor and the translation is not good, I do not understand much when I read the documents. I am sorry. I will be grateful for your help. ent...
android-intent|browser|settings|default
0
2022-09-10T00:35:28.553Z
2,022
9
0
5
24
0
418
48
4
0
false
true
false
false
false
false
zero
73,668,562
Conflicting Task<ReviewInfo> class, google service gms vs core
<p>I encountered this error while building my app after adding in app review feature. Other similar problems seems to advise on correcting the dependencies version but both gms and core seems to be on the latest (no warning sign on android studio). What direction should I go in order to fix this problem?</p> <pre><code...
I encountered this error while building my app after adding in app review feature. Other similar problems seems to advise on correcting the dependencies version but both gms and core seems to be on the latest (no warning sign on android studio). What direction should I go in order to fix this problem? [CODE] Snippet of...
android|google-play-services
0
2022-09-10T00:38:50.557Z
2,022
9
0
5
38
1
342
62
2
2
true
false
false
false
false
false
zero
73,668,708
add more information in realtime database after creating user record
<p>I have my classes and javas codes, I would like to add more information in different activities linking with the user's registry data. How do I do that ? I just need this to build the app</p> <p>Register Activity:</p> <pre><code>public class RegisterBasicInfo extends AppCompatActivity { private EditText n...
I have my classes and javas codes, I would like to add more information in different activities linking with the user's registry data. How do I do that ? I just need this to build the app Register Activity: [CODE] My Class Users [CODE] so far everything is ok, but now that you add the sex with the button, it opens the ...
java|android|firebase-realtime-database
0
2022-09-10T01:27:52.160Z
2,022
9
1
5
21
0
355
68
3
3
true
true
false
false
false
false
zero
73,668,747
Dependent features configured but no package ID was set. Android two apps of one project.... Admin and User
<p><a href="https://i.stack.imgur.com/4AMYF.png" rel="nofollow noreferrer">error screen while building superadmin</a></p> <p>Hello guys, I wanted to make an android app of admin separate from user app so I decided to make a module for it .SuperAdmin is an application module.I want to make it for only admin and this err...
error screen while building superadmin Hello guys, I wanted to make an android app of admin separate from user app so I decided to make a module for it .SuperAdmin is an application module.I want to make it for only admin and this error is showing while building..... This error is only showing when I am using something...
android|kotlin|android-productflavors|build-variant
0
2022-09-10T01:40:03.787Z
2,022
9
1
5
20
1
441
107
4
0
false
false
false
false
false
false
zero
73,668,813
Kotlin Map.get throws NoSuchElementException when wrapped with Jetpack Compose 'by mutableStateMapOf' (SnapshotStateMap)
<p>Element accessors on a map should return <code>null</code> on non-existing keys, but instead</p> <p><code>myMapOfThings[&quot;item3&quot;]</code> throws <code>java.util.NoSuchElementException: Key item3 is missing in the map.</code></p> <p>When a Map is initialized (via SnapshotStateMap) in ViewModel with</p> <pre><...
Element accessors on a map should return null on non-existing keys, but instead myMapOfThings[&quot;item3&quot;] throws java.util.NoSuchElementException: Key item3 is missing in the map. When a Map is initialized (via SnapshotStateMap) in ViewModel with [CODE] All documentation seems to indicate it should behave as a t...
android|kotlin|android-jetpack-compose
0
2022-09-10T01:58:10.740Z
2,022
9
1
5
45
1
470
120
3
4
true
false
false
false
false
false
zero
73,669,048
Update Query in Child Table won't relect in parent table Android Room Kotlin
<p>Parent Table :</p> <pre><code>@Entity(tableName = &quot;Product&quot;) data class Products ( @PrimaryKey(autoGenerate = false) @ColumnInfo(name = &quot;id&quot;) var id : Int = 0, @ColumnInfo(name = &quot;name&quot;) var name : String? = null, @ColumnInfo(name = &quot;variants&quot;) ...
Parent Table : [CODE] Child Table : [CODE] i want to update the cart_count in variant and it should also reflect in product table also as variant updated .. what is the query for this ?? When i use this Update query ..i update the value in Variant Table but when i get getallProducts , the variant table shows old value ...
android|database|kotlin|android-room|android-room-relation
0
2022-09-10T03:17:47.323Z
2,022
9
3
5
56
2
494
76
5
4
true
false
false
false
false
false
zero
73,669,131
how to create coupon edittext button android layout?
<p>I want template with coupon code. Above I have apply coupon text and below them editbox apply apply button. I want this template. I have given image below.</p> <p><a href="https://i.stack.imgur.com/p2PPU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p2PPU.png" alt="enter image description here" ...
I want template with coupon code. Above I have apply coupon text and below them editbox apply apply button. I want this template. I have given image below.
android|xml|layout
0
2022-09-10T03:45:47.480Z
2,022
9
3
5
20
0
155
52
3
0
false
true
false
false
false
false
zero
73,669,160
Can anyone share some resources about usage of libart.so in android to native or kernel system calls?
<p>I am looking for resources so that I can trace system level I/O calls back to native layer code usage. How can I achieve this? How does native layer communicates with the kernel level in a specific case of file I/O?</p>
I am looking for resources so that I can trace system level I/O calls back to native layer code usage. How can I achieve this? How does native layer communicates with the kernel level in a specific case of file I/O?
android|file|io
0
2022-09-10T03:54:34.237Z
2,022
9
3
5
9
0
215
101
3
0
false
true
false
false
false
false
zero
73,669,165
Flutter: RenderPointerListener object was given an infinite size during layout
<p>I started to make a login page and in the first time I run it it run as what I was expected. I realize that my code must be stateful because i must add animation in password visibility. But, when I started to convert Loginpage from stateless to stateful widget . There so many eror in Debug Consol but there's nothing...
I started to make a login page and in the first time I run it it run as what I was expected. I realize that my code must be stateful because i must add animation in password visibility. But, when I started to convert Loginpage from stateless to stateful widget . There so many eror in Debug Consol but there's nothing er...
android|flutter|dart|mobile
0
2022-09-10T03:55:51.660Z
2,022
9
3
5
28
0
720
78
4
1
true
true
false
false
false
false
zero
73,669,203
Null extracted folder for artifact: ResolvedArtifact on gradle build
<p>i cloned a project from gitlab and when trying to build it i get the following error:</p> <p>Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=printerlib-release.aar, variantName=null, artifactFile=C:\Users\RayanSystem\Desktop\New folder (2)\printerlib-release.aar, extractedFolder=null, depend...
i cloned a project from gitlab and when trying to build it i get the following error: Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=printerlib-release.aar, variantName=null, artifactFile=C:\Users\RayanSystem\Desktop\New folder (2)\printerlib-release.aar, extractedFolder=null, dependencyType=A...
android|gradle|gitlab
0
2022-09-10T04:04:44.477Z
2,022
9
4
5
32
0
1,100
68
3
0
false
true
false
false
false
false
zero
73,669,283
RecyclerView EditText value erase after scrolling
<p>EditText input value erase after scrolling down and scrolling up.</p> <p>I followed many tutorials but nothing worked for me, I tried to implement Textwatcher but I can't perfectly implement it.</p> <p>Someone please help, I'm stuck with this problem. Please give me a solution if it had multiple edittext too.</p> <p...
EditText input value erase after scrolling down and scrolling up. I followed many tutorials but nothing worked for me, I tried to implement Textwatcher but I can't perfectly implement it. Someone please help, I'm stuck with this problem. Please give me a solution if it had multiple edittext too. here is my adapter code...
android|android-recyclerview|android-edittext
0
2022-09-10T04:28:02.873Z
2,022
9
4
5
42
1
328
49
3
1
true
false
false
false
false
false
zero
73,669,345
How to kill application process?
<p>In my Xamarin.Android application, I have code that handles restoring state after process death (when the OS kills the application to free memory). I want to test this code but I do not know how to simulate when my application process gets killed. I am trying to do it through the terminal. From my <code>platform-too...
In my Xamarin.Android application, I have code that handles restoring state after process death (when the OS kills the application to free memory). I want to test this code but I do not know how to simulate when my application process gets killed. I am trying to do it through the terminal. From my platform-tools folder...
android|xamarin.android
0
2022-09-10T04:48:30.937Z
2,022
9
4
5
59
1
523
32
2
1
true
false
false
false
false
false
zero
73,669,638
How to use a variable to change image?
<p><code>imageView1.setImageResource(R.drawable.img_1);</code></p> <p>There are 3 images img_1, img_2 and img_3</p> <p>Is it possible to use the variable xyz as the image name? Like instead of img_1,how do I use img_xyz</p>
imageView1.setImageResource(R.drawable.img_1); There are 3 images img_1, img_2 and img_3 Is it possible to use the variable xyz as the image name? Like instead of img_1,how do I use img_xyz
android
-1
2022-09-10T06:01:33.730Z
2,022
9
6
5
23
1
189
38
1
0
false
false
false
false
false
true
negative
73,669,758
How to fetch internal storage songs to the music player app?
<p>I used external storage permission to app. So it reads SD card. On Emulator,the songs are getting displayed as it has its sd card storage but the songs are not displayed on my physical device may be because in my device has song in its internal storage and not on any sd card. So how to fetch song from internal stora...
I used external storage permission to app. So it reads SD card. On Emulator,the songs are getting displayed as it has its sd card storage but the songs are not displayed on my physical device may be because in my device has song in its internal storage and not on any sd card. So how to fetch song from internal storage....
java|android|android-studio|android-permissions|android-external-storage
0
2022-09-10T06:31:25.023Z
2,022
9
6
5
28
1
425
60
5
3
true
false
false
false
false
false
zero
73,669,771
Why my search functionality is not working in firebase firestore in android
<p>I am working on an application in android where I have a list of products in my recyclerview fetching from firebase firestore it is like Olx now I want to implement search functionality in my application. how can I achieve that? Please guide me I am new to android and I have no idea about it. how can I implement a s...
I am working on an application in android where I have a list of products in my recyclerview fetching from firebase firestore it is like Olx now I want to implement search functionality in my application. how can I achieve that? Please guide me I am new to android and I have no idea about it. how can I implement a sear...
java|android|firebase|google-cloud-firestore
-1
2022-09-10T06:34:57.590Z
2,022
9
6
5
50
0
463
75
4
2
true
true
false
false
false
true
negative
73,669,807
I'm trying to show PDF through url in webview android in java. Only Image is showing through url but not PDF
<pre><code>// file_name = &quot;07092022114344-java_tutorial.pdf&quot;; file_name = &quot;07092022114344-1662530603380.jpg&quot;; dialog_attach_expense_info = new Dialog(MainActivity.this); binding.expenseAttach.setText(file_name); binding.expenseAttach.setOnClickListener(v -&gt; { openDi...
[CODE] the above code is basically in the onCreate method of the main activity [CODE] Here in the above the URL is working well in chrome. But the URL that consists of .pdf is not showing up in the webview any ideas where this code lacks
android|android-webview
0
2022-09-10T06:41:51.310Z
2,022
9
6
5
27
0
237
108
2
2
true
true
false
false
false
false
zero
73,669,972
Connect to multiple accounts
<p>I am planning to make a locator app in android java language. What I want to know is, how can I connect multiple accounts to the main/admin account so that I can track them? I want to have the options of adding the other accounts through sending digit codes to the email address and phone number.</p> <p>I want to kno...
I am planning to make a locator app in android java language. What I want to know is, how can I connect multiple accounts to the main/admin account so that I can track them? I want to have the options of adding the other accounts through sending digit codes to the email address and phone number. I want to know what spe...
android|account
1
2022-09-10T07:13:56.650Z
2,022
9
7
5
20
1
393
28
2
0
false
false
false
false
false
false
low
73,669,991
Lock the app to prevent the app from being installed on other people's devices
<p>How can I make <strong>my app</strong> so that if the user copies <strong>it</strong> installed on his device and sends <strong>it</strong> to his friends, his friends can't install the app?</p> <p>I want users to be able to download <strong>my app</strong> from the <code>market</code> <em><strong>only</strong></em>...
How can I make my app so that if the user copies it installed on his device and sends it to his friends, his friends can't install the app? I want users to be able to download my app from the market only . Thanks a lot.
android|android-studio|security
0
2022-09-10T07:17:20.543Z
2,022
9
7
5
27
1
219
78
3
0
false
false
false
false
false
false
zero
73,670,093
create an inner custom folder with Environment.getExternalStoragePublicDirectory()
<p>i am using this following code to save a created pdf inside my phone;</p> <pre><code> File file = new File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath(),&quot;/&quot; +user.getInjurdManFirstName() +user.getInjuredManSecondName(...
i am using this following code to save a created pdf inside my phone; [CODE] the code works good but it save me the pdf file in the download folder, i want it to save it like: DOWNLOADS/&quot;custom folder/&quot;name.pdf&quot; i tried to use Context and its doesnt work
android|android-studio|file|save
0
2022-09-10T07:39:21.467Z
2,022
9
7
5
20
0
269
82
4
1
true
true
false
false
false
false
zero