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,335,335
How to provide access to video source to an Android webview app?
<p>I'm embedding a website that uses video source from a device to classify certain objects. I am using Android Studio and Webview for embedding the website but I'm getting stuck in reading the video source from the app. Below is the code that I've used so far.</p> <p><strong>MainActivity.java</strong></p> <pre><code>p...
I'm embedding a website that uses video source from a device to classify certain objects. I am using Android Studio and Webview for embedding the website but I'm getting stuck in reading the video source from the app. Below is the code that I've used so far. MainActivity.java [CODE] AndroidManifest.xml [CODE] Here is t...
android|android-studio|android-webview
0
2022-05-22T06:39:39.700Z
2,022
5
6
6
75
0
376
64
3
2
true
true
false
false
false
false
zero
72,335,358
I was trying to migrate my app code from jcenter to mavenCentral in android studio
<p>I was trying to migrate my app code from jcenter to mavenCentral but when I build the output then this error shown I searched the google and youtube but I didn't get any solution for this error in android studio.</p> <p>Error -</p> <pre><code>Execution failed for task ':app:preDebugBuild'. &gt; Could not resolve all...
I was trying to migrate my app code from jcenter to mavenCentral but when I build the output then this error shown I searched the google and youtube but I didn't get any solution for this error in android studio. Error - [CODE] Build.gradle - [CODE] Build.gradle(app) - [CODE] If anybody know how to solve the problem pl...
java|android|android-studio|jcenter|maven-central
0
2022-05-22T06:45:10.307Z
2,022
5
6
6
208
0
329
82
5
3
true
true
false
false
false
false
zero
72,335,466
Flutter Get.width or initialize MediaQuery.of(context).size not working in Release mode
<p>When ı use get.width or height at first page in project or initialize like this ;</p> <pre><code> @override void didChangeDependencies() { SizeConfig().init(context); super.didChangeDependencies(); } </code></pre> <p>also SizeConfig page :</p> <pre><code>class SizeConfig { static late MediaQueryData _m...
When ı use get.width or height at first page in project or initialize like this ; [CODE] also SizeConfig page : [CODE] } It is not working. But when ı use debug mode they are working well. Yes the release mode faster than debug mode but how can we solve it?
android|flutter|dart|flutter-dependencies|flutter-getx
0
2022-05-22T07:02:08.750Z
2,022
5
7
6
258
1
257
87
5
2
true
false
false
false
false
false
zero
72,335,659
Android Studio: Execution failed for task ':app:compileDebugAidl'
<p>I'm working on an application. It has 'in app purchasing' which I am creating with the help of online tutorial. But right now I'm having this problem. For which I have searched a lot in the steak overflow. But the problem is not being solved. please! Tell me where I'm wrong. I have also updated almost all the librar...
I'm working on an application. It has 'in app purchasing' which I am creating with the help of online tutorial. But right now I'm having this problem. For which I have searched a lot in the steak overflow. But the problem is not being solved. please! Tell me where I'm wrong. I have also updated almost all the libraries...
android|in-app-billing|aidl
0
2022-05-22T07:37:47.947Z
2,022
5
7
6
101
1
451
65
3
2
true
false
false
false
false
false
zero
72,335,688
How to Call Array Data from Another Class?
<p>I want to call the startdate, enddate values from other classes of data in this array. If you leave a log in the event .java, it will be printed. There is no problem with the startdate. How can I get the startdate data?</p> <pre><code>public class Event implements Serializable { public static ArrayList&lt;Event&...
I want to call the startdate, enddate values from other classes of data in this array. If you leave a log in the event .java, it will be printed. There is no problem with the startdate. How can I get the startdate data? [CODE] This is the code I tried. An error has occurred and will not work. What should I call it? [CO...
java|android
0
2022-05-22T07:42:10.150Z
2,022
5
7
6
25
0
323
42
2
2
true
true
false
false
false
false
zero
72,335,734
Android - Store an action in LiveData
<p>I have a dialog system in my app, in which I build some of them at runtime, using a model I pass inside liveData to the UI. Is it possible to store an action (lambda or something else) inside this model and pass it to liveData without taking the risk of memory leaks?</p>
I have a dialog system in my app, in which I build some of them at runtime, using a model I pass inside liveData to the UI. Is it possible to store an action (lambda or something else) inside this model and pass it to liveData without taking the risk of memory leaks?
android|kotlin|android-livedata|android-jetpack
0
2022-05-22T07:50:23.997Z
2,022
5
7
6
35
1
267
37
4
0
false
false
false
false
false
false
zero
72,335,735
Is there an API in Xamarin.Forms for setting Android system theme?
<p>I've been programming Xamarin.Forms apps, and for a project I need to be able to set the system theme from C# code. Most search results are for changing the <em>app</em> theme, but I'm looking to change the <em>system</em> theme, can this be done?</p>
I've been programming Xamarin.Forms apps, and for a project I need to be able to set the system theme from C# code. Most search results are for changing the app theme, but I'm looking to change the system theme, can this be done?
c#|android|xamarin.forms|xamarin.android
0
2022-05-22T07:50:37.470Z
2,022
5
7
6
36
0
229
66
4
0
false
true
false
false
false
false
zero
72,335,789
Can not extract resource from com.android.aaptcompiler
<p>Can not extract resource from com.android.aaptcompiler.ParsedResource@636e1e76.</p> <pre><code>Execution failed for task ':app:mergeDebugResources'. &gt; A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable &gt; Resource compilation failed (Failed to compile values res...
Can not extract resource from com.android.aaptcompiler.ParsedResource@636e1e76. [CODE]
java|android
15
2022-05-22T08:00:24.093Z
2,022
5
8
6
11,655
7
86
54
2
1
true
false
true
true
true
false
medium
72,335,823
Caused by "java.lang.IllegalStateException" in play store crash report
<p>Sorry for my english. I got a problem with my first app. The app was works fine when I was running it from Android Studio. But when I uploaded it to play store some users reporting that &quot;app crashing&quot;. Here is the logcat I got from play store,</p> <pre><code> at android.app.ActivityThread.performLaunchAct...
Sorry for my english. I got a problem with my first app. The app was works fine when I was running it from Android Studio. But when I uploaded it to play store some users reporting that &quot;app crashing&quot;. Here is the logcat I got from play store, [CODE]
java|android
0
2022-05-22T08:07:51.353Z
2,022
5
8
6
71
0
260
70
2
1
true
true
false
false
false
false
zero
72,335,833
"expo-location:compileReleaseJavaWithJavac" error while building application using EAS build
<p>Good day. <Br/> I am new in React Native and when I want to build my app, I am facing following error:</p> <pre><code>[stderr] /home/expo/workingdir/build/node_modules/expo-location/android/src/main/java/expo/modules/location/taskConsumers/LocationTaskConsumer.java:235: error: cannot find symbol [stderr] extr...
Good day. I am new in React Native and when I want to build my app, I am facing following error: [CODE] My eas.json file looks like this: [CODE] In some sources, it was said that changing the build server image to &quot;latest&quot; will solve the problem. But it didn't. How can I overcome this problem?
java|android|react-native|build|expo
2
2022-05-22T08:09:43.287Z
2,022
5
8
6
476
1
304
92
5
2
true
false
false
false
false
false
low
72,335,851
SplitCompat.install happen twice but all refrences showing to do this
<p>I use the SplitCompat lib for app bundle and app split.<br /> All docs are showing to use it like that, <code>MyApplication</code> override that:</p> <pre><code>@Override protected void attachBaseContext(Context base) { super.attachBaseContext(this); SplitCompat.install(this); } </code></pre> <p>But when I t...
I use the SplitCompat lib for app bundle and app split. All docs are showing to use it like that, MyApplication override that: [CODE] But when I take a look in super.attachBaseContext in SplitCompatApplication It looks like they already called the SplitCompat.install(this);
android|android-multidex|android-app-bundle|dynamic-feature-module|splitcompat
0
2022-05-22T08:12:22.927Z
2,022
5
8
6
39
0
274
69
5
1
true
true
false
false
false
false
zero
72,335,950
Uri for onActivityResult is always null
<p>I want to take a picture with the camera and then put it in the Firebase (Realtime Database) as a URI. Unfortunately, I always get a null value as Uri. How do I have to proceed so that this is not zero?</p> <pre><code>if (grantResults.length &gt; 0 &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) { ...
I want to take a picture with the camera and then put it in the Firebase (Realtime Database) as a URI. Unfortunately, I always get a null value as Uri. How do I have to proceed so that this is not zero? [CODE]
android|android-camera
0
2022-05-22T08:32:39.877Z
2,022
5
8
6
31
0
209
39
2
1
true
true
false
false
false
false
zero
72,336,112
Is there a way of knowing which bluetooth keyboard sent a key event in Android?
<p><strong>Brief description</strong></p> <p>I have two wireless keyboards connected to the same Android device through Bluetooth LE. Is there any way of knowing which device sent a key event?</p> <p><strong>Use case</strong></p> <p>I can call specific Bluetooth methods on each individual keyboard. By pressing any key ...
Brief description I have two wireless keyboards connected to the same Android device through Bluetooth LE. Is there any way of knowing which device sent a key event? Use case I can call specific Bluetooth methods on each individual keyboard. By pressing any key on each keyboard, I would like to be able to mark it as th...
android|bluetooth|hid
0
2022-05-22T08:58:29.957Z
2,022
5
8
6
27
0
990
79
3
0
false
true
false
false
false
false
zero
72,336,234
How to delete data in hashmap
<p>In my case I will have 450 data in 1 sec, then I wrap it every 50 data because I only need 50 data, but 400 data still save in temporary even I clear the hashmap data. So how to delete all data in hashmap?</p> <pre><code>Date date = new Date(); leftDataDict.put(String.valueOf(formatter.format(date)),Arrays.toString(...
In my case I will have 450 data in 1 sec, then I wrap it every 50 data because I only need 50 data, but 400 data still save in temporary even I clear the hashmap data. So how to delete all data in hashmap? [CODE]
java|android
1
2022-05-22T09:19:01Z
-1
-1
-1
-1
37
0
212
29
2
1
true
true
false
false
false
false
low
72,336,270
MenuItem and toolbar missing in new activity Android Studio Unknown Bug
<p>I am completely new to Android Studio and just learned Object-oriented programming. My project requires me to build something on open-source code. I added a new menu item to a menu and want to start another activity once the user clicks the menu item with id: plot. The intent will be sent from if (id == R.id.plot) w...
I am completely new to Android Studio and just learned Object-oriented programming. My project requires me to build something on open-source code. I added a new menu item to a menu and want to start another activity once the user clicks the menu item with id: plot. The intent will be sent from if (id == R.id.plot) with...
java|android|android-studio|android-activity|menuitem
0
2022-05-22T09:22:14.123Z
2,022
5
9
6
81
1
706
71
5
3
true
false
false
false
false
false
zero
72,336,324
Xamarin MysqlConnector weird NullReferenceException error
<p>I'm wanting to make a small and simple mobile app for a school project, I know connecting to a db from a phone is not good for security reasons but basically only I will touch it.</p> <p>So to connect my Xamarin app to Mysql I downloaded the extension MysqlConnector (<a href="https://www.nuget.org/packages/MySqlConn...
I'm wanting to make a small and simple mobile app for a school project, I know connecting to a db from a phone is not good for security reasons but basically only I will touch it. So to connect my Xamarin app to Mysql I downloaded the extension MysqlConnector ( https://www.nuget.org/packages/MySqlConnector/2.1.8?_src=t...
c#|xamarin|xamarin.forms|xamarin.android
0
2022-05-22T09:32:11.853Z
2,022
5
9
6
81
1
925
57
4
1
true
false
false
false
false
false
zero
72,336,329
Android jetpack compose TabRow : setting alignment in TabRow
<p>I am trying to achieve something like shown in the image below. I tried TabRow with default Tab and its center aligned. I cannot achieve left alignment here. I tried the TapRow with custom tab approach as per <a href="https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#Tab(kotlin...
I am trying to achieve something like shown in the image below. I tried TabRow with default Tab and its center aligned. I cannot achieve left alignment here. I tried the TapRow with custom tab approach as per Google's website but the tabs were still center aligned ( I guess its TapRow issue and not Tab). In Tabrow, Wit...
android|tabs|android-jetpack-compose
0
2022-05-22T09:33:07.273Z
2,022
5
9
6
774
2
633
60
3
1
true
false
false
false
false
false
zero
72,336,480
react-native video camera example
<p>I am new to react-native. I would like to open the camera on Pressable onPress event. Can anyone please give me the example of react-native-vision-camera. I have read the document. but really I don't know how to use the component. I have tried find-out the example, but no clue. because I want to customize the video ...
I am new to react-native. I would like to open the camera on Pressable onPress event. Can anyone please give me the example of react-native-vision-camera. I have read the document. but really I don't know how to use the component. I have tried find-out the example, but no clue. because I want to customize the video cam...
android|ios|react-native|video
1
2022-05-22T09:55:43.670Z
2,022
5
9
6
257
1
662
33
4
2
true
false
false
false
false
false
low
72,391,241
Where is the Android libc documentation?
<p>For glibc you can find an online documentation <a href="https://www.gnu.org/software/libc/manual/" rel="nofollow noreferrer">here</a>.</p> <p>I am looking for an equivalent documentation for Android's libc implementation (headers located under sysroot/usr/include).</p> <p>Is there a documentation for these?</p> <p>(...
For glibc you can find an online documentation here . I am looking for an equivalent documentation for Android's libc implementation (headers located under sysroot/usr/include). Is there a documentation for these? (For example the call statfs() under sysroot/usr/include/sys/vfs.h).
android|documentation|libc|bionic
3
2022-05-22T10:05:11.090Z
2,022
5
10
6
220
1
282
40
4
0
false
false
false
false
false
false
low
72,336,664
How to RTL OutlinedBox hint and text on Android?
<p>How to change OutlinedBox hint and text RTL (support Persian and Arabic):</p> <pre><code>&lt;com.google.android.material.textfield.TextInputLayout android:id=&quot;@+id/phoneNumberLayout&quot; style=&quot;@style/textInputOutlinedLayoutTheme&quot; android:layout_width=&quot;0dp&quot; android:layout_he...
How to change OutlinedBox hint and text RTL (support Persian and Arabic): [CODE]
android|xml|android-layout|user-interface|android-textinputedittext
1
2022-05-22T10:22:21.303Z
2,022
5
10
6
25
1
80
48
5
1
true
false
false
false
false
false
low
72,336,716
XYPlot Android same x value, multiple y-values
<p>I'm trying to create a plot using Kotlin and androidplot library. My source code is:</p> <pre><code>val domainLabels = arrayOf&lt;Number&gt;(1,2,3,6,7,8,9,10,13,14) val series1Number = arrayOf&lt;Number&gt;(1,4,8,12,16,32,26,29,10,13) val series1 : XYSeries = SimpleXYSeries(Arrays.asList(* series1Number)),SimpleXYS...
I'm trying to create a plot using Kotlin and androidplot library. My source code is: [CODE] Although it works, I have some troubles when the domainLabel is the same. Look at the image below for x value equals 8. I expect that since the x value is the same, it will be shown only one time, and I will have two points. Do ...
android|kotlin|androidplot
0
2022-05-22T10:27:51.483Z
2,022
5
10
6
59
1
345
46
3
1
true
false
false
false
false
false
zero
72,336,733
kotlin / java sharedPreferences meaning in android studio
<p>What exactly does the sharedPreferences built in function mean in Kotlin / android studio? I've tried reading the documentation from the official android studio docs and would like a simple understanding on how I can use to share the data.</p>
What exactly does the sharedPreferences built in function mean in Kotlin / android studio? I've tried reading the documentation from the official android studio docs and would like a simple understanding on how I can use to share the data.
java|android|kotlin
0
2022-05-22T10:30:08.953Z
2,022
5
10
6
31
1
239
57
3
0
false
false
false
false
false
false
zero
72,336,761
React native expo app works fine in expo go, white screen of death after build
<p>I have created a react native app based on the Expo environment/packages. The app works completely fine while being tested in the Expo (Go) emulating app on various devices.</p> <p>However when I build the app for Android, install it and run it:</p> <ul> <li>the <code>.aab</code> version opens splash screen and clos...
I have created a react native app based on the Expo environment/packages. The app works completely fine while being tested in the Expo (Go) emulating app on various devices. However when I build the app for Android, install it and run it: the .aab version opens splash screen and closes immediately the .apk version open...
android|react-native|expo|android-app-bundle
1
2022-05-22T10:33:48.697Z
2,022
5
10
6
369
0
1,561
78
4
2
true
true
false
false
false
false
low
72,336,776
I have a problem in my activity_main_land.xml, it displays the following error: element LinearLayout must be declared
<p>I have a problem in my activity_main_land.xml, it displays the following error: element LinearLayout must be declared, Namespace declaration is never used</p> <p>this is my code below</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre ...
I have a problem in my activity_main_land.xml, it displays the following error: element LinearLayout must be declared, Namespace declaration is never used this is my code below [CODE]
java|android|android-studio
0
2022-05-22T10:35:12.753Z
2,022
5
10
6
18
1
183
117
3
1
true
false
false
false
false
false
zero
72,336,840
Handling dead keys in Android KCM
<p>I'm using library <a href="https://github.com/varzan/extra-keyboard-layouts" rel="nofollow noreferrer">Extra Physical Keyboard Layouts</a> which is able to add new keyboard layouts to the device. Don't confuse it with whole new keyboards like SwiftKey, Samsung Keyboard etc.<br><br> This library is using <a href="htt...
I'm using library Extra Physical Keyboard Layouts which is able to add new keyboard layouts to the device. Don't confuse it with whole new keyboards like SwiftKey, Samsung Keyboard etc. This library is using KCM files which is Android standard for keyboard layout files. I have my custom layout (originally KLC file) whi...
android|keyboard
1
2022-05-22T10:44:02.980Z
2,022
5
10
6
79
0
709
33
2
1
true
true
false
false
false
false
low
72,336,943
JetPack Compose Button with drawable
<p>How can we achieve this in jetpack compose</p> <p><a href="https://i.stack.imgur.com/wEGOJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wEGOJ.png" alt="enter image description here" /></a></p> <p>I'm doing something like this</p> <pre><code>Button( elevation = ButtonDefaults.elevation( ...
How can we achieve this in jetpack compose I'm doing something like this [CODE] So as you can see the Google logo is just left of the text I need it at the start of the box so how can I do this.
android|android-jetpack-compose|android-jetpack-compose-text|android-jetpack-compose-button
2
2022-05-22T10:58:28.097Z
2,022
5
10
6
1,951
5
194
36
4
1
true
false
false
false
false
false
low
72,336,967
How to create a gauge using Kivy?
<p>I want to make an internet speed test application for Android with Python. I have done the back-end side but I have a hard time with the front-end. After research, I decided to use the Kivy framework, however, I need guidance on how to create a gauge like this.</p> <p><a href="https://i.stack.imgur.com/8rqo0.png" re...
I want to make an internet speed test application for Android with Python. I have done the back-end side but I have a hard time with the front-end. After research, I decided to use the Kivy framework, however, I need guidance on how to create a gauge like this.
python|android|user-interface|kivy|speed-test
1
2022-05-22T11:02:34.860Z
2,022
5
11
6
314
1
261
33
5
0
false
false
false
false
false
false
low
72,336,995
How to add onAttach in adapter in Android Studio?
<p>I followed this <a href="https://www.youtube.com/watch?v=gu5eOgfbrSc&amp;t=1050s" rel="nofollow noreferrer">video</a> in order to create a reaction dialog but I get this error <code>java.lang.ClassCastException: com.example.app.Activities.MainActivity@cbb7134 at com.example.app.ReactionsPackage.ReactionsDialog.onAtt...
I followed this video in order to create a reaction dialog but I get this error java.lang.ClassCastException: com.example.app.Activities.MainActivity@cbb7134 at com.example.app.ReactionsPackage.ReactionsDialog.onAttach(ReactionsDialog.java:101) . This is my ReactionDialog: [CODE] This is my ReactionListener: [CODE] And...
java|android|android-recyclerview|android-adapter
0
2022-05-22T11:06:13.430Z
2,022
5
11
6
63
0
1,117
49
4
4
true
true
false
false
false
false
zero
72,337,056
How can I test android indicator displaying with Jest in React Native?
<p>So I want to test if the options passed to a expo-location task update correctly. And I thought the easiest option to test would be the showsBackgroundLocationIndicator one. So how can I query with Jest the android indicator, so that it displays another text or whatever.</p> <p>The code is irrelevant as the only thi...
So I want to test if the options passed to a expo-location task update correctly. And I thought the easiest option to test would be the showsBackgroundLocationIndicator one. So how can I query with Jest the android indicator, so that it displays another text or whatever. The code is irrelevant as the only think I canno...
android|react-native|testing|jestjs|expo
0
2022-05-22T11:15:34.427Z
2,022
5
11
6
17
0
390
70
5
0
false
true
false
false
false
false
zero
72,337,085
Jetpack Compose Navigation's deep links hit CustomTabsIntent and flash to desktop
<p>I tried to access Github's Oauth interface with CustomTabsIntent and ended up redirecting to my App (deep links), the first time I authorized it executed normally and navigated to the interface with deep links, but when I accessed the authorized Oauth interface a second time, although it executed the redirect normal...
I tried to access Github's Oauth interface with CustomTabsIntent and ended up redirecting to my App (deep links), the first time I authorized it executed normally and navigated to the interface with deep links, but when I accessed the authorized Oauth interface a second time, although it executed the redirect normally ...
android|android-jetpack-compose|android-jetpack-navigation
0
2022-05-22T11:19:14.113Z
2,022
5
11
6
72
0
554
81
3
1
true
true
false
false
false
false
zero
72,337,199
On Editor Action Listener doesn't work on Android
<p>I need to override the work of the keyboard (Android), I write some code. At the onCreate method I write:</p> <pre><code>editNumber = findViewById(R.id.editNumber); editNumber.setOnEditorActionListener(this); editPassword = findViewById(R.id.password); editPassword.setOnEditorActionListener(this); editPassword.setOn...
I need to override the work of the keyboard (Android), I write some code. At the onCreate method I write: [CODE] I only init my view elements and add listeners. And override the method: [CODE] Logs show that the method onEditorAction never works. I try to use onKeyListner, but it doesn't work too, but its works with a ...
android|kotlin|view|textview|keyboard
0
2022-05-22T11:34:31.810Z
2,022
5
11
6
40
1
371
49
5
2
true
false
false
false
false
false
zero
72,337,250
Correct way of starting a service in kotlin from onClick event
<p>I'm making a music player and using a Service to playback audio files.</p> <p>Is it correct to start the service in a Activity?</p> <p>The service should start when a item in a list is being pressed, is it fine to put that onClick function in a Activity?</p> <p>From my knowledge a ViewModel should handle onClick eve...
I'm making a music player and using a Service to playback audio files. Is it correct to start the service in a Activity? The service should start when a item in a list is being pressed, is it fine to put that onClick function in a Activity? From my knowledge a ViewModel should handle onClick events, but the ViewModel c...
android|kotlin|android-jetpack-compose
0
2022-05-22T11:41:05.033Z
2,022
5
11
6
46
0
380
62
3
0
false
true
false
false
false
false
zero
72,337,276
How can I update my recyclerView using firecloud? I have an error, I cant initialize binding again
<p>My Adapter class is:</p> <p>class CategoryAdapter(private val categoryList: List):RecyclerView.Adapter&lt;CategoryAdapter.CustomViewHolder&gt;() {</p> <pre><code>inner class CustomViewHolder(view: View) : RecyclerView.ViewHolder(view) override fun onCreateViewHolder( parent: ViewGroup, viewType: Int ): Cate...
My Adapter class is: class CategoryAdapter(private val categoryList: List):RecyclerView.Adapter<CategoryAdapter.CustomViewHolder>() { [CODE] } and the fragment is: class ProductsFragment : Fragment() { [CODE] } I want when you pick an element from category, you update the recycler view with the elements that has this n...
android|firebase|kotlin|android-recyclerview|updates
0
2022-05-22T11:45:02.523Z
2,022
5
11
6
19
1
371
98
5
2
true
false
false
false
false
false
zero
72,337,318
Dagger hilt Cannot be provided without an @Provides-annotated method
<p>I am new with dagger using. So, I can't solve whats the problem with this. I just want to ask here to solve it.</p> <p>This is the error:</p> <blockquote> <p>C:\Users\msi\Documents\MyAndroidProjects\MovieProjects\app\build\generated\hilt\component_sources\debug\com\example\movieapp\App_HiltComponents.java:128: error...
I am new with dagger using. So, I can't solve whats the problem with this. I just want to ask here to solve it. This is the error: C:\Users\msi\Documents\MyAndroidProjects\MovieProjects\app\build\generated\hilt\component_sources\debug\com\example\movieapp\App_HiltComponents.java:128: error: [Dagger/MissingBinding] com....
android|kotlin|dagger-hilt|android-mvvm
0
2022-05-22T11:50:32.153Z
2,022
5
11
6
1,180
1
1,405
68
4
4
true
false
false
false
false
false
zero
72,337,380
Spaces between tags are ignored when rendering HTML to Flutter
<p>Let’s say I have a function that receives a string that represents a text in HTML format and I want to show this text in Flutter. Some words in the text are supposed to be bold. If I have a few bold words in a row, the spaces between the tags are ignored. How can I show the text without it ignoring spaces?</p> <p>F...
Let’s say I have a function that receives a string that represents a text in HTML format and I want to show this text in Flutter. Some words in the text are supposed to be bold. If I have a few bold words in a row, the spaces between the tags are ignored. How can I show the text without it ignoring spaces? For example ...
android|flutter|dart|flutter-html
0
2022-05-22T11:58:06.237Z
2,022
5
11
6
180
2
579
62
4
1
true
false
false
false
false
false
zero
72,337,381
Can't connect to Firebase. Could not parse the Android Application Module's Gradle config. Resolve gradle issues and/or resync
<p>I have an issue when I try to connect my app to firebase through android studio I get this:</p> <p><a href="https://i.stack.imgur.com/dzu7w.png" rel="nofollow noreferrer">This is the error I get</a></p> <p>This is my build.gradle(project):</p> <pre><code>// Top-level build file where you can add configuration option...
I have an issue when I try to connect my app to firebase through android studio I get this: This is the error I get This is my build.gradle(project): [CODE] This is my build.gradle(app): [CODE] Tried a couple of things I found on stackoverflow (removing jcenter and such) and nothing worked out for me. If anyone has any...
android|firebase|gradle
0
2022-05-22T11:58:12.093Z
2,022
5
11
6
53
0
374
126
3
2
true
true
false
false
false
false
zero
72,337,407
flutter drop down menu that needs to be validated
<p>I am working on &quot;flutter&quot; specifically validating the dropdown menu within the api link, I came up with what you can see below, it's multiple of ideas in one, plus the fact that I don't have time, so please can anyone tell me how can I solve it.</p> <pre><code> &gt; &gt; _validateForm(String? opName1)...
I am working on &quot;flutter&quot; specifically validating the dropdown menu within the api link, I came up with what you can see below, it's multiple of ideas in one, plus the fact that I don't have time, so please can anyone tell me how can I solve it. [CODE] it has other details but that's what I have been stuck on...
android|flutter|android-studio|dart|drop-down-menu
0
2022-05-22T12:02:33.110Z
2,022
5
12
6
31
1
752
49
5
1
true
false
false
false
false
false
zero
72,337,422
When trying to save the URL from the storage to RealtimeDatabase I get a DatabaseException Error
<p>I am trying to store an image url which I get by uploading it to a FirebaseStorage in a RealtimeDatabase. The former works without any problems. The image is created in the storage. However, in the OnSuccessListener I cannot save the URL in realtime. Then I get the following error:</p> <blockquote> <p>com.google.fir...
I am trying to store an image url which I get by uploading it to a FirebaseStorage in a RealtimeDatabase. The former works without any problems. The image is created in the storage. However, in the OnSuccessListener I cannot save the URL in realtime. Then I get the following error: com.google.firebase.database.Database...
android|firebase|android-studio|firebase-realtime-database
0
2022-05-22T12:04:59.370Z
2,022
5
12
6
9
0
457
96
4
1
true
true
false
false
false
false
zero
72,337,468
How to get firestore array data to Spinner in xamarin Android?
<p><strong>Please help me.</strong><br /> This is my firestore reference</p> <pre><code>AppDataHelper.GetFirestore().Collection(&quot;users&quot;).Document(FirebaseAuth.Instance.CurrentUser.Uid).Collection(&quot;Items&quot;).Get().AddOnCompleteListener(this); </code></pre> <p>I only need Name list to Spinner</p> <p><a ...
Please help me. This is my firestore reference [CODE] I only need Name list to Spinner enter image description here This is Retrieving Data below. [CODE] And This Code is error.I can't add listofItems to adapter [CODE]
firebase|google-cloud-firestore|arraylist|xamarin.android
0
2022-05-22T12:13:23.947Z
2,022
5
12
6
43
1
218
62
4
3
true
false
false
false
false
false
zero
72,337,474
ACTION_NIGHT_DISPLAY_SETTINGS crash on android 12 on samsung devices
<p>On android 12 on <strong>samsung devices only</strong> the app crashes when we try to open the <code>Settings.ACTION_NIGHT_DISPLAY_SETTINGS</code> intent/activity</p> <p>with : <code>Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.settings.NIGHT_DISPLAY_SETTINGS flg=0x1...
On android 12 on samsung devices only the app crashes when we try to open the Settings.ACTION_NIGHT_DISPLAY_SETTINGS intent/activity with : Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.settings.NIGHT_DISPLAY_SETTINGS flg=0x10000000 cmp=com.android.settings/.Settings$Eye...
android|samsung-mobile
0
2022-05-22T12:14:09.983Z
2,022
5
12
6
52
0
689
68
2
0
false
true
false
false
false
false
zero
72,337,501
onCreateOptionsMenu deprecated
<p>Is anyone else getting onCreateOptionsMenu deprecated when running on API 32 or 31?</p> <p>I did some digging and apparently it is deprecated and we have to use a MenuProvider interface, which after implementing it we can use onCreateMenu and and onMenuItemSelected.</p> <p>It even states that there is no need to cal...
Is anyone else getting onCreateOptionsMenu deprecated when running on API 32 or 31? I did some digging and apparently it is deprecated and we have to use a MenuProvider interface, which after implementing it we can use onCreateMenu and and onMenuItemSelected. It even states that there is no need to call setHasOptionsMe...
android|android-studio|kotlin
2
2022-05-22T12:18:09.753Z
2,022
5
12
6
1,760
1
573
30
3
0
false
false
false
false
false
false
low
72,337,707
Cannot resolve ViewPager and FragmentPagerAdapter in Udacity ADT
<p>I'm trying to add a FragmentPagerAdapter as the lecturer said (Udacity Android Development Track - Multiscreen Apps), I see that the FragmentPagerAdapter class is deprecated and instead I should use FragmentStateAdapter, and I made many changes (as mentioned in android developer website). After that when I put Fragm...
I'm trying to add a FragmentPagerAdapter as the lecturer said (Udacity Android Development Track - Multiscreen Apps), I see that the FragmentPagerAdapter class is deprecated and instead I should use FragmentStateAdapter, and I made many changes (as mentioned in android developer website). After that when I put Fragment...
java|android
0
2022-05-22T12:45:43.967Z
2,022
5
12
6
18
0
712
64
2
2
true
true
false
false
false
false
zero
72,337,737
Set 5 textViews in HorizontalLayout to fill it programmatically
<p>I have 5 TextViews created programmatically inside of HorizontalLayout Can't manage them to fill Layout each with 20% of space. Usually it can be made by setting width to &quot;MATCH_PARENT&quot;, in my case it somehow just adding bunch of space Screenshots: <a href="https://i.stack.imgur.com/NJ9i2.png" rel="nofollo...
I have 5 TextViews created programmatically inside of HorizontalLayout Can't manage them to fill Layout each with 20% of space. Usually it can be made by setting width to &quot;MATCH_PARENT&quot;, in my case it somehow just adding bunch of space Screenshots: How's that looks without setting width And if I set width &qu...
android|kotlin|android-layout
1
2022-05-22T12:49:53.980Z
2,022
5
12
6
35
0
406
63
3
1
true
true
false
false
false
false
low
72,337,809
Android canny, hough transform. I want to go back to original image
<p>Android, I used canny and hough transform to make line detection on phone screen. However, I can't find a way to get back to original image(I mean HSV to BGR). I want to see keep lines well with BGR image. Thank you!</p> <p>My code, please let me know which code I have to put in.</p> <pre><code>public class CameraAc...
Android, I used canny and hough transform to make line detection on phone screen. However, I can't find a way to get back to original image(I mean HSV to BGR). I want to see keep lines well with BGR image. Thank you! My code, please let me know which code I have to put in. [CODE] [CODE] I divided it to two parts b/c th...
java|android|opencv|hough-transform|canny-operator
1
2022-05-22T13:04:10.580Z
2,022
5
13
6
52
0
1,055
67
5
6
true
true
false
false
false
false
low
72,337,917
I don't see any data in my Realtime Database in Firebase's console
<p>I'm trying to figure out how to use Firebase properly, so I made this simple code, saving a &quot;game&quot; object with code and password. I also made it show the game's key on the screen. running the code, it works and shows what looks like a key on the screen, but I can't find any of the data anywhere on my Fireb...
I'm trying to figure out how to use Firebase properly, so I made this simple code, saving a &quot;game&quot; object with code and password. I also made it show the game's key on the screen. running the code, it works and shows what looks like a key on the screen, but I can't find any of the data anywhere on my Firebase...
java|android|firebase|google-cloud-platform|firebase-realtime-database
0
2022-05-22T13:19:15.907Z
2,022
5
13
6
42
1
399
66
5
2
true
false
false
false
false
false
zero
72,337,988
How do I use react-native-google-mobile-ads with Expo and Expo Go?
<p>How do I use react-native-google-mobile-ads with Expo and Expo Go? (e.g. Banner Ads)</p> <p><em>A minimal example within the context of Expo would be very much appreciated.</em></p> <p>All the online google documentation as of May 2022 refers to expo-ads-admob, but Expo documentation now mentions that expo-ads-admob...
How do I use react-native-google-mobile-ads with Expo and Expo Go? (e.g. Banner Ads) A minimal example within the context of Expo would be very much appreciated. All the online google documentation as of May 2022 refers to expo-ads-admob, but Expo documentation now mentions that expo-ads-admob is deprecated and intends...
android|react-native|expo|admob
7
2022-05-22T13:27:48.720Z
2,022
5
13
6
1,322
1
983
66
4
1
true
false
false
false
false
false
medium
72,338,161
The value for property 'buildConfigFields' cannot be changed any further
<p>I've just updated in Android Studio the Gradle version from <strong>7.2</strong> to <strong>7.4.2</strong> and as soon as it tries to build the project it fails with an exception:</p> <pre><code>A problem occurred configuring project ':app'. &gt; The value for property 'buildConfigFields' cannot be changed any furth...
I've just updated in Android Studio the Gradle version from 7.2 to 7.4.2 and as soon as it tries to build the project it fails with an exception: [CODE] Rolling back to 7.2 fixes the issues. Any ideas?
android|android-studio|gradle|android-gradle-plugin|build.gradle
2
2022-05-22T13:48:33.227Z
2,022
5
13
6
717
2
201
72
5
1
true
false
false
false
false
false
low
72,338,209
Animate Textview continually
<p>I want to animate a textview but it has to continue to animation all time until click the button. Now it works just for one time, how can implement for all time until clicked button?</p> <p>Animation:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;set xmlns:android=&quot;http://s...
I want to animate a textview but it has to continue to animation all time until click the button. Now it works just for one time, how can implement for all time until clicked button? Animation: [CODE] MainActivity: [CODE] MainActivity XML [CODE]
java|android|xml|kotlin|animation
0
2022-05-22T13:54:28.430Z
2,022
5
13
6
22
1
245
28
5
3
true
false
false
false
false
false
zero
72,338,219
Google Nearby connections - Not able to transfer large file (1GB) to other 2 device
<p>This is based on <a href="https://stackoverflow.com/questions/65292196/google-nearby-connection-file-exchange-does-not-transfer-whole-file">this post</a> answered by <a href="https://stackoverflow.com/users/5623474/xlythe">Xlythe</a>. I am also using P2P_STAR strategy and trying to transfer the file (1GB) asUri to o...
This is based on this post answered by Xlythe . I am also using P2P_STAR strategy and trying to transfer the file (1GB) asUri to other 2 devices but when it received in other device it is showing some KB(1.98 kb) as file size and receiving below logs in PayloadTransferUpdate.Status.IN_PROGRESS continuously. [CODE] Any ...
android|google-nearby-connections
1
2022-05-22T13:55:30.720Z
2,022
5
13
6
54
0
1,005
83
2
2
true
true
false
false
false
false
low
72,338,431
Can I render a texture at pixel resolution in Android?
<p>I am trying to make a test image to check the tone curve on Android displays. The kotlin code below makes a Bitmap that fits the ImageView. The canvas is filled with the background colour. The central 50% is filled with alternate lightLine (white) and darkLine (black) 2-pixel wide horizontal stripes.</p> <p>All the ...
I am trying to make a test image to check the tone curve on Android displays. The kotlin code below makes a Bitmap that fits the ImageView. The canvas is filled with the background colour. The central 50% is filled with alternate lightLine (white) and darkLine (black) 2-pixel wide horizontal stripes. All the features a...
android|raster|pixel
0
2022-05-22T14:20:22.210Z
2,022
5
14
6
10
0
1,323
54
3
3
true
true
false
false
false
false
zero
72,338,433
Have you created the publish closure? Missing desc
<p>D:\HeavenChat\build.gradle</p> <pre><code> // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { project.ext { compileSdkVersion = 29 minSdkVersion = 21 targetSdkVersion =28 supportVersion = &quot;29.0.2&quot; } ...
D:\HeavenChat\build.gradle [CODE] D:\HeavenChat\app\build.gradle [CODE] D:\HeavenChat\DragRecylerView\build.gradle [CODE] Error Have you created the publish closure? Missing desc. &quot; A problem occurred configuring project ':DragRecylerView'. Have you created the publish closure? Missing desc. Try: Run with --info o...
android-studio|gradle|android-gradle-plugin|build.gradle|gradle-plugin
0
2022-05-22T14:20:38.073Z
2,022
5
14
6
86
0
497
50
5
3
true
true
false
false
false
false
zero
72,338,499
OutlinedTextField Label always top
<p>I am beginner on Jetpack Compose. I use outlinedtextfield. How to show label always on top, when text is empty or not.</p>
I am beginner on Jetpack Compose. I use outlinedtextfield. How to show label always on top, when text is empty or not.
android|android-jetpack-compose
0
2022-05-22T14:28:30.757Z
2,022
5
14
6
55
0
118
34
2
0
false
true
false
false
false
false
zero
72,338,743
Displaying media metadata using Exoplayer MediaSessionConnector using car media app
<p>My media app using Exoplayer's mediasessionconnector to send the mediasession metadata to the Car media App. Car media app supposed to show the title, album and artist of the current track. But it just shows the title with album and artist left blank.</p> <p>The problem is TimelineQueueNavigator uses MediaDescriptio...
My media app using Exoplayer's mediasessionconnector to send the mediasession metadata to the Car media App. Car media app supposed to show the title, album and artist of the current track. But it just shows the title with album and artist left blank. The problem is TimelineQueueNavigator uses MediaDescriptionCompat wh...
exoplayer|exoplayer2.x|android-mediasession|android-automotive|mediasession
0
2022-05-22T15:03:15.747Z
2,022
5
15
6
186
1
435
83
5
0
false
false
false
false
false
false
zero
72,338,778
resetting quiz game choices using flutter
<p>I started a quiz game using flutter,</p> <p>I added a reset button to replay the game.</p> <p>but previous choices didn't reset, I have a problem resetting the choices to play again.</p> <p>the choices reset only if I restart (run) the app from scratch.</p>
I started a quiz game using flutter, I added a reset button to replay the game. but previous choices didn't reset, I have a problem resetting the choices to play again. the choices reset only if I restart (run) the app from scratch.
android|ios|flutter|android-studio|reset
0
2022-05-22T15:08:56.313Z
2,022
5
15
6
31
1
232
41
5
0
false
false
false
false
false
false
zero
72,338,851
ListView not scrolling on Android 7.1.1
<p>I'm trying to deploy a ListView app on an Android 7.1.1 device. The list view contains enough items to exceed the size of the screen. Any layouting/code combination that I have tried so far has failed - there is no scrolling performed on the device.</p> <p>Here is the latest layout excerpt:</p> <pre><code>&lt;?xml v...
I'm trying to deploy a ListView app on an Android 7.1.1 device. The list view contains enough items to exceed the size of the screen. Any layouting/code combination that I have tried so far has failed - there is no scrolling performed on the device. Here is the latest layout excerpt: [CODE] Any hint would be appreciate...
android
1
2022-05-22T15:17:59.837Z
2,022
5
15
6
28
1
458
39
1
2
true
false
false
false
false
false
low
72,338,887
Failed running CMake 3.18.1 on Android
<p>Got error when running my project with CMake 3.18.1, I executed the following steps:</p> <ol> <li><p>I added the version requested on build.gradle as <code>externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } }</code></p> </li> <li><p>And also add on defaultConfig <code>externalN...
Got error when running my project with CMake 3.18.1, I executed the following steps: I added the version requested on build.gradle as externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } } And also add on defaultConfig externalNativeBuild { cmake { cppFlags '' } } Inside CmakeList c...
android|cmake|android-ndk
0
2022-05-22T15:22:16.550Z
2,022
5
15
6
319
1
641
38
3
0
false
false
false
false
false
false
zero
72,338,898
Can't play cached audio file Android java
<p>I want to download, cache and play an audio file from the network. I managed to download and save it to the context.getCacheDir(). Absolute path is &quot;/data/user/0/org.kimp.mustep/cache/floor_01/entrance_ru.mp3&quot;.</p> <p>When I try to play it with a MediaPlayer's object the app crashes.</p> <p>There is some w...
I want to download, cache and play an audio file from the network. I managed to download and save it to the context.getCacheDir(). Absolute path is &quot;/data/user/0/org.kimp.mustep/cache/floor_01/entrance_ru.mp3&quot;. When I try to play it with a MediaPlayer's object the app crashes. There is some ways I tried to do...
java|android|audio|media
1
2022-05-22T15:23:38.483Z
2,022
5
15
6
19
0
420
41
4
3
true
true
false
false
false
false
low
72,339,003
Best practice when using mutableState with jetpack compose inside viewmodel with exposing mutable state
<p>I have the following ViewModel</p> <pre><code>@HiltViewModel class ShareViewModel @Inject constructor( private val taskRepository: TaskRepository ): ViewModel() { private val searchAppBarStateMutableState: MutableState&lt;SearchAppBarState&gt; = mutableStateOf(SearchAppBarState.CLOSED) val searchAppBarS...
I have the following ViewModel [CODE] I never expose mutableStateFlow as in the example above. And SonarLint will show a warning when doing this. [CODE] So I apply the same technique to the mutableState However, If I do like this below, I don't get any warning. [CODE] Just wondering what is the best practice for using ...
kotlin|android-jetpack-compose|kotlin-stateflow
2
2022-05-22T15:38:03.990Z
2,022
5
15
6
714
2
354
103
3
3
true
false
false
false
false
false
low
72,339,035
ML Kit Dynamic module feature crashed and showing resource not found on release build opened after forcefully closed app
<p>We are developing an app that has a feature translation. We want to implement a translation feature on-demand using <code>com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2</code> with google MLkit <code>com.google.mlkit:translate:17.0.0</code></p> <p>It is working perfectly on debug build. It has also ...
We are developing an app that has a feature translation. We want to implement a translation feature on-demand using com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2 with google MLkit com.google.mlkit:translate:17.0.0 It is working perfectly on debug build. It has also worked on the release build after th...
android|google-mlkit|dynamic-feature-module|dynamic-feature|dynamic-delivery
0
2022-05-22T15:40:53.940Z
2,022
5
15
6
57
0
700
120
5
1
true
true
false
false
false
false
zero
72,339,201
Dialog Box Appears for half a second and closes automatically
<p>I am trying to create a very simple dialog box. I found the code references from the internet obviously.</p> <p>My code is this:</p> <pre><code> AlertDialog.Builder alertDialog = new AlertDialog.Builder( ConsignmentConViewActivity.this); alertDialog.setTitle(&quot;A...
I am trying to create a very simple dialog box. I found the code references from the internet obviously. My code is this: [CODE] The youtube videos and google link that talks about dialog boxes and are similar to the code above. It even works for the people showing the demo on youtube. But when I run it, the dialog box...
java|android|android-studio|dialog|alert
0
2022-05-22T16:01:36.600Z
2,022
5
16
6
50
2
480
61
5
1
true
false
false
false
false
false
zero
72,339,216
net maui app crashes on basic delete from list
<p>I am new to .net Maui (and Xamarin forms), but I am trying to get an example of MVVM working as obtained from a video on <a href="https://www.youtube.com/watch?v=oNIvnCNzAqU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=oNIvnCNzAqU</a></p> <p>My problem is that when I click on the bin icon the app crash...
I am new to .net Maui (and Xamarin forms), but I am trying to get an example of MVVM working as obtained from a video on https://www.youtube.com/watch?v=oNIvnCNzAqU My problem is that when I click on the bin icon the app crashes totally. Here is the relevant code TodoListViewModel.cs [CODE] and the xaml MainPage.xaml [...
android|.net|mvvm|maui
1
2022-05-22T16:03:53.300Z
2,022
5
16
6
339
1
962
46
4
4
true
false
false
false
false
false
low
72,339,327
How to create a lint warning like "Modifier parameter should be the first optional parameter"?
<p>How to create a lint warning like this?</p> <p><strong>Lint Warning</strong><br /> <a href="https://i.stack.imgur.com/1NT8W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1NT8W.png" alt="Lint Warning" /></a></p> <p>I am clear on <strong>Why</strong> this warning is shown and how to fix it.</p> <p...
How to create a lint warning like this? Lint Warning I am clear on Why this warning is shown and how to fix it. I am interested in understanding how this lint warning is created and is there a way to make a custom lint warning like this?
android|android-jetpack-compose|lint|android-jetpack-compose-modifier
2
2022-05-22T16:19:46.997Z
2,022
5
16
6
92
0
237
94
4
0
false
true
false
false
false
false
low
72,339,484
" javax.mail.AuthenticationFailedException ~" Using SMTP on Android
<p>I want to send Authenticate code(randomly generated) by using SMTP on Android. But, I have a problem</p> <p>This is my error</p> <p><a href="https://i.stack.imgur.com/W5XLZ.png" rel="nofollow noreferrer">https://i.stack.imgur.com/W5XLZ.png</a></p> <p>Do you have any solution about my problem?</p> <p>Here's my source...
I want to send Authenticate code(randomly generated) by using SMTP on Android. But, I have a problem This is my error https://i.stack.imgur.com/W5XLZ.png Do you have any solution about my problem? Here's my source code [CODE]
android|kotlin|smtp
0
2022-05-22T16:41:22.137Z
2,022
5
16
6
67
0
225
67
3
1
true
true
false
false
false
false
zero
72,339,506
Android AVD Keeps Terminating
<p>I am learning to develop Android apps with Java. I have recently installed Android studio and I am familiarizing myself with the software. I have installed the Android 11 and 12 SDKs and the correct SDK tools. I have created 2 AVDs (Pixel 5 and Pixel C), both with Android 11.</p> <p>I created an empty activity for a...
I am learning to develop Android apps with Java. I have recently installed Android studio and I am familiarizing myself with the software. I have installed the Android 11 and 12 SDKs and the correct SDK tools. I have created 2 AVDs (Pixel 5 and Pixel C), both with Android 11. I created an empty activity for a Hello Wor...
java|android|android-studio|avd
1
2022-05-22T16:44:13.023Z
2,022
5
16
6
19
0
673
29
4
0
false
true
false
false
false
false
low
72,339,530
GoogleMap composable taking all available screen space
<p>I expected the following code to show The map on the top and two text fields at the bottom. Instead, the map is taking all available space.</p> <p><a href="https://i.stack.imgur.com/I8ajx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I8ajx.png" alt="Map Picture" /></a></p> <pre class="lang-kotli...
I expected the following code to show The map on the top and two text fields at the bottom. Instead, the map is taking all available space. [CODE]
android|android-jetpack-compose
0
2022-05-22T16:45:34.207Z
2,022
5
16
6
34
1
146
54
2
1
true
false
false
false
false
false
zero
72,339,562
Updating data in firebase realtime database
<p>I want to update the above record but when I update that it updates the parent (user) instead of the child.</p> <pre><code> ` button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { sendNotification(); Toast.makeText(MainActivity2.th...
I want to update the above record but when I update that it updates the parent (user) instead of the child. [CODE] DB structure:
java|android|firebase|google-cloud-platform|firebase-realtime-database
2
2022-05-22T16:50:01.170Z
2,022
5
16
6
58
1
128
43
5
1
true
false
false
false
false
false
low
72,339,590
How to print contents of a spinner?
<p>Say that I have a spinner that is populated by</p> <p><code>var list = listOf(&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;, &quot;Four&quot;, &quot;Five&quot;)</code></p> <p>How would I access this list if I wanted to print the contents/dropdown list of the spinner?</p> <p>I would want an output that's simila...
Say that I have a spinner that is populated by var list = listOf(&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;, &quot;Four&quot;, &quot;Five&quot;) How would I access this list if I wanted to print the contents/dropdown list of the spinner? I would want an output that's similar to how a list is outputted when the...
android-studio|kotlin|spinner
0
2022-05-22T16:53:36.667Z
2,022
5
16
6
27
1
391
35
3
0
false
false
false
false
false
false
zero
72,339,604
My kotlin code to access the camera is giving this error ->unsolved reference:PERMISSION_GRANTED.Please help me to solve the error
<p>Below is my code that contains the error while I was following an youtube video (link provided) I got an error when I used packageManager.PERMISSION_GRANTED the code contains error called &quot;Unresolved reference: PERMISSION_GRANTED&quot;.PLease help to solve the error fast</p> <pre><code>package com.example.machi...
Below is my code that contains the error while I was following an youtube video (link provided) I got an error when I used packageManager.PERMISSION_GRANTED the code contains error called &quot;Unresolved reference: PERMISSION_GRANTED&quot;.PLease help to solve the error fast [CODE]
java|android|kotlin|android-permissions|mobile-development
0
2022-05-22T16:56:41.743Z
2,022
5
16
6
34
1
283
130
5
1
true
false
false
false
false
false
zero
72,339,732
Custom View onDraw() is being called but not appearing
<p>SOLVED: I fixed the problem, it had to do with the constraints in my layout.</p> <p>I am trying to create a custom view that for the time being simply displays a chart. This is my custom View class:</p> <pre><code>public class ChartView extends View { private final Paint paint; public ChartView(Context con...
SOLVED: I fixed the problem, it had to do with the constraints in my layout. I am trying to create a custom view that for the time being simply displays a chart. This is my custom View class: [CODE] At first I assumed onDraw() must not ever have been called, but I added the log messages and it was in fact being called ...
android|android-custom-view|ondraw|custom-view
0
2022-05-22T17:13:13.933Z
2,022
5
17
6
14
0
906
54
4
3
true
true
false
false
false
false
zero
72,339,764
RecyclerView inside RecyclerView to display full calendar year fragment
<p>I would like to have the fragments like these:</p> <p><a href="https://i.stack.imgur.com/4HUG0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4HUG0.png" alt="enter image description here" /></a></p> <p>And this is done.</p> <p>But the lag of openning YearFragment I faced with leaves much to be de...
I would like to have the fragments like these: And this is done. But the lag of openning YearFragment I faced with leaves much to be desired. For example, when I come from another fragment (MonthFragment) using NavigationView the completed appearing time is up to 3-5 second on real devices. I guess this is correct beha...
android|android-recyclerview|nestedrecyclerview
0
2022-05-22T17:17:46.167Z
2,022
5
17
6
257
0
1,081
71
3
1
true
true
false
false
false
false
zero
72,339,768
Can we say that Dagger @Bind is more SRP-based than @Provides is?
<p>I'm wondering if I understand SRP correctly using the Dagger under the hood as example.</p> <h2>@Binds processed code</h2> <hr /> <p>For example, if I have</p> <pre><code>@Module abstract class ModuleA { @Binds abstract fun provideStorage(storage: SharedStorage): Storage } </code></pre> <p>In such a case annota...
I'm wondering if I understand SRP correctly using the Dagger under the hood as example. @Binds processed code For example, if I have [CODE] In such a case annotation processor generates the follow code to initialize dagger graph: [CODE] @Provides processed code And if I have (make concrete class and instance (non-stati...
android|kotlin|dagger-2|single-responsibility-principle|solid
0
2022-05-22T17:18:14.763Z
2,022
5
17
6
24
0
616
65
5
4
true
true
false
false
false
false
zero
72,339,792
How to implement "zoom" with seekbar on CameraX?
<p>I am new to Android App development. I read <a href="https://github.com/Pinkal7600/camera-samples/blob/master/CameraXBasic/app/src/main/java/com/android/example/cameraxbasic/fragments/CameraFragment.kt" rel="nofollow noreferrer">https://github.com/Pinkal7600/camera-samples/blob/master/CameraXBasic/app/src/main/java/...
I am new to Android App development. I read https://github.com/Pinkal7600/camera-samples/blob/master/CameraXBasic/app/src/main/java/com/android/example/cameraxbasic/fragments/CameraFragment.kt for better understanding how to write the zoom function. However, my program just didn't work. I am thinking about if it is rel...
android|kotlin|zooming|android-seekbar|android-camerax
0
2022-05-22T17:21:00.013Z
2,022
5
17
6
171
1
478
48
5
2
true
false
false
false
false
false
zero
72,339,847
How to track connected Wifi AP bssid in android ,while in app killed / background scenario?
<p>Using Service / Workmanager or any other architecture component of android.</p> <p>Especially for android 10 and above, where backgrund permission related issues due to location are introduced.</p>
Using Service / Workmanager or any other architecture component of android. Especially for android 10 and above, where backgrund permission related issues due to location are introduced.
android|kotlin
0
2022-05-22T17:27:40.503Z
2,022
5
17
6
19
0
186
91
2
0
false
true
false
false
false
false
zero
72,339,857
Why cant I initialize the Webview
<p>im just starting out with android studio, i have imported WebKit but those imports are grayed. and i cant initialize the webview &quot;private WebView webview&quot; shows errors how to do it correctly? <a href="https://i.stack.imgur.com/hKLym.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hKLym.p...
im just starting out with android studio, i have imported WebKit but those imports are grayed. and i cant initialize the webview &quot;private WebView webview&quot; shows errors how to do it correctly? [CODE]
java|android|android-studio
0
2022-05-22T17:28:36.857Z
2,022
5
17
6
44
1
208
33
3
1
true
false
false
false
false
false
zero
72,339,916
How to write the result of a query in SQLite to a variable
<p>I got a code: I got SQLite database with one table.:</p> <pre><code>package com.example.kanlane; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.Nullable; public class SQLite extends SQLiteOpenHelper { ...
I got a code: I got SQLite database with one table.: [CODE] Register activity which inserts data to SQLite, it inserts email and user_binder strings: [CODE] And MainActivity which needs to read data from SQLite and put it in variables (String emailfrom, emailto;) [CODE] All I need is to read data which Register activit...
java|android|sqlite
-2
2022-05-22T17:37:05.133Z
2,022
5
17
6
36
1
367
58
3
3
true
false
false
false
false
true
negative
72,339,922
How to create a chat page with a sticky header like Telegram group chat in Flutter?
<p><strong>I'm building a page like the Telegram group chat</strong>, but I'm having trouble giving position sticky to both the date widget and the user's avatar at the same time. <img src="https://i.stack.imgur.com/Ecydd.jpg" alt="See this screenshot" /></p> <p>I tried almost all the packages available for this on pub...
I'm building a page like the Telegram group chat , but I'm having trouble giving position sticky to both the date widget and the user's avatar at the same time. I tried almost all the packages available for this on pub.dev, including FlutterStickyHeader and FlutterListView , but I could not give the Avatar and Date wid...
android|ios|windows|flutter|dart
0
2022-05-22T17:37:59.237Z
2,022
5
17
6
233
2
672
83
5
1
true
false
false
false
false
false
zero
72,340,164
How to dismiss alert dialog when internet off in android Broadcast Receiver?
<blockquote> <p>I have implemented broadcast receiver to get internet status in my Android application. It's working perfectly fine. When internet gose off but problem is I want to dismiss the alert dialogue when internet turn on</p> </blockquote> <blockquote> <p><strong>alert.dismiss() not working</strong></p> </block...
I have implemented broadcast receiver to get internet status in my Android application. It's working perfectly fine. When internet gose off but problem is I want to dismiss the alert dialogue when internet turn on alert.dismiss() not working [CODE]
android|broadcastreceiver|android-wifi|android-connectivitymanager|network-state
0
2022-05-22T18:11:20.940Z
2,022
5
18
6
51
0
248
76
5
1
true
true
false
false
false
false
zero
72,340,230
How to go back to the last activity when the app is killed and reopened
<p>I want my Android app to go back to the last activity if the user closes and reopens the app again. I search for some info, but most of them just save the data. I am wondering how to save the activity. For example, my app has two activities, the app was killed when it was in activity 2. When I relaunch the app, it s...
I want my Android app to go back to the last activity if the user closes and reopens the app again. I search for some info, but most of them just save the data. I am wondering how to save the activity. For example, my app has two activities, the app was killed when it was in activity 2. When I relaunch the app, it shou...
java|android|mobile-application
0
2022-05-22T18:20:14.430Z
2,022
5
18
6
27
1
362
71
3
0
false
false
false
false
false
false
zero
72,340,267
How to fix the error "There are multiple DataStores active"
<p>I have an error in the project. When I use the DataStore on my project then I get an error. I do not intend to create several datastore for my project. I do want to create a datastore for it but when running the project I get an error</p> <p>and I found many questions on the StackOverflow.com like</p> <p>1- <a href=...
I have an error in the project. When I use the DataStore on my project then I get an error. I do not intend to create several datastore for my project. I do want to create a datastore for it but when running the project I get an error and I found many questions on the StackOverflow.com like 1- Git push results in &quot...
java|android|kotlin|datastore
0
2022-05-22T18:26:00.683Z
2,022
5
18
6
78
1
522
59
4
2
true
false
false
false
false
false
zero
72,340,332
why my images are not showing in image slider with recyclerview?
<p>Actually I m new to android development and i m trying to implement my product images like a carousel with a library called &quot;why not&quot; using glide with recyclerview. but I m not able to see the photos like this. I am not getting how to implement a carousel like this, What i m doing wrong please help me . Pl...
Actually I m new to android development and i m trying to implement my product images like a carousel with a library called &quot;why not&quot; using glide with recyclerview. but I m not able to see the photos like this. I am not getting how to implement a carousel like this, What i m doing wrong please help me . Pleas...
java|android|android-studio|android-recyclerview
0
2022-05-22T18:35:59.993Z
2,022
5
18
6
150
1
446
64
4
3
true
false
false
false
false
false
zero
72,340,354
My TextInputEditText Isn't showing after Running my code
<p>Althought you can clearly see the how the design looks clearly fine, both TextInputEditText are visible but when i run the code TextInputEditText becomes totally invisible unless when i click on it, Also the TextView that says &quot;Hello there, Welcome back&quot; doesn't show</p> <p><strong>Here is how my layout lo...
Althought you can clearly see the how the design looks clearly fine, both TextInputEditText are visible but when i run the code TextInputEditText becomes totally invisible unless when i click on it, Also the TextView that says &quot;Hello there, Welcome back&quot; doesn't show Here is how my layout looks like before ru...
android|xml|android-studio|android-layout
0
2022-05-22T18:38:48.193Z
2,022
5
18
6
33
1
392
56
4
1
true
false
false
false
false
false
zero
72,340,467
Unable to click on close button on webview for iOS devices greater than 8
<p>I'm new to flutter and am developing an application which makes use of a webview. In the webview it contains close button ('X') and a few more components. So if i click on 'X' button the webview should close. When I run the application on android and iOS(8&lt;=) devices everything seems to work fine. But when I run ...
I'm new to flutter and am developing an application which makes use of a webview. In the webview it contains close button ('X') and a few more components. So if i click on 'X' button the webview should close. When I run the application on android and iOS(8<=) devices everything seems to work fine. But when I run the ap...
android|ios|flutter|webview
0
2022-05-22T18:55:01.813Z
2,022
5
18
6
65
0
800
73
4
1
true
true
false
false
false
false
zero
72,340,482
What is the most efficient way to set a lot of notifications?
<p>I am creating a calendar app where you can set unlimited amount of activities which trigger alarmManager at start. And I am not sure what would be the best way to set the alarms.</p> <p>Lets say we have 50.000 alarms which starting times are loaded from the database and save in array in MainActivity and we need to s...
I am creating a calendar app where you can set unlimited amount of activities which trigger alarmManager at start. And I am not sure what would be the best way to set the alarms. Lets say we have 50.000 alarms which starting times are loaded from the database and save in array in MainActivity and we need to set them. W...
android|broadcastreceiver|alarmmanager
0
2022-05-22T18:56:40.123Z
2,022
5
18
6
12
0
1,321
61
3
0
false
true
false
false
false
false
zero
72,340,485
I tried to use intent email in my small android project but its not working. Can anyone help me to find the error?
<p>public void submit_order(View view) { //For ORDER button EditText name_var = (EditText) findViewById(R.id.name); field = name_var.getText().toString();</p> <pre><code> Intent intent = new Intent(Intent.ACTION_SENDTO); // only email apps should handle this intent.s...
public void submit_order(View view) { //For ORDER button EditText name_var = (EditText) findViewById(R.id.name); field = name_var.getText().toString(); [CODE]
java|android|email|android-intent
-1
2022-05-22T18:57:08.387Z
2,022
5
18
6
17
1
158
114
4
1
true
false
false
false
false
true
negative
72,340,540
Opencv Kotlin Android /Image template/
<p>please tell me,</p> <ol> <li><p>How do I add the opencv android kotlin library? If you can in detail how and where to throw files along the path to folders and connect, and then only the explorer (root is available) and CodeAssist on the phone</p> </li> <li><p>How to use opencv android kotlin to use the image templa...
please tell me, How do I add the opencv android kotlin library? If you can in detail how and where to throw files along the path to folders and connect, and then only the explorer (root is available) and CodeAssist on the phone How to use opencv android kotlin to use the image template function (search for images on th...
android|kotlin|opencv
-1
2022-05-22T19:05:56.960Z
2,022
5
19
6
289
2
370
38
3
0
false
false
false
false
false
true
negative
72,340,716
Refreshing LazyPagingItems when one item state has changed
<p>Basically I have a paging data flow collected in a composable function:</p> <pre><code>val list = state.listFlow.collectAsLazyPagingItems() </code></pre> <p>Each item on the list has a call-to-action button that will enable/disable the view and update the UI of the corresponding item.</p> <p>My question is, how can ...
Basically I have a paging data flow collected in a composable function: [CODE] Each item on the list has a call-to-action button that will enable/disable the view and update the UI of the corresponding item. My question is, how can we update the visual state of the item without the need for calling refresh on the Pagin...
android|android-jetpack-compose|android-paging|android-paging-3
2
2022-05-22T19:31:25.183Z
2,022
5
19
6
519
1
534
58
4
1
true
false
false
false
false
false
low
72,340,745
When I make an e-mail intent in kotlin, the recipient mail is not added directly
<pre><code>binding.navView.setNavigationItemSelectedListener { when(it.itemId){ R.id.requestWallpaper-&gt;{ val emailIntent=Intent().apply { action=Intent.ACTION_SEND data= Uri.parse(&quot;mailto:&quot;) ...
[CODE] When the navigation drawer opens, the user will want to make a wallpaper request and when he presses the imagebutton, I want him to send an e-mail to test@gmail.com via gmail for now, but test@gmail.com is not added directly to the &quot;to&quot; part of gmail.When I run it on the emulator, the email subject and...
android-studio|kotlin|email|android-intent|imagebutton
0
2022-05-22T19:34:57.877Z
2,022
5
19
6
53
1
387
80
5
1
true
false
false
false
false
false
zero
72,340,962
Android Views pushed off of LinearLayout
<p>I have a vertical <code>LinearLayout</code> with a <code>TextView</code>, a custom view (replaced with <code>VideoView</code> to illustrate the problem), and a <code>Button</code>. I want the <code>TextView</code> horizontally centered on the top, and the <code>Button</code> horizontally centered on the bottom (as w...
I have a vertical LinearLayout with a TextView , a custom view (replaced with VideoView to illustrate the problem), and a Button . I want the TextView horizontally centered on the top, and the Button horizontally centered on the bottom (as well as vertically centered in the remaining space between VideoView and bottom ...
android|android-linearlayout
0
2022-05-22T20:08:42.313Z
2,022
5
20
6
31
1
739
40
2
1
true
false
false
false
false
false
zero
72,341,036
How to get app usage without accessibility permission?
<p>In Android, you can know what app is used by the user using Accessibility permission.</p> <p>However, there are some apps that somehow gets this info without using Accessibility permission.</p> <p>The app Stay Free on PlayStore for example has a feature called &quot;pause app&quot;. It does not require any specific ...
In Android, you can know what app is used by the user using Accessibility permission. However, there are some apps that somehow gets this info without using Accessibility permission. The app Stay Free on PlayStore for example has a feature called &quot;pause app&quot;. It does not require any specific permission apart ...
android|accessibility|android-permissions
0
2022-05-22T20:19:03.320Z
2,022
5
20
6
34
0
409
54
3
0
false
true
false
false
false
false
zero
72,341,176
firestore update function is not working properly
<p>in my react native app im trying to get user position when app opened only once</p> <p>heres my code below.</p> <pre><code>async function GetUserDoc() { let userData = await userDataRef.get().catch(error =&gt; Alert.alert(&quot;getuser&quot; + error.message)) const uid = userData.docs.map(x =&gt; x.id) i...
in my react native app im trying to get user position when app opened only once heres my code below. [CODE] when i check console log i can see &quot;posupdate&quot; so its seems like working. but when i check firestore user location not updates. if im refresh app from metro its updating but if i close app totally and r...
android|firebase|react-native|google-cloud-firestore
0
2022-05-22T20:45:08.187Z
2,022
5
20
6
23
0
369
49
4
1
true
true
false
false
false
false
zero
72,341,258
Arduino not receiving Bluetooth GATT signal
<p>On my android studio app, I have a button that when pressed, sends a &quot;go&quot; signal and on release sends a &quot;stop&quot; signal.</p> <p>When you hold the button down and then release it works fine with the Arduino receiving both signals. However, when it is a quick tap, the Arduino does not receive the sto...
On my android studio app, I have a button that when pressed, sends a &quot;go&quot; signal and on release sends a &quot;stop&quot; signal. When you hold the button down and then release it works fine with the Arduino receiving both signals. However, when it is a quick tap, the Arduino does not receive the stop signal. ...
java|android-studio|bluetooth-lowenergy|arduino-uno|bluetooth-gatt
0
2022-05-22T20:57:46.473Z
2,022
5
20
6
38
0
897
43
5
1
true
true
false
false
false
false
zero
72,341,263
React native android release build error, setVersionCodeOverride
<p>Am using react-native 0.67.4 debug mode is running smoothly, but when it gets to release mode through CI/CD the build fails with</p> <blockquote> <p>Cannot change this value any further</p> </blockquote> <p>Following the stack trace got me to setVersionCodeOverride method failing.</p> <p>please check the stacktrace ...
Am using react-native 0.67.4 debug mode is running smoothly, but when it gets to release mode through CI/CD the build fails with Cannot change this value any further Following the stack trace got me to setVersionCodeOverride method failing. please check the stacktrace below: Exception is: org.gradle.api.tasks.TaskExecu...
android|react-native|gradle|build.gradle
0
2022-05-22T20:58:58.770Z
2,022
5
20
6
50
0
18,242
64
4
0
false
true
false
false
false
false
zero
72,341,317
Create a Polygon in Google Maps with Coordinates from a SQLite Database Android
<p>I want to create a Polygon in Google Maps with Coordinates out of my SQLite Database. My Code can already create multiple Markers with Coordinates out of my Database. The Database contains an ID, E-Coordinates and N-Coordinates. I tried it with a Query like I did it with the markers but it wont work :/ Can somebody ...
I want to create a Polygon in Google Maps with Coordinates out of my SQLite Database. My Code can already create multiple Markers with Coordinates out of my Database. The Database contains an ID, E-Coordinates and N-Coordinates. I tried it with a Query like I did it with the markers but it wont work :/ Can somebody hel...
java|android|database|sqlite|android-studio
1
2022-05-22T21:09:59.437Z
2,022
5
21
6
58
1
439
79
5
2
true
false
false
false
false
false
low
72,341,349
Android TextView logcat warning: calling assumeLayout()
<p>I am repeatedly seeing the following warning message in my Android app's logcat output on a Google Pixel 6 running Android 12 (API 32):</p> <p><code>W/TextView: onProvideContentCaptureStructure(): calling assumeLayout()</code></p> <p>There is no further information logged. It appears numerous times whenever my app's...
I am repeatedly seeing the following warning message in my Android app's logcat output on a Google Pixel 6 running Android 12 (API 32): W/TextView: onProvideContentCaptureStructure(): calling assumeLayout() There is no further information logged. It appears numerous times whenever my app's activity is opened or refresh...
android|textview
5
2022-05-22T21:18:14.527Z
2,022
5
21
6
102
0
540
55
2
0
false
true
false
false
false
false
low
72,341,386
Where do I find the standard uri authorities in Android and how they work?
<p>I have found this snippet of code:</p> <pre class="lang-java prettyprint-override"><code> @TargetApi(Build.VERSION_CODES.KITKAT) public static String getPath(final Context context, final Uri uri) { final boolean isKitKat = Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.KITKAT; if (isKitKat) ...
I have found this snippet of code: [CODE] I want to use it to translate uris to full paths, and I want more information about what I can get as &quot;authority&quot;, but in the official documentation I only find how to create an authority, not information about what can I expect to find on a normal device. There is ev...
android|android-external-storage
0
2022-05-22T21:23:53.947Z
2,022
5
21
6
58
1
503
74
2
1
true
false
false
false
false
false
zero
72,341,558
SHA-1 Certificate mismatch in Google Play Console
<p>When i'm trying to upload AAB to google play console, it shows me this error:</p> <blockquote> <p>Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint: SHA...
When i'm trying to upload AAB to google play console, it shows me this error: Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint: SHA1: XXXXXX but the certi...
android|unity3d|google-play-services|google-play-console|sha
0
2022-05-22T21:59:36.187Z
2,022
5
21
6
214
0
649
49
5
0
false
true
false
false
false
false
zero
72,341,581
How do I know, the thread is finished in Kotlin?
<p>Im trying to set text after all threads are finished. Do you have any ideas for me?</p> <pre><code>fun threadStart(){ var ende = 150_000 val s = Semaphore(1) var thread1 :Thread = Thread(Runnable{ while(counter &lt; ende){ counter++ println(&quot;1. Thread : $counter&quot;) println(&quot...
Im trying to set text after all threads are finished. Do you have any ideas for me? [CODE] Normally I would write a print after thread4 here or in the main after threadstart()
multithreading|android-studio|kotlin
-1
2022-05-22T22:04:28.247Z
2,022
5
22
6
68
1
175
48
3
1
true
false
false
false
false
true
negative
72,341,589
How to get a SurfaceTexture from a GLSurfaceView?
<p>I have the following Kotlin class:</p> <pre><code>class MainActivity : AppCompatActivity() { private var glSurfaceView: GLSurfaceView? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) glSurfaceView = ...
I have the following Kotlin class: [CODE] I could create a Kotlin renderer like glSurfaceView.setRenderer(...) and there I could get a SurfaceTexture , but then I have to implement methods like draw and etc. I just need a SurfaceTexture backed by this GLSurfaceView , but I want to render stuff in native code (C++ or Ru...
android|kotlin|graphics|egl
0
2022-05-22T22:05:51.170Z
2,022
5
22
6
42
0
629
49
4
1
true
true
false
false
false
false
zero
72,341,680
[Resolved]How to retrieve data from firestore based on selection from spinner then calculate total cost to be displayed in textView
<p>Anyone can help please with below my code ,Basically I want to fetch all data from firestore based on UserID and date range for specific month (ex: April) and get total cost for each row which will display in textView (id=spent)</p> <p>my class as below:</p> <pre><code> @Override protected void onCreate(Bundle save...
Anyone can help please with below my code ,Basically I want to fetch all data from firestore based on UserID and date range for specific month (ex: April) and get total cost for each row which will display in textView (id=spent) my class as below: [CODE] I have attached below images which demonstrate my data from fires...
java|android|firebase|google-cloud-firestore|spinner
0
2022-05-22T22:22:43.450Z
2,022
5
22
6
46
0
324
131
5
1
true
true
false
false
false
false
zero
72,341,728
Google pay Api in Jetpack compose - How to
<p>I can't find resources on the internet on How to achieve the google API integration into an Compose based app.</p> <p>I need help, especially in the AutoResolveHelper.resolveTask, how to do it in compose.</p> <p>Thank you for your answers.</p> <p>(That's mind blowing that there is no more documentation on this API, ...
I can't find resources on the internet on How to achieve the google API integration into an Compose based app. I need help, especially in the AutoResolveHelper.resolveTask, how to do it in compose. Thank you for your answers. (That's mind blowing that there is no more documentation on this API, it's pretty difficult to...
android|kotlin|android-jetpack-compose|google-pay
0
2022-05-22T22:31:42.300Z
2,022
5
22
6
226
0
386
42
4
1
true
true
false
false
false
false
zero