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,145,548
toBundle.toPutInt() method of NavArgs is not working
<p>So, in Android's Navigation, when we want to pass parameters from a FragmentA to a FragmentB, we have two ways to receive this parameter, via Bundle, in FragmentB:</p> <pre><code>val args: FragmentBArgs by navArgs() override fun onViewCreated(view: View, savedInstanceState: Bundle?) { val tv: TextView = view.fi...
So, in Android's Navigation, when we want to pass parameters from a FragmentA to a FragmentB, we have two ways to receive this parameter, via Bundle, in FragmentB: [CODE] or [CODE] Both, I normally get the value. But if I try to change this value directly in the Bundle, the two behave differently. Example: [CODE] In th...
android|kotlin|navigation
0
2022-05-06T17:49:13.903Z
2,022
5
17
4
28
1
681
52
3
4
true
false
false
false
false
false
zero
72,145,552
UI Automator - Avoiding the App closing at the end of the test
<p>I've just started to work with UI Automator to make integration tests for my Android App, and I'm experiencing this problem:</p> <p>After I've performed a test, the app closes, but I would like to keep it opened.</p> <p>That's my code:</p> <pre><code> @RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest { ...
I've just started to work with UI Automator to make integration tests for my Android App, and I'm experiencing this problem: After I've performed a test, the app closes, but I would like to keep it opened. That's my code: [CODE] What should I write to &quot;remain in the app&quot;? Thank you
android|android-uiautomator|uiautomatorviewer
0
2022-05-06T17:49:25.750Z
2,022
5
17
4
115
0
292
62
3
1
true
true
false
false
false
false
zero
72,145,591
How to get the name of child realtime database kotlin
<p>I am trying to get the email (in this case mikeyreid2002@gmail.com) however I don't see any method I can use that gets me the name of the child instead of the value.</p> <p><a href="https://i.stack.imgur.com/uzonn.png" rel="nofollow noreferrer">https://i.stack.imgur.com/uzonn.png</a></p>
I am trying to get the email (in this case mikeyreid2002@gmail.com) however I don't see any method I can use that gets me the name of the child instead of the value. https://i.stack.imgur.com/uzonn.png
android|kotlin|firebase-realtime-database
0
2022-05-06T17:52:40.697Z
2,022
5
17
4
36
1
201
53
3
0
false
false
false
false
false
false
zero
72,145,823
Download hardware profile for Xiaomi MI 9T
<p>is there a repository where it is possible to download hardware profile for xiaomi MI 9T, in order to import in android studio device manager?</p> <p>Thanks a lot</p>
is there a repository where it is possible to download hardware profile for xiaomi MI 9T, in order to import in android studio device manager? Thanks a lot
android|android-studio|xiaomi|android-device-manager
0
2022-05-06T18:17:34.933Z
2,022
5
18
4
202
0
155
42
4
0
false
true
false
false
false
false
zero
72,145,832
java.lang.IllegalStateException Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException
<p>I m getting the following error in the google play console, and no idea how to solve it. I don't use SQLite in my app. The error started appearing after targeting SDK 30. Upgrading libraries to the latest has not helped.</p> <pre><code>java.lang.IllegalStateException: at androidx.work.impl.utils.ForceStopRunnable...
I m getting the following error in the google play console, and no idea how to solve it. I don't use SQLite in my app. The error started appearing after targeting SDK 30. Upgrading libraries to the latest has not helped. [CODE]
android|multithreading|sqlite
6
2022-05-06T18:18:27.697Z
2,022
5
18
4
263
1
227
98
3
1
true
false
false
false
false
false
medium
72,145,895
include local.properties file in android jenkins build
<p>I am trying to set up jenkins pipeline for android app. we are not commiting the local.properties file on git server for security reasons. now the problem is this local.properties file contains few variables that i am accessing from build.gradle and since it is not committed, jenkin build unable to locate this file ...
I am trying to set up jenkins pipeline for android app. we are not commiting the local.properties file on git server for security reasons. now the problem is this local.properties file contains few variables that i am accessing from build.gradle and since it is not committed, jenkin build unable to locate this file and...
android|jenkins|cicd
0
2022-05-06T18:24:48.333Z
2,022
5
18
4
72
1
385
54
3
0
false
false
false
false
false
false
zero
72,145,898
StorageReference getFile doesn't work properly
<p>I have a text file I'm storing on the Firebase database and I'm trying to retrieve the text as following:</p> <pre><code>File tempFile = File.createTempFile(&quot;tempfile&quot;, &quot;.txt&quot;); Path filename = tempFile.toPath(); FileDownloadTask fdt = gsReference.getFile(tempFile); fdt.addOnSuccessLi...
I have a text file I'm storing on the Firebase database and I'm trying to retrieve the text as following: [CODE] it worked once but now when debugging I see that the onSuccessListener is never called anymore, it skips right over to the next part of the code. I've seen a similiar question where someone said the getFile ...
java|android|firebase-storage
1
2022-05-06T18:25:12.077Z
2,022
5
18
4
31
1
546
46
3
2
true
false
false
false
false
false
low
72,146,018
How to use SearchView with fragment
<p>I am using a <code>RecyclerView</code> and on the top of the <code>RecyclerView</code> I am using a <code>SearchView</code> but the <code>SearchView</code> is not focusable. I have tried with <code>EditText</code> too, but the <code>EditText</code> is also not focusable. <br> Can't we use <code>EditText</code> or Se...
I am using a RecyclerView and on the top of the RecyclerView I am using a SearchView but the SearchView is not focusable. I have tried with EditText too, but the EditText is also not focusable. Can't we use EditText or Search View with Recyclerview in Fragment ? Here is my XML code [CODE]
android|android-recyclerview|android-edittext|searchview
0
2022-05-06T18:37:56.877Z
2,022
5
18
4
26
0
289
35
4
1
true
true
false
false
false
false
zero
72,146,044
send id number from recyclerview to another activity
<p>I have an activity that contains a <code>RecyclerView</code> and a button that open another activity with some <code>EditTexts</code> that insert the data to google sheet and I read all the data of it in the <code>RecyclerView</code>, I use one of these <code>EditTexts</code> to insert a number(id) for each item of ...
I have an activity that contains a RecyclerView and a button that open another activity with some EditTexts that insert the data to google sheet and I read all the data of it in the RecyclerView , I use one of these EditTexts to insert a number(id) for each item of the Google sheet, what I want is to make this process ...
android|android-studio|android-recyclerview|android-edittext
0
2022-05-06T18:40:32.087Z
2,022
5
18
4
31
1
515
52
4
0
false
false
false
false
false
false
zero
72,146,047
Unable to start service intent u=0 when trying to bind to service
<p>We have two apps now, say app1 and app2. We want to start app2 first and then app2 will call context.bindService() to invoke app1 without even requiring app1 to be started first. We are using the below code to bind the service</p> <pre><code>context.applicationContext.bindService(intent, ServiceConnection, Context.B...
We have two apps now, say app1 and app2. We want to start app2 first and then app2 will call context.bindService() to invoke app1 without even requiring app1 to be started first. We are using the below code to bind the service [CODE] In the Manifest we are giving the full service package name and also query packages in...
android|aidl
0
2022-05-06T18:40:39.883Z
2,022
5
18
4
24
0
750
65
2
2
true
true
false
false
false
false
zero
72,146,053
Jetpack Compose - A Card is inside a Surface Composable - Card size is ignored with Surface Composable being fillMaxSize
<p>I am new to Jetpack Compose, and just starting.</p> <p>I came across this code</p> <ol> <li>This is a Composable function creating a Circle using Card</li> </ol> <pre><code>@Composable fun CreateCircle() { Card( modifier = Modifier .padding(3.dp) .size(100.dp) .clickab...
I am new to Jetpack Compose, and just starting. I came across this code This is a Composable function creating a Circle using Card [CODE] This is Composable using the above mentioned Composable [CODE] This MyApp composable is being used in setContent in onCreate Now, when this is used like this, I see the following Emu...
android|kotlin|android-jetpack-compose|android-jetpack
0
2022-05-06T18:41:10.867Z
2,022
5
18
4
15
0
682
120
4
3
true
true
false
false
false
false
zero
72,146,083
How do I resolve InflateException: Binary XML file line problem?
<p>I'm going to inflate the recycler view in the home fragment using the Navigation component. There are two problems here.</p> <ol> <li>InflateException Issues</li> <li>Only one first index appears in view in ArrayList</li> </ol> <p>here is error message.</p> <pre><code>Caused by: android.view.InflateException: Binary...
I'm going to inflate the recycler view in the home fragment using the Navigation component. There are two problems here. InflateException Issues Only one first index appears in view in ArrayList here is error message. [CODE] And this is my code. homefragment.java: [CODE] fragment_home.xml: [CODE] activity_navigation.xm...
android|android-fragments|android-recyclerview|navigation-drawer
0
2022-05-06T18:44:16.027Z
2,022
5
18
4
33
1
405
64
4
5
true
false
false
false
false
false
zero
72,146,137
If I use Media Store APIs, where will the files be stored?
<p>I have some doubts regarding the storage in the android!</p> <p>If I use Media Store APIs, where will the files be stored?</p> <p>I am making a messenger like WhatsApp and am stuck in the storage part? Please help me!</p> <p>I am open to suggestions for making an efficient messenger app! Please recommend any resourc...
I have some doubts regarding the storage in the android! If I use Media Store APIs, where will the files be stored? I am making a messenger like WhatsApp and am stuck in the storage part? Please help me! I am open to suggestions for making an efficient messenger app! Please recommend any resources!
android|storage|whatsapp|mediastore
0
2022-05-06T18:49:32.800Z
2,022
5
18
4
56
0
299
58
4
0
false
true
false
false
false
false
zero
72,146,219
How to hide App icon from launcher in Android 10 and higher
<p>I know there is a way to hide app icon in Android 9(API 28) and lower. But is there a work around to make the same happen in Android 10(Api 29).</p> <p>The code below doesn't work for API 29.</p> <pre class="lang-kotlin prettyprint-override"><code> val p: PackageManager? = context?.packageManager ...
I know there is a way to hide app icon in Android 9(API 28) and lower. But is there a work around to make the same happen in Android 10(Api 29). The code below doesn't work for API 29. [CODE]
android|android-automotive
0
2022-05-06T18:58:52.027Z
2,022
5
18
4
389
0
191
59
2
1
true
true
false
false
false
false
zero
72,146,390
How fix remember in Jetpack Compose?
<p>The picture shows the code and logs For some reason <code>startDate</code> and <code>endDate</code> not recreated</p> <p><a href="https://i.stack.imgur.com/sIbzC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sIbzC.png" alt="enter image description here" /></a></p>
The picture shows the code and logs For some reason startDate and endDate not recreated
android|kotlin|android-jetpack-compose|android-jetpack
0
2022-05-06T19:16:11.877Z
2,022
5
19
4
323
1
87
36
4
0
false
false
false
false
false
false
zero
72,146,524
Flutter: I can't pull data with Mysql1
<p>I recently started Flutter. I want to make a simple contacts application with &quot;mysql1&quot; but I failed to pull the data. I installed the MySQL plugin in VS Code and I can see the table I created, but the application always returns &quot;no data&quot;. After some research, I learned that it is better to do it ...
I recently started Flutter. I want to make a simple contacts application with &quot;mysql1&quot; but I failed to pull the data. I installed the MySQL plugin in VS Code and I can see the table I created, but the application always returns &quot;no data&quot;. After some research, I learned that it is better to do it wit...
android|mysql|flutter
0
2022-05-06T19:29:34.273Z
2,022
5
19
4
102
1
598
38
3
5
true
false
false
false
false
false
zero
72,146,550
Android Paint. How is the character width calculated?
<p>I need to know how the width of text changes when I increase <code>paint.getTextSize()</code> n times. I thought that is proportional, but first test indicates that it is not. I got result like below, where</p> <ul> <li><p><strong>1st number</strong> - size of text set by <code>Paint.setTextSize(float)</code></p> </...
I need to know how the width of text changes when I increase paint.getTextSize() n times. I thought that is proportional, but first test indicates that it is not. I got result like below, where 1st number - size of text set by Paint.setTextSize(float) 2nd number - width of text measured with Paint.measureText(String) [...
android|skia|android-paint
0
2022-05-06T19:32:36.250Z
2,022
5
19
4
46
1
550
53
3
1
true
false
false
false
false
false
zero
72,146,727
Game transfer from PC to Android (Unity)
<p>I have a question. Since I was making my game(2D) in UNITY to work for PC, and now I want to switch platform for ANDROID. So my question is, <strong>can I put both controls for pc and android in one script</strong>? Like, just to add those codes beneath, or there is some other ways?</p> <p>I appreciate every help!<...
I have a question. Since I was making my game(2D) in UNITY to work for PC, and now I want to switch platform for ANDROID. So my question is, can I put both controls for pc and android in one script ? Like, just to add those codes beneath, or there is some other ways? I appreciate every help!
c#|android|2d-games|platform
0
2022-05-06T19:52:34.877Z
2,022
5
19
4
57
1
292
40
4
0
false
false
false
false
false
false
zero
72,146,779
PDF from HTML with only alphabetic (Latin) using itextpdf
<p>I believe that the answer to my question is very easy for those who have had experience with this, and I thank you in advance.</p> <p>Namely, I managed to export a PDF file from TextView <code>bodyText</code> and <code>titleText</code>, but my problem is that only alphabetic (Latin) letters can be seen in that PDF f...
I believe that the answer to my question is very easy for those who have had experience with this, and I thank you in advance. Namely, I managed to export a PDF file from TextView bodyText and titleText , but my problem is that only alphabetic (Latin) letters can be seen in that PDF file, I can't see an example in Arab...
java|android|unicode|itext
0
2022-05-06T19:58:15.160Z
2,022
5
19
4
72
1
467
57
4
1
true
false
false
false
false
false
zero
72,146,858
jetpack Compose with Coil not loading URL images
<p>New to Jetpack Compose and Coil, but not new to Android or Java/Kotlin.</p> <p>I'm not able to show images from a URL...Something basic missing?</p> <p>I took the Google/Android tutorial from (<a href="https://developer.android.com/jetpack/compose/tutorial" rel="nofollow noreferrer">https://developer.android.com/jet...
New to Jetpack Compose and Coil, but not new to Android or Java/Kotlin. I'm not able to show images from a URL...Something basic missing? I took the Google/Android tutorial from ( https://developer.android.com/jetpack/compose/tutorial ) and added to the gradle script: [CODE] And I added a String url to the Messages: [C...
android|android-jetpack-compose|coil
3
2022-05-06T20:08:35.943Z
2,022
5
20
4
1,361
1
752
48
3
4
true
false
false
false
false
false
low
72,147,033
Can RxJava be used to send messages only to the most recent subscriber?
<p>I've been given a requirement that when there are multiple observers, only the most recent subscription should receive messages. I'll illustrate with sloppy code examples.</p> <p><code>val fooDisposable = mostRecentSubscriberObservable.subscribe(this::foo)</code></p> <p>Any time <code>mostRecentSubscriberObservable...
I've been given a requirement that when there are multiple observers, only the most recent subscription should receive messages. I'll illustrate with sloppy code examples. val fooDisposable = mostRecentSubscriberObservable.subscribe(this::foo) Any time mostRecentSubscriberObservable emits an item, foo() is called. Now ...
android|rx-java
1
2022-05-06T20:28:00.047Z
2,022
5
20
4
30
0
931
71
2
0
false
true
false
false
false
false
low
72,147,091
Calling Firebase cloud function causes DEADLINE_EXCEEDED error when using Firebase emulator
<p>I've got a very simple cloud function that returns a string in a JSON.</p> <pre><code>const functions = require(&quot;firebase-functions&quot;); // Create and Deploy Your First Cloud Functions // https://firebase.google.com/docs/functions/write-firebase-functions exports.helloWorld = functions.https.onRequest((req...
I've got a very simple cloud function that returns a string in a JSON. [CODE] And I am calling it like this(app is running in android emulator): [CODE] The issue is that I am getting DEADLINE_EXCEEDED error. Note that I am also running firebase's emulator for cloud function, therefore this line: functions().useEmulator...
android|react-native|google-cloud-functions|android-emulator|genymotion
0
2022-05-06T20:35:05.717Z
2,022
5
20
4
71
1
423
91
5
2
true
false
false
false
false
false
zero
72,147,206
Admob Banner randomly changing from BANNER to FULL_BANNER size with Jetpack Compose
<p>I am integrating Admob's banners in my app, this app runs both in AndroidTV and Android, where it's running in mobile the dimensions must be <code>320x50(BANNER)</code> which is part of the standard sizes in the docs, but it turns of nowhere to <code>468x60(FULL_BANNER)</code>, this behavior happens oftentimes when ...
I am integrating Admob's banners in my app, this app runs both in AndroidTV and Android, where it's running in mobile the dimensions must be 320x50(BANNER) which is part of the standard sizes in the docs, but it turns of nowhere to 468x60(FULL_BANNER) , this behavior happens oftentimes when you run the app. I am using ...
android|admob|android-jetpack-compose
1
2022-05-06T20:48:32.970Z
2,022
5
20
4
187
1
627
83
3
1
true
false
false
false
false
false
low
72,147,428
React Native WebView - Can't access to camera with Expo
<p>I am trying to create a WebView that accesses the camera while the session. In Android - the WebView can't find the camera and throw an error. In IOS - the WebView opens the camera, but only the front camera is in &quot;Live Broadcast&quot; mode.</p> <p>My Code: <div class="snippet" data-lang="js" data-hide="false" ...
I am trying to create a WebView that accesses the camera while the session. In Android - the WebView can't find the camera and throw an error. In IOS - the WebView opens the camera, but only the front camera is in &quot;Live Broadcast&quot; mode. My Code: [CODE] app.json: [CODE] Thank you in advance!
android|ios|react-native|webview|expo
0
2022-05-06T21:13:26.547Z
2,022
5
21
4
427
0
301
55
5
2
true
true
false
false
false
false
zero
72,147,563
how to Access to the Response body in the retrofit?
<p>I changed the Volley library to Retrofit. Now I want to access the response body like the Volley library. I searched the internet and came up with this solution, but when I run the program, the program closes and shows a low error. Thank you in advance for your help.</p> <hr /> <h2>apiService Class</h2> <pre><code> ...
I changed the Volley library to Retrofit. Now I want to access the response body like the Volley library. I searched the internet and came up with this solution, but when I run the program, the program closes and shows a low error. Thank you in advance for your help. apiService Class [CODE] Retrofit Callback [CODE] Log...
android|api|service|request|retrofit
0
2022-05-06T21:31:08.477Z
2,022
5
21
4
241
2
330
51
5
3
true
false
false
false
false
false
zero
72,147,691
How And Where Do Meditation Apps Store Their Audio Files?
<p>I'm building a Flutter app that plays audio files. I have hundreds of audio files that are too large to store in the app. So, I want to host the files, then stream them to the device.</p> <p>I'm using the just_audio package (<a href="https://pub.dev/packages/just_audio" rel="nofollow noreferrer">https://pub.dev/pack...
I'm building a Flutter app that plays audio files. I have hundreds of audio files that are too large to store in the app. So, I want to host the files, then stream them to the device. I'm using the just_audio package ( https://pub.dev/packages/just_audio ). I've tested my code using the following hosted audio file and ...
android|ios|flutter|audio-streaming
1
2022-05-06T21:49:00.223Z
2,022
5
21
4
41
1
1,026
57
4
1
true
false
false
false
false
false
low
72,147,755
Do a connection using EventSource from Android with HTTPS to Spring-Boot server (JAVA)
<p>I have a spring-boot server which only accepts https requests, the point is that I need it to be able to communicate with the client (android) using SSE.</p> <p>I have configured the server so that they can subscribe and receive events. Tested with the browser it works perfectly. But I can't find any implementation ...
I have a spring-boot server which only accepts https requests, the point is that I need it to be able to communicate with the client (android) using SSE. I have configured the server so that they can subscribe and receive events. Tested with the browser it works perfectly. But I can't find any implementation that will ...
java|android|spring-boot|https|server-sent-events
0
2022-05-06T21:56:55.837Z
2,022
5
21
4
129
0
414
86
5
1
true
true
false
false
false
false
zero
72,147,945
How to remove Async storage warning from react native
<p>Dependencies i used</p> <p>&quot;dependencies&quot;: { &quot;@react-native-async-storage/async-storage&quot;: &quot;^1.16.1&quot;, &quot;@react-native-community/netinfo&quot;: &quot;^8.1.0&quot;, &quot;@react-navigation/bottom-tabs&quot;: &quot;^6.2.0&quot;, &quot;@react-navigation/native&quot;: &quot;^6.0.8&quot;, ...
Dependencies i used &quot;dependencies&quot;: { &quot;@react-native-async-storage/async-storage&quot;: &quot;^1.16.1&quot;, &quot;@react-native-community/netinfo&quot;: &quot;^8.1.0&quot;, &quot;@react-navigation/bottom-tabs&quot;: &quot;^6.2.0&quot;, &quot;@react-navigation/native&quot;: &quot;^6.0.8&quot;, &quot;@rea...
android|react-native|asyncstorage
0
2022-05-06T22:24:33.740Z
2,022
5
22
4
40
0
1,458
53
3
0
false
true
false
false
false
false
zero
72,147,958
Keep headphone jack powered on android device, even without music playing
<p>I recently installed a tablet in my car (370z) I love the thing but the only problem I have is that when music isn't playing I get a static noise buzz. After doing some research it seemed like its because in order to save power Android shuts off the power to the headphone jack. There's a launcher that comes with the...
I recently installed a tablet in my car (370z) I love the thing but the only problem I have is that when music isn't playing I get a static noise buzz. After doing some research it seemed like its because in order to save power Android shuts off the power to the headphone jack. There's a launcher that comes with the se...
android|flutter
0
2022-05-06T22:26:02.533Z
2,022
5
22
4
19
0
745
73
2
0
false
true
false
false
false
false
zero
72,147,976
holder.itemView.rowLayout.setOnClickListener
<p>I have created the following adapter class for recyclerview but there is a compilation error while building in layout section <strong>&quot;holder.itemView.rowLayout.setOnClickListener&quot;</strong> Unresolved reference: rowLayout, I have changed the layout to LinearLayout aswell but still there is compilation erro...
I have created the following adapter class for recyclerview but there is a compilation error while building in layout section &quot;holder.itemView.rowLayout.setOnClickListener&quot; Unresolved reference: rowLayout, I have changed the layout to LinearLayout aswell but still there is compilation error The following is t...
android|kotlin|android-recyclerview
0
2022-05-06T22:28:58.150Z
2,022
5
22
4
37
1
396
44
3
2
true
false
false
false
false
false
zero
72,148,210
What the complete list of item options for an Android Theme
<p>If I generate a android application with the Android Studio, I got this <code>themes.xml</code> file:</p> <pre><code>&lt;resources xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt; &lt;!-- Base application theme. --&gt; &lt;style name=&quot;Theme.Basic&quot; parent=&quot;Theme.MaterialComponents.D...
If I generate a android application with the Android Studio, I got this themes.xml file: [CODE] If I understand correctly what's going on here, this theme uses the values from the parent theme Theme.MaterialComponents.DayNight.DarkActionBar and overrides the items listed on the file. Supose I want create a theme but do...
android|themes
0
2022-05-06T23:10:03.393Z
2,022
5
23
4
31
0
502
59
2
1
true
true
false
false
false
false
zero
72,148,220
how do I send a file via bluetooth with python?
<p>I am need some help with the development of a script that sends a txt file to the device that is connected to my pc (Bluetooth) I am using linux in this case and I have my cellphone connected. so , from the Bluetooth settings I can easily send files to connected devices, not a problem there, the problem comes when I...
I am need some help with the development of a script that sends a txt file to the device that is connected to my pc (Bluetooth) I am using linux in this case and I have my cellphone connected. so , from the Bluetooth settings I can easily send files to connected devices, not a problem there, the problem comes when I tr...
python|android|sockets|bluetooth|operating-system
0
2022-05-06T23:12:02.983Z
2,022
5
23
4
59
0
883
47
5
0
false
true
false
false
false
false
zero
72,148,558
Android ViewModel's LiveData not updating the UI
<p>I have the following fragment:</p> <p>todays_training_fragment.xml</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;layout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;&gt; &lt;data&gt; ...
I have the following fragment: todays_training_fragment.xml [CODE] TodaysTrainingFragment.java [CODE] CurrentTrainingSessionViewModel.java [CODE] I'm expecting my layout to show 0 in the text view as it's the initial value of activeProgramId, and then update the displayed value to 12342 when it's subsequently changed. ...
java|android
0
2022-05-07T00:27:10.020Z
2,022
5
0
5
122
1
394
48
2
3
true
false
false
false
false
false
zero
72,148,574
Is there a way of displaying 2 input for QR code in android
<p>So I’m creating an android app for queuing and it uses a QR code for reference and when scanned should display date and time of the chosen schedule but my code only displays one value when scanned</p> <p>This is my code</p> <p>String name; setContentView(R.layout.deposit_gen);</p> <pre><code> dl_dep = fin...
So I’m creating an android app for queuing and it uses a QR code for reference and when scanned should display date and time of the chosen schedule but my code only displays one value when scanned This is my code String name; setContentView(R.layout.deposit_gen); [CODE] select_date is the variable for chosen dates and ...
android-studio
0
2022-05-07T00:30:36.340Z
2,022
5
0
5
10
0
332
59
1
1
true
true
false
false
false
false
zero
72,148,599
I am using viewpager2 inside a recyclerview but the images are not outputting. Why?
<p>No matter what I do the pictures are not showing up.</p> <p>Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the morning, if I find it, I will relax very well :D</p> <p>This is my adapter for viewpager 2 :</p> <pre><code> class ViewPagerAdapter ( private val ...
No matter what I do the pictures are not showing up. Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the morning, if I find it, I will relax very well :D This is my adapter for viewpager 2 : [CODE] This is my xml code for my viewpager items : [CODE] This is my rec...
android|android-studio|kotlin|android-recyclerview|android-viewpager2
0
2022-05-07T00:37:06.070Z
2,022
5
0
5
209
2
411
83
5
4
true
false
false
false
false
false
zero
72,148,644
How to return multimap type with 3 tables (Android Room Databases)
<p>I am trying to do a 3 way JOIN in my query for my Android Room Database.</p> <p>My tables relationships are:</p> <ol> <li><code>Table1</code> has a 1 to 1 relationship with <code>Table2</code></li> <li><code>Table2</code> has a 1 to many relationship with <code>Table3</code> (<code>Table3</code> is the many)</li> </...
I am trying to do a 3 way JOIN in my query for my Android Room Database. My tables relationships are: Table1 has a 1 to 1 relationship with Table2 Table2 has a 1 to many relationship with Table3 ( Table3 is the many) I'm currently having issues with my return type on my dao method. I wish to use the newer method doing ...
android|sql|kotlin|android-room
0
2022-05-07T00:49:29.337Z
2,022
5
0
5
293
1
803
66
4
0
false
false
false
false
false
false
zero
72,148,705
Android UI tests with Hillt and NavComponent - NavController not set error
<p>I've been trying to write some UI tests for Android app. I followed official docs, youtube tutorials and stackoverflow answers and I keep getting the same error.</p> <pre><code>Caused by: java.lang.IllegalStateException: View androidx.constraintlayout.widget.ConstraintLayout{f81ae0c V.E...... ........ 0,0-1080,2006 ...
I've been trying to write some UI tests for Android app. I followed official docs, youtube tutorials and stackoverflow answers and I keep getting the same error. [CODE] I tried using navigation test library to set navController, I tried using Mockito as well. I followed google example to set it in scenarios observeFore...
android|android-espresso|dagger-hilt|ui-testing|android-jetpack-navigation
0
2022-05-07T01:06:22.437Z
2,022
5
1
5
177
2
474
74
5
5
true
false
false
false
false
false
zero
72,148,721
Using requestDisallowInterceptTouchEvent to scroll RecyclerView inside RecyclerView blocks scrolling parent
<p>I am using a RecyclerView inside a RecyclerView. I want to be able to scroll through both. Therefore I included <a href="https://stackoverflow.com/a/56433895/8393413">this answer</a> to my child RecyclerView, which worked... kind of. I can scroll the child, but when I stop scrolling and want to scroll the child agai...
I am using a RecyclerView inside a RecyclerView. I want to be able to scroll through both. Therefore I included this answer to my child RecyclerView, which worked... kind of. I can scroll the child, but when I stop scrolling and want to scroll the child again, I have to tap on the parent first before being able to scro...
android|android-recyclerview
0
2022-05-07T01:11:12.417Z
2,022
5
1
5
345
0
1,724
107
2
6
true
true
false
false
false
false
zero
72,148,784
Do I still need to use traditional way to implement Preferences Settings Screen in Jetpack Compose?
<p>At present I use Jetpack Compose in my Android Studio project.</p> <p>I find many <a href="https://blog.mindorks.com/implementing-preferences-settings-screen-in-android" rel="noreferrer">projects</a> still to use traditional way to implement a Preferences Settings Screen after I Google it.</p> <p>I hope to implement...
At present I use Jetpack Compose in my Android Studio project. I find many projects still to use traditional way to implement a Preferences Settings Screen after I Google it. I hope to implement a Preferences Settings Screen when I use Jetpack Compose, I don't know if there is a new way to implement Preferences Setting...
android-jetpack-compose|android-jetpack
5
2022-05-07T01:27:59.573Z
2,022
5
1
5
469
1
664
99
2
0
false
false
false
false
false
false
low
72,148,796
Android app's access to TxAdd and PDU Type in the received BLE advertising packets
<p>I am writing an app that performs BLE scanning to collect advertising packets nearby. I wonder if Android Bluetooth libraries allow us to extract the TxAdd and PDU Type fields in an observed packet. Currently, I find no public methods in ScanResult for this, and ScanRecord seems to only show AD Structures.</p> <p>An...
I am writing an app that performs BLE scanning to collect advertising packets nearby. I wonder if Android Bluetooth libraries allow us to extract the TxAdd and PDU Type fields in an observed packet. Currently, I find no public methods in ScanResult for this, and ScanRecord seems to only show AD Structures. Any workarou...
android|bluetooth-lowenergy
0
2022-05-07T01:32:03.617Z
2,022
5
1
5
45
0
414
82
2
0
false
true
false
false
false
false
zero
72,148,889
Why am I having less options in Palette in Android Studio?
<p>I am using Android Studio (Bumblebee - 2021.1.1). Unlike other YouTubers having many options in Palette, I am having only a few options. Do I need to download any other libraries? If so from where should I download them? <a href="https://i.stack.imgur.com/WUoC6.png" rel="nofollow noreferrer">Screenshot of my Android...
I am using Android Studio (Bumblebee - 2021.1.1). Unlike other YouTubers having many options in Palette, I am having only a few options. Do I need to download any other libraries? If so from where should I download them? Screenshot of my Android Studio
android-studio
0
2022-05-07T01:55:21.230Z
2,022
5
1
5
20
0
252
58
1
0
false
true
false
false
false
false
zero
72,148,942
Navigation Drawer Custom Action bar [ Icon ] problem?
<p>My <code>custom navigation drawer</code> is working properly but as mentioned in the solved answer but I am confused about this line of code</p> <p><strong>Problem !</strong><br /> Press the back button to cress the app</p> <p>It would be my pleasure if you help me</p> <pre><code>mNavigationDrawerFragment=(Navigatio...
My custom navigation drawer is working properly but as mentioned in the solved answer but I am confused about this line of code Problem ! Press the back button to cress the app It would be my pleasure if you help me [CODE] Full code here
android|android-studio|android-actionbar|navigation-drawer|android-toolbar
0
2022-05-07T02:07:59.053Z
2,022
5
2
5
21
0
237
53
5
1
true
true
false
false
false
false
zero
72,148,950
android emulator disable microphone when launching device
<p><strong>How do we disable the (virtual) microphone when launching the emulator?</strong></p> <p><strong>Situation</strong><br /> When launching an Android Studio stock emulator device, the microphone is always enabled and listening.</p> <blockquote> <p><strong>Why would we want this fix</strong></p> </blockquote> <u...
How do we disable the (virtual) microphone when launching the emulator? Situation When launching an Android Studio stock emulator device, the microphone is always enabled and listening. Why would we want this fix Convenience , Many users have a microphone headset and when the microphone is enabled, they lose noise canc...
android|android-studio|android-emulator
3
2022-05-07T02:08:58.107Z
2,022
5
2
5
1,043
2
2,010
57
3
0
false
false
false
false
false
false
low
72,149,085
Why is my imported image asset completely black in color?
<p>I am trying to import a png image to use in my app, from <em>File</em> -&gt; <em>New</em> -&gt; <em>Image Asset</em>. After choosing my desired image file, my preview is this:</p> <p><a href="https://i.stack.imgur.com/k39kI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k39kI.png" alt="This is th...
I am trying to import a png image to use in my app, from File -> New -> Image Asset . After choosing my desired image file, my preview is this: I have tried importing multiple .png files. All of them when imported show black in color. How do I fix this?
android
0
2022-05-07T02:46:13.587Z
2,022
5
2
5
31
1
253
57
1
0
false
false
false
false
false
false
zero
72,149,097
Get multiple times current time on single Button
<p>I have a button showing text START when I click on it I shows me current time in textview.(I consider this time as start time). Than convert the text on Button into STOP. When I click on it again show me current time on another textview(I consider this time as stop time). And then calculate the difference between th...
I have a button showing text START when I click on it I shows me current time in textview.(I consider this time as start time). Than convert the text on Button into STOP. When I click on it again show me current time on another textview(I consider this time as stop time). And then calculate the difference between these...
java|android|android-studio
0
2022-05-07T02:48:40.267Z
2,022
5
2
5
39
1
999
48
3
1
true
false
false
false
false
false
zero
72,149,147
Avoid using deprecated API for UtteranceProgressListener
<p>I am using android.speech.tts.TextToSpeech and would like to have an UtteranceProgressListener that does not override the <a href="https://developer.android.com/reference/android/speech/tts/UtteranceProgressListener#onError(java.lang.String)" rel="nofollow noreferrer">deprecated onError</a> but rather uses the <a hr...
I am using android.speech.tts.TextToSpeech and would like to have an UtteranceProgressListener that does not override the deprecated onError but rather uses the recommended onError instead. Does anyone know how to do that? I want to avoid using a deprecated API in my app. Building using Android Studio and without overr...
java|android|text-to-speech|deprecated
2
2022-05-07T03:00:37.610Z
2,022
5
3
5
80
1
605
56
4
1
true
false
false
false
false
false
low
72,149,221
Livedata with large dataset in Room DB - Does the whole dataset get loaded from database when onChanged() gets called?
<p>I have a Room entity as so:</p> <pre><code>@Entity(tableName = &quot;user&quot;) public class User { @PrimaryKey @ColumnInfo(name = &quot;id&quot;) private int id; @ColumnInfo(name = &quot;name&quot;) private String name; @ColumnInfo(name = &quot;age&quot;) private int age; public...
I have a Room entity as so: [CODE] and ViewModel as so: [CODE] and observing the LiveData as so: [CODE] When I have a large dataset of users, such as 1000+ users, and I'm observing this live data, any changes in the database will trigger the onChanged() method. Does this mean that each time onChanged() is called, the 1...
java|android-room|android-livedata
0
2022-05-07T03:18:48.933Z
2,022
5
3
5
25
0
484
118
3
3
true
true
false
false
false
false
zero
72,149,239
Problem with a recyclerview adapter in android?
<p>I am working on a game called Space Mines. I am trying to get a list of planets on the screen, but am having trouble and do not know why. I try to debug the app, but it only goes up to item 6, and then does nothing. It keeps running, but the screen is completely blank. This is my view adapter,</p> <pre><code> /*****...
I am working on a game called Space Mines. I am trying to get a list of planets on the screen, but am having trouble and do not know why. I try to debug the app, but it only goes up to item 6, and then does nothing. It keeps running, but the screen is completely blank. This is my view adapter, [CODE] The list of planet...
java|android
0
2022-05-07T03:23:56.917Z
2,022
5
3
5
41
0
823
47
2
2
true
true
false
false
false
false
zero
72,149,363
Android ZoneDateTime.withHour always sets hour to 8
<p>So I am tring to schedule alarm at a particular time on current day using AlarmManager. To do that I am using ZoneDateTime to get current time and then updating it to the hour at which I need to set the alarm. But for some reason time.withHour is giving me 8pm or 8am no matter what hour I am passing to it. Am I doin...
So I am tring to schedule alarm at a particular time on current day using AlarmManager. To do that I am using ZoneDateTime to get current time and then updating it to the hour at which I need to set the alarm. But for some reason time.withHour is giving me 8pm or 8am no matter what hour I am passing to it. Am I doing s...
android|kotlin|java-time
0
2022-05-07T03:51:47.177Z
2,022
5
3
5
34
0
347
51
3
1
true
true
false
false
false
false
zero
72,149,549
How can I send firebase notifications using any other notification Library in react-native
<p>I want to build custom style for the notifications I'm recieving from firebase in kill/background state.</p>
I want to build custom style for the notifications I'm recieving from firebase in kill/background state.
react-native|firebase-cloud-messaging|apple-push-notifications|android-notifications
0
2022-05-07T04:38:38.930Z
2,022
5
4
5
31
0
104
90
4
0
false
true
false
false
false
false
zero
72,149,604
How to convert String having key=value pairs to Json
<p>myString = <code>{AcquirerName=abc, AcquiringBankCode=0.2, ApprovalCode=00};</code></p> <p>I want to convert it to the following string.</p> <pre><code>{&quot;AcquirerName&quot;: &quot;abc&quot;, &quot;AcquiringBankCode&quot;: 0.2, &quot;ApprovalCode&quot;: 0}; </code></pre> <p>How can I do it in java?</p>
myString = {AcquirerName=abc, AcquiringBankCode=0.2, ApprovalCode=00}; I want to convert it to the following string. [CODE] How can I do it in java?
java|android|arrays|json|object
0
2022-05-07T04:57:30.937Z
2,022
5
4
5
434
2
148
52
5
1
true
false
false
false
false
false
zero
72,149,609
How to convert a arraylist <String> to arrayList <Integer> and Calculate the values of Integers on it?
<p>How i am supposed to calculate ArrayList String from Listview values into ArrayList Integer and back to Listview, Because i've been making a application for Android that calculates the Listview items which is from ArrayList. <a href="https://i.stack.imgur.com/Vr1en.png" rel="nofollow noreferrer">This is one bugs me ...
How i am supposed to calculate ArrayList String from Listview values into ArrayList Integer and back to Listview, Because i've been making a application for Android that calculates the Listview items which is from ArrayList. This is one bugs me out of the most, it shows the last arrayList value to textView, not Calcula...
java|android|arraylist
-1
2022-05-07T04:58:33.097Z
2,022
5
4
5
41
1
385
102
3
1
true
false
false
false
false
true
negative
72,149,674
different between call view by name or use binding in android
<p>i'am a newest in android kotlin</p> <p>I want to know what is the difference between the two lines of code below and which one is better to use</p> <pre><code>class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMaindinding override fun onCreate(savedInstanceState: Bundle?) { super.o...
i'am a newest in android kotlin I want to know what is the difference between the two lines of code below and which one is better to use [CODE]
android|android-studio|android-layout
0
2022-05-07T05:14:41.403Z
2,022
5
5
5
32
1
143
61
3
1
true
false
false
false
false
false
zero
72,149,897
Using EdittextPreference for Goto search
<p>sorry for my poor English. I want to use EditTextPreference in my bottom nav like the pic below, ![screenshot][1]</p> <p>I have recycleview xml in my project with in many sub cardview layouts(which is scrollable) and I want to create item in the bottom nav which is called &quot;Goto&quot;. When the &quot;Goto&quot; ...
sorry for my poor English. I want to use EditTextPreference in my bottom nav like the pic below, ![screenshot][1] I have recycleview xml in my project with in many sub cardview layouts(which is scrollable) and I want to create item in the bottom nav which is called &quot;Goto&quot;. When the &quot;Goto&quot; item is cl...
java|android|android-layout
0
2022-05-07T06:02:56.260Z
2,022
5
6
5
14
0
960
40
3
1
true
true
false
false
false
false
zero
72,149,987
Updating a Single Column In Room Database
<p>That's the function I'm using for update:</p> <pre><code>private fun updateSettingsDatabase(settingsDao: SettingsDao) { lifecycleScope.launch { settingsDao.update(SettingsEntity( 1, nightMode=nightModeResult, )) } } @Query(&quot;SELECT * FROM `...
That's the function I'm using for update: [CODE] I specified nightMode= because I thought that this way I'm only updating this column, but it turns out that it resets every column, how do I update a single column, while keeping the values the rest of the columns?
android|kotlin|android-room
0
2022-05-07T06:19:30.833Z
2,022
5
6
5
330
2
263
41
3
1
true
false
false
false
false
false
zero
72,150,020
How to refresh fragment from activity on back pressed() function in kotlin android
<p>I want to refresh listviews in the fragment, when i back press from activity. Where should i add refresh function in OnResume() or OnBackPressed() in the Activity</p>
I want to refresh listviews in the fragment, when i back press from activity. Where should i add refresh function in OnResume() or OnBackPressed() in the Activity
listview|android-activity|fragment|refresh|onbackpressed
0
2022-05-07T06:24:55.023Z
2,022
5
6
5
35
0
162
82
5
0
false
true
false
false
false
false
zero
72,150,150
How can use MediaMetadataRetriever().setDataSource() while MediaStore.Audio.Media.DATA is deprecated to get the path
<p>I'm trying to get all audio files of an android device in addition to cover image of each one of them. MediaMetadataRetriever().setDataSource() should take a path but MediaStore.Audio.Media.DATA that provides path is deprecated. I tried this but I take IllegalArgumentException. I'm not sure if I'm doing it in the ri...
I'm trying to get all audio files of an android device in addition to cover image of each one of them. MediaMetadataRetriever().setDataSource() should take a path but MediaStore.Audio.Media.DATA that provides path is deprecated. I tried this but I take IllegalArgumentException. I'm not sure if I'm doing it in the right...
android|media|mediametadataretriever
0
2022-05-07T06:49:40.623Z
2,022
5
6
5
79
0
368
116
3
1
true
true
false
false
false
false
zero
72,150,172
[Android][MenuItem]How to display title text when long press actionLayout?
<p>I'm using <code>MenuItem</code> in my tool bar and some of the items require custom layouts, so I created actionLayout for them.<br /> The UI looks fine, but when I long press the items that only have <code>icon</code> but no <code>actionLayout</code>, they'll show <code>title</code> as a toast below the icon, while...
I'm using MenuItem in my tool bar and some of the items require custom layouts, so I created actionLayout for them. The UI looks fine, but when I long press the items that only have icon but no actionLayout , they'll show title as a toast below the icon, while those have actionLayout won't show anything. I want all ite...
android|kotlin|menuitem
1
2022-05-07T06:55:47.073Z
2,022
5
6
5
58
1
828
74
3
3
true
false
false
false
false
false
low
72,150,188
how in GridLayout (Android) to fit the last two blocks to full width?
<p>I am currently learning the Android front-end development, and our teacher gave us this task:</p> <p>We need to create the next grid in Android Studio: <a href="https://i.stack.imgur.com/mM2BX.png" rel="nofollow noreferrer">Task Grid</a> using <code>GridLayout</code>. For now I only created <a href="https://i.stack....
I am currently learning the Android front-end development, and our teacher gave us this task: We need to create the next grid in Android Studio: Task Grid using GridLayout . For now I only created this . Is there way to display the last two blocks of the GridLayout in full width?
android-studio
1
2022-05-07T06:58:19.853Z
2,022
5
6
5
33
2
280
69
1
0
false
false
false
false
false
false
low
72,150,255
failed to build react native project
<p>I had been able to build and run the react-native project in my old intel based mac successfully. Recently I migrated my project to the apple silicon and now I'm having issues building and running react-native project on m1 mac. When I run the <code>npx react-native run-android</code> I get below error message in th...
I had been able to build and run the react-native project in my old intel based mac successfully. Recently I migrated my project to the apple silicon and now I'm having issues building and running react-native project on m1 mac. When I run the npx react-native run-android I get below error message in the console: [CODE...
android|react-native
0
2022-05-07T07:07:11.650Z
2,022
5
7
5
113
0
545
36
2
1
true
true
false
false
false
false
zero
72,150,267
Jetpack compose scrollable table
<p>I need to have a component that scrolls vertically and horizontally.</p> <p>Here is what I did so far:</p> <pre><code>@Composable fun Screen() { val scope = rememberCoroutineScope() val scrollOffset = remember { mutableStateOf(value = 0F) } LazyColumn( modifier = Modifier.fillMaxSize(...
I need to have a component that scrolls vertically and horizontally. Here is what I did so far: [CODE] When anyone of these SimpleRow is scrolled I want to scroll all of the SimpleRow s together. And I do not know how many SimpleRow s I have because they came from our server. Is there any kind of composable or trick th...
kotlin|android-jetpack-compose
2
2022-05-07T07:08:47.317Z
2,022
5
7
5
442
1
340
32
2
1
true
false
false
false
false
false
low
72,150,327
AdMob: Ads not working with my package name
<p>I have a problem implementing AdMob with my Android app, ads are not showing for my package name, I changed the name and everything works fine, I restored the prod name and everything stopped working with the error: no ad config, this is my first time using AdMob, which means the ads work for a while and then sudden...
I have a problem implementing AdMob with my Android app, ads are not showing for my package name, I changed the name and everything works fine, I restored the prod name and everything stopped working with the error: no ad config, this is my first time using AdMob, which means the ads work for a while and then suddenly ...
android|admob|google-play-services|google-ads-api|adsense
1
2022-05-07T07:18:35.450Z
2,022
5
7
5
283
1
1,302
43
5
2
true
false
false
false
false
false
low
72,150,334
Android appcompat edittext input automatically changes to selected language text problem
<p>Hi Every One I am facing rare problem in an android app currently I am working on. Whenever my app has changed to different language except from english.EditText input value and TextView in my app automatically changes strings according to selected language though these strings are not from Strings.xml files. I cou...
Hi Every One I am facing rare problem in an android app currently I am working on. Whenever my app has changed to different language except from english.EditText input value and TextView in my app automatically changes strings according to selected language though these strings are not from Strings.xml files. I could n...
java|android|xml|kotlin|language-translation
0
2022-05-07T07:19:11.477Z
2,022
5
7
5
64
0
437
88
5
0
false
true
false
false
false
false
zero
72,150,496
I am doing bottom navigationview but my Fragments are stacking on top of each other
<p>I am new in android and I don't know what's up with my code <strong>I need help</strong> I put 2 or 3 code in same one and somehow works, but only problem I have with this is In Android Studio, I started a new project with <strong>bottomNavigationView</strong> and now when I run the application in the emulator, the ...
I am new in android and I don't know what's up with my code I need help I put 2 or 3 code in same one and somehow works, but only problem I have with this is In Android Studio, I started a new project with bottomNavigationView and now when I run the application in the emulator, the Home Fragment is there by default but...
java|android|android-fragments|bottomnavigationview
0
2022-05-07T07:44:50.847Z
2,022
5
7
5
30
0
941
83
4
1
true
true
false
false
false
false
zero
72,150,643
How to make Apk available in play store for the version 6 android phones
<p>I have published my application with a minimum SDK 23 but unfortunately, it's not showing the application in the play store for the android version 6 phones. I have tried to downgrade to a minimum SDK 22 but still failed to solve the problem. Here is my minSdk version</p> <p>android { compileSdkVersion 30 buildTools...
I have published my application with a minimum SDK 23 but unfortunately, it's not showing the application in the play store for the android version 6 phones. I have tried to downgrade to a minimum SDK 22 but still failed to solve the problem. Here is my minSdk version android { compileSdkVersion 30 buildToolsVersion &q...
android|android-studio|version-control|google-play-console
0
2022-05-07T08:07:26.830Z
2,022
5
8
5
23
0
444
72
4
1
true
true
false
false
false
false
zero
72,150,675
Install Android App Bundle on device over WiFi
<p>How can I installed .AAB file with adb or other tool over a WiFi only connected Android 11 device?</p> <p>I have been using something like:</p> <pre><code>adb.exe -s 192.168.1.120:5555 install -g some.apk </code></pre> <p>tried specifying the .aab instead of the .apk in my script but it won't accept it.</p> <p><a h...
How can I installed .AAB file with adb or other tool over a WiFi only connected Android 11 device? I have been using something like: [CODE] tried specifying the .aab instead of the .apk in my script but it won't accept it. The ionic build process started building .aab is there a way to tell it build only .apk for a spe...
ionic3|adb|android-app-bundle
0
2022-05-07T08:11:59.877Z
2,022
5
8
5
263
0
399
46
3
1
true
true
false
false
false
false
zero
72,150,706
How do I upload image file to google drive from android
<p>I'm having a issue uploading a file to Google Drive.</p> <p>W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/dev/files/backup/https:/i.picsum.photos/id/723/200/200.jpg? (No such file or directory)</p> <p>This is my following code.</p> <p>Source code from <strong><a href="https://www.sect...
I'm having a issue uploading a file to Google Drive. W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/dev/files/backup/https:/i.picsum.photos/id/723/200/200.jpg? (No such file or directory) This is my following code. Source code from https://www.section.io/engineering-education/backup-servi...
android|kotlin|google-drive-api|kotlin-coroutines|google-drive-android-api
1
2022-05-07T08:16:30.337Z
2,022
5
8
5
351
0
421
55
5
1
true
true
false
false
false
false
low
72,150,824
Limit of fetching Server time using firebase function
<p>I wanted to fetch server time on device so I am using FirebaseDatabase builtin function: <code>FirebaseDatabase.getInstance().getReference(&quot;.info/serverTimeOffset&quot;)</code> I want to know if there is any limit of free usage or number of connections.</p>
I wanted to fetch server time on device so I am using FirebaseDatabase builtin function: FirebaseDatabase.getInstance().getReference(&quot;.info/serverTimeOffset&quot;) I want to know if there is any limit of free usage or number of connections.
android|firebase|firebase-realtime-database
0
2022-05-07T08:33:58.620Z
2,022
5
8
5
19
0
245
53
3
0
false
true
false
false
false
false
zero
72,150,828
Appropriate Paths for Resources in AndroidManifest.xml
<p>in my AndroidManifest.xml, I have</p> <pre><code>&lt;application android:icon=&quot;@drawable/iC_launcher&quot; android:label=&quot;@string/app_name&quot; android:theme=&quot;@style/AppTheme&quot; &gt; </code></pre> <p>And when I run gradle build, I keep getting the errors</p> <pre><code>resource drawabl...
in my AndroidManifest.xml, I have [CODE] And when I run gradle build, I keep getting the errors [CODE] I'm guessing that the @drawable @string and @style correspond to the directories with the same names I've seen before when I used Android Studio. But now that I don't use Android Studio anymore, where should I put the...
android|gradle
0
2022-05-07T08:34:21.640Z
2,022
5
8
5
46
1
544
54
2
2
true
false
false
false
false
false
zero
72,151,029
How to pause a video in inside the webview in android
<p>I am doing a task where i have to load the url inside the webview so that i can show the video,everything is works fine but the thing is i need to pause the video inside the web view so video should not autoplay all the time.Any help Appricatied.</p> <blockquote> <p>MainActivity</p> </blockquote> <pre><code>class M...
I am doing a task where i have to load the url inside the webview so that i can show the video,everything is works fine but the thing is i need to pause the video inside the web view so video should not autoplay all the time.Any help Appricatied. MainActivity [CODE] layout [CODE]
android|kotlin|url|android-webview
0
2022-05-07T09:03:37.500Z
2,022
5
9
5
74
1
280
53
4
2
true
false
false
false
false
false
zero
72,151,116
Flutter Could not get unknown property 'plugin' for project ':app' of type org.gradle.api.Project. Error
<p>I am getting this error when running my Flutter app:</p> <pre><code>Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an exception. * Where: Build file 'C:\Dosyalar\Yaz�l�m\Flutter\Simto-To-Do-List\simto_todolist\android\app\build.gradle' line: 23 * What went wrong: ...
I am getting this error when running my Flutter app: [CODE] I started getting this error after I changed the location of my Flutter project. Codes at android\app\build.gradle mentioned in the error: [CODE] This is the first time I encountered this problem. Why am I getting this error? How can I solve it? Thanks in adva...
android|flutter
1
2022-05-07T09:17:00.773Z
2,022
5
9
5
489
1
348
104
2
2
true
false
false
false
false
false
low
72,151,118
Programmatically laying out vertical SeekBar objects
<p>The purpose of the following function (in an Android app) is to programmatically lay out three vertical SeekBar objects one beside the other.</p> <p>The setting for the constaints is a bit tricky, but the most difficult part for me here is to get the verticality of the bars. I use <em>rotation = 270.0F</em>, but the...
The purpose of the following function (in an Android app) is to programmatically lay out three vertical SeekBar objects one beside the other. The setting for the constaints is a bit tricky, but the most difficult part for me here is to get the verticality of the bars. I use rotation = 270.0F , but the rotation is ignor...
android|android-layout|android-constraintlayout
0
2022-05-07T09:17:27.073Z
2,022
5
9
5
16
0
404
52
3
1
true
true
false
false
false
false
zero
72,151,195
List View Constrain jump to top
<p>I am trying to learn SQL database with a tutorial. I add user and age to database and get them back and displayed using listView using ViewAll button then if i trying to add another user the list view jump to top how can i fix this i am a noob need help</p> <p>XML</p> <pre><code>&lt;?xml version=&quot;1.0&quot; e...
I am trying to learn SQL database with a tutorial. I add user and age to database and get them back and displayed using listView using ViewAll button then if i trying to add another user the list view jump to top how can i fix this i am a noob need help XML [CODE] this is how its look when its run in xml design
java|android|xml
0
2022-05-07T09:25:53.693Z
2,022
5
9
5
20
0
312
31
3
1
true
true
false
false
false
false
zero
72,151,235
How could I design a multi circular progress bar in jetpack compose?
<p>I'm trying to design a progress bar showing multi-progress using jetpack compose but I did not find any library or helping material. I am just able to design a single progress bar but I need to design like</p> <p><img src="https://i.stack.imgur.com/ZIczj.png" alt="This image" />.</p>
I'm trying to design a progress bar showing multi-progress using jetpack compose but I did not find any library or helping material. I am just able to design a single progress bar but I need to design like .
android|progress-bar|android-jetpack-compose|android-progressbar
3
2022-05-07T09:31:07.440Z
2,022
5
9
5
1,202
1
207
68
4
0
false
false
false
false
false
false
low
72,151,239
PermissionError: [Errno 13] Permission denied: '/home/vova/.local/lib/python3.8/site-packages/buildozer/__init__.py'
<p>I can't compile my project, here is my code</p> <pre><code>Traceback (most recent call last): File &quot;/home/vova/.local/bin/buildozer&quot;, line 5, in &lt;module&gt; from buildozer.scripts.client import main File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load File &quot;&l...
I can't compile my project, here is my code [CODE] What Do I have to do to solve this?
python|android|android-ndk|buildozer
1
2022-05-07T09:31:56Z
-1
-1
-1
-1
209
0
86
116
4
1
true
true
false
false
false
false
low
72,151,255
android PrintManager pdf print Incomplete display
<pre><code>class MyPrintPdfAdapter(private val mFilePath: String) : PrintDocumentAdapter() { @RequiresApi(api = Build.VERSION_CODES.KITKAT) override fun onLayout( oldAttributes: PrintAttributes, newAttributes: PrintAttributes, cancellationSignal: CancellationSignal, callback: LayoutResul...
[CODE]
android|pdf|printing
0
2022-05-07T09:34:08.517Z
2,022
5
9
5
15
0
6
49
3
1
true
true
false
false
false
false
zero
72,151,261
The KeyboardAvoidingView is not behaving the way I want it to
<p>So the code for my login screen is</p> <pre><code>import { StyleSheet, Text, View, StatusBar, SafeAreaView, TextInput, ImageBackground, KeyboardAvoidingView, } from &quot;react-native&quot;; import React from &quot;react&quot;; import LottieView from &quot;lottie-react-native&quot;; const LoginScree...
So the code for my login screen is [CODE] I want the keyboard to push the entire TextInput View and the lottieContainer up, so that the TextInputs are visible and not hidden by the keyboard, but instead it just doesn't do anything. I tried putting the KeyboardAvoidingView tag encapsulating the ImageBackground and in th...
javascript|android|react-native|keyboard
0
2022-05-07T09:35:23.587Z
2,022
5
9
5
22
0
410
61
4
1
true
true
false
false
false
false
zero
72,151,278
How to count how many times document was downloaded in Firebase?
<p>I have a collection in my Firestore Database with posts. Each post has some comments as a document in the collection <code>comments</code> in the main post document (screenshot)<a href="https://i.stack.imgur.com/HadLY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HadLY.jpg" alt="enter image desc...
I have a collection in my Firestore Database with posts. Each post has some comments as a document in the collection comments in the main post document (screenshot) In my Android app when I click on the post item I go to PostDetail screen and there I download comments. I want to increment the value of timesViewed for e...
android|firebase|kotlin|google-cloud-platform|google-cloud-firestore
0
2022-05-07T09:37:26.660Z
2,022
5
9
5
52
2
536
64
5
0
false
false
false
false
false
false
zero
72,151,337
What scopes do IntelliJ settings sync require?
<p>I am trying to get my Android Studio (IntelliJ) IDE settings synced across multiple computers.</p> <p>From what I understand, the easiest options should be to use a settings repository. I am a GitHub user. The <a href="https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#settings-repository" rel="nofol...
I am trying to get my Android Studio (IntelliJ) IDE settings synced across multiple computers. From what I understand, the easiest options should be to use a settings repository. I am a GitHub user. The IntelliJ docs states: On the first sync, you will be prompted to specify a username and password. It is recommended t...
git|android-studio|github|settings
0
2022-05-07T09:45:24.787Z
2,022
5
9
5
46
0
761
46
4
1
true
true
false
false
false
false
zero
72,151,339
intent.getAction() is null inside onNewIntent() during NFC tag scan
<p>This is my first time working with NFC Tags. I have declared the NFC scan activity like this in Manifest:</p> <pre><code> &lt;activity android:name=&quot;.main.NFCScanActivity&quot; android:theme=&quot;@android:style/Theme.Holo.Light&quot; android:launchMode=&quot;singleTop&quot; a...
This is my first time working with NFC Tags. I have declared the NFC scan activity like this in Manifest: [CODE] Here is the nfc_tech_filter.xml file: [CODE] Whenever I scan my tag, onNewIntent() is call but when I try to call intent.getAction() inside onNewIntent, the value is always null. [CODE]
android|nfc
0
2022-05-07T09:45:39.733Z
2,022
5
9
5
288
1
298
67
2
3
true
false
false
false
false
false
zero
72,151,351
I'm getting this error anyone know the solution
<p>I'm getting this error anyone know the solution</p> <p>FAILURE: Build failed with an exception.</p> <ul> <li>What went wrong: Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.</li> </ul> <blockquote> <p>Failed to query the value of task ':flutter_plugin_android_lifecycle:compil...
I'm getting this error anyone know the solution FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'. Failed to query the value of task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac' property 'options.generatedSo...
java|flutter|android-studio|gradle
0
2022-05-07T09:47:11.587Z
2,022
5
9
5
111
0
1,073
47
4
0
false
true
false
false
false
false
zero
72,151,368
ArrayList get value of another ArrayList
<p>I have a problem with <code>ArrayList</code>. I have 2 <code>ArrayList</code> and they are dependent.</p> <pre><code>class MainActivity : AppCompatActivity() { var arrayList1 = arrayListOf&lt;String&gt;() var arrayList2 = arrayListOf&lt;String&gt;() lateinit var binding: ActivityMainBinding override...
I have a problem with ArrayList . I have 2 ArrayList and they are dependent. [CODE] I want to keep values in arrayList1 . How I can do that?
android|kotlin
0
2022-05-07T09:49:46.803Z
2,022
5
9
5
38
2
140
40
2
1
true
false
false
false
false
false
zero
72,151,498
Unable to crop mask from original image
<p>I'm trying to remove the background from an image. For that, I'm using TensorFlow which provides me mask of an object. After that, I'm cropping the mask from the image but the result is not as good as I wanted.</p> <p>Using <code>TensorFlow</code> for <strong>masking</strong>: <a href="https://github.com/tensorflow/...
I'm trying to remove the background from an image. For that, I'm using TensorFlow which provides me mask of an object. After that, I'm cropping the mask from the image but the result is not as good as I wanted. Using TensorFlow for masking : https://github.com/tensorflow/examples/tree/master/lite/examples/image_segment...
android|tensorflow|kotlin
0
2022-05-07T10:08:25.767Z
2,022
5
10
5
53
1
433
39
3
1
true
false
false
false
false
false
zero
72,151,590
Attempt to invoke virtual method 'boolean abi44_0_0...FabricViewStateManager.hasStateWrapper()' on a null object reference
<p>Attempt to invoke virtual method 'boolean abi44_0_0com.facebook.react.uimanager.FabricViewStateManager.hasStateWrapper()' on a null object reference</p> <p>This was an error occurred when I was trying to compile my code in Android Device, After adding &lt;TextInput style={styles.input} placeholder={&quot;Write a Tas...
Attempt to invoke virtual method 'boolean abi44_0_0com.facebook.react.uimanager.FabricViewStateManager.hasStateWrapper()' on a null object reference This was an error occurred when I was trying to compile my code in Android Device, After adding <TextInput style={styles.input} placeholder={&quot;Write a Task&quot;}> The...
android|react-native
7
2022-05-07T10:22:08.737Z
2,022
5
10
5
1,612
4
415
122
2
0
false
false
false
false
false
false
medium
72,151,670
FCM push notification is not working in release branch when minify set to true
<p>I have earlier tested many times FCM was working just fine, but now only in the release environment I am not able to get the push notification. I am using the deprecated Firebase messaging API. Is there any way to resolve this issue ??</p> <p>Dependancies used :</p> <pre><code>implementation &quot;com.google.firebas...
I have earlier tested many times FCM was working just fine, but now only in the release environment I am not able to get the push notification. I am using the deprecated Firebase messaging API. Is there any way to resolve this issue ?? Dependancies used : [CODE] Not getting any error but not receiving notification and ...
java|android|firebase
0
2022-05-07T10:34:08.583Z
2,022
5
10
5
30
0
381
78
3
1
true
true
false
false
false
false
zero
72,151,732
How to emulate clicking on coordinates on android in the editor on android python
<p>On my device there is a safe from which I forgot the password and I want to sort through all the passwords through auto-clicking on python. The problem is that this cannot be done from the PC because when you display the phone screen on the PC, the firmware censors the window of the safe and nothing can be pressed. ...
On my device there is a safe from which I forgot the password and I want to sort through all the passwords through auto-clicking on python. The problem is that this cannot be done from the PC because when you display the phone screen on the PC, the firmware censors the window of the safe and nothing can be pressed. The...
python|android|python-3.x|pydroid
0
2022-05-07T10:42:42.530Z
2,022
5
10
5
24
0
554
81
4
0
false
true
false
false
false
false
zero
72,151,733
How to use KeyGenerator with PasswordProtection
<p>Let me start off by saying that I am a noob in the whole encryption thing. I am trying to generate a key and store it in the Android KeyStore <em>protected with a password</em>. I think I need <a href="https://developer.android.com/reference/java/security/KeyStore.PasswordProtection" rel="nofollow noreferrer">Passwo...
Let me start off by saying that I am a noob in the whole encryption thing. I am trying to generate a key and store it in the Android KeyStore protected with a password . I think I need PasswordProtection for this. Storing a generated key and storing it in the keystone works with the code below. Since this code does not...
java|android|keystore|android-keystore|mongodb-realm
0
2022-05-07T10:42:48.770Z
2,022
5
10
5
50
0
620
47
5
1
true
true
false
false
false
false
zero
72,151,770
How to make live update of glance widget?
<p>Is that possible to make <code>live update</code> the data of <code>Widget</code> using <code>Glance</code> jetpack compose ? Like update data while database is changes . For example while I am using <code>flow</code> so flow should be able to update the widget data right?</p> <p>We can update on Click action like :...
Is that possible to make live update the data of Widget using Glance jetpack compose ? Like update data while database is changes . For example while I am using flow so flow should be able to update the widget data right? We can update on Click action like : [CODE] Can we update without on click with flow of data ?
android|android-widget|android-jetpack-compose|glance-appwidget|glance
1
2022-05-07T10:47:56.620Z
2,022
5
10
5
334
1
316
41
5
1
true
false
false
false
false
false
low
72,151,927
Pass context to store data in Room
<p>I am trying to save received data to local storage using Room library. I have created a database class in which I define the parameters I need and define the context</p> <p>And also I have a class in which I define the content I need for the database. But my problem is that I can't pass context. On the line <code>db...
I am trying to save received data to local storage using Room library. I have created a database class in which I define the parameters I need and define the context And also I have a class in which I define the content I need for the database. But my problem is that I can't pass context. On the line db = NetworkDataba...
android|kotlin|save|android-room
0
2022-05-07T11:10:16.033Z
2,022
5
11
5
55
1
466
34
4
1
true
false
false
false
false
false
zero
72,151,990
React native app crash after that I installed it with apk (with some warnings)
<p>I am trying to run a react native app. In the terminal I ran <code>npx react-native init rn8</code>, then I open android Studio to upgrade AGP to version 7.1.3 and I also set <code>distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip</code> in the file <code>rn8\android\gradle\wrapper\grad...
I am trying to run a react native app. In the terminal I ran npx react-native init rn8 , then I open android Studio to upgrade AGP to version 7.1.3 and I also set distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip in the file rn8\android\gradle\wrapper\gradle-wrapper.properties . So I run n...
react-native|android-studio|gradle
1
2022-05-07T11:19:20.733Z
2,022
5
11
5
1,227
2
817
78
3
3
true
false
false
false
false
false
low
72,152,006
Android ClipboardManger work in background
<p>Is there any way that I can run ClipboardManger in the background on Android 12 I developed a clipboard application where any text I copy it, It will save in my app, but when I close the app or remove it from recent apps, it does not work, but when the app in focus it works correct</p>
Is there any way that I can run ClipboardManger in the background on Android 12 I developed a clipboard application where any text I copy it, It will save in my app, but when I close the app or remove it from recent apps, it does not work, but when the app in focus it works correct
java|android-studio|kotlin|clipboardmanager
0
2022-05-07T11:21:48.157Z
2,022
5
11
5
21
0
282
42
4
0
false
true
false
false
false
false
zero
72,152,144
Auto Launch option by default enabled for some applications when downloaded through Play-Store
<p>In Realme device Auto Launch option by default enabled for some application when downloaded through Play Store like Myntra, Flipkart, Domimo's etc. Any one has idea how they are doing this ?</p>
In Realme device Auto Launch option by default enabled for some application when downloaded through Play Store like Myntra, Flipkart, Domimo's etc. Any one has idea how they are doing this ?
android
0
2022-05-07T11:43:53.220Z
2,022
5
11
5
25
0
190
94
1
0
false
true
false
false
false
false
zero
72,152,145
NullPointerException when i call SmsManager.sendTextMessage() method
<p>When this line is executed:</p> <pre><code>val smsManager = context.getSystemService(SmsManager::class.java) </code></pre> <p>I am getting this exception:</p> <pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'void android.telephony.SmsManager.sendTextMessage(java.lang.String, java.lang.Str...
When this line is executed: [CODE] I am getting this exception: [CODE] However when I call this other line which is the decreped version it works fine [CODE] I suspect it must be something to do with the context or the way I'm injecting it. This is the complete class: [CODE] UPDATE Even if i execute these lines: [CODE]...
android|kotlin|nullpointerexception|sms|smsmanager
1
2022-05-07T11:43:57.960Z
2,022
5
11
5
278
2
345
68
5
5
true
false
false
false
false
false
low
72,152,209
Flutter Could not find method android() for arguments() Error
<p>Out of nowhere I got an error. I do not know the reason. I would be glad if you help. I am getting the following error while running my project:</p> <pre><code>Launching lib\main.dart on Android SDK built for x86 in debug mode... FAILURE: Build failed with an exception. * Where: Build file 'C:\Dosyalar\Yaz�l�m\Flu...
Out of nowhere I got an error. I do not know the reason. I would be glad if you help. I am getting the following error while running my project: [CODE] android\app\build.gradle: [CODE] I got this error out of the blue and I don't know why. Also, this is the first time I'm getting such an error. How can I solve this pro...
android|flutter
0
2022-05-07T11:51:19.500Z
2,022
5
11
5
20
0
358
61
2
2
true
true
false
false
false
false
zero
72,152,356
Android JetPack - run code on WorkRequest completion
<p>Let's say I need to fetch data from a db asynchronously and then pass it to a recyclerview's adapter. Using <code>AsyncTask</code>, I can do the following:</p> <pre><code>void getItemsFromDb() { new AsyncTask&lt;Void,Void,Void&gt;(){ @Override protected Void doInBackground(Void... voi...
Let's say I need to fetch data from a db asynchronously and then pass it to a recyclerview's adapter. Using AsyncTask , I can do the following: [CODE] If I were to be doing this using WorkRequest , the fetching would look like this: [CODE] How would I get the items from a db and pass them to the adapter? And how do I c...
android
0
2022-05-07T12:11:57.707Z
2,022
5
12
5
9
0
402
52
1
2
true
true
false
false
false
false
zero
72,152,449
How to run Kotlin coroutines sequentially?
<p>I have an instance of <code>CoroutineScope</code> and <code>log()</code> function which look like the following:</p> <pre><code>private val scope = CoroutineScope(Dispatchers.IO) fun log(message: String) = scope.launch { // launching a coroutine println(&quot;$message&quot;) TimeUnit.MILLISECONDS.sleep(100)...
I have an instance of CoroutineScope and log() function which look like the following: [CODE] And I use this test code to launch coroutines: [CODE] The log() function can be called from any place, in any Thread , but not from a coroutine. After a couple of tests I can see not sequential result like the following: [CODE...
android|kotlin|kotlin-coroutines|coroutine|coroutinescope
0
2022-05-07T12:22:29.370Z
2,022
5
12
5
954
2
862
42
5
4
true
false
false
false
false
false
zero
72,152,462
What are important difference between WebViews and browsers?
<p>I had a little trouble finding updated information about WebViews, and as a back-end developer, I would like to understand how they work and differ from the actual WebKit browser engine?</p> <p>For practical purposes, I'm interested in the experience that happens by default for users when they scan a QR code using t...
I had a little trouble finding updated information about WebViews, and as a back-end developer, I would like to understand how they work and differ from the actual WebKit browser engine? For practical purposes, I'm interested in the experience that happens by default for users when they scan a QR code using their nativ...
android|ios|webview|android-camera
1
2022-05-07T12:24:21.477Z
2,022
5
12
5
210
0
957
60
4
0
false
true
false
false
false
false
low
72,152,974
number generator in kotlin Android Studio.How can i get this number genator in loop. should start with run and give random numbers until we click stop
<blockquote> <p>How can i get this random number genator in loop. It should be &gt;&gt;start with run and give random numbers until we click stop</p> </blockquote> <pre><code> private fun run() { val randomInts = List(1) { Random.nextInt() } val sortedRandomInts = randomInts.sorted() pri...
How can i get this random number genator in loop. It should be >>start with run and give random numbers until we click stop [CODE]
android-studio|kotlin
0
2022-05-07T13:26:36.743Z
2,022
5
13
5
22
0
130
150
2
1
true
true
false
false
false
false
zero
72,152,987
how to select the .srt file and display subtitles to video in exoplayer
<p>'''</p> <pre><code>DialogProperties dialogProperties; FilePickerDialog filePickerDialog; Uri uriSubtitles; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.e(&quot;MainActivity&quot;, &quot;oncreate&quot;); sharedPreferences = getSharedPreferenc...
''' [CODE] } i just need to add .srt file to display on player when user click the subtitle button i need to make it s user need to choose the .srt file and select the subtitle and play it. ''' playerView = findViewById(R.id.player); findViewById(R.id.add_subtitles).setOnClickListener(new View.OnClickListener() { [CODE...
java|android|android-studio|kotlin|exoplayer
0
2022-05-07T13:28:41.803Z
2,022
5
13
5
171
0
485
71
5
2
true
true
false
false
false
false
zero
72,153,057
how to pass bitmap from a screen to another using jetpack compose navigation
<p>I'm using jetpack compose. I have two screens, and I want to send a Bitmap from the first one to the second one. So I convert my Bitmap to string and pass it as an argument:</p> <pre><code> composable( route = &quot;${NavGraph.FilterScreen.route}/{screenSho...
I'm using jetpack compose. I have two screens, and I want to send a Bitmap from the first one to the second one. So I convert my Bitmap to string and pass it as an argument: [CODE] and I navigate from the first screen to the second one like this: [CODE] the problem is: it seems because the string version of Bitmap is s...
android|android-jetpack-compose|android-jetpack-navigation
3
2022-05-07T13:38:15.330Z
2,022
5
13
5
384
1
667
76
3
3
true
false
false
false
false
false
low