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,935,147
fontWeight Chinese not working in Jetpack Compose
<p><code>fontWeight</code> doesn't work in Chinese, English works.</p> <p>Is there any good solution please?</p> <pre class="lang-kotlin prettyprint-override"><code> Text(text = &quot;Hello&quot;, fontWeight = FontWeight(100)) // Work Text(text = &quot;你好&quot;, fontWeight = FontWeight(100)) // Not working </...
fontWeight doesn't work in Chinese, English works. Is there any good solution please? [CODE]
android-jetpack-compose
0
2022-07-11T07:37:22.653Z
2,022
7
7
0
22
0
92
49
1
1
true
true
false
false
false
false
zero
72,935,172
focusOutFront() not working on VerticalGridSupportFragment but working on RowSupportFragment
<p>I am working on Android TV using Leanback. Here, I have a list of channel data and their EPG. I have populated the channels list on the VerticalGridSupportFragment. And I also have a date filter button to filter the EPG list as per date. Here, is the design of the channel list and EPG with the filter button.</p> <p>...
I am working on Android TV using Leanback. Here, I have a list of channel data and their EPG. I have populated the channels list on the VerticalGridSupportFragment. And I also have a date filter button to filter the EPG list as per date. Here, is the design of the channel list and EPG with the filter button. Now, the p...
android|kotlin|android-tv|leanback
0
2022-07-11T07:40:31.870Z
2,022
7
7
0
76
1
950
92
4
2
true
false
false
false
false
false
zero
72,935,293
How to generate full Podfile on Flutter M1
<p>After I created the flutter project, but in the ios folder it was missing the Podfile, I created the Podfile manually using the <code>pod init</code> command, but it seems that this podfile is missing: It look like as below:</p> <p><a href="https://i.stack.imgur.com/HQhMc.png" rel="nofollow noreferrer"><img src="htt...
After I created the flutter project, but in the ios folder it was missing the Podfile, I created the Podfile manually using the pod init command, but it seems that this podfile is missing: It look like as below: I found some flutter projects on github and accessed the ios folder and found that their podfile was complet...
android|ios|flutter|dart|podfile
0
2022-07-11T07:51:58.640Z
2,022
7
7
0
29
0
424
42
5
0
false
true
false
false
false
false
zero
72,935,307
How to display dialog on any screen (fragment or activity) in android
<p>User is in Fragment/Activity &quot;A&quot; <br> In the onCreate() of screen &quot;A&quot; i fire some network call on a background thread. User navigates to some other Fragment/Activity, now when i get the response from the network i need to show the dialog no matter wherever the user is in the app.</p> <p><br><br><...
User is in Fragment/Activity &quot;A&quot; In the onCreate() of screen &quot;A&quot; i fire some network call on a background thread. User navigates to some other Fragment/Activity, now when i get the response from the network i need to show the dialog no matter wherever the user is in the app. How can i achieve this b...
java|android|kotlin|android-dialog
0
2022-07-11T07:52:51.263Z
2,022
7
7
0
67
3
349
69
4
0
false
false
false
false
false
false
zero
72,935,373
React Native Linking is not working properly?
<p>I want to open the app if it is installed, if not then I have to redirect to google playstore(if it is android) likewise to ios. But the google playstore is loading and not showing anything? Example code :</p> <p>How should I identify the app url in mobile appstore or playstore?</p>
I want to open the app if it is installed, if not then I have to redirect to google playstore(if it is android) likewise to ios. But the google playstore is loading and not showing anything? Example code : How should I identify the app url in mobile appstore or playstore?
android|reactjs|react-native
0
2022-07-11T07:59:21.313Z
2,022
7
7
0
77
0
272
45
3
0
false
true
false
false
false
false
zero
72,935,493
Android emulator not showing the running app
<p>I am building and android application using Nativescript. After about a month of not touching the project i am trying now to run it again but facing a big problem - although from the visual code everything seems fine (i run command &quot;tns run android&quot; and everything looks good) i cant see the actual app on t...
I am building and android application using Nativescript. After about a month of not touching the project i am trying now to run it again but facing a big problem - although from the visual code everything seems fine (i run command &quot;tns run android&quot; and everything looks good) i cant see the actual app on the ...
android|angular|android-studio|visual-studio-code|nativescript
-1
2022-07-11T08:09:32.707Z
2,022
7
8
0
54
1
526
44
5
0
false
false
false
false
false
true
negative
72,935,536
Android Management api - Is it possible to get device id/name in android app? ( Device specific QR is not possible, Generating Policy specific
<p>I am using android management api and Want to fetch device id from Android Management api. So send data to Custom server (Own backend).</p> <p><a href="https://developer.android.com/work/managed-configurations" rel="nofollow noreferrer">https://developer.android.com/work/managed-configurations</a></p> <p>This is alr...
I am using android management api and Want to fetch device id from Android Management api. So send data to Custom server (Own backend). https://developer.android.com/work/managed-configurations This is already used for fetching policy name and other details. It's not useful for above requirement
android|android-management-api
0
2022-07-11T08:14:07.497Z
2,022
7
8
0
64
1
296
142
2
0
false
false
false
false
false
false
zero
72,935,583
Camera2 image ghosting
<p>When using low exposure times (250 µs) for a image processing project I am working on, I experience ghosting between individual frames.</p> <p>I can clearly see the previous frame, and sometimes the frame before that in the images.</p> <p>Here are my camera settings (which are supported by the camera, I have checke...
When using low exposure times (250 µs) for a image processing project I am working on, I experience ghosting between individual frames. I can clearly see the previous frame, and sometimes the frame before that in the images. Here are my camera settings (which are supported by the camera, I have checked) : ''' [CODE] ''...
android|image-processing|computer-vision|camera|android-camera2
0
2022-07-11T08:19:56.793Z
2,022
7
8
0
26
0
802
22
5
1
true
true
false
false
false
false
zero
72,935,652
Android Dynamic Module Resources Sometimes Throw Not Found Exception
<p>I tried using dynamic module for an extra feature for the app. When I upload it to Play store, one of my users after back to the activity (MainActivity) it throw a <code>Fatal Exception: android.content.res.Resources$NotFoundException</code>.</p> <p>At first it run properly without any error. But when it back to Mai...
I tried using dynamic module for an extra feature for the app. When I upload it to Play store, one of my users after back to the activity (MainActivity) it throw a Fatal Exception: android.content.res.Resources$NotFoundException . At first it run properly without any error. But when it back to MainActivity the error is...
android
0
2022-07-11T08:27:14.573Z
2,022
7
8
0
26
1
436
68
1
0
false
false
false
false
false
false
zero
72,935,666
NullPointerException when creating a infinite carousel in Compose
<p>I am trying to create a infinite scrollable carousel of cards using modified version of <a href="https://stackoverflow.com/a/70303230/1305267">this solution</a></p> <pre><code>@Composable fun CircularList( items: List&lt;String&gt;, modifier: Modifier = Modifier, onItemClick: (String) -&gt; Unit ) { ...
I am trying to create a infinite scrollable carousel of cards using modified version of this solution [CODE] However, this crashes with NPE: [CODE] This will also crash, if i use a smaller index of 500 for example, but it doesn't crash, if i use 50 [CODE] What could possible cause this? EDIT1: I have tried debugging it...
android|kotlin|android-jetpack-compose
0
2022-07-11T08:28:42.313Z
2,022
7
8
0
60
1
546
65
3
3
true
false
false
false
false
false
zero
72,935,696
Scanning Bluetooth Low Energy in Background Android 11
<p>I'm developing an app in which I want to continuously scan for Ble advertisement packets, even if the user locks the screen. With my current implementation this works fine with Android 10, but with Android 11 it stops once the user locks the screen. For scanning Ble packets I first request a few permissions, namely:...
I'm developing an app in which I want to continuously scan for Ble advertisement packets, even if the user locks the screen. With my current implementation this works fine with Android 10, but with Android 11 it stops once the user locks the screen. For scanning Ble packets I first request a few permissions, namely: co...
android|bluetooth-lowenergy
0
2022-07-11T08:31:10.913Z
2,022
7
8
0
92
0
1,075
54
2
3
true
true
false
false
false
false
zero
72,935,807
Which methods to be called if a screen share leave a OpenVido Session on Android?
<p>I have a problem related to Android and OpenVido. I connect from a computer and an Android tablet to a OpenVido Server. I would like to share my screen from the computer to the tablet. The first time everything works without problems and I can see the screen on the tablet. If I stop the screen share and start the sc...
I have a problem related to Android and OpenVido. I connect from a computer and an Android tablet to a OpenVido Server. I would like to share my screen from the computer to the tablet. The first time everything works without problems and I can see the screen on the tablet. If I stop the screen share and start the scree...
android|webrtc|screensharing|openvidu
0
2022-07-11T08:42:13.480Z
2,022
7
8
0
31
0
872
81
4
1
true
true
false
false
false
false
zero
72,936,068
Not able to access elements with kotlin in android studio
<p>I am new to android studio and wanted to make a pretty basic app. The problem is after creating an xml file and giving it id as <code>btnApply</code>, i tried to print something when it gets clicked. I think the code is correct as I have been following a youtube tutorial, but something else like my settings is not ...
I am new to android studio and wanted to make a pretty basic app. The problem is after creating an xml file and giving it id as btnApply , i tried to print something when it gets clicked. I think the code is correct as I have been following a youtube tutorial, but something else like my settings is not allowing me to a...
xml|android-studio|kotlin
0
2022-07-11T09:06:03.470Z
2,022
7
9
0
33
2
367
57
3
1
true
false
false
false
false
false
zero
72,936,172
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Flutter
<p>I am learning flutter. Flutter default app is working fine on the web, but showing following error on the Android emulator. I checked solutions on the internet, but did not work out for me.</p> <p>I tried following solutions.</p> <p><strong>Solution 1</strong>: Switch to smartphone network</p> <p><strong>Solution 2<...
I am learning flutter. Flutter default app is working fine on the web, but showing following error on the Android emulator. I checked solutions on the internet, but did not work out for me. I tried following solutions. Solution 1 : Switch to smartphone network Solution 2 : Replace https to http from distribution Url in...
java|android|flutter|android-studio|ssl-certificate
0
2022-07-11T09:14:36.710Z
2,022
7
9
0
526
1
740
113
5
2
true
false
false
false
false
false
zero
72,936,207
How to sync SQLite database with firebase?
<p>My application uses the SQLite database, but I want to offer the user to access their data on different phones if they want. I don't want to drop SQLite and instead start using Firebase because Firebase needs registration and authentication which for some users is not preferable. The users should have an option, whe...
My application uses the SQLite database, but I want to offer the user to access their data on different phones if they want. I don't want to drop SQLite and instead start using Firebase because Firebase needs registration and authentication which for some users is not preferable. The users should have an option, whethe...
java|android|firebase|google-cloud-platform|firebase-authentication
-1
2022-07-11T09:17:36.717Z
2,022
7
9
0
98
1
659
42
5
0
false
false
false
false
false
true
negative
72,936,238
Cannot publish app targeting to Android 12
<p>Getting an error on uploading an app to the Google Play store</p> <p><strong>You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the 'android:exported' property set. This file can't be installed on Android 12 or higher. See: d...
Getting an error on uploading an app to the Google Play store You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.c...
android|google-play-console|android-12
-1
2022-07-11T09:20:05.850Z
2,022
7
9
0
160
2
797
42
3
0
false
false
false
false
false
true
negative
72,936,362
DrawerLayout How to achieve full screen sliding
<p>I want to implement how to slide out the drawer layout in full screen</p> <pre><code> val declaredField = binding.drawerLayout.javaClass.getDeclaredField(&quot;mLeftDragger&quot;) declaredField.isAccessible = true val obj = declaredField.get(binding.drawerLayout) as ViewDragHelper val declaredField1...
I want to implement how to slide out the drawer layout in full screen [CODE] Using this code doesn't work
android|drawerlayout
0
2022-07-11T09:30:07.757Z
2,022
7
9
0
14
0
105
47
2
1
true
true
false
false
false
false
zero
72,936,393
Why Android Studio sort Java class instance variable order by alphabet automatically?
<p>I have a Java class named Test.TestInfo like below:</p> <pre><code>public class Test { public static class TestInfo { public int a; // 1st class variable public int c; // 2nd class variable public int b; // 3rd class variable public TestInfo() { this(0, 0, 0); ...
I have a Java class named Test.TestInfo like below: [CODE] Then I try to initial class in Java and print the class. Code like below: [CODE] I get two different order of class variable in Java unit test and Android instrumented test: Java unit test [CODE] Android instrumented test [CODE] I want fixed class variable orde...
java|android
0
2022-07-11T09:32:39.037Z
2,022
7
9
0
54
0
499
85
2
4
true
true
false
false
false
false
zero
72,936,425
How do I add the tax inside the if statement when I chose one variable already?
<p>I am trying to create a tax calculator in Java, but I just can't seem to figure out how to tax the income when I have already used the if statement to verify the province so I can do the calculations.</p> <p>How do I do the calculations without using a else if statement within the if statement?</p> <p>(I just starte...
I am trying to create a tax calculator in Java, but I just can't seem to figure out how to tax the income when I have already used the if statement to verify the province so I can do the calculations. How do I do the calculations without using a else if statement within the if statement? (I just started Java and suck. ...
java|android|if-statement
0
2022-07-11T09:35:08.250Z
2,022
7
9
0
41
1
794
79
3
1
true
false
false
false
false
false
zero
72,936,432
How to install app from apk file by using PackageManager in Wear OS?
<p>I have tried to install the application using the below code with Intent Api to install the app in wear os.</p> <p>but its not working as its not showing unknown sources setting in wear-os.</p> <p>also tried to find other solutions like,</p> <ol> <li><p>Installing it as a system app.(but as it's required to install ...
I have tried to install the application using the below code with Intent Api to install the app in wear os. but its not working as its not showing unknown sources setting in wear-os. also tried to find other solutions like, Installing it as a system app.(but as it's required to install at system installation so it can ...
android|apk|wear-os|android-developer-api
1
2022-07-11T09:35:39.150Z
2,022
7
9
0
45
0
888
68
4
0
false
true
false
false
false
false
low
72,936,434
Where can I see the code example of vehicle Hal?
<p>I'm reversing android.hardware.automotive.vehicle-service, but the file contains too many function pointers, which makes static analysis difficult.I use IDA to attach android.hardware.automotive.vehicle-service, but it didn't seem to affect the program(Interrupt does not affect program function).</p> <p>I want to tr...
I'm reversing android.hardware.automotive.vehicle-service, but the file contains too many function pointers, which makes static analysis difficult.I use IDA to attach android.hardware.automotive.vehicle-service, but it didn't seem to affect the program(Interrupt does not affect program function). I want to try to see o...
linux|reverse-engineering|hal|android-automotive
0
2022-07-11T09:35:46.247Z
2,022
7
9
0
79
0
705
48
4
1
true
true
false
false
false
false
zero
72,936,550
card_scanner this package is not support in android
<p><a href="https://i.stack.imgur.com/PQgO0.png" rel="nofollow noreferrer">Error Output Screenshot</a></p> <p>I will in this all kotlin verion but its generate same error</p> <ol> <li>ext.kotlin_version = '1.3.50'</li> <li>ext.kotlin_version = '1.4.31'</li> <li>ext.kotlin_version = '1.6.21'</li> <li>ext.kotlin_version ...
Error Output Screenshot I will in this all kotlin verion but its generate same error ext.kotlin_version = '1.3.50' ext.kotlin_version = '1.4.31' ext.kotlin_version = '1.6.21' ext.kotlin_version = '1.5.10'
flutter|error-handling|compiler-errors|flutter-dependencies|android-support-library
0
2022-07-11T09:44:58.250Z
2,022
7
9
0
12
0
204
51
5
0
false
true
false
false
false
false
zero
72,936,670
C++ "Windows.h" equivalent on Android
<p>I tried short programs with a compiler for Android on my mobile called CforDroid. It worked fine except when the code contains a header called &quot;Windows.h&quot;. My aim is to manipulate the screen buffer for simple games without graphics even on Android.</p> <pre><code> // Create Screen Buffer wchar_t *sc...
I tried short programs with a compiler for Android on my mobile called CforDroid. It worked fine except when the code contains a header called &quot;Windows.h&quot;. My aim is to manipulate the screen buffer for simple games without graphics even on Android. [CODE] Are there any equivalent commands with Android? Or whe...
android|c++
-1
2022-07-11T09:53:29.883Z
2,022
7
9
0
80
1
360
37
2
1
true
false
false
false
false
true
negative
72,936,674
how to start a service when your sreen is locked in android?
<p>i am making an application which displays floating window that contains contact name from your device(if saved) else shows an unknown number, it works fine when the screen is on but after locking thee phone, the floating window does not appear on the phone when there is an incoming call, i have to unlock the phone t...
i am making an application which displays floating window that contains contact name from your device(if saved) else shows an unknown number, it works fine when the screen is on but after locking thee phone, the floating window does not appear on the phone when there is an incoming call, i have to unlock the phone to s...
android
0
2022-07-11T09:53:41.293Z
2,022
7
9
0
18
0
374
60
1
0
false
true
false
false
false
false
zero
72,936,715
How to make local mobile device visible for CI tool
<p>I am building automation project and want to run tests automatically on local mobile device, that connected to my machine. For that I uploaded my project to GitLab, created .yml file with commands in CI/CD and created schedule.</p> <p>The next chalenge: to run tests automatically, on mobile device connected to my ma...
I am building automation project and want to run tests automatically on local mobile device, that connected to my machine. For that I uploaded my project to GitLab, created .yml file with commands in CI/CD and created schedule. The next chalenge: to run tests automatically, on mobile device connected to my machine. Is ...
android|mobile|gitlab|gitlab-ci|cicd
1
2022-07-11T09:57:22Z
-1
-1
-1
-1
32
1
378
51
5
0
false
false
false
false
false
false
low
72,936,889
MapView doesn't load on android emulator on android 11
<p>I'm trying to remove <strong>QUERY_ALL_PACKAGES</strong> permission in the manifest but then Mapview doesn't load on the emulator on android 11. However, MapView works well for android API less than 30 without this permission.</p>
I'm trying to remove QUERY_ALL_PACKAGES permission in the manifest but then Mapview doesn't load on the emulator on android 11. However, MapView works well for android API less than 30 without this permission.
android|android-permissions|android-mapview
0
2022-07-11T10:11:21.470Z
2,022
7
10
0
34
0
209
54
3
0
false
true
false
false
false
false
zero
72,936,892
Change between normal and dark mode dynamically
<p>I am developing a mobile application that use navigation, and I need to implement a switch between normal and dark UI, so that the UI goes to dark mode if there is low light (underground roads or night hours). I was thinking about connecting the logic to the value of the light sensor.</p> <p>The problem is that to s...
I am developing a mobile application that use navigation, and I need to implement a switch between normal and dark UI, so that the UI goes to dark mode if there is low light (underground roads or night hours). I was thinking about connecting the logic to the value of the light sensor. The problem is that to set a theme...
android|android-dark-theme|android-darkmode
0
2022-07-11T10:11:33.873Z
2,022
7
10
0
38
0
597
47
3
1
true
true
false
false
false
false
zero
72,936,894
Get access to smartphones camera antibanding algorithm
<p>i try to write an App that can detect light frequencies (between 50-200 hz) of captured light sources by the device camera in real time. The ultimate goal is to manually adjust the shutter to specific detected frequencies.</p> <p>Iam currently using Android NDK together with Vulkan API.</p> <p>I know the device alre...
i try to write an App that can detect light frequencies (between 50-200 hz) of captured light sources by the device camera in real time. The ultimate goal is to manually adjust the shutter to specific detected frequencies. Iam currently using Android NDK together with Vulkan API. I know the device already does somethin...
android|camera|android-ndk|vulkan
0
2022-07-11T10:11:43.970Z
2,022
7
10
0
44
2
973
54
4
1
true
false
false
false
false
false
zero
72,936,905
No signature of method: build_79k99zzpu1czozbhubqf5bc4h.android() is applicable for argument types: (build_79k99zzpu1czozbhubqf5bc4h$_run_closure1)
<p>i'm trying to add databiding in my code but when i try to sync shows me an error:</p> <p>No signature of method: build_79k99zzpu1czozbhubqf5bc4h.android() is applicable for argument types: (build_79k99zzpu1czozbhubqf5bc4h$_run_closure1) values: [build_79k99zzpu1czozbhubqf5bc4h$_run_closure1@493dc88e]</p> <p>this is ...
i'm trying to add databiding in my code but when i try to sync shows me an error: No signature of method: build_79k99zzpu1czozbhubqf5bc4h.android() is applicable for argument types: (build_79k99zzpu1czozbhubqf5bc4h$_run_closure1) values: [build_79k99zzpu1czozbhubqf5bc4h$_run_closure1@493dc88e] this is the code: code im...
android|android-studio|android-layout|data-binding|build.gradle
0
2022-07-11T10:12:14.837Z
2,022
7
10
0
24
1
334
147
5
0
false
false
false
false
false
false
zero
72,936,915
Use code to add CoordinatorLayout child view.but hierarchy error
<p>I try to use code to add CoordinatorLayout child view. and the CoordinatorLayout view have the BottomSheet view and the BottomSheet view can be scroll. I want to let the added view can be covered by the BottomSheet view when the bottomSheet view was scrolled. here is my code.</p> <pre><code>CustomerView customerView...
I try to use code to add CoordinatorLayout child view. and the CoordinatorLayout view have the BottomSheet view and the BottomSheet view can be scroll. I want to let the added view can be covered by the BottomSheet view when the bottomSheet view was scrolled. here is my code. [CODE] why use getChildCount() - 2. because...
android
0
2022-07-11T10:12:51.263Z
2,022
7
10
0
16
0
603
64
1
1
true
true
false
false
false
false
zero
72,936,941
Download Zip file in android studio
<p>I need to download zip file using multiple URL's and this is my postman</p> <p>[URL's in postman]</p>
I need to download zip file using multiple URL's and this is my postman [URL's in postman]
android|download|postman
-1
2022-07-11T10:14:24.523Z
2,022
7
10
0
109
1
90
35
3
0
false
false
false
false
false
true
negative
72,936,954
Make last Item of the Compose LazyColumn fill rest of the screen
<p>There is a regular list with some data and LazyColumn for showing it.</p> <pre><code>LazyColumn { items (list) { item -&gt; ListItem(item) } } </code></pre> <p>Simplified <code>ListItem</code> looks like:</p> <pre><code>@Composable fun ListItem(item: SomeItem) { Row( modifier = Modifier.fi...
There is a regular list with some data and LazyColumn for showing it. [CODE] Simplified ListItem looks like: [CODE] I need to set the footer's item (last in list) height to fill screen if there is not enough items for that. It's easy to find last item and provide some flag to ListItem(item: SomeItem, isLast: Boolean) ,...
android|android-studio|kotlin|android-recyclerview|android-jetpack-compose
2
2022-07-11T10:15:01.173Z
2,022
7
10
0
249
1
537
64
5
2
true
false
false
false
false
false
low
72,936,958
Want to navigate one screen to another via route
<p>I am trying to navigate Users screen via homescreen with route method with this piece of code.</p> <pre><code> onTap: () { Navigator.pushNamed(context, '/users', arguments: state.users[0] ); }, </code></pre> <p>But the problem is navigation is not wor...
I am trying to navigate Users screen via homescreen with route method with this piece of code. [CODE] But the problem is navigation is not working. I can't even use this piece of code because on the users screen there is everything is required to mention which I can't mention because, every time I have to change data w...
android|ios|flutter|dart
0
2022-07-11T10:15:16.920Z
2,022
7
10
0
36
0
442
48
4
3
true
true
false
false
false
false
zero
72,936,994
RangeError (index): Invalid value: Not in inclusive range 0..1: 2 when favoriting an item
<p>I'm making a favorites list viewer for my application. Basically, on the listview there will be a trailing containing a heart icon which will then add the designated item to the favorite menu. Here is the code for said action</p> <pre><code>title: Text(displayJournal[index].journalTitle!), trailing: jo...
I'm making a favorites list viewer for my application. Basically, on the listview there will be a trailing containing a heart icon which will then add the designated item to the favorite menu. Here is the code for said action [CODE] Here is the code on the favorite menu, essentially is the same thing but it's just the ...
android|flutter|android-studio|dart
0
2022-07-11T10:17:54.463Z
2,022
7
10
0
47
1
1,417
89
4
4
true
false
false
false
false
false
zero
72,937,357
How to get response of Worker A inside another worker class in kotlin
<p>I have several worker classes that are scheduled as one-time requests, as below</p> <pre><code>private fun createOneTimeWorkRequest(){ val imageWorker = OneTimeWorkRequestBuilder&lt;ImageUploadingWorker&gt;() .setConstraints(constraints) .addTag(&quot;imageWork&quot;) .build() val ...
I have several worker classes that are scheduled as one-time requests, as below [CODE] And they are scheduled inside a worker class &quot;Source Worker&quot; inside doWork() method as below [CODE] Now the problem is I want to monitor if any intermediate worker returns a failure response so that I can handle it accordin...
android|kotlin|android-workmanager
0
2022-07-11T10:48:43.063Z
2,022
7
10
0
34
0
478
69
3
2
true
true
false
false
false
false
zero
72,937,361
How to display a contact name when dialing in android studion
<p>I am developing an android application which stores name and phone number of employees. And also the app directly calls to employee. But when I try to call to the employee the dallier only displays the phone number. but I want to display the employee's name as Well. How I do that friends.</p> <p>here is the code tha...
I am developing an android application which stores name and phone number of employees. And also the app directly calls to employee. But when I try to call to the employee the dallier only displays the phone number. but I want to display the employee's name as Well. How I do that friends. here is the code that I am try...
android|android-studio|phone-call
0
2022-07-11T10:49:04.780Z
2,022
7
10
0
15
0
506
61
3
1
true
true
false
false
false
false
zero
72,937,389
How to make LinearLayout and Switch occupy equal width spaces using Layout Weights?
<p>I have the following android layout markup for the settings page am building for an application I am developing. When I use a Spinner like in the following layout, its parent <code>LinearLayout</code> occupies half the width of the device screen and the <code>Spinner</code> occupies the other half of the device scre...
I have the following android layout markup for the settings page am building for an application I am developing. When I use a Spinner like in the following layout, its parent LinearLayout occupies half the width of the device screen and the Spinner occupies the other half of the device screen width. The markup is like ...
android|xml|android-layout
0
2022-07-11T10:51:12.173Z
2,022
7
10
0
32
1
739
83
3
1
true
false
false
false
false
false
zero
72,937,398
Why does the service run on UIThread?
<p>As we know in Android the services run on the UI Thread. If we want to perform some long-running operation, we need to create our own thread from that service in order to not freeze the UI thread.</p> <p>But why the service doesn't do it automatically? Why it's not working on a worker thread by default? Is there any...
As we know in Android the services run on the UI Thread. If we want to perform some long-running operation, we need to create our own thread from that service in order to not freeze the UI thread. But why the service doesn't do it automatically? Why it's not working on a worker thread by default? Is there any specific ...
android|service|ui-thread
0
2022-07-11T10:51:58.980Z
2,022
7
10
0
38
1
626
37
3
0
false
false
false
false
false
false
zero
72,937,456
Android question: handler.postDelayed not working in Accessibility service
<p>Trying to use <code>handler.postDelayed</code> inside <code>onAccessibilityEvent</code>:</p> <pre><code>private final Handler handler = new Handler(); @Override public void onAccessibilityEvent(AccessibilityEvent event) { switch (event.getEventType()) { case AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGE...
Trying to use handler.postDelayed inside onAccessibilityEvent : [CODE] The &quot;success&quot; log message never gets reached. What's the issue?
android|accessibility|android-handler
1
2022-07-11T10:57:18.737Z
2,022
7
10
0
24
0
144
74
3
1
true
true
false
false
false
false
low
72,937,475
Expo Go App just crashes when testing app on Android
<p>I'm developing React Native app and trying to test my app on Android in Expo Go. In my app there are 2 screens A and B. When loading screen A it's ok but when I try to navigate to screen B by pressing button, the Expo Go just crashes and I even have no possibility to view logs and even see the next screen. On iOS it...
I'm developing React Native app and trying to test my app on Android in Expo Go. In my app there are 2 screens A and B. When loading screen A it's ok but when I try to navigate to screen B by pressing button, the Expo Go just crashes and I even have no possibility to view logs and even see the next screen. On iOS it's ...
android|react-native|logging|expo
0
2022-07-11T10:58:48.410Z
2,022
7
10
0
99
0
480
52
4
0
false
true
false
false
false
false
zero
72,937,481
Implement horizontal recyclerview like instagram story effect listing
<p>Can anyone have idea to how to implement horizontal recyclerview like Instagram create story screen effect listing from camera.? Shown in below image.</p> <p><img src="https://i.stack.imgur.com/TvxD2.jpg" alt="Please check this reference screen shot" /></p>
Can anyone have idea to how to implement horizontal recyclerview like Instagram create story screen effect listing from camera.? Shown in below image.
android|android-studio|android-layout|androiddesignsupport|android-debug
0
2022-07-11T10:59:14.827Z
2,022
7
10
0
66
0
150
69
5
0
false
true
false
false
false
false
zero
72,937,482
android event handlers trigger graph
<p>Some actions from the user may trigger multiple events and handlers, like the well known LongClick ~&gt; Click.</p> <p>I am looking for some kind of a hierarchy graph that summarizes this potential trigger-order relation for Android Events, but no success so far.</p> <p>Any pointer on this please ?</p>
Some actions from the user may trigger multiple events and handlers, like the well known LongClick ~> Click. I am looking for some kind of a hierarchy graph that summarizes this potential trigger-order relation for Android Events, but no success so far. Any pointer on this please ?
android|event-handling
1
2022-07-11T10:59:21.623Z
2,022
7
10
0
24
0
282
36
2
0
false
true
false
false
false
false
low
72,937,545
Classcastexception: when trying to create object of class
<p>I have two java classes:</p> <p><strong>PrefManager.java :</strong></p> <pre><code>public class PrefManager { SharedPreferences pref; SharedPreferences.Editor editor; Context _context; // shared pref mode int PRIVATE_MODE = 0; // Shared preferences file name private static final String P...
I have two java classes: PrefManager.java : [CODE] I am trying to create an object of this class below: MainActivity.java : [CODE] Upon execution, I keep getting this error in the line PrefManager prefManager = new PrefManager((WelcomeActivity) getApplicationContext()); : Caused by: java.lang.ClassCastException: androi...
java|android
0
2022-07-11T11:06:04.857Z
2,022
7
11
0
33
1
425
57
2
2
true
false
false
false
false
false
zero
72,937,644
Why BLE pairing request dialog appears two times?
<p>When we use &quot;nRF Connect&quot; or &quot;BLE Scanner&quot; (BLE, not BT) APPs on Google pixel with Android 12 (e.g. Pixel 3 and Pixel 5) to connect a BLE device, it will pop up the pairing request dialog twice. But when we use the APPs on Google pixel with Android 11 to connect a BLE device, it only popup 1 pair...
When we use &quot;nRF Connect&quot; or &quot;BLE Scanner&quot; (BLE, not BT) APPs on Google pixel with Android 12 (e.g. Pixel 3 and Pixel 5) to connect a BLE device, it will pop up the pairing request dialog twice. But when we use the APPs on Google pixel with Android 11 to connect a BLE device, it only popup 1 pairing...
android|bluetooth-lowenergy
0
2022-07-11T11:12:37.727Z
2,022
7
11
0
32
0
443
49
2
0
false
true
false
false
false
false
zero
72,937,652
Pandocs in Android for File Reader/Editor App
<p>I want to create reader/editor app. For that I came to know <a href="https://pandoc.org/index.html" rel="nofollow noreferrer">Pandoc</a> is there which is basically universal document converter. So my question is how we can use pandoc in android as it is Haskell library for converting from one markup format to anoth...
I want to create reader/editor app. For that I came to know Pandoc is there which is basically universal document converter. So my question is how we can use pandoc in android as it is Haskell library for converting from one markup format to another, and a command-line tool that uses this library. Is there any other to...
android|editor|filereader|pandoc
0
2022-07-11T11:13:37.290Z
2,022
7
11
0
46
0
447
45
4
0
false
true
false
false
false
false
zero
72,937,866
How to add an object in a Firestore Array
<p>General context: I've got a firestore list that has <strong>PastInventoryItem</strong>s, each of which has an array called <strong>countedquantity</strong>.</p> <pre><code>data class Material( var type: String = &quot;&quot;, var material: String = &quot;&quot;, var size: String = &quot;&quot;, var description: Stri...
General context: I've got a firestore list that has PastInventoryItem s, each of which has an array called countedquantity . [CODE] Here's the Model class for the PastInventoryItem object [CODE] And when the PastInventoryItem is stored, provided I have the document ID, I'd like to add a Material on the countedquantity ...
android|firebase|google-cloud-firestore
0
2022-07-11T11:30:31.710Z
2,022
7
11
0
18
1
467
41
3
3
true
false
false
false
false
false
zero
72,937,925
How do I get the value out of the onResponse function of retrofit to return it in the outer class
<p>The below is my code where im trying to return false whenever the body is not empty, but the variable blocker is not overwritten when the body has content in it. The code itself is working but it seems to not get the Code out of the onResponse method.</p> <pre><code>private fun checkTime(date : String, time : String...
The below is my code where im trying to return false whenever the body is not empty, but the variable blocker is not overwritten when the body has content in it. The code itself is working but it seems to not get the Code out of the onResponse method. [CODE] Answers are much appreciated
android|kotlin|retrofit
1
2022-07-11T11:34:32.940Z
2,022
7
11
0
61
1
287
97
3
1
true
false
false
false
false
false
low
72,937,959
Error while creating elasticsearch firebase firestore cloud function
<p>I am trying to create a cloud function which will be responsible of sending every new entry into the database to the elasticsearch server.</p> <p>This is what my index.js looks like</p> <pre><code>const functions = require('firebase-functions'); const request = require('request-promise'); exports.indexUsersToElasti...
I am trying to create a cloud function which will be responsible of sending every new entry into the database to the elasticsearch server. This is what my index.js looks like [CODE] And this is what my package.json looks like [CODE] On running firebase deploy --only functions I get this [CODE] Can anyone navigate me th...
android|firebase|elasticsearch
0
2022-07-11T11:36:52.850Z
2,022
7
11
0
17
0
355
68
3
3
true
true
false
false
false
false
zero
72,937,969
Control microphone audio input level from android application created on flutter
<p>Is there any way to control the microphone level using any flutter library in android app? I have tried finding a supporting package on Pub.dev but couldn't find any. Any help would be appreciated.</p>
Is there any way to control the microphone level using any flutter library in android app? I have tried finding a supporting package on Pub.dev but couldn't find any. Any help would be appreciated.
android|flutter|dart|mobile
0
2022-07-11T11:37:37.143Z
2,022
7
11
0
37
0
197
80
4
0
false
true
false
false
false
false
zero
72,937,982
android 12 deep-linking, support multiple apps, not showing App chooser
<p>On Android 12, I want to show two app options on app chooser for deeplinking. I have added both app certificate details like package id and SHA into assetlinks.json , but App chooser is not showing. its redirecting directly to the app whichever we install first.</p>
On Android 12, I want to show two app options on app chooser for deeplinking. I have added both app certificate details like package id and SHA into assetlinks.json , but App chooser is not showing. its redirecting directly to the app whichever we install first.
deep-linking|android-12
1
2022-07-11T11:38:45.760Z
2,022
7
11
0
79
0
262
71
2
0
false
true
false
false
false
false
low
72,938,064
Any Android libraries to resize images in place?
<p>Are there any Android libraries to resize images and save it in place? I'm using Jetpack Compose and Kotlin in my project. My app has a feature for taking photos and choosing an image from the gallery. And I need to resize the captured or selected image and create their thumbnails. I looked into Picasso, and Glide, ...
Are there any Android libraries to resize images and save it in place? I'm using Jetpack Compose and Kotlin in my project. My app has a feature for taking photos and choosing an image from the gallery. And I need to resize the captured or selected image and create their thumbnails. I looked into Picasso, and Glide, etc...
android|kotlin|image-resizing|android-library|android-image
0
2022-07-11T11:45:17.920Z
2,022
7
11
0
65
1
390
48
5
0
false
false
false
false
false
false
zero
72,938,094
React Native fetch stalls without return or error
<p>I'm currently building a React Native Android app and I'm trying to do a simple fetch inside my Code.</p> <pre class="lang-js prettyprint-override"><code>const response = await fetch('http://localhost:8081/assets/src/...',{ method: 'GET' }) </code></pre> <p>There is absolutely no output from this call. No Error,...
I'm currently building a React Native Android app and I'm trying to do a simple fetch inside my Code. [CODE] There is absolutely no output from this call. No Error, no Return. When logging the Metro Server, there is not even a request coming in. The code stalls completely. I tried it with an XMLHttpRequest but the resu...
android|react-native|fetch-api|react-native-0.68.2
0
2022-07-11T11:47:19.560Z
2,022
7
11
0
87
1
733
49
4
2
true
false
false
false
false
false
zero
72,938,164
Android start activity by FLAG_ACTIVITY_NEW_TASK,when back the other activity fullscreen is invalid
<p><strong>1.</strong> start activity <code>A</code>,set fullscreen in <code>Activity.onCreate</code> callback**</p> <p><strong>2.</strong> start service <code>Service</code></p> <p><strong>3.</strong> Start activity <code>B</code>(FLAG_ACTIVITY_NEW_TASK) in service,set fullscreen in <code>Activity.onCreate</code> call...
1. start activity A ,set fullscreen in Activity.onCreate callback** 2. start service Service 3. Start activity B (FLAG_ACTIVITY_NEW_TASK) in service,set fullscreen in Activity.onCreate callback But,when back B ,the A fullscreen is invaild,again set fullscreen in A.onResume callback, A fullsceen will recover normal set ...
android|kotlin
0
2022-07-11T11:53:35.137Z
2,022
7
11
0
19
1
374
99
2
1
true
false
false
false
false
false
zero
72,938,183
Why I got Possible Unhandled Promise Rejection in React Native?
<p>I want to get 4 values from user and I want storage them in asyncStorage and list them main page.</p> <p>first of all I have App.tsx like this:</p> <p>App.tsx</p> <pre><code> const [objName,setObjName]= useState('') const [objAmount,setObjAmount]= useState(0) const [objCurr,setObjCurr]= useState(0) const [...
I want to get 4 values from user and I want storage them in asyncStorage and list them main page. first of all I have App.tsx like this: App.tsx [CODE] When I click Button it gives the warning and it does not storage the values: Warning: [CODE] And the lines gives red problem on vscode: 1 Parameter 'name' implicitly ha...
android|node.js|typescript|react-native|asyncstorage
0
2022-07-11T11:55:32.747Z
2,022
7
11
0
133
0
711
63
5
3
true
true
false
false
false
false
zero
72,938,245
Show DialogFragment in Recyclerview Adapter
<p>I'm trying to use a DialogFragmemt in an adapter, but it doesn't work as planned. I have listed the Dialog class and the adapter below.</p> <p><strong>DialogFragment (ListsSettings.kt)</strong></p> <pre><code>class ListsSettings : DialogFragment() { override fun onCreateView(inflater: LayoutInflater, container: ...
I'm trying to use a DialogFragmemt in an adapter, but it doesn't work as planned. I have listed the Dialog class and the adapter below. DialogFragment (ListsSettings.kt) [CODE] Adapter (AllListAdapter.kt) -> (onCreateViewHolder) [CODE] Error [CODE]
android|android-studio|kotlin
0
2022-07-11T11:59:35.567Z
2,022
7
11
0
68
2
248
43
3
3
true
false
false
false
false
false
zero
72,938,259
Passing Data Between Fragments Using Safe Args
<p>I'm trying to implement data transfer between fragments using Safe Args, but I'm stuck at the moment of setting Gradle.</p> <p>Project Gradle looks like this</p> <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'com.android.application' v...
I'm trying to implement data transfer between fragments using Safe Args, but I'm stuck at the moment of setting Gradle. Project Gradle looks like this [CODE] Module Gradle is like this [CODE] Wherever I enter this line, Gradle starts to swear. apply plugin: &quot;androidx.navigation.safeargs.kotlin&quot; Similar story ...
android|gradle|android-fragments|android-safe-args
0
2022-07-11T12:00:28.320Z
2,022
7
12
0
42
1
484
46
4
2
true
false
false
false
false
false
zero
72,938,350
Fastlane + Jenkins on other computer: How connect them
<p>We want to start automating flows, CI/CD. We have a Jenkins server running on a separate computer. I don't quite understand how jenkins can trigger fastlane if it is running in another computer.</p> <p>In the docs, jenkins runs locally where the lanes are, so I understand that jenkins can run lanes. But is it possib...
We want to start automating flows, CI/CD. We have a Jenkins server running on a separate computer. I don't quite understand how jenkins can trigger fastlane if it is running in another computer. In the docs, jenkins runs locally where the lanes are, so I understand that jenkins can run lanes. But is it possible if jenk...
android|ios|jenkins|continuous-integration|fastlane
0
2022-07-11T12:08:43.867Z
2,022
7
12
0
47
1
376
54
5
0
false
false
false
false
false
false
zero
72,938,351
React Native Webview Google Analytics Tracking
<p>I have developed a cross-platform application, that consumes api. It's a News mobile application, and because there is also a website, i present single article as a Webview, from a url i took through api.</p> <p>I want to track user activity, through GA already used from website, when a user open single articles as ...
I have developed a cross-platform application, that consumes api. It's a News mobile application, and because there is also a website, i present single article as a Webview, from a url i took through api. I want to track user activity, through GA already used from website, when a user open single articles as a webview....
android|react-native|google-analytics|cross-platform|react-native-webview
0
2022-07-11T12:08:44.473Z
2,022
7
12
0
82
0
452
46
5
0
false
true
false
false
false
false
zero
72,938,401
Why alarm triggers instantly but am trying to set alarm on specific time using alarm manager?
<p>I am making one reminder application. when I set the time as in AM format. It works fine. Also when I set the alarm at tomorrow it works. but when I set the time as in PM format it gets fired instantly. I don't understand why this happening?</p> <p>If you want to see the what actually happens in my application pleas...
I am making one reminder application. when I set the time as in AM format. It works fine. Also when I set the alarm at tomorrow it works. but when I set the time as in PM format it gets fired instantly. I don't understand why this happening? If you want to see the what actually happens in my application please watch th...
java|android|android-studio|alarmmanager
0
2022-07-11T12:12:21.663Z
2,022
7
12
0
38
0
646
93
4
1
true
true
false
false
false
false
zero
72,938,456
Unable to receive push notification from Firebase console in android release build
<p><strong>I am able to receive FCM notifications from Firebase console in debug build but unable to receive FCM push notification in Android release build.</strong></p> <p>I have added the SHA-1 Key in firebase console and downloaded google-services.json file which i have included in the app folder of Android project....
I am able to receive FCM notifications from Firebase console in debug build but unable to receive FCM push notification in Android release build. I have added the SHA-1 Key in firebase console and downloaded google-services.json file which i have included in the app folder of Android project. Also, i have added the bel...
android|firebase|firebase-cloud-messaging|android-build
0
2022-07-11T12:16:49.390Z
2,022
7
12
0
166
1
625
82
4
2
true
false
false
false
false
false
zero
72,938,526
Can't import Google Asset Delivery (Install-Time)
<p>so I'm following the <a href="https://developer.android.com/guide/playcore/asset-delivery/integrate-java" rel="nofollow noreferrer">guide</a>, but it gets error once I imported the asset-pack plugin in the library's gradle.</p> <pre><code>plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' ...
so I'm following the guide , but it gets error once I imported the asset-pack plugin in the library's gradle. [CODE] Error: An exception occurred applying plugin request [id: 'com.android.asset-pack'] Failed to apply plugin 'com.android.asset-pack'. Cannot add extension with name 'kotlinOptions', as there is an extensi...
android|kotlin|google-play|google-play-core|android-asset-delivery
1
2022-07-11T12:22:27.907Z
2,022
7
12
0
37
0
571
49
5
2
true
true
false
false
false
false
low
72,938,568
How to query on Firestore sub collection and get spacyfyi document id?
<p>Please read carefully what I want. Here is my Firestore database structure: <a href="https://i.stack.imgur.com/qYxxf.png" rel="nofollow noreferrer">Source Image</a></p> <p>I want to start a query to find user-entered refer code is available / not in the Firestore database. All available refer codes of my users are s...
Please read carefully what I want. Here is my Firestore database structure: Source Image I want to start a query to find user-entered refer code is available / not in the Firestore database. All available refer codes of my users are stored in [collection]users--->[uid/Document Id]--->[Field]myRefer. In my app user can ...
java|android|firebase|google-cloud-platform|google-cloud-firestore
-1
2022-07-11T12:25:46.120Z
2,022
7
12
0
27
1
599
70
5
0
false
false
false
false
false
true
negative
72,938,588
Android EditText with animated hint?
<p>How can I create an Android EditText with a hint like this (with animation)?</p> <p><a href="https://i.stack.imgur.com/IfA1H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IfA1H.png" alt="enter image description here" /></a></p> <p>So when I tap inside the EditText, the hint shrinks and goes on t...
How can I create an Android EditText with a hint like this (with animation)? So when I tap inside the EditText, the hint shrinks and goes on top of the input text, like in this example:
android|android-edittext
0
2022-07-11T12:27:17.373Z
2,022
7
12
0
32
1
185
36
2
0
false
false
false
false
false
false
zero
72,938,610
PHP header downloading unreadable zip file in Android
<p>My php script is converting a PDF file into a zip file containing images for each page of the PDF.</p> <p>After loading the zip with images I'm transferring the zip to the headers like below.</p> <pre><code>ob_start(); header('Content-Transfer-Encoding: binary'); header('Content-disposition: attachment; filename=&q...
My php script is converting a PDF file into a zip file containing images for each page of the PDF. After loading the zip with images I'm transferring the zip to the headers like below. [CODE] The download is absolutely working fine in Windows, Linux and Mac.But when I'm requesting the same from an android device (norma...
php|android|html|download
0
2022-07-11T12:29:03.070Z
2,022
7
12
0
61
1
898
53
4
2
true
false
false
false
false
false
zero
72,938,632
What this Error "ro.vendor.pref_scale_resolution"?
<p>My application run properly but this error is again again show any find this answer please help</p> <p><strong>provide your best answer</strong></p> <pre><code>E/libc: Access denied finding property &quot;ro.vendor.pref_scale_resolution&quot; </code></pre>
My application run properly but this error is again again show any find this answer please help provide your best answer [CODE]
java|android
0
2022-07-11T12:30:16.620Z
2,022
7
12
0
118
0
127
50
2
1
true
true
false
false
false
false
zero
72,938,703
sending local wifi ssid and password to esp32 from android without configuration
<p>I have an <strong>esp32</strong> which is going to read data from dht11 and since it might be in different local networks , I initially want to find esp32 (connect to it) by android phone and pass the ssid and password of local network to it. and after passing ssid and password , they both connect to the local ne...
I have an esp32 which is going to read data from dht11 and since it might be in different local networks , I initially want to find esp32 (connect to it) by android phone and pass the ssid and password of local network to it. and after passing ssid and password , they both connect to the local network . how can I achie...
java|android|esp32
1
2022-07-11T12:35:41.517Z
2,022
7
12
0
52
1
623
80
3
0
false
false
false
false
false
false
low
72,938,705
Somehow some fields in model that has no data from retrofit response is set to zero if int, how do i handle it?
<p>the model</p> <pre><code>movie { @SerializedName(&quot;id&quot;) int id; @SerializedName(&quot;name&quot;) String name; @SerializedName(&quot;rating&quot;) int rating } </code></pre> <p>//response</p> <pre><code>{ id:1, name:&quot;apple&quot;, } </code></pre> <p>since there is no rating in th...
the model [CODE] //response [CODE] since there is no rating in the response, but is set to 1 while using getter, how do i handle it? thanks in advance
java|android-studio|retrofit2
0
2022-07-11T12:35:42.120Z
2,022
7
12
0
17
0
150
111
3
2
true
true
false
false
false
false
zero
72,938,835
How to best preserve state in newly installed mobile app (iOs and Android) - Deferred Deep Linking
<p>We're developing a mobile app where we need to gracefully handle invitation links to join a team with just a URL. We're researching the best way to do this in both iOS and Android and there seems to be a lot of different solutions over the years, to the point that it's worth asking the community and updating the gen...
We're developing a mobile app where we need to gracefully handle invitation links to join a team with just a URL. We're researching the best way to do this in both iOS and Android and there seems to be a lot of different solutions over the years, to the point that it's worth asking the community and updating the genera...
android|ios|mobile|deep-linking
0
2022-07-11T12:45:58.170Z
2,022
7
12
0
37
0
1,468
98
4
0
false
true
false
false
false
false
zero
72,938,878
Why is Android Studio so slow after update to Android Studio Electric Eel | 2022.1.1 Canary 8
<p>I have updated my Android Studio to</p> <pre><code>Android Studio Electric Eel | 2022.1.1 Canary 8 Build #AI-221.5921.22.2211.8786657, built on June 30, 2022 Runtime version: 11.0.13+0-b1751.21-8125866 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.7 GC: G1 Young Generation, G1 Old Generation Me...
I have updated my Android Studio to [CODE] and now it is extremely slow to respond to any code change, e.g. it takes minutes to properly highlight any code following the simplest of refactors. i have also noticed that it is showing git information within all my code files. I do not know how i have configured this chang...
android-studio
0
2022-07-11T12:49:37.690Z
2,022
7
12
0
45
0
595
93
1
1
true
true
false
false
false
false
zero
72,938,918
Android reference resource of unknown package upfront
<p>Lets say that in <code>Components module</code> I am creating a <code>Fragment</code> with layout file <code>fragment.xml</code> where one of the <code>TextView</code> is rendering <code>android:text=&quot;@string/resource1&quot;</code></p> <p>Now I want to reuse the <code>Fragment</code> in <code>App module</code> ...
Lets say that in Components module I am creating a Fragment with layout file fragment.xml where one of the TextView is rendering android:text=&quot;@string/resource1&quot; Now I want to reuse the Fragment in App module but this time, the app would like to provide value that needs to be rendered. So far I have found onl...
android|android-fragments
0
2022-07-11T12:52:34.710Z
2,022
7
12
0
12
0
578
53
2
0
false
true
false
false
false
false
zero
72,938,994
How to make the color of a TextView like this image?
<p>I want to set the color of a textview like this image, It has a vertical red color line and entire textview is like pink or reddish color.</p> <p><a href="https://i.stack.imgur.com/PVaEf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PVaEf.png" alt="enter image description here" /></a></p>
I want to set the color of a textview like this image, It has a vertical red color line and entire textview is like pink or reddish color.
java|android|textview
0
2022-07-11T12:57:48.530Z
2,022
7
12
0
43
2
138
52
3
0
false
false
false
false
false
false
zero
72,939,046
Ionic Uncaught Error: $digest already in progress triggering JS replaceAll error
<p>I have read dozens of articles and posts regarding this <code>Uncaught Error: [$rootScope:inprog] $digest already in progress</code> and have applied multiple fixes trying to prevent it but nothing has worked so far.</p> <p>My app catches all errors and notifies my back end server of the error. Every time the above...
I have read dozens of articles and posts regarding this Uncaught Error: [$rootScope:inprog] $digest already in progress and have applied multiple fixes trying to prevent it but nothing has worked so far. My app catches all errors and notifies my back end server of the error. Every time the above error happens it is imm...
android|angularjs|ionic-framework|exception|typeerror
0
2022-07-11T13:02:37.683Z
2,022
7
13
0
15
0
2,700
80
5
3
true
true
false
false
false
false
zero
72,939,100
My WorkManager isn't running in foreground or background
<p>This is the code I am using to setup the work task in my main activity:</p> <pre><code> val apiFetchBuilder = PeriodicWorkRequestBuilder&lt;APIWorker&gt;(timeValue, TimeUnit.MINUTES) // timeValue = 1 for testing val apiFetchWorker = apiFetchBuilder.build() val instance = WorkManager.getInstance(this) ...
This is the code I am using to setup the work task in my main activity: [CODE] and then my work manager is setup as follows: [CODE] The logcat isn't registering this call at all no matter how long I wait or how many times I open the main activity to enqueue the work manager
android|kotlin|android-workmanager|periodicity
0
2022-07-11T13:07:48.013Z
2,022
7
13
0
68
0
274
56
4
2
true
true
false
false
false
false
zero
72,939,105
Android 12 deep linking validation failed
<p>We have created the assetlinks.json file and placed it under the well-known folder in the root.After that when tried to validate the assetlinks.json file using Digital Asset Links API from google we are getting an exception.</p> <p>{ &quot;maxAge&quot;: &quot;599.999999839s&quot;, &quot;debugString&quot;: &quot;****...
We have created the assetlinks.json file and placed it under the well-known folder in the root.After that when tried to validate the assetlinks.json file using Digital Asset Links API from google we are getting an exception. { &quot;maxAge&quot;: &quot;599.999999839s&quot;, &quot;debugString&quot;: &quot;**************...
deep-linking|android-12|digital-assets-links
0
2022-07-11T13:08:04.337Z
2,022
7
13
0
36
0
787
41
3
0
false
true
false
false
false
false
zero
72,939,167
java.net.httpurlconnection just wont work
<p>I'm trying to make a simple http request in my android app.</p> <p><code>((HttpURLConnection) new URL(&quot;https://omg-a-site.org&quot;).openConnection()).getResponseCode();</code></p> <p>I tried using java.net.URL.getInputStream and java.net.URLConnection.getInputStream, but it just wont work. Am I doing something...
I'm trying to make a simple http request in my android app. ((HttpURLConnection) new URL(&quot;https://omg-a-site.org&quot;).openConnection()).getResponseCode(); I tried using java.net.URL.getInputStream and java.net.URLConnection.getInputStream, but it just wont work. Am I doing something wrong?
java|android|http
0
2022-07-11T13:13:29.833Z
2,022
7
13
0
45
1
297
41
3
0
false
false
false
false
false
false
zero
72,939,278
Android MutableLiveData.value = getNewValue() does not work
<p>Why it's not possible to directly set the mutableLiveData.value when using a suspend function? See following code:</p> <pre><code>private val _clubs: MutableLiveData&lt;List&lt;ClubEntity&gt;&gt; by lazy { MutableLiveData&lt;List&lt;ClubEntity&gt;&gt;().also { fetchClubListFromRepository() } } priva...
Why it's not possible to directly set the mutableLiveData.value when using a suspend function? See following code: [CODE] Github repo
android|kotlin|mutablelivedata
0
2022-07-11T13:22:48.820Z
2,022
7
13
0
56
1
133
59
3
1
true
false
false
false
false
false
zero
72,939,402
Flutter app, check connectivity on start up
<p>I have a Flutter app that runs on Android devices and it is created as a StatelessWidget. This app talks to a web service and I currently check connectivity on the main method before calling the runApp method.</p> <p>The problem is that if there is a network issue and the web service cannot be reached, I need to dis...
I have a Flutter app that runs on Android devices and it is created as a StatelessWidget. This app talks to a web service and I currently check connectivity on the main method before calling the runApp method. The problem is that if there is a network issue and the web service cannot be reached, I need to display a mes...
android|flutter
0
2022-07-11T13:31:03.410Z
2,022
7
13
0
29
0
1,140
43
2
0
false
true
false
false
false
false
zero
72,939,612
Betterplayer video screen is black but sound is playing
<p>I download the code of better player from <a href="https://github.com/jhomlala/betterplayer" rel="nofollow noreferrer">https://github.com/jhomlala/betterplayer</a> and run it with flutter run in my IOS and android emulator. The normal video player works but the better player shows a black screen on IOS iPhone and so...
I download the code of better player from https://github.com/jhomlala/betterplayer and run it with flutter run in my IOS and android emulator. The normal video player works but the better player shows a black screen on IOS iPhone and some video needs to load too long on IOS and Android. Android can play the videos whic...
android|ios|flutter|flutter-video-player
2
2022-07-11T13:47:17.157Z
2,022
7
13
0
63
0
833
55
4
0
false
true
false
false
false
false
low
72,939,706
Flutter - can I make a SingleChildScrollView fill the available space?
<p>I have a Flutter app which I'm building for Android. The structure goes broadly like this:</p> <pre><code> Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text(&quot;&quot;)), body: SingleChildScrollView( child: Container( decoration: const BoxDecoratio...
I have a Flutter app which I'm building for Android. The structure goes broadly like this: [CODE] The goal here is to have the gradient background fill all the screen below the app bar, and if the content is larger than that space then to make it scrollable. If I omit the SingleChildScrollView , the Container fills the...
android|flutter|flutter-layout
0
2022-07-11T13:53:22.943Z
2,022
7
13
0
32
1
753
70
3
2
true
false
false
false
false
false
zero
72,939,755
Android CameraX - preview black/not visible after fragment resume
<p>I am using CameraX, preview, image and video capture. I have created a fragment class that uses binding to lifecycle to avoid all manual camera preview state management etc (as recommended by Google). Problem is that sometimes if I put the app into background and then foreground, the camera preview is black and does...
I am using CameraX, preview, image and video capture. I have created a fragment class that uses binding to lifecycle to avoid all manual camera preview state management etc (as recommended by Google). Problem is that sometimes if I put the app into background and then foreground, the camera preview is black and does no...
android|camera|android-camerax
0
2022-07-11T13:56:56.443Z
2,022
7
13
0
160
0
445
65
3
1
true
true
false
false
false
false
zero
72,939,820
Android Test Station give error and does not run
<p>After running &quot;mtt start&quot; i get this error message, what could be the cause of this and how can it be resolved?</p> <pre><code>/home/me/.local/lib/python3.6/site-packages/google/auth/crypt/_cryptography_rsa.py:22: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Th...
After running &quot;mtt start&quot; i get this error message, what could be the cause of this and how can it be resolved? [CODE]
python|android|testing|cts
0
2022-07-11T14:02:03.210Z
2,022
7
14
0
47
0
128
48
4
1
true
true
false
false
false
false
zero
72,939,830
Remove the httpclient to htttpurlconnection
<p>In this example I use the httpclient for a post request, and I can't do the same with the httpurlconnection. Here I leave the method to see if you can help me.</p> <p>The first thing I do is set the url for the request with the parameters that we are going to send it.</p> <p>And then I use the response code that the...
In this example I use the httpclient for a post request, and I can't do the same with the httpurlconnection. Here I leave the method to see if you can help me. The first thing I do is set the url for the request with the parameters that we are going to send it. And then I use the response code that the request sends me...
android|post
0
2022-07-11T14:03:14.313Z
2,022
7
14
0
20
0
355
43
2
1
true
true
false
false
false
false
zero
72,939,877
Android. How to get instance of fragment using navigation component?
<p>I'm using MVVM and navigation component. Here is my code to navigate to another fragment:</p> <pre><code>NavHostFragment.findNavController(this).navigate((R.id.navigation_photo_detail) </code></pre> <p>But in my PhotoDetailFragment there are also methods that require getting an interface:</p> <pre><code>class PhotoD...
I'm using MVVM and navigation component. Here is my code to navigate to another fragment: [CODE] But in my PhotoDetailFragment there are also methods that require getting an interface: [CODE] In order to call these methods I must get a fragment instance. How can this be done using navigation component ? Please help me....
android|android-fragments|android-jetpack-navigation|navigationcontroller
0
2022-07-11T14:06:20.057Z
2,022
7
14
0
52
0
608
68
4
2
true
true
false
false
false
false
zero
72,939,988
Flutter TabBarView is not working in release mode
<p>Flutter TabBarView is not working in release mode when widget first initilized but after recall the widget it works. For better understanding check demo gif.</p> <pre><code>static const List&lt;Tab&gt; tabs = &lt;Tab&gt;[ Tab(child: Text(&quot;Latest&quot;)), Tab(child: Text(&quot;Business&quot;)), Tab(child: Text(&...
Flutter TabBarView is not working in release mode when widget first initilized but after recall the widget it works. For better understanding check demo gif. [CODE]
android|flutter
1
2022-07-11T14:15:28.570Z
2,022
7
14
0
49
0
164
49
2
1
true
true
false
false
false
false
low
72,940,054
How to eliminate black lines in recycler view
<p>I have been using recycler view but don't know why there is black lines after each partition though I dont have any code which promote black lines. It works well without any divider lines if I am not using any volley library or picasso library or when I am using my own array list. This is XML CODE:</p> <pre><code>...
I have been using recycler view but don't know why there is black lines after each partition though I dont have any code which promote black lines. It works well without any divider lines if I am not using any volley library or picasso library or when I am using my own array list. This is XML CODE: [CODE] This is kotli...
android|kotlin|android-fragments|android-recyclerview
-1
2022-07-11T14:20:49.260Z
2,022
7
14
0
36
1
347
45
4
2
true
false
false
false
false
true
negative
72,940,173
Distribute App Center builds to Google Play including debug symbols and mapping file upload
<p>I managed to set up Visual Studio App Center to build my Xamarin.Forms project and distribute the Android build to Google Play.</p> <p>It works, but Google Play Console warns about missing Native debug symbols and the ReTrace mapping file mappings.txt from the code shrinker - both can be uploaded manually (app bundl...
I managed to set up Visual Studio App Center to build my Xamarin.Forms project and distribute the Android build to Google Play. It works, but Google Play Console warns about missing Native debug symbols and the ReTrace mapping file mappings.txt from the code shrinker - both can be uploaded manually (app bundle explorer...
android|google-play-console|debug-symbols|visual-studio-app-center|visual-studio-app-center-distribute
0
2022-07-11T14:28:44.597Z
2,022
7
14
0
111
0
959
91
5
0
false
true
false
false
false
false
zero
72,940,285
Android :switch between Layouts dynamically every 10 seconds
<p>android beginner here. any help is much appreciated .</p> <p>I am working on an app that can do a simple experiment. the app displays images and asks users to rate it from 1 to 10. I have 1 activity and two layouts experiment begins. I have two layouts merged under FrameLayout. what I want to achieve is : '<strong>=...
android beginner here. any help is much appreciated . I am working on an app that can do a simple experiment. the app displays images and asks users to rate it from 1 to 10. I have 1 activity and two layouts experiment begins. I have two layouts merged under FrameLayout. what I want to achieve is : ' ====>start experim...
android|kotlin|android-layout|runnable
0
2022-07-11T14:37:05.550Z
2,022
7
14
0
56
1
770
60
4
2
true
false
false
false
false
false
zero
72,940,472
Post Method using Volley Library returns empty result
<p><strong>Hello, I am trying to request a POST method in Volley library but it returns empty result (the filed is empty) as shown in my php code, so whats the problem? but if i change to GET METHOD, it's working well? i know that the same question in the platform, but I need help in this code</strong></p> <p><strong>H...
Hello, I am trying to request a POST method in Volley library but it returns empty result (the filed is empty) as shown in my php code, so whats the problem? but if i change to GET METHOD, it's working well? i know that the same question in the platform, but I need help in this code HERE IS KOTLIN CODE [CODE] PHP CODE ...
php|android-jetpack-compose|android-jetpack
0
2022-07-11T14:51:40.627Z
2,022
7
14
0
19
0
326
53
3
2
true
true
false
false
false
false
zero
72,940,502
android, what is the benefit of depending on aar file
<p>In android app/lib it could depend on other libs</p> <pre><code>implementation &quot;xxx.yyy.lib-name:{$libVersion}&quot;) </code></pre> <p>but it could also do</p> <pre><code>implementation files('libs/file-name.aar') </code></pre> <p>which using the generated/published <code>aar</code> file (download to local fold...
In android app/lib it could depend on other libs [CODE] but it could also do [CODE] which using the generated/published aar file (download to local folder, or refer to maven site) Question: What is the benefit of depending on aar , or what is the use case it should be depending on the aar ?
android|android-library|aar
0
2022-07-11T14:54:00.113Z
2,022
7
14
0
22
0
291
53
3
2
true
true
false
false
false
false
zero
72,940,507
Animated.ScrollView is not scrolling horizontally, only on Android with using the scrollTo() method
<p>I created to scroll multi-pages using <em>Animated.ScrollView</em>. It is working properly on iOS, but it got stuck on Android.</p> <p>Here is my CustomPagerView component:</p> <pre><code>import { StyleSheet, Animated, Dimensions, Platform} from 'react-native'; const {width, height} = Dimensions.get('screen'); exp...
I created to scroll multi-pages using Animated.ScrollView . It is working properly on iOS, but it got stuck on Android. Here is my CustomPagerView component: [CODE] Calling component like that: [CODE] Functions or other elements for using that CustomPagerView is located in the parent Component and defined like that: [C...
android|react-native|animation|scrollview
1
2022-07-11T14:54:32.197Z
2,022
7
14
0
50
0
341
99
4
3
true
true
false
false
false
false
low
72,940,676
Pipe filtered Android logcat to file
<p>Logcat obviously has a lot of rubbish so, I use the filters to exclude all rubbish when in AS.</p> <p>However, I can't figure how to do this when I am piping logcat to a file:</p> <pre><code>adb logcat &gt; test.txt </code></pre> <p>How can I filter them so I don't have thousands of unwanted lines in the file? There...
Logcat obviously has a lot of rubbish so, I use the filters to exclude all rubbish when in AS. However, I can't figure how to do this when I am piping logcat to a file: [CODE] How can I filter them so I don't have thousands of unwanted lines in the file? There are a LOT of filters. Excluding many, many tags. I am on Wi...
android|android-studio|pipe|logcat
0
2022-07-11T15:05:37.487Z
2,022
7
15
0
27
0
329
36
4
1
true
true
false
false
false
false
zero
72,940,743
Alternative way to importing classes manually?
<p>I'm trying to code a simple android app for something and I was wondering if there was an alternative to importing each class manually, or why it shows up as red since anytime I write something in a similar way it won't run. <a href="https://i.stack.imgur.com/QSg2V.png" rel="nofollow noreferrer">android studio scree...
I'm trying to code a simple android app for something and I was wondering if there was an alternative to importing each class manually, or why it shows up as red since anytime I write something in a similar way it won't run. android studio screenshot
java|android-studio
0
2022-07-11T15:10:37.777Z
2,022
7
15
0
50
1
250
46
2
0
false
false
false
false
false
false
zero
72,941,049
Jetpack Compose icon shadow/elevation
<p>Is there a way to have an Icon (with ImageVector) component with a shadow/elevation in Jetpack Compose?</p> <p>I want to make an IconButton with an elevated Icon but there seems to be no solution available for this problem. Things like <code>Modifier.shadow()</code> will only draw a shadow box around my icon and the...
Is there a way to have an Icon (with ImageVector) component with a shadow/elevation in Jetpack Compose? I want to make an IconButton with an elevated Icon but there seems to be no solution available for this problem. Things like Modifier.shadow() will only draw a shadow box around my icon and the Icon component itself ...
android|android-jetpack-compose
2
2022-07-11T15:32:26.077Z
2,022
7
15
0
266
2
695
37
2
0
false
false
false
false
false
false
low
72,941,108
Is there any way to crop a video automatically in android studio?
<p>What I want to do is receive a video in a videoView, for example, stored in firebase. And I need that video to fit a vertical videoView, cutting off or not showing any excess. So if its an horizontal video just remove the sides and center it. Something like this : <a href="https://i.stack.imgur.com/Rn3fZ.png" rel="...
What I want to do is receive a video in a videoView, for example, stored in firebase. And I need that video to fit a vertical videoView, cutting off or not showing any excess. So if its an horizontal video just remove the sides and center it. Something like this : 1
java|android|kotlin|android-videoview
0
2022-07-11T15:36:28.043Z
2,022
7
15
0
40
0
266
65
4
0
false
true
false
false
false
false
zero
72,941,127
Source file doesn't exist error from Uri converted File path
<p>Using the <code>Compressor</code> library for Android, I'm trying to compress the camera snapshot image and it throws an exception stating that the source file does not exist, although I confirmed that the image does exist in the internal storage <code>Pictures/cam_images/</code> directory. What could be wrong with ...
Using the Compressor library for Android, I'm trying to compress the camera snapshot image and it throws an exception stating that the source file does not exist, although I confirmed that the image does exist in the internal storage Pictures/cam_images/ directory. What could be wrong with the code? File Paths XML [COD...
android|uri|android-image|android-file|android-fileprovider
0
2022-07-11T15:37:47.330Z
2,022
7
15
0
45
0
370
60
5
4
true
true
false
false
false
false
zero
72,941,227
Using bluetooth module to read input from bluetooth terminal on phone and print to console on raspberry pi
<p>I am stuck on a problem I cannot overcome now and would appreciate the help! I am trying to send commands to raspberry pi from a phone via a Bluetooth terminal.</p> <p>As I am developing, I am now trying to get the raspberry pi to read the serial value from the UART pins that the Bluetooth module is connected to whe...
I am stuck on a problem I cannot overcome now and would appreciate the help! I am trying to send commands to raspberry pi from a phone via a Bluetooth terminal. As I am developing, I am now trying to get the raspberry pi to read the serial value from the UART pins that the Bluetooth module is connected to when the phon...
python|android|raspberry-pi|bluetooth|pyserial
0
2022-07-11T15:47:16.767Z
2,022
7
15
0
101
0
910
106
5
1
true
true
false
false
false
false
zero
72,941,282
Unable to retrieve camera characteristics for unknown device
<p>I'm receiving reports from some of my users with the following exception</p> <blockquote> <p>java.lang.IllegalArgumentException: getCameraCharacteristics:1019: Unable to retrieve camera characteristics for unknown device 0: No such file or directory (-2) at android.hardware.camera2.CameraManager.throwAsPublicExcepti...
I'm receiving reports from some of my users with the following exception java.lang.IllegalArgumentException: getCameraCharacteristics:1019: Unable to retrieve camera characteristics for unknown device 0: No such file or directory (-2) at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:1...
android|android-camera|android-camera2
0
2022-07-11T15:51:09.997Z
2,022
7
15
0
154
0
958
60
3
1
true
true
false
false
false
false
zero
72,941,287
How to interpret tflite detection model in Android Studio?
<p>I've trained YOLOv4 model in Google Colab for object detection. I followed <a href="https://www.youtube.com/watch?v=yV9nrRIC_R0" rel="nofollow noreferrer">this</a> tutorial for building an android app. It's for classification task and a bit different from what I wanted. The app takes picture from camera or from gall...
I've trained YOLOv4 model in Google Colab for object detection. I followed this tutorial for building an android app. It's for classification task and a bit different from what I wanted. The app takes picture from camera or from gallery, shows it on the screen and feeds it to the model. Below the image there supposed t...
java|android-studio|tensorflow|roboflow|tflite
0
2022-07-11T15:51:51.897Z
2,022
7
15
0
53
0
811
58
5
2
true
true
false
false
false
false
zero
72,941,453
How to make a chip retain its shape after click-event in compose?
<p>I am currently trying to make it so that when the user has clicked the chip it still retains it's initial form/shape, in this case round. How can I achieve this?</p> <p>This is how it operates currently: <a href="https://gyazo.com/bdbe867adb5c9e75381f7ac923134709" rel="nofollow noreferrer">https://gyazo.com/bdbe867a...
I am currently trying to make it so that when the user has clicked the chip it still retains it's initial form/shape, in this case round. How can I achieve this? This is how it operates currently: https://gyazo.com/bdbe867adb5c9e75381f7ac923134709 The Chip code: [CODE]
android|kotlin|material-design|android-chips
1
2022-07-11T16:03:32.473Z
2,022
7
16
0
65
2
269
65
4
1
true
false
false
false
false
false
low
72,941,456
onMenuItemSelected is not called
<p>Since <code>onOptionsItemSelected</code> i want to migrate to <code>MenuProvider</code>.</p> <p>After implementing interface and adding provider onMenuItemSelected wont be called when clicking on Menuitem. Only onCreateMenu is called.</p> <p>It all works with the old API but the new way just does not recognize any c...
Since onOptionsItemSelected i want to migrate to MenuProvider . After implementing interface and adding provider onMenuItemSelected wont be called when clicking on Menuitem. Only onCreateMenu is called. It all works with the old API but the new way just does not recognize any clicks Does anyone know what may be missing...
java|android|android-lifecycle
1
2022-07-11T16:03:44.740Z
2,022
7
16
0
143
0
334
32
3
1
true
true
false
false
false
false
low