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,397,516
Unable to Select files from Xmarin.Essentials.FilePicker . All files are disable
<p>When try to pick up the file all files are showing as disable. I am unable select the files. I am using below code.</p> <pre><code>var options = new PickOptions { PickerTitle = &quot;Please select a pdf file&quot;, FileTypes = FilePicker...
When try to pick up the file all files are showing as disable. I am unable select the files. I am using below code. [CODE] I have provide exteral storage permission. Storage Permission SS
xamarin|xamarin.android|xamarin.essentials
0
2022-05-26T20:09:52.357Z
2,022
5
20
3
221
1
187
80
3
1
true
false
false
false
false
false
zero
72,397,586
How to show and hide loading on Fragment
<p>I have a Fragment where now I'm displaiyng a PDF file with institucional data. It works perfectly, but sometimes depending on the connection speed, it wastes a lot of time to show. I tried to put a code to show a progressbar, that already exists on xml:</p> <pre><code> &lt;ProgressBar android:id=&quot;@+id/progr...
I have a Fragment where now I'm displaiyng a PDF file with institucional data. It works perfectly, but sometimes depending on the connection speed, it wastes a lot of time to show. I tried to put a code to show a progressbar, that already exists on xml: [CODE] My class is showing completely the pdf files, but when I tr...
android|android-studio|kotlin|mobile
0
2022-05-26T20:16:47.493Z
2,022
5
20
3
43
0
643
40
4
2
true
true
false
false
false
false
zero
72,397,621
Why do we still create an Activity object in a custom adapter
<p>Am new to new to android development so please forgive me if this sounds stupid to you. Please why do we still create an activity object in a custom adapter for list view, when there's is parameter for a context object in the constructor. I am learning with a udemy course and thats what the teacher does.<a href="htt...
Am new to new to android development so please forgive me if this sounds stupid to you. Please why do we still create an activity object in a custom adapter for list view, when there's is parameter for a context object in the constructor. I am learning with a udemy course and thats what the teacher does. This is a scre...
android|listview|custom-adapter
0
2022-05-26T20:19:48.487Z
2,022
5
20
3
33
0
341
61
3
0
false
true
false
false
false
false
zero
72,397,626
How to reliably update data on a particular RecyclerView Item?
<p>The date/time in my RecyclerView Item only updates every other time I change it, not for every change. The current process is:</p> <ul> <li>User updates time via Date/TimePicker</li> <li>Change is saved to Room database</li> <li>My fragment's &quot;reminders&quot; LiveData observer is triggered, which calls the adap...
The date/time in my RecyclerView Item only updates every other time I change it, not for every change. The current process is: User updates time via Date/TimePicker Change is saved to Room database My fragment's &quot;reminders&quot; LiveData observer is triggered, which calls the adapter's overridden submitList functi...
android|android-recyclerview
0
2022-05-26T20:20:26.407Z
2,022
5
20
3
30
1
1,348
62
2
6
true
false
false
false
false
false
zero
72,397,640
Android Studio: On button click go to previous activity (not the back button)
<p>I have to create two activity pages. In the first the user enters their name, which is passed to the second activity. That is all working, but when the second button is pressed &quot;button_do&quot; the app needs to exit, when the first &quot;button_dont&quot; it needs go to the previous activity to re enter the nam...
I have to create two activity pages. In the first the user enters their name, which is passed to the second activity. That is all working, but when the second button is pressed &quot;button_do&quot; the app needs to exit, when the first &quot;button_dont&quot; it needs go to the previous activity to re enter the name. ...
java|android|android-activity
0
2022-05-26T20:21:37.973Z
2,022
5
20
3
45
1
594
77
3
4
true
false
false
false
false
false
zero
72,397,714
can i have two recyclerView with one viewHolder and two adapters?
<p>Hi i'm new of android and i have a question.</p> <ol> <li><p>if I have two recyclerviews, how many viewHolder and adapter should I have?</p> </li> <li><p>can i have two recyclerView with one viewHolder and two adapters, or is it good practice to have one adapter and one viewHolder for each recyclerView?</p> </li> </...
Hi i'm new of android and i have a question. if I have two recyclerviews, how many viewHolder and adapter should I have? can i have two recyclerView with one viewHolder and two adapters, or is it good practice to have one adapter and one viewHolder for each recyclerView?
android
0
2022-05-26T20:30:23.537Z
2,022
5
20
3
67
2
271
65
1
0
false
false
false
false
false
false
zero
72,397,788
How to return to older version of backup of Viber?
<p>I am sorry if this question does not belong here.</p> <p>I have deleted some Viber chat weeks before, and my last backup version is from yesterday. Is there any chance I can retrieve those chats and how?</p>
I am sorry if this question does not belong here. I have deleted some Viber chat weeks before, and my last backup version is from yesterday. Is there any chance I can retrieve those chats and how?
android|backup|viber
0
2022-05-26T20:38:42.763Z
2,022
5
20
3
35
0
196
50
3
0
false
true
false
false
false
false
zero
72,397,800
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve rebus:bottom-dialog:0.0.5
<p>I'm getting such an error and I can't build the application, what do you think?</p> <p><strong>Plugin giving error: implementation 'rebus:bottom-dialog:0.0.5'</strong></p> <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve rebus:bottom-dialog:0.0.5. Show Details Affected Mod...
I'm getting such an error and I can't build the application, what do you think? Plugin giving error: implementation 'rebus:bottom-dialog:0.0.5' [CODE]
android|gradle|build
0
2022-05-26T20:40:34.317Z
2,022
5
20
3
27
0
150
107
3
1
true
true
false
false
false
false
zero
72,397,882
Ionic Capacitor Android: Local module descriptor class for com.google.android.gms.googlecertificates not found - Google Maps Plugin
<p>I have recently tried to intergrate the new Google Maps capacitor plugin: <a href="https://ionicframework.com/blog/announcing-the-capacitor-google-maps-plugin/" rel="nofollow noreferrer">https://ionicframework.com/blog/announcing-the-capacitor-google-maps-plugin/</a></p> <p>My app is a Ionic Capacitor application (A...
I have recently tried to intergrate the new Google Maps capacitor plugin: https://ionicframework.com/blog/announcing-the-capacitor-google-maps-plugin/ My app is a Ionic Capacitor application (Angular) and runs on android and iOS This is my implementation: .html: [CODE] .ts: [CODE] in my android manifest file: [CODE] Ho...
android|angular|google-maps|ionic-framework|capacitor
0
2022-05-26T20:50:30.220Z
2,022
5
20
3
200
0
446
131
5
4
true
true
false
false
false
false
zero
72,398,096
Jetpack Compose Modifier.fillMaxWidth.align fails to compile
<p>Declaring a <code>Box</code> like this results in a compilation error</p> <pre><code> Box(modifier = Modifier .fillMaxWidth() .align(Alignment.Center)) { Text(text = &quot;Hello&quot;) } </code><...
Declaring a Box like this results in a compilation error [CODE] import for align looks like this [CODE] Error [CODE] Compose Version = 1.1.1 Kotlin Version = 1.6.10 Android Studio Version = Android Studio Electric Eel | 2022.1.1 Canary 2
android|android-studio|kotlin|android-jetpack-compose|android-jetpack
0
2022-05-26T21:16:44.830Z
2,022
5
21
3
263
2
237
60
5
3
true
false
false
false
false
false
zero
72,398,145
Turning on flashlight while using camera preview
<p>I have the standard code of toggling flashlight:</p> <pre><code> @RequiresApi(Build.VERSION_CODES.M) private fun flashlightOff() { val cameraManager: CameraManager = getSystemService(Context.CAMERA_SERVICE) as CameraManager val cameraId = cameraManager.cameraIdList[0] cameraManager.set...
I have the standard code of toggling flashlight: [CODE] However, this logic fails if I use it with a camera preview (i.e <androidx.camera.view.PreviewView). Is there any way to override the flashlight while using the camera or a completely different logic than mentioned above? The code I use to start the camera preview...
java|android|kotlin|android-camera|flashlight
1
2022-05-26T21:21:43.167Z
2,022
5
21
3
56
1
337
48
5
2
true
false
false
false
false
false
low
72,398,155
What Unique Hardware Identity Information Can Android 12 Apps Access to the Device
<p>I'm wondering what information applications can obtain regarding the hardware ID. Which device-specific credentials such as Mac Address, Bluetooth Mac Address, IMEI are accessible to user applications.</p>
I'm wondering what information applications can obtain regarding the hardware ID. Which device-specific credentials such as Mac Address, Bluetooth Mac Address, IMEI are accessible to user applications.
android|android-permissions|android-security|android-12|hardware-id
0
2022-05-26T21:22:40.790Z
2,022
5
21
3
218
1
201
82
5
0
false
false
false
false
false
false
zero
72,398,268
Can I run Robot tests with Appium in Perfecto?
<p>Can I run tests written in Robot Framework (with Appium) in Perfecto for automated testing?</p> <p>What other options do I have?</p>
Can I run tests written in Robot Framework (with Appium) in Perfecto for automated testing? What other options do I have?
appium|robotframework|appium-android|saucelabs|perfecto
0
2022-05-26T21:37:00.983Z
2,022
5
21
3
26
0
121
46
5
0
false
true
false
false
false
false
zero
72,398,296
Can I run Robot tests with Appium in Kobiton?
<p>Can I run tests written in Robot Framework (with Appium) in Kobiton mobile device testing platform?</p>
Can I run tests written in Robot Framework (with Appium) in Kobiton mobile device testing platform?
appium|robotframework|appium-android|saucelabs|kobiton
0
2022-05-26T21:40:34.280Z
2,022
5
21
3
27
0
99
45
5
0
false
true
false
false
false
false
zero
72,398,403
Chaining and mapping kotlin flow
<p>I'm trying to get a result from a flow, that retrieves a list from a room database, and then trying to map the list with another flow inside from another database operation, but I don't know if it is possible and if it is, how to make it, at this time I'm trying to make something like this</p> <pre><code>fun retriev...
I'm trying to get a result from a flow, that retrieves a list from a room database, and then trying to map the list with another flow inside from another database operation, but I don't know if it is possible and if it is, how to make it, at this time I'm trying to make something like this [CODE] but looks like is not ...
android|kotlin|android-room|kotlin-coroutines|kotlin-flow
0
2022-05-26T21:52:24.357Z
2,022
5
21
3
339
1
387
32
5
1
true
false
false
false
false
false
zero
72,398,470
Why volume is not changing when app is running background?
<p>This app is working fine when the app is opened or the app is on the screen. Volume is changing when app activity is opened. But when app is running on background, volume is not changing with slider. If I set the stream to alarm/ringtone, it works fine. But I am facing problem when the stream mode is Music. This cod...
This app is working fine when the app is opened or the app is on the screen. Volume is changing when app activity is opened. But when app is running on background, volume is not changing with slider. If I set the stream to alarm/ringtone, it works fine. But I am facing problem when the stream mode is Music. This code a...
android|android-audiomanager
0
2022-05-26T22:02:28.640Z
2,022
5
22
3
22
0
444
58
2
1
true
true
false
false
false
false
zero
72,398,502
TextInputLayout hint color when disabled is not as expected
<p>I have a <code>TextInputLayout</code> as seen below, the problem I'm facing is that when <code>MyTextInput</code> (which is a <code>TextInputEditText</code>) is disabled, the color I'm setting in <code>hintTextAppearance</code> <strong>does not apply</strong>, <strong>but it does</strong> when the input is enabled.<...
I have a TextInputLayout as seen below, the problem I'm facing is that when MyTextInput (which is a TextInputEditText ) is disabled, the color I'm setting in hintTextAppearance does not apply , but it does when the input is enabled. [CODE] This is the style : [CODE] I've went through several questions here and applied ...
android|android-textinputlayout
0
2022-05-26T22:07:45.163Z
2,022
5
22
3
31
0
368
59
2
2
true
true
false
false
false
false
zero
72,398,546
Android AVD: Error: Package path is not valid. Valid system image paths are:ository... null
<p>I'm trying to set up an Android Virtual. I've run out of ideas how to proceed when I encountered this issue trying to run android emulator:</p> <pre><code>$ export ANDROID_SDK_ROOT=&quot;/home/user/.android&quot; [~/Android]$ emulator/emulator @device INFO | Android emulator version 31.2.10.0 (build_id 8420304) (...
I'm trying to set up an Android Virtual. I've run out of ideas how to proceed when I encountered this issue trying to run android emulator: [CODE] PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/home/user/.android]! Details: Earlier I've done complete setup of android sdk this way [CODE] I've install...
android|android-emulator|android-sdk-tools|android-sdk-manager
0
2022-05-26T22:15:24.183Z
2,022
5
22
3
115
0
865
91
4
5
true
true
false
false
false
false
zero
72,398,643
Android Studio windows not focused after closing a tab with shortcut
<p>I have a habit of closing windows with <code>Command</code>+<code>W</code>, and until recently, I could hold down <code>Command</code> and hit <code>W</code> multiple times to close more windows.</p> <p>Lately, I can only close one window, and the next window is shown but is not focused, so the keyboard shortcut doe...
I have a habit of closing windows with Command + W , and until recently, I could hold down Command and hit W multiple times to close more windows. Lately, I can only close one window, and the next window is shown but is not focused, so the keyboard shortcut does nothing. Does anyone know the configuration setting to au...
android|android-studio
0
2022-05-26T22:30:02.850Z
2,022
5
22
3
22
0
442
68
2
0
false
true
false
false
false
false
zero
72,399,098
Pagin v3 - loses state when clicking on list item and come back - jetpack compose
<p>I am displaying a paginated list using paging library in a lazy column in a bottom nav bar with 4 tabs say HomeScreen. When its item is clicked it will to next activity with normal intent . But when i press back key and come back to the composable which has the paginated list . it starts recomposing and the list is ...
I am displaying a paginated list using paging library in a lazy column in a bottom nav bar with 4 tabs say HomeScreen. When its item is clicked it will to next activity with normal intent . But when i press back key and come back to the composable which has the paginated list . it starts recomposing and the list is sho...
android|android-jetpack-compose|kotlin-coroutines|android-jetpack|android-paging-3
0
2022-05-26T23:41:17.823Z
2,022
5
23
3
82
0
800
81
5
1
true
true
false
false
false
false
zero
72,399,578
Wallpaper not properly fit on device screen, it either zoom or cropped
<p>I created wallpaper app with glide using link images. I have three buttons to set image as wallpaper, lock-Screen and Home_Screen on device screen. But when I set this image as wallpaper its either zoom or cropped. I want image should fit on every android screen size.</p> <pre><code>@RequiresApi(api = Build.VERSION_...
I created wallpaper app with glide using link images. I have three buttons to set image as wallpaper, lock-Screen and Home_Screen on device screen. But when I set this image as wallpaper its either zoom or cropped. I want image should fit on every android screen size. [CODE] }
android|wallpaper|wallpapermanager
0
2022-05-27T01:31:29.277Z
2,022
5
1
4
37
0
277
70
3
1
true
true
false
false
false
false
zero
72,399,586
How to pass a screen as a parameter to another screen in flutter?
<p>this is my first time making a full flutter app and i am stuck. I have currently passed a screen as a widget to another class as i have a dashboard screen where multiples buttons within it go to the same screen (course_screen.dart) and then from their move away to different screens depending on what option they had ...
this is my first time making a full flutter app and i am stuck. I have currently passed a screen as a widget to another class as i have a dashboard screen where multiples buttons within it go to the same screen (course_screen.dart) and then from their move away to different screens depending on what option they had cho...
android|flutter
0
2022-05-27T01:33:13.137Z
2,022
5
1
4
58
2
552
65
2
1
true
false
false
false
false
false
zero
72,399,822
Uint8List to double in flutter dart
<p>I wa using flutter bluetooth serial package to recieve data from a microcontroller. When i send integer values from the microcontroller, I get the values in this form: [64], [144, 22]] the last number in the list(22) is the actual number i sent. however, everytime i send any values i get these two values as well [64...
I wa using flutter bluetooth serial package to recieve data from a microcontroller. When i send integer values from the microcontroller, I get the values in this form: [64], [144, 22]] the last number in the list(22) is the actual number i sent. however, everytime i send any values i get these two values as well [64], ...
flutter|android-studio|dart|bluetooth
0
2022-05-27T02:23:51.110Z
2,022
5
2
4
214
2
814
35
4
2
true
false
false
false
false
false
zero
72,400,062
ROOM database: insert static data before other CRUD operations
<p>I have a question about adding static data (taskPriority) to the database. From what I understand, the right way to insert data on database create is to use RoomDatabase.Callback. However, when the app runs the first time and I insert a task (a task has taskPriority.id as a foreign key), it seems that the task is be...
I have a question about adding static data (taskPriority) to the database. From what I understand, the right way to insert data on database create is to use RoomDatabase.Callback. However, when the app runs the first time and I insert a task (a task has taskPriority.id as a foreign key), it seems that the task is being...
android|android-room
0
2022-05-27T03:12:54.603Z
2,022
5
3
4
64
2
594
62
2
1
true
false
false
false
false
false
zero
72,400,098
How to build Android-Apk with unity 2021.3.2f1c1?
<p>I can build project with mac-OS, Windows with unity,but when I switch platform to Android, unity cause Error : Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See &quot;AAR plug-ins and Android Libraries&quot; se...
I can build project with mac-OS, Windows with unity,but when I switch platform to Android, unity cause Error : Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See &quot;AAR plug-ins and Android Libraries&quot; secti...
android|unity3d
0
2022-05-27T03:19:39.080Z
2,022
5
3
4
397
1
1,500
49
2
0
false
false
false
false
false
false
zero
72,400,368
Pushing Notification in app using BroadcastReceiver
<p>foreword: I'm making APP that can show everyday COVID-19 diagnosed in Taiwan using Jsoup by click on the button. While button pressed, it sends App notification. I wanna to make it automaticaly push notification, so I use BroadcastReceiver.</p> <p>To facilitate testing, I added timePicker to let users choose the tim...
foreword: I'm making APP that can show everyday COVID-19 diagnosed in Taiwan using Jsoup by click on the button. While button pressed, it sends App notification. I wanna to make it automaticaly push notification, so I use BroadcastReceiver. To facilitate testing, I added timePicker to let users choose the time to trigg...
android|android-studio
0
2022-05-27T04:07:38.173Z
2,022
5
4
4
35
0
604
51
2
3
true
true
false
false
false
false
zero
72,400,376
Can FileInputStream.read read an odd number of bytes?
<p>I have a method that reads a 16 bit WAVE file, like this:</p> <pre><code>FileInputStream in = new FileInputStream(file); byte[] bytes = new byte[8*Number]; do { readSize = in.read(bytes, 0, 8*Number); ... } while (...); </code></pre> <p>I then need to convert each pair of bytes in <code>bytes[]</code> into a...
I have a method that reads a 16 bit WAVE file, like this: [CODE] I then need to convert each pair of bytes in bytes[] into a short. That is, I better be sure that readSize is even! I know that readSize is not necessarily equal to 8*Number , and that it can be smaller... Is this parity of readSize somehow guaranteed by ...
java|android|fileinputstream|parity
1
2022-05-27T04:09:33.043Z
2,022
5
4
4
43
0
553
53
4
2
true
true
false
false
false
false
low
72,400,445
How to display device admin permissions interface to user in Android Xamarin C#?
<p>I have an Android Xamarin framework app and I need to lock the device when the focus of an activity is lost. I have DevicePolicyManager object and a DeviceAdmin component in my class. I need to request for device admin permisions so that I override <code>onwindowfocuschange</code> to use the DevicePolicyManager obje...
I have an Android Xamarin framework app and I need to lock the device when the focus of an activity is lost. I have DevicePolicyManager object and a DeviceAdmin component in my class. I need to request for device admin permisions so that I override onwindowfocuschange to use the DevicePolicyManager object to lock the d...
android|xamarin
0
2022-05-27T04:22:13.060Z
2,022
5
4
4
153
1
645
80
2
2
true
false
false
false
false
false
zero
72,400,481
How to get Android Studio to check the background color of a button
<p>I'm building an app using Java in Android Studio. I'm at the stage of writing an if-statement:</p> <blockquote> <p>&quot;If the background color of the button is white, turn the background color of the button to black.&quot;</p> </blockquote> <p>Does anyone know the code to check if the background color button is wh...
I'm building an app using Java in Android Studio. I'm at the stage of writing an if-statement: &quot;If the background color of the button is white, turn the background color of the button to black.&quot; Does anyone know the code to check if the background color button is white? &quot;if(button == white){}&quot; I onl...
java|android|if-statement|colors
1
2022-05-27T04:29:45.307Z
2,022
5
4
4
77
1
468
67
4
0
false
false
false
false
false
false
low
72,400,488
Android 12 App links: is it possible to use wildcard that starts from letter, not dot? like android:host="*online.example.com"
<p>I'm trying to make deep links through navigating by: <code>dev-online.example.com</code>, <code>fix-online.example.com</code>, <code>rc-online.example.com</code>, <code>online.example.com</code></p> <p>Android 11 and below worked with the following pattern: <code>android:host=&quot;*online.example.com&quot;</code></...
I'm trying to make deep links through navigating by: dev-online.example.com , fix-online.example.com , rc-online.example.com , online.example.com Android 11 and below worked with the following pattern: android:host=&quot;*online.example.com&quot; But Android 12 can't verify link in this format, through adb shell pm get...
android|android-12|android-deep-link
0
2022-05-27T04:31:10.653Z
2,022
5
4
4
112
0
616
126
3
2
true
true
false
false
false
false
zero
72,400,491
When first add recycler view item, it will not delete on the first delete button, but when recheck it after delete press, it will delete, why?
<p>I have an app where alarm items are added to my recycler view. They are added to a list and added to a room database. The recycler view updates from the list. When I first add say 3 alarms to the view, then I click on the delete checkbox, and then hit the delete button, it will not work. The view will reset, and the...
I have an app where alarm items are added to my recycler view. They are added to a list and added to a room database. The recycler view updates from the list. When I first add say 3 alarms to the view, then I click on the delete checkbox, and then hit the delete button, it will not work. The view will reset, and then I...
android|kotlin|android-room
-1
2022-05-27T04:31:49.873Z
2,022
5
4
4
37
2
973
142
3
5
true
false
false
false
false
true
negative
72,400,538
square icon with rounded corners in an Android app
<p>The following kotlin code is used to display a square icon in an Android app. But I would also like to set rounded corners to it; and this is where things go wrong. Any tip would be welcome as what to do to get the rounded corners working.</p> <pre><code> val apIcnID = resources.getIdentifier(&quot;appIcon&quot;,...
The following kotlin code is used to display a square icon in an Android app. But I would also like to set rounded corners to it; and this is where things go wrong. Any tip would be welcome as what to do to get the rounded corners working. [CODE]
android|kotlin|android-shapedrawable
1
2022-05-27T04:42:08.737Z
2,022
5
4
4
117
1
246
50
3
1
true
false
false
false
false
false
low
72,400,671
How to instrumentation test activity going into background (STOPPED) then foreground (RESUMED)?
<p>I'm trying to do an instrumentation test to test behaviour when the app has been backgrounded then brought back to the foreground.</p> <p>I thought it would be easy to use <code>ActivityScenario.moveToState()</code>, then it doesn't have an enum for the stopped state.</p> <p>I was then thinking to use <code>UiAutoma...
I'm trying to do an instrumentation test to test behaviour when the app has been backgrounded then brought back to the foreground. I thought it would be easy to use ActivityScenario.moveToState() , then it doesn't have an enum for the stopped state. I was then thinking to use UiAutomator to press the home button, then ...
android|android-activity|android-espresso|android-instrumentation
0
2022-05-27T05:04:47.910Z
2,022
5
5
4
19
0
535
95
4
0
false
true
false
false
false
false
zero
72,400,759
Ionic Execution failed for task ':app:checkDebugAarMetadata'
<p>Below error occurred while running command ionic cordova build android. But when I check the location mentioned in the error, the file exists still getting this error.</p> <blockquote> <p>Task :app:checkDebugAarMetadata FAILED</p> </blockquote> <p>FAILURE: Build failed with an exception.</p> <ul> <li>What went wrong...
Below error occurred while running command ionic cordova build android. But when I check the location mentioned in the error, the file exists still getting this error. Task :app:checkDebugAarMetadata FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:checkDebugAarMetadata'....
android|cordova|ionic-framework
0
2022-05-27T05:17:41.033Z
2,022
5
5
4
154
0
908
60
3
0
false
true
false
false
false
false
zero
72,400,781
Android api30 whatsapp package name issue
<p>I use this code to verify whatsapp is installed. it works on api below 30 ,but not 30.</p> <pre><code>private fun whatsappInstalledOrNot(uri: String): Boolean { val pm = requireContext().packageManager var app_installed = false app_installed = try { pm.getPackageInfo(uri, PackageM...
I use this code to verify whatsapp is installed. it works on api below 30 ,but not 30. [CODE] Also trying to find all packge names does not return whats app package name: [CODE] UPDATE: it is related to changes in android 11 . more info here should add query: [CODE]
android-studio|kotlin
0
2022-05-27T05:19:30.733Z
2,022
5
5
4
18
0
266
41
2
3
true
true
false
false
false
false
zero
72,400,833
Can I send Bluetooth advertising packets with Constant Tone Extension from a smartphone?
<p>Bluetooth 5.1 introduced the ability to include a &quot;Constant Tone Extension&quot; into an Advertising packet. On the receive side, a suitable device can perform Angle-of-Arrival estimation using this information. I have experimented with this technology using BLE EVK devices (Nordic).</p> <p>My question is can I...
Bluetooth 5.1 introduced the ability to include a &quot;Constant Tone Extension&quot; into an Advertising packet. On the receive side, a suitable device can perform Angle-of-Arrival estimation using this information. I have experimented with this technology using BLE EVK devices (Nordic). My question is can I use a 5.1...
bluetooth|android-bluetooth
0
2022-05-27T05:27:08.173Z
2,022
5
5
4
90
1
570
88
2
0
false
false
false
false
false
false
zero
72,400,890
Android Bamboo Build failed- Mapbox download problem
<p>I am running bamboo pipeline for android app. I am using Mapbox for maps. The build is success in local. The mapbox has changed the integration with username and password authentication and I have configured as per the documentation. In my bamboo build its not working with the following error.</p> <ul> <li>What went...
I am running bamboo pipeline for android app. I am using Mapbox for maps. The build is success in local. The mapbox has changed the integration with username and password authentication and I have configured as per the documentation. In my bamboo build its not working with the following error. What went wrong: build 25...
android|devops|mapbox|bamboo
0
2022-05-27T05:34:07.857Z
2,022
5
5
4
43
1
1,891
52
4
0
false
false
false
false
false
false
zero
72,401,029
Server issue: Cordova flie-transfer-plugin working on UAT server but not on Production server
<p>We have Cordova-based iOS and android apps that are running on production and UAT for the last year.</p> <ol> <li>By using these apps users can uploads images, audio, and videos to a server.</li> <li>The same applications working fine for the last year but from the last few days production server is not receiving th...
We have Cordova-based iOS and android apps that are running on production and UAT for the last year. By using these apps users can uploads images, audio, and videos to a server. The same applications working fine for the last year but from the last few days production server is not receiving the attachments. But all ot...
android|ios|cordova|ssl-certificate|file-transfer
0
2022-05-27T05:54:32.567Z
2,022
5
5
4
35
0
929
93
5
2
true
true
false
false
false
false
zero
72,401,094
"market://details?id=" + appPackageName opens the app not the playstore page
<p>i asked a question on how should i open the playstore page using an app link on my app. i got an answer to use &quot;market://details?id=&quot; + appPackageName to open the play store app but instead of opening the playstore page its re opening my app. whats the fix?</p> <pre><code>enter code here protected void Up...
i asked a question on how should i open the playstore page using an app link on my app. i got an answer to use &quot;market://details?id=&quot; + appPackageName to open the play store app but instead of opening the playstore page its re opening my app. whats the fix? [CODE]
java|android
0
2022-05-27T06:02:49.090Z
2,022
5
6
4
231
2
274
76
2
1
true
false
false
false
false
false
zero
72,401,168
How to start the circular recycler view from first item in center
<p>I am using Turn layout manager to make my recyclerview circular everything is working fine, except I want the list to start from the first item in the center and end at the last item at the center, I tried giving margin and padding but did not work</p> <p><a href="https://i.stack.imgur.com/jQC7K.png" rel="nofollow n...
I am using Turn layout manager to make my recyclerview circular everything is working fine, except I want the list to start from the first item in the center and end at the last item at the center, I tried giving margin and padding but did not work [CODE]
android|android-recyclerview|circular-dependency
1
2022-05-27T06:12:30.617Z
2,022
5
6
4
61
0
255
65
3
1
true
true
false
false
false
false
low
72,401,248
The Random class does not generate numbers in the range I specified
<pre><code> val panelC = binding.panelCount.text.toString() val landSl = binding.landSlope.text.toString() val landS = binding.landSize.text.toString() val pco = panelC.toInt() val lsl = landSl.toInt() val ls = landS.toInt() val air = (1.25) var verim = Math.roun...
[CODE] I'm trying to calculate the &quot;verim&quot; variable you see in the code. If this value is greater than 100, I say create a random number between 90 and 99. But for every value equal to and greater than 100 it gives me the value 94. It gives no other value.
android|kotlin|math|random
0
2022-05-27T06:21:47.220Z
2,022
5
6
4
24
0
266
67
4
1
true
true
false
false
false
false
zero
72,401,281
Problem displaying two fragments on top of each other - replace method in android
<p>Although I used the &quot;replace&quot; method on the piece, the second part of the piece runs on the first part It should be noted that my code is only in (main activity) and there is no code in the second fragment section (I mean the &quot;about&quot; fragment here) (there is a fragment class by default) so I sent...
Although I used the &quot;replace&quot; method on the piece, the second part of the piece runs on the first part It should be noted that my code is only in (main activity) and there is no code in the second fragment section (I mean the &quot;about&quot; fragment here) (there is a fragment class by default) so I sent it...
java|android
1
2022-05-27T06:25:12.420Z
2,022
5
6
4
28
0
559
81
2
2
true
true
false
false
false
false
low
72,401,325
how can I send the data to the next activity using bundle in android studio
<p><strong>This is Detail Activity... I am sending data from this activity to next activity using putExtra in intent</strong></p> <pre><code>public class Detail_Activity extends AppCompatActivity { ImageView ivImage2; TextView txtDescription, txtName, txtPrice; String key = &quot;&quot;; String imageUr...
This is Detail Activity... I am sending data from this activity to next activity using putExtra in intent [CODE] **This is the Update Activity... In this activity, data is not showing or don't show the received data, while the code is correct ** [CODE] There is no any error in the logcat.
android|android-intent|bundle|send
0
2022-05-27T06:29:26.173Z
2,022
5
6
4
78
3
289
75
4
2
true
false
false
false
false
false
zero
72,401,378
How can i show the badge count on app icon in android? ShortcutBadger does not work, I don't want to use widget
<p>I used ShortcutBadger library for android but it is not working in my case. I tested it on various devices. I googled about it and possible solution can be use of widget. Is there any other solution? Apps like facebook whatsapp showing the badge count and that is visible in my phone.<a href="https://i.stack.imgur.co...
I used ShortcutBadger library for android but it is not working in my case. I tested it on various devices. I googled about it and possible solution can be use of widget. Is there any other solution? Apps like facebook whatsapp showing the badge count and that is visible in my phone.
android|notifications|badge
3
2022-05-27T06:35:35.287Z
2,022
5
6
4
760
1
284
111
3
0
false
false
false
false
false
false
low
72,401,500
How does scaling happen from Flutter to Android app?
<p>Let's say I have a 100px x 100px button defined in Flutter. The size is hardcoded, and not a percentage of screen size. I then created an apk, viewed the app screen on my phone, took a screenshot and transferred it to my laptop to check the actual size of the button. It's 263px x 263px.</p> <p>My phone's screen size...
Let's say I have a 100px x 100px button defined in Flutter. The size is hardcoded, and not a percentage of screen size. I then created an apk, viewed the app screen on my phone, took a screenshot and transferred it to my laptop to check the actual size of the button. It's 263px x 263px. My phone's screen size is 1080px...
android|flutter|scale|resolution
1
2022-05-27T06:49:05.067Z
2,022
5
6
4
35
0
678
52
4
0
false
true
false
false
false
false
low
72,401,522
How to display one item in LazyRow in JetPack Compose?
<p>Like Viewpager or in RecyclerView we can achive this behavior of swiping only one item per swipe. In RecyclerView we achiveve this behavior by using SnapHelper. Any idea how to achieve this behavior in Compose?</p>
Like Viewpager or in RecyclerView we can achive this behavior of swiping only one item per swipe. In RecyclerView we achiveve this behavior by using SnapHelper. Any idea how to achieve this behavior in Compose?
android|kotlin|android-jetpack-compose
2
2022-05-27T06:51:36.577Z
2,022
5
6
4
231
0
210
54
3
0
false
true
false
false
false
false
low
72,401,570
android studio google map api no data in route class
<p>I refer to <a href="https://www.kodetr.com/menentukan-rute-terdekat-dari-lokasi-menggunakan-google-map/" rel="nofollow noreferrer">https://www.kodetr.com/menentukan-rute-terdekat-dari-lokasi-menggunakan-google-map/</a></p> <p>No data in My route class and JSON</p> <p>It only works show current loction</p> <p>In Maps...
I refer to https://www.kodetr.com/menentukan-rute-terdekat-dari-lokasi-menggunakan-google-map/ No data in My route class and JSON It only works show current loction In Mapsactivity, For(Route route:routes) loop is not work in onDirectionFinderSuccess and no data in routes Also in DirectionFinder.java, for (int i = 0; i...
android
1
2022-05-27T06:55:29.467Z
2,022
5
6
4
23
0
524
52
1
5
true
true
false
false
false
false
low
72,768,176
DownloadListener of webView ain't get called on Api21
<p>I'm trying to download some link that comes instead of url for webView.</p> <p>Here is my downloadListener:</p> <pre><code>webView.setDownloadListener((url1, userAgent, contentDisposition, mimeType, contentLength) -&gt; { String fileName = URLUtil.guessFileName(url1, contentDisposition, mimeType); DownloadM...
I'm trying to download some link that comes instead of url for webView. Here is my downloadListener: [CODE] It works fine for all devices,except in API21; even when I debug code, debugger does not come into this listener ! Here is my webSettings : [CODE] And my webViewClient is: [CODE] and guess what,these logs does no...
java|android|webview|android-webview
0
2022-06-27T07:09:41.460Z
2,022
6
7
0
13
0
358
53
4
3
true
true
false
false
false
false
zero
72,768,238
color in apk is diiferent from android emulator
<p>this is my android studio emulator screenshot</p> <p>and this is my phone same app apk format screenshot <img src="https://i.stack.imgur.com/2LG2R.png" alt="enter image description here" /> cardview colors is different in apk format also textview colors are also different</p> <p>this problem is happens in every app ...
this is my android studio emulator screenshot and this is my phone same app apk format screenshot cardview colors is different in apk format also textview colors are also different this problem is happens in every app made my me my xml file is [CODE] WAITING FOR AN EARLY RESPONSE THANK U
android|colors|textview|cardview
0
2022-06-27T07:16:02.530Z
2,022
6
7
0
24
1
288
47
4
1
true
false
false
false
false
false
zero
72,768,406
Connect to specific bluetooth device [Kotlin]
<p>I'm, quite new to this ble stuff, I found this piece of code that shows a list of ble devices. However I'm trying to make it so that it connects to a specific device. Any guesses on what kind of options I have?</p> <pre><code>private fun onBluetoothEnabled() { val bondedDevices = bluetoothAdapter?.bondedDevices...
I'm, quite new to this ble stuff, I found this piece of code that shows a list of ble devices. However I'm trying to make it so that it connects to a specific device. Any guesses on what kind of options I have? [CODE]
android|android-studio|kotlin|bluetooth
0
2022-06-27T07:29:10.073Z
2,022
6
7
0
123
0
217
45
4
1
true
true
false
false
false
false
zero
72,768,552
build.gradle on project level has a new format in Android. How to change my existing gradle setup to a new one?
<p>I noticed the build.gradle of project level has a new format:</p> <p><strong>FROM:</strong></p> <pre> // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.61' ext.retrofit_version = "2.6.0" ext...
I noticed the build.gradle of project level has a new format: FROM: [CODE] TO: [CODE] The settings.gradle has a different format as well. It looks like, it needs to move repositories, etc from build.gradle to here.
android|kotlin|gradle
1
2022-06-27T07:43:02.757Z
2,022
6
7
0
64
0
214
111
3
2
true
true
false
false
false
false
low
72,768,591
Image consuming much more memory on Android 24
<p>I have a quite big image that showing as a background in Splash screen. It's size on xxhdpi folder is 2.5 (Mb)</p> <p>Here is my Splash screen code for testing</p> <pre><code>class SplashActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceStat...
I have a quite big image that showing as a background in Splash screen. It's size on xxhdpi folder is 2.5 (Mb) Here is my Splash screen code for testing [CODE] When I run emulator Pixel 3a API 12 , everything seem fine, usedMemory is 4.8 MB [CODE] But when I run on the same emulator with lower API Pixel 3a API 24 , I g...
android|out-of-memory|android-image
0
2022-06-27T07:46:03.870Z
2,022
6
7
0
29
0
840
46
3
3
true
true
false
false
false
false
zero
72,768,681
Jetpack Compose: Bottom bar and Nested Navigation
<p>I have setup a Bottom Bar in project on Jetpack Compose app with 2 destinations. I have tried to follow the samples from Google.</p> <p>So for example it looks something like this:</p> <pre><code>@Composable fun ExampleBottomBar(navController: NavHostController) { val items = listOf( BottomNavigationGraph.Graph1...
I have setup a Bottom Bar in project on Jetpack Compose app with 2 destinations. I have tried to follow the samples from Google. So for example it looks something like this: [CODE] This all works fine and I'm able to navigate between the two destinations. However, When I navigate from Graph-1 Screen-2 to Graph-2 Screen...
android|android-jetpack-compose|android-architecture-navigation|android-navigation|jetpack-compose-navigation
3
2022-06-27T07:53:29.690Z
2,022
6
7
0
312
0
1,027
49
5
2
true
true
false
false
false
false
low
72,768,818
Facing SHA-1 Related problem in latest Andoroid Studio
<p><strong>[I tried various time for finding SHA-1 in searching related file or folder in gradle . but it shows only &quot;app&quot; which is not useful for me to find my desired task. How can I get the SHA-1 in android studio latest version?][1] [1]: https://i.stack.imgur.com/2RoAq.png</strong></p>
[I tried various time for finding SHA-1 in searching related file or folder in gradle . but it shows only &quot;app&quot; which is not useful for me to find my desired task. How can I get the SHA-1 in android studio latest version?][1] [1]: https://i.stack.imgur.com/2RoAq.png
firebase|android-studio
0
2022-06-27T08:05:22.843Z
2,022
6
8
0
32
1
276
54
2
0
false
false
false
false
false
false
zero
72,768,920
how to set CountdownTime in each position of the Arraylist in RecyclerView?
<p>how can I set CountDownTimer in each position of the image. I had tried many different way to set the time in each position but I can't, what I am trying to do is that when ever a new image is added in array the timer would set in the position of the new image and in remaining image countdowntimer would go on. I can...
how can I set CountDownTimer in each position of the image. I had tried many different way to set the time in each position but I can't, what I am trying to do is that when ever a new image is added in array the timer would set in the position of the new image and in remaining image countdowntimer would go on. I can't ...
java|arrays|android-studio|arraylist|countdowntimer
0
2022-06-27T08:12:51.263Z
2,022
6
8
0
26
0
445
75
5
1
true
true
false
false
false
false
zero
72,768,957
Tracking Mode - Height restrictions warnings are only notified when past them?
<p>I have a navigator that runs without a route (Tracking mode); when attaching a truck restrictions listener to it, it only shows the height restrictions after I pass it; the distance type shows as 'Passed' and the distance shows 0, is there a way to fix this or is this a bug?</p> <p>I'm expecting it to show height re...
I have a navigator that runs without a route (Tracking mode); when attaching a truck restrictions listener to it, it only shows the height restrictions after I pass it; the distance type shows as 'Passed' and the distance shows 0, is there a way to fix this or is this a bug? I'm expecting it to show height restrictions...
android|heremaps|heremaps-android-sdk|heremap-navigation
0
2022-06-27T08:15:38.517Z
2,022
6
8
0
32
0
533
78
4
0
false
true
false
false
false
false
zero
72,768,981
Android - How can I make my custom view fill the whole screen?
<p>I have a custom view named FloorView. I want this Floor view to be occupying the whole screen, and I need this dynamically (maybe match_parent). I don't want to hard code the size of the view.</p> <p>I've tried doing this in FloorView.kt</p> <pre><code> private val rectangle = RectF( ViewGroup.LayoutParam...
I have a custom view named FloorView. I want this Floor view to be occupying the whole screen, and I need this dynamically (maybe match_parent). I don't want to hard code the size of the view. I've tried doing this in FloorView.kt [CODE] I was thinking I could use the match_parent attribute, and match the ConstraintLay...
android|kotlin
0
2022-06-27T08:17:54.980Z
2,022
6
8
0
48
2
568
62
2
2
true
false
false
false
false
false
zero
72,769,046
Empty response body when parsing API with Retrofit and Gson
<p>I used Retrofit and Gson on this project. I'm trying to login where I should get a response of the user id, faunadb_token, and also data list filled with user data.</p> <pre><code>&quot;body&quot;: &quot;{\n \&quot;content\&quot;: {\n \&quot;id\&quot;: \&quot;328803596056396364\&quot;,\n \&quot;faun...
I used Retrofit and Gson on this project. I'm trying to login where I should get a response of the user id, faunadb_token, and also data list filled with user data. [CODE] However, when I'm logging in, I got a statusCode of 200, yet my response.body is all null. For testing purposes, I create a textview to see what the...
android|json|kotlin|gson|retrofit
1
2022-06-27T08:23:38.617Z
2,022
6
8
0
130
1
917
59
5
9
true
false
false
false
false
false
low
72,769,155
How to create following types of layout in android
<p>I have tried using ProgressBar or SeekBar but how to add left cut on one side and right side also</p> <p><a href="https://i.stack.imgur.com/9zmX6.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9zmX6.gif" alt="enter image description here" /></a></p>
I have tried using ProgressBar or SeekBar but how to add left cut on one side and right side also
android|xml|kotlin|android-layout|android-design-library
0
2022-06-27T08:33:17.050Z
2,022
6
8
0
36
1
97
50
5
0
false
false
false
false
false
false
zero
72,769,174
Fetch data directly from php to flutter
<p>I'm currently working on a <strong>Flutter</strong> project with <strong>php</strong> <strong>mysql</strong> as the backend. Is there anyway that I could possibly fetch data directly from php file? I'm so clueless.</p> <p>For example, how do I fetch <strong>$dept</strong> from php file below and display it in a widg...
I'm currently working on a Flutter project with php mysql as the backend. Is there anyway that I could possibly fetch data directly from php file? I'm so clueless. For example, how do I fetch $dept from php file below and display it in a widget or store the data in Flutter: [CODE] Future _saveCheckIn() [CODE] Thanks in...
php|android|mysql|json|flutter
0
2022-06-27T08:34:47.923Z
2,022
6
8
0
187
1
329
39
5
2
true
false
false
false
false
false
zero
72,769,203
Not able to start service when app is in background
<p>I want to start service to play mp3 url when push notification is received but when app in background or idle service doesn't start due to android restriction policy here is my code so doing with notification. I am also using data payload its working fine app is in foreground but the problem is coming when app goes ...
I want to start service to play mp3 url when push notification is received but when app in background or idle service doesn't start due to android restriction policy here is my code so doing with notification. I am also using data payload its working fine app is in foreground but the problem is coming when app goes to ...
android|service|notifications
0
2022-06-27T08:37:20.637Z
2,022
6
8
0
24
0
391
51
3
1
true
true
false
false
false
false
zero
72,769,305
UTC formatted string to UTC Date Object using SimpleDateFormat
<p>I have a <strong>UTC</strong> formatted DateTime <strong>String</strong></p> <p>and need this String to be converted to DATE Object without any Format change.</p> <p>Currently, when I try to convert it to a date Object it is returned as GMT formatted Date object as depicted in the image attached below.</p> <p>I have...
I have a UTC formatted DateTime String and need this String to be converted to DATE Object without any Format change. Currently, when I try to convert it to a date Object it is returned as GMT formatted Date object as depicted in the image attached below. I have a limitation of using SimpleDateFormat as I have to suppo...
java|android|date|utc|android-date
0
2022-06-27T08:46:22.587Z
2,022
6
8
0
53
1
405
62
5
1
true
false
false
false
false
false
zero
72,769,333
ModuleNotFoundError: No module named 'requests' in termux
<p>I am facing ModuleNotFoundError: No module named 'requests' issue on Android termux terminal stimulator app.</p> <p>The same code work without any additional configuration or installation on ubuntu except python.</p>
I am facing ModuleNotFoundError: No module named 'requests' issue on Android termux terminal stimulator app. The same code work without any additional configuration or installation on ubuntu except python.
python|android|import|termux
0
2022-06-27T08:49:12.993Z
2,022
6
8
0
159
0
205
57
4
0
false
true
false
false
false
false
zero
72,769,342
How to use Lambda function in Android
<p>In my application I have <code>RecyclerView</code> adapter and I want when <strong>click</strong> on Items, send some data to parent.<br> I want send <strong>model</strong> and <strong>string</strong>.<br> I write below codes, but after use show me error and I can't use this!<br></p> <p><strong>Lambda function in ad...
In my application I have RecyclerView adapter and I want when click on Items, send some data to parent. I want send model and string . I write below codes, but after use show me error and I can't use this! Lambda function in adapter : [CODE] Use this function in Activity : [CODE] Error message Image : How can I fix it ...
android|kotlin|lambda
0
2022-06-27T08:50:01.553Z
2,022
6
8
0
71
1
343
37
3
2
true
false
false
false
false
false
zero
72,769,375
Adroid apk has assigned values to %d. Changing it to 20%d only outputs 20 before the assigned value. how can I add 20 to %d so output is sum of the 2
<p>For example Coins %d</p> <p>Jus to change the number to be displayed in app such %d + 20 = 30 when %d is 10. And not 20%d which just gives out 2010 when %d is 10</p>
For example Coins %d Jus to change the number to be displayed in app such %d + 20 = 30 when %d is 10. And not 20%d which just gives out 2010 when %d is 10
android|apk|android-resources|arscnview
0
2022-06-27T08:52:41.150Z
2,022
6
8
0
20
0
154
149
4
0
false
true
false
false
false
false
zero
72,769,444
How can I pass variable of "phoneNumberState.value" from ScreenA to ScreenB in jetpack compose?
<p>I have one variable in screen A as val <code>phoneNumberState = remember { mutableStateOf(&quot;&quot;) }</code> and I want to pass this argument to screen B, so I try to do it on internet, there is some example, I confused how to apply, is there easy way for it?</p> <p><strong>navigation:</strong></p> <p>@OptIn(E...
I have one variable in screen A as val phoneNumberState = remember { mutableStateOf(&quot;&quot;) } and I want to pass this argument to screen B, so I try to do it on internet, there is some example, I confused how to apply, is there easy way for it? navigation: @OptIn(ExperimentalPagerApi::class) @Composable fun Navig...
android|kotlin|android-jetpack-compose
0
2022-06-27T08:58:15.327Z
2,022
6
8
0
54
2
394
95
3
3
true
false
false
false
false
false
zero
72,769,474
How to scroll Jetpack Compose screen that overflows its contents?
<p>I have an Add Shopping List item Jetpack Compose screen which contains several <code>TextField</code> inputs and an image container at the bottom. The screen overflows at the bottom and is cut off. How can I scroll the screen?</p>
I have an Add Shopping List item Jetpack Compose screen which contains several TextField inputs and an image container at the bottom. The screen overflows at the bottom and is cut off. How can I scroll the screen?
android|android-jetpack-compose|android-orientation|android-scroll
1
2022-06-27T09:00:48.950Z
2,022
6
9
0
542
1
213
65
4
0
false
false
false
false
false
false
low
72,769,523
How to customize the BarcodeDetector in Android
<p>I'm trying to implement a customization of the barcode reader, the library that i'm using is the following:</p> <pre><code>implementation 'com.google.android.gms:play-services-vision:20.1.3' </code></pre> <p>Currently i'm able to detect every single barcode and read the value (see the image below)</p> <p><a href="ht...
I'm trying to implement a customization of the barcode reader, the library that i'm using is the following: [CODE] Currently i'm able to detect every single barcode and read the value (see the image below) Now I should implement a kind of &quot;filter&quot; that show / highlight only a particular barcode (e.g. 3908181)...
java|android|barcode-scanner|vision
0
2022-06-27T09:04:51.883Z
2,022
6
9
0
70
0
568
47
4
2
true
true
false
false
false
false
zero
72,769,647
RxAndroidBle can't disconnect
<p>I encountered a situation When I connect 2 devices at once When the connection is successful, the notification subcribe is listened to When one is off and the other is in use The program keeps trying to connect the two devices every 5 seconds but because the connection is not disconnected so it has to wait until the...
I encountered a situation When I connect 2 devices at once When the connection is successful, the notification subcribe is listened to When one is off and the other is in use The program keeps trying to connect the two devices every 5 seconds but because the connection is not disconnected so it has to wait until the on...
bluetooth-lowenergy|rx-java|rx-java2|rxandroidble
0
2022-06-27T09:15:13.720Z
2,022
6
9
0
82
0
1,753
29
4
1
true
true
false
false
false
false
zero
72,769,662
How to multipart post request this format in flutter?
<pre><code>var response = await http.post(Uri.parse(url), body: { &quot;name&quot;: &quot;name test&quot;, &quot;about&quot;: about, &quot;education[institute][0]&quot;: &quot;ins one&quot;, &quot;education[institute][1]&quot;: &quot;ins two&quot;, &quot;education[degree][0...
[CODE]
android|flutter|dart|mobile
0
2022-06-27T09:16:09.687Z
2,022
6
9
0
28
2
6
53
4
1
true
false
false
false
false
false
zero
72,769,677
Avoid initial scrolling when using Jetpack Compose ScrollableTabRow
<p>I'm using a <code>ScrollableTabRow</code> to display some 60 Tabs. At the very beginning, the indicator should start &quot;in the middle&quot;. However, this results in an unwanted scrolling animation when the composable is drawn - see video. Am i doing something wrong or is this component buggy?</p> <p><a href="htt...
I'm using a ScrollableTabRow to display some 60 Tabs. At the very beginning, the indicator should start &quot;in the middle&quot;. However, this results in an unwanted scrolling animation when the composable is drawn - see video. Am i doing something wrong or is this component buggy? [CODE] But why would you like to do...
android|android-jetpack-compose|android-tabs
0
2022-06-27T09:17:37.170Z
2,022
6
9
0
119
1
560
67
3
1
true
false
false
false
false
false
zero
72,769,698
How to change background color in a text button in flutter
<p>How should I change the background color of the text and icon at the same time in a text button in flutter???? I used flat button before but the &quot;vs code &quot; editor said its deprecated.</p>
How should I change the background color of the text and icon at the same time in a text button in flutter???? I used flat button before but the &quot;vs code &quot; editor said its deprecated.
android|flutter
0
2022-06-27T09:19:22.843Z
2,022
6
9
0
50
2
193
58
2
0
false
false
false
false
false
false
zero
72,769,705
Trying to create Nine Patch background programmatically
<p>In my app I am trying to create NinePatch background for TextView programmatically (because I need only programmatically). Here is my function that create NinePatch drawable from Bitmap:</p> <pre><code>public static NinePatchDrawable createNinePatchDrawable(Resources res, Bitmap bitmap, int top, int left, int bottom...
In my app I am trying to create NinePatch background for TextView programmatically (because I need only programmatically). Here is my function that create NinePatch drawable from Bitmap: [CODE] But when I run app it looks bad: If you change the parameters of the function: top, left, bottom and right nothing changes. Pl...
java|android|nine-patch
0
2022-06-27T09:19:58.167Z
2,022
6
9
0
24
0
332
55
3
1
true
true
false
false
false
false
zero
72,769,877
Sending an intent in the Android emulator
<p>I have a flutter app. I've declared an intent filter in AndroidManifest.xml like this:</p> <pre><code>&lt;intent-filter android:autoVerify=&quot;true&quot;&gt; &lt;action android:name=&quot;android.intent.action.VIEW&quot;/&gt; &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt; &lt;cat...
I have a flutter app. I've declared an intent filter in AndroidManifest.xml like this: [CODE] (I'm not using test.example.com but a domain I actually control.) I've then set up a web server which serves links like https://test.example.com/?token=xyz into HTTP 301 redirects to test://test.example.com/?token=xyz . The id...
android|android-intent|android-emulator
0
2022-06-27T09:32:18.150Z
2,022
6
9
0
36
0
845
41
3
2
true
true
false
false
false
false
zero
72,769,991
How to extract the buffer data while recording videos in CameraX Android
<p>I am just facing a small issue while recording videos in <strong>CameraX</strong> using &quot;Video Capture&quot;, I don't want to directly write the data into a file, instead, I wish to extract the buffer data, do some actions on it and then write that into a file.</p> <p>How do I extract the buffer data of the vid...
I am just facing a small issue while recording videos in CameraX using &quot;Video Capture&quot;, I don't want to directly write the data into a file, instead, I wish to extract the buffer data, do some actions on it and then write that into a file. How do I extract the buffer data of the video? I would be obliged if s...
android|kotlin|android-camerax
1
2022-06-27T09:42:04.493Z
2,022
6
9
0
40
0
350
72
3
0
false
true
false
false
false
false
low
72,770,156
Why is minimum exposure value different at the same model?
<p>When I checked min/max value via SENSOR_INFO_EXPOSURE_TIME_RANGE on the two or more device, the minimum value of each device are different.</p> <blockquote> <blockquote> <p>CameraCharacteristics.SENSOR_INFO_EXPOSURE_TIME_RANGE</p> </blockquote> </blockquote> <p>I don’ understand because all devices have been install...
When I checked min/max value via SENSOR_INFO_EXPOSURE_TIME_RANGE on the two or more device, the minimum value of each device are different. CameraCharacteristics.SENSOR_INFO_EXPOSURE_TIME_RANGE I don’ understand because all devices have been installing same sensor module. Are there other factors that affect to exposure...
android|time|range|sensors|exposure
0
2022-06-27T09:55:59.560Z
2,022
6
9
0
10
0
360
58
5
0
false
true
false
false
false
false
zero
72,770,434
Flutter app text turning to white when I set usematerial3: true in MaterialApp
<p>I got excited when I was knowing that Google have introduced Material 3 for flutter apps. This means we can design Flutter Apps with Material 3 design, but when I code a UI for testing Material 3, whole texts and Icons colour share the same colour as the background colour in my App which means they're all white, exa...
I got excited when I was knowing that Google have introduced Material 3 for flutter apps. This means we can design Flutter Apps with Material 3 design, but when I code a UI for testing Material 3, whole texts and Icons colour share the same colour as the background colour in my App which means they're all white, exampl...
android|flutter|dart|material-ui|material-design
1
2022-06-27T10:16:32.457Z
2,022
6
10
0
72
1
621
78
5
3
true
false
false
false
false
false
low
72,770,436
What is "NYC" represented in Android document?
<p>On this <a href="https://developer.android.com/reference/android/content/Context#getSystemService%28java.lang.String%29" rel="nofollow noreferrer">Android developer document</a>, there is a statement for WIFI_SERVICE definition.</p> <blockquote> <p>A WifiManager for management of Wi-Fi connectivity. On releases befo...
On this Android developer document , there is a statement for WIFI_SERVICE definition. A WifiManager for management of Wi-Fi connectivity. On releases before NYC, it should only be obtained from an application context, and not from any other derived context to avoid memory leaks within the calling process. Try to under...
android
1
2022-06-27T10:16:53.197Z
2,022
6
10
0
27
1
387
46
1
0
false
false
false
false
false
false
low
72,770,492
Connection to database failing for my mobile app on Android Studio
<p>I am currently coding a mobile App and I need to gather some data from a database and display it on my mobile app. I installed MYSQL JDBC Connector and I set up the database with PhpMyAdmin. I have put the jar file (of the jdbc connector) in the libs directory and implemented it in the gradle scripts. I can connect ...
I am currently coding a mobile App and I need to gather some data from a database and display it on my mobile app. I installed MYSQL JDBC Connector and I set up the database with PhpMyAdmin. I have put the jar file (of the jdbc connector) in the libs directory and implemented it in the gradle scripts. I can connect to ...
java|mysql|database|android-studio
0
2022-06-27T10:21:24.057Z
2,022
6
10
0
26
1
596
66
4
1
true
false
false
false
false
false
zero
72,770,591
How to copy a OpenGL External Texture (GL_TEXTURE_EXTERNAL_OES) to a Framebuffer
<p>I need to copy the texture to a framebuffer and then read it using GlReadPixels and save the output to a buffer. The main goal is to dump the input frames of exoplayer into a file. My current code gives me glx506 error.</p> <pre><code>int[] frame = new int[1]; int[] mainFrame = new int[1]; glGetIntegerv(GLES32.GL_FR...
I need to copy the texture to a framebuffer and then read it using GlReadPixels and save the output to a buffer. The main goal is to dump the input frames of exoplayer into a file. My current code gives me glx506 error. [CODE]
java|android|opengl-es
0
2022-06-27T10:29:42.530Z
2,022
6
10
0
39
0
226
80
3
1
true
true
false
false
false
false
zero
72,770,726
Can't add Firebase to Android project
<p>I can't add the required dependencies to build.gradle because it doesn't look right</p> <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'com.android.application' version '7.2.1' apply false id 'com.android.library' version '7.2.1' ap...
I can't add the required dependencies to build.gradle because it doesn't look right [CODE] this is my file but to add irebase dependencies you need a file like this [CODE] why does my build.gradle look wrong?
android|firebase|android-studio|gradle|build.gradle
0
2022-06-27T10:38:52.517Z
2,022
6
10
0
93
1
208
37
5
2
true
false
false
false
false
false
zero
72,770,793
ERROR:AAPT: error: resource style/Theme.AppCompat.light.NoActionBar
<p>I am encountering a problem on my project build.</p> <p>I am using the techno flutter. I am using Android-Studio on Windows 11.</p> <p>The error is:</p> <pre><code>* What went wrong: Execution failed for task ':app:processDebugResources'. &gt; A failure occurred while executing com.android.build.gradle.internal.res....
I am encountering a problem on my project build. I am using the techno flutter. I am using Android-Studio on Windows 11. The error is: [CODE] I have already cleared my gradle cache, used flutter clean , File > Invalidate caches > Clear file system chache and Local History > Invalidate and restart. Could you please help...
flutter|android-studio
0
2022-06-27T10:43:27.197Z
2,022
6
10
0
282
1
343
67
2
1
true
false
false
false
false
false
zero
72,770,878
How to include floating Action button to mapActivity java Android Studio
<p>i would like to insert floating action button to a map activity so that i can click to view menu here is my floatingButton prepared code :</p> <pre><code>&lt;com.google.android.material.floatingactionbutton.FloatingActionButton android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot...
i would like to insert floating action button to a map activity so that i can click to view menu here is my floatingButton prepared code : [CODE] here below my activity_map.xml: [CODE] i have put only one Floating Button to thr bottom of the card every thing is ok untill i try to run the app it says: android resources ...
java|android|floating-action-button
0
2022-06-27T10:49:56.047Z
2,022
6
10
0
32
1
354
72
3
2
true
false
false
false
false
false
zero
72,770,900
Floating Action Bar (not button) in Android
<p>I am working on <code>Floating Action Bar</code> on top of keyboard if user clicks on one of the <code>EditText</code>. I couldn't start on it and that's why not have any code to present.</p> <p>I am confused on how to approach this problem. I am considering to use <code>bottom sheet</code> but I am still not gettin...
I am working on Floating Action Bar on top of keyboard if user clicks on one of the EditText . I couldn't start on it and that's why not have any code to present. I am confused on how to approach this problem. I am considering to use bottom sheet but I am still not getting confidence on it (I think android should have ...
android|kotlin|floating-action-button
0
2022-06-27T10:52:11.883Z
2,022
6
10
0
22
1
583
43
3
0
false
false
false
false
false
false
zero
72,770,913
How to set onItemTouchlistener in recyclerview in kotlin
<p>I want to perform some action in <code>onTouch</code> event of <code>recyclerview</code> item, in <code>kotlin</code>, but i am not able to do that. Please help.</p> <p>In java we can call <code>recyclerview.onItemTouchListener</code> in activity, so that we can perform tasks inside activity itself.</p> <p>Is there ...
I want to perform some action in onTouch event of recyclerview item, in kotlin , but i am not able to do that. Please help. In java we can call recyclerview.onItemTouchListener in activity, so that we can perform tasks inside activity itself. Is there same option for kotlin?
android|kotlin|android-recyclerview
-1
2022-06-27T10:53:17.883Z
2,022
6
10
0
42
1
275
56
3
0
false
false
false
false
false
true
negative
72,770,963
SurfaceViewHolder.setFixedSize(width,height) not setting size to video saved in gallery
<p>I want to set the video aspect ratio to 1:1 capturing during android media recorder. Im using holder.setFixedSize in onSurfaceChanged method</p> <pre><code> override fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int) { // If your preview can change or rotate, take care of those events here. ...
I want to set the video aspect ratio to 1:1 capturing during android media recorder. Im using holder.setFixedSize in onSurfaceChanged method [CODE] But it is only resizing the preview size. When I save the video in gallery, it is in full screen size. Also the setFixedSize method stretched the video
android|kotlin|android-camera|mediarecorder|video-recording
2
2022-06-27T10:57:10.723Z
2,022
6
10
0
20
0
299
87
5
1
true
true
false
false
false
false
low
72,771,042
I use devexpress libraries. I own TabPage. How can I from one tab launch another tab in android xamarin mvvm
<p>&lt;dxn:TabPage... &lt;dxn:TabPageItem HeaderFontSize=&quot;8&quot; SelectedHeaderTextColor=&quot;#1EE555&quot; SelectedHeaderBackgroundColor=&quot;Transparent&quot; HeaderFontAttributes=&quot;Bold&quot;&gt; </p> <pre><code> &lt;/NavigationPage&gt; &lt;/dxn:TabPageItem&gt; &lt;dxn:TabPageItem HeaderFontSize=&...
<dxn:TabPage... <dxn:TabPageItem HeaderFontSize=&quot;8&quot; SelectedHeaderTextColor=&quot;#1EE555&quot; SelectedHeaderBackgroundColor=&quot;Transparent&quot; HeaderFontAttributes=&quot;Bold&quot;> [CODE] </dxn:TabPage>
android|xamarin|devexpress
0
2022-06-27T11:03:31.517Z
2,022
6
11
0
37
0
220
108
3
1
true
true
false
false
false
false
zero
72,771,109
Firebase OTP working fine on debug apk but not release apk
<p>I am using flutter and firebase OTP. The SMS is received while running the debug APK of my app. However, I am getting this message while running the release APK using the command <code>flutter run --release</code>.</p> <p>This is the returned message:</p> <blockquote> <p>This app is not authorized to use Firebase Au...
I am using flutter and firebase OTP. The SMS is received while running the debug APK of my app. However, I am getting this message while running the release APK using the command flutter run --release . This is the returned message: This app is not authorized to use Firebase Authentication. Please verify that the corre...
android|flutter|firebase|firebase-authentication|one-time-password
2
2022-06-27T11:09:55.533Z
2,022
6
11
0
171
2
1,406
58
5
0
false
false
false
false
false
false
low
72,771,444
Does the Admob network punish me in any way if I have a low "show rate"?
<p>I use the strategy of preloading interstitials and rewarded videos at application startup, and this means that the user doesn't have to wait for an ad to load when it's time to display it. However, this also causes many ads that were requested to the admob network to not be displayed (because it was not the user's w...
I use the strategy of preloading interstitials and rewarded videos at application startup, and this means that the user doesn't have to wait for an ad to load when it's time to display it. However, this also causes many ads that were requested to the admob network to not be displayed (because it was not the user's will...
android|ios|admob
1
2022-06-27T11:36:42.737Z
2,022
6
11
0
46
1
531
72
3
0
false
false
false
false
false
false
low
72,771,446
Android resources.getColor() freezes code
<p>I need to add views to <code>LinearLayout</code> dynamically on POST request finished inside a <code>fragment</code>.</p> <p>Here is my function that creates and setups the view and returns it, then I add it to the <code>chatsRoot</code> via <code>addView()</code> method. No exceptions, but views are not added.</p> ...
I need to add views to LinearLayout dynamically on POST request finished inside a fragment . Here is my function that creates and setups the view and returns it, then I add it to the chatsRoot via addView() method. No exceptions, but views are not added. After some debug I noticed, that in logcat there is only one mess...
android|android-layout
0
2022-06-27T11:36:44.173Z
2,022
6
11
0
32
2
913
41
2
3
true
false
false
false
false
false
zero
72,771,503
Android: Custom background - rectangle with a circle cutting in the middle
<p>I'm trying to implement this view</p> <p><a href="https://i.stack.imgur.com/bpJmn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bpJmn.png" alt="enter image description here" /></a></p> <p>As you can see it had a circle cutting to the left and right of the rectangle</p> <p>I tried to use this cod...
I'm trying to implement this view As you can see it had a circle cutting to the left and right of the rectangle I tried to use this code [CODE] but the result was not showing the cutting circle to the left and right Is there any way to implement these cutting without loosing the shadow effect of the cart
android|xml|kotlin|drawable
0
2022-06-27T11:41:27.687Z
2,022
6
11
0
33
0
305
74
4
1
true
true
false
false
false
false
zero
72,771,551
Prevent screen from locking but allow dimming
<p>I'm trying to get my Android app to keep the screen unlocked as long as the app is running. I easily solved this problem with setting this flag - <code>WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON</code> - in each activity.</p> <p>But now I'd also like to allow the screen to dim and stay dimmed until a touch even...
I'm trying to get my Android app to keep the screen unlocked as long as the app is running. I easily solved this problem with setting this flag - WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON - in each activity. But now I'd also like to allow the screen to dim and stay dimmed until a touch event is registered. I tried...
android
0
2022-06-27T11:45:39.670Z
2,022
6
11
0
23
0
682
45
1
0
false
true
false
false
false
false
zero
72,771,653
How to test private val callback in kotlin using mockito and robolectic?
<p><strong>I have a private val callback, using reflection I can take the value but how to access and test the override functions and inside the functions handler is present. So here I want to test the override and handler. Using mockito and roboelctric.</strong></p> <pre><code>private val mMediaControllerCallback: Med...
I have a private val callback, using reflection I can take the value but how to access and test the override functions and inside the functions handler is present. So here I want to test the override and handler. Using mockito and roboelctric. [CODE]
android|kotlin|junit|mockito|robolectric
0
2022-06-27T11:53:38.657Z
2,022
6
11
0
32
0
250
72
5
1
true
true
false
false
false
false
zero
72,771,681
How to write test cases for class using netrypoint
<p>I am evaluating if I can use hilt in my app. One blocker is to understand how to write test cases for class that is using entry points. I am not able to find anything related to it. Below is an example of a class method that I would like to unit test but I am not able to understand how to do it. Please help.</p> <pr...
I am evaluating if I can use hilt in my app. One blocker is to understand how to write test cases for class that is using entry points. I am not able to find anything related to it. Below is an example of a class method that I would like to unit test but I am not able to understand how to do it. Please help. [CODE]
android|unit-testing|dagger|dagger-hilt
0
2022-06-27T11:56:20.320Z
2,022
6
11
0
13
0
316
50
4
1
true
true
false
false
false
false
zero
72,771,734
TextWatcher in fragment
<p>I've got this java file:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>package com.example.tabbedapp; import android.os.Bundle; import android.text.Editable; import a...
I've got this java file: [CODE] And ofter debug I get this error: Attempt to invoke virtual method 'void android.widget.TextView.addTextChangedListener(android.text.TextWatcher)' on a null object reference . I'm working on a fragment so I can't use findViewById(). Can anyone help? I just need to assign the view to a po...
java|android|macos
-1
2022-06-27T12:00:34.967Z
2,022
6
12
0
22
1
491
23
3
1
true
false
false
false
false
true
negative
72,771,912
How to get data in Retrofit from nested JSON array using view binding android
<p>Hi Every one will you please help me to fatch data from nested JSON array in recycler view using retrofit from starting to end thankyou</p>
Hi Every one will you please help me to fatch data from nested JSON array in recycler view using retrofit from starting to end thankyou
android|arrays|json|nested|retrofit
2
2022-06-27T12:13:18.417Z
2,022
6
12
0
76
1
135
77
5
0
false
false
false
false
false
false
low
72,771,920
Retrofit RxJava doesn't make multiple calls (Android)
<p>I am trying to make repetitive calls with a timeout of 5 seconds with Retrofit2 on Android. The interface:</p> <pre><code>import com.google.gson.GsonBuilder import io.reactivex.Observable import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2...
I am trying to make repetitive calls with a timeout of 5 seconds with Retrofit2 on Android. The interface: [CODE] Search Repository [CODE] Function which I call in my Activity: [CODE] The thing is, only one call is made after function initialization. How can I fix this so that multiple calls were made? Thank you!
android|get|retrofit2|rx-java|okhttp
1
2022-06-27T12:13:46.180Z
2,022
6
12
0
26
0
314
53
5
3
true
true
false
false
false
false
low
72,771,923
When I upgrade my React native project to version 0.69.0 I got this type of error
<p>After upgrading my react native project to version 0.69.0, I am getting this error</p> <p><a href="https://i.stack.imgur.com/FhN6m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FhN6m.png" alt="enter image description here" /></a></p> <p><a href="https://i.stack.imgur.com/y5W2f.png" rel="nofollow...
After upgrading my react native project to version 0.69.0, I am getting this error
android|react-native|patch|react-native-reanimated
2
2022-06-27T12:13:49.033Z
2,022
6
12
0
1,236
2
82
81
4
0
false
false
false
false
false
false
low
72,772,029
Unresolved reference: Manifest from custom Permission
<p>I have an app with a broadcast receiver to receive input from an external sdk, and in that broadcast receiver i send intent to an other broadcast receiver in my app. I have defined in the manifest</p> <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:tools=&quot;h...
I have an app with a broadcast receiver to receive input from an external sdk, and in that broadcast receiver i send intent to an other broadcast receiver in my app. I have defined in the manifest [CODE] in the broadcast receiver for the external sdk onReceive method i have defined [CODE] to send intent to the fragment...
android|broadcastreceiver
1
2022-06-27T12:21:22.807Z
2,022
6
12
0
33
0
415
53
2
4
true
true
false
false
false
false
low
72,772,086
The "Tools" file is missing in the sdk file, what do I do?
<p>So, I wanted to install android studios to test my unity application on my phone, but when I tried opening the Android/sdk file the tools file was missing.</p> <p>I tried reinstalling android studios but that didn't work either, does anyone have any suggestions for what I can do?</p>
So, I wanted to install android studios to test my unity application on my phone, but when I tried opening the Android/sdk file the tools file was missing. I tried reinstalling android studios but that didn't work either, does anyone have any suggestions for what I can do?
android
2
2022-06-27T12:26:11.100Z
2,022
6
12
0
11
0
273
58
1
0
false
true
false
false
false
false
low