id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
73,176,190
Customize toolBar with variable tpsLiturgique from data class Chant
<p>data class Chant( val titreChant: String, val referencesChants: String, val tpsLiturgique: String, val refrain: String, val couplets: String</p> <p>)</p> <p>class listChants : AppCompatActivity() {</p> <pre><code>private lateinit var recyclerView: RecyclerView private lateinit var chantList:ArrayList&lt;Chant&gt; pr...
data class Chant( val titreChant: String, val referencesChants: String, val tpsLiturgique: String, val refrain: String, val couplets: String ) class listChants : AppCompatActivity() { [CODE] linked toolBar title
kotlin-android
0
2022-07-30T13:55:33.107Z
2,022
7
13
5
5
0
211
67
1
1
true
true
false
false
false
false
zero
73,176,297
How to Query in a many to many relationship Room database?
<p>I have a many to many relationship Room database with three tables:</p> <p>First one :</p> <pre><code>data class Name( @PrimaryKey(autoGenerate = true) var nameId : Long = 0L, @ColumnInfo(name = &quot;name&quot;) var name : String = &quot;&quot;, @ColumnInfo(name = &quot;notes&quot;) var notes: String=&quot;&quot; )...
I have a many to many relationship Room database with three tables: First one : [CODE] Second: [CODE] Third: [CODE] The data class I use for a return object in a Query: [CODE] This is how I query to get all NamesWithTags: [CODE] So the thing I need to do is, I need to Query to return LiveData<List<NameWithTags>> where ...
android|sql|database|kotlin|android-room
1
2022-07-30T14:07:54.207Z
2,022
7
14
5
58
1
394
58
5
5
true
false
false
false
false
false
low
73,176,482
Dialog for fragments
<p>Why is my <code>showPopup</code> grey when I already have an <code>OnClick</code> method on that fragment's xml?</p> <p>I'm trying to make the <code>popup_about_app</code> XML popup when I click on the button with the <code>OnClick</code>.</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, Vi...
Why is my showPopup grey when I already have an OnClick method on that fragment's xml? I'm trying to make the popup_about_app XML popup when I click on the button with the OnClick . [CODE]
java|android|android-fragments
0
2022-07-30T14:35:42.663Z
2,022
7
14
5
31
1
188
20
3
1
true
false
false
false
false
false
zero
73,176,510
Media Player not playing sound from a live source but works for mp3
<p>Currently working on an app in Android Studio to play music from a live audio source. I got the play and pause button to work for certain url's such as <a href="https://p.scdn.co/mp3-preview/d49516b1ebf290c9ecbd8db07b5be9439fc09326?cid=774b29d4f13844c495f206cafdad9c86" rel="nofollow noreferrer">this</a>, which may o...
Currently working on an app in Android Studio to play music from a live audio source. I got the play and pause button to work for certain url's such as this , which may only work either because it's http. However, when doing it with this link, which is live audio from a college radio station, it doesn't play anything (...
java|android|android-studio|android-mediaplayer
0
2022-07-30T14:38:53.453Z
2,022
7
14
5
17
0
603
67
4
1
true
true
false
false
false
false
zero
73,176,572
Error Type mismatch: inferred type is View! but String was expected
<p>I don't know why I doing wrong, I get this error &quot;Type mismatch: inferred type is View! but String was expected&quot;</p> <p>the line that give me the Error is about the &quot;otp&quot;</p> <p>this is the code:</p> <pre><code> binding!!.otpView.setOnClickListener { otp -&gt; val credential = PhoneA...
I don't know why I doing wrong, I get this error &quot;Type mismatch: inferred type is View! but String was expected&quot; the line that give me the Error is about the &quot;otp&quot; this is the code: [CODE]
android|firebase|kotlin|one-time-password
0
2022-07-30T14:48:08.243Z
2,022
7
14
5
180
2
208
67
4
1
true
false
false
false
false
false
zero
73,176,656
implement click listener on recycler view fragment
<p>im using click listener on adapter like this</p> <p>in adapter :</p> <pre><code>private var onItemClickListener: ((TansitionModel) -&gt; Unit)? = null override fun onBindViewHolder(holder: ViewHolder, position: Int) { val article = differ.currentList[position] holder.itemView.apply { setOnClickLis...
im using click listener on adapter like this in adapter : [CODE] in fragement : [CODE] now with this architecture how can i pass multiple parameters like view and other data types (All together) from adapter click listener to fragment ??
android|kotlin
0
2022-07-30T14:59:16.683Z
2,022
7
14
5
35
2
237
50
2
2
true
false
false
false
false
false
zero
73,176,679
Android Snackbar: No suitable parent found from the given view. Please provide a valid view
<p>I have a Fragment class and a normal HelpFunctionsclass. I want the Fragment class to show a Snackbar by calling a method in the HelpFunctionsclass.</p> <p>In the Fragment class I call the following code after a certain button has been pressed:</p> <pre><code>HelpFunctions.showSnackBar(getActivity(), getString(R.str...
I have a Fragment class and a normal HelpFunctionsclass. I want the Fragment class to show a Snackbar by calling a method in the HelpFunctionsclass. In the Fragment class I call the following code after a certain button has been pressed: [CODE] And in the HelpFunctions class the method for displaying the Snackbar looks...
java|android|android-snackbar
0
2022-07-30T15:01:46.567Z
2,022
7
15
5
53
1
1,191
91
3
2
true
false
false
false
false
false
zero
73,176,822
how to turn off usb debugging using wireless debugging
<p>I have android TV and I can use wireless adb. I need to turn off USB-debugging, but I don't have opportunity to turn it off using developer settings.</p> <p>I need to turn off USB-debugging, because I need my mouse work by OTG. So maybe there is some way to turn off USB-debugging using wireless adb?</p>
I have android TV and I can use wireless adb. I need to turn off USB-debugging, but I don't have opportunity to turn it off using developer settings. I need to turn off USB-debugging, because I need my mouse work by OTG. So maybe there is some way to turn off USB-debugging using wireless adb?
android|android-tv|android-debug
0
2022-07-30T15:21:00.560Z
2,022
7
15
5
40
0
293
54
3
0
false
true
false
false
false
false
zero
73,176,848
How can I synchronize many VideoViews in Android?
<p>I need to display 4 Video views, but I can not synchronize them. I use com.warnyul.android.widget.FastVideoView as i need to rotate them. Now Im using this:</p> <pre><code>var videoViewsAreReady = mutableListOf(false,false,false,false) override fun onCreate(savedInstanceState: Bundle?) { //... videoViewTop...
I need to display 4 Video views, but I can not synchronize them. I use com.warnyul.android.widget.FastVideoView as i need to rotate them. Now Im using this: [CODE] So are there any ways to do it?
java|android|kotlin|android-videoview
0
2022-07-30T15:24:21.007Z
2,022
7
15
5
23
0
195
49
4
1
true
true
false
false
false
false
zero
73,176,895
Classifier 'TelephonyManager' does not have a companion object, and thus must be initialized here
<p>I saw few answers on SO regarding this but none worked for me.</p> <p>I am getting this error:</p> <pre><code> Classifier 'TelephonyManager' does not have a companion object, and thus must be initialized here </code></pre> <p>on the line:</p> <pre><code>val telephoneManager: TelephonyManager = TelephonyManager getSy...
I saw few answers on SO regarding this but none worked for me. I am getting this error: [CODE] on the line: [CODE] I am trying to typecaste the variable to TelephonyManager and that's where it is giving me this compile-time error. Any suggestions?
java|android|kotlin
0
2022-07-30T15:31:08.537Z
2,022
7
15
5
27
1
247
97
3
2
true
false
false
false
false
false
zero
73,177,019
Setting start and end duration of song with range seekbar
<p>I'm trying to incorporate somehow into Android audio player, functionality of marking of the fragment of the song in the player that it is supposed to play. I see this like clipping of the fragment as in Audacity. I'm trying to get it with a range seekbar (two blue dots on a line that can be adjust) on which user ma...
I'm trying to incorporate somehow into Android audio player, functionality of marking of the fragment of the song in the player that it is supposed to play. I see this like clipping of the fragment as in Audacity. I'm trying to get it with a range seekbar (two blue dots on a line that can be adjust) on which user mark ...
java|android|android-mediaplayer|media-player|rangeseekbar
0
2022-07-30T15:47:13.030Z
2,022
7
15
5
38
0
714
57
5
2
true
true
false
false
false
false
zero
73,177,109
Android Home Screen App Icon With Unwanted Mini-Icon Badge
<p>After adding code that populates the device's home screen with a shortcut icon for my app, the icon appears as an aliased icon, with the main icon I'm trying to install on the home page and a mini version of the icon that's some sort of badge at the lower-right corner of my icon. Does anyone know how to prevent thi...
After adding code that populates the device's home screen with a shortcut icon for my app, the icon appears as an aliased icon, with the main icon I'm trying to install on the home page and a mini version of the icon that's some sort of badge at the lower-right corner of my icon. Does anyone know how to prevent this ba...
android|shortcut|homescreen
1
2022-07-30T15:58:53.510Z
2,022
7
15
5
58
1
699
58
3
1
true
false
false
false
false
false
low
73,177,127
Get Uri of recorded video CameraX
<p>I am recording a video with the camerax library, I would like to retrieve the uri of the recorded file to open it with InputStream but it keeps giving me FILENOTFOUND</p> <p>This is the code I use to start recording the video</p> <pre><code>contentValues = ContentValues().apply { put(MediaStore.Video...
I am recording a video with the camerax library, I would like to retrieve the uri of the recorded file to open it with InputStream but it keeps giving me FILENOTFOUND This is the code I use to start recording the video [CODE] And this is when I try to initialize InputStream: [CODE]
android|uri|android-camerax
0
2022-07-30T16:00:32.473Z
2,022
7
16
5
65
1
282
33
3
2
true
false
false
false
false
false
zero
73,177,137
How strart method execution after one method finished executing
<p>im making simple notes app width Sqlite Mysql sync. The problem is that when i save my data in edit_note_fragment and then go back to fragment width my recyclerView my list don't load new data. It's because String request take a while to perform and saves data after my list is already refreshed in my recyclerView. I...
im making simple notes app width Sqlite Mysql sync. The problem is that when i save my data in edit_note_fragment and then go back to fragment width my recyclerView my list don't load new data. It's because String request take a while to perform and saves data after my list is already refreshed in my recyclerView. I al...
java|android|mysql|sqlite|android-studio
-1
2022-07-30T16:02:16.240Z
2,022
7
16
5
46
1
633
63
5
3
true
false
false
false
false
true
negative
73,177,150
Is it possible to turn on 'voice assistance' of android os only when using my app?
<p>I'm making an app which non-blind people and the blind can use in same device. So I want to turn voice assistance on temporarily when the blind use my app, and off when non-blind people use the same app. But I couldn't find how to make. Please Help me !!!</p>
I'm making an app which non-blind people and the blind can use in same device. So I want to turn voice assistance on temporarily when the blind use my app, and off when non-blind people use the same app. But I couldn't find how to make. Please Help me !!!
android
0
2022-07-30T16:04:23.243Z
2,022
7
16
5
17
0
255
82
1
0
false
true
false
false
false
false
zero
73,177,331
Jetpack compose TextField IP address visual transformation and validation
<p>What is the simplest way to create a TextField in Jetpack Compose with IP address validation and Visual transformation? I need a TextField that advances automatically to the next group of numbers in the IP address when the entered number is &gt;25 and adds the &quot;.&quot; automatically between each group, etc.</p>...
What is the simplest way to create a TextField in Jetpack Compose with IP address validation and Visual transformation? I need a TextField that advances automatically to the next group of numbers in the IP address when the entered number is >25 and adds the &quot;.&quot; automatically between each group, etc. I've done...
android|android-layout|android-jetpack-compose
0
2022-07-30T16:27:08.720Z
2,022
7
16
5
98
1
622
73
3
0
false
false
false
false
false
false
zero
73,177,556
Allow Notifications To Be Sent When App is Closed Or Not Running
<p>I am developing an app that allows users to receive notifications from two places: 1) from a calendar event notification and 2) from an alarm/reminder notification. The notifications work when I have the app open but I want them to work when the user has the app closed or not currently running. Is there a way to do ...
I am developing an app that allows users to receive notifications from two places: 1) from a calendar event notification and 2) from an alarm/reminder notification. The notifications work when I have the app open but I want them to work when the user has the app closed or not currently running. Is there a way to do thi...
java|android|xml|android-studio|android-manifest
0
2022-07-30T16:58:15.603Z
2,022
7
16
5
24
0
369
64
5
0
false
true
false
false
false
false
zero
73,177,557
android app crashs when i use position or zIndex style properties in react-native
<p>I have a simple code where I'm trying to show a semi transparent black screen over my page to show a message or a prompt in the center , so i use zIndex or elevation with position:'fixed' or position:'obsolet' it works fine in web , but when i run the app on android , it crashes with no errors shown.</p> <pre><code>...
I have a simple code where I'm trying to show a semi transparent black screen over my page to show a message or a prompt in the center , so i use zIndex or elevation with position:'fixed' or position:'obsolet' it works fine in web , but when i run the app on android , it crashes with no errors shown. [CODE]
javascript|android|reactjs|react-native
0
2022-07-30T16:58:21.550Z
2,022
7
16
5
39
1
308
81
4
1
true
false
false
false
false
false
zero
73,177,639
how to fix "the size of byte buffer and the shape dont match" in kotlin tflite
<p>im getting :</p> <pre><code> Process: com.example.qutubcomplexmonumentspredictiontensorflowlite, PID: 24696 java.lang.IllegalArgumentException: The size of byte buffer and the shape do not match. at org.tensorflow.lite.support.common.SupportPreconditions.checkArgument(SupportPreconditions.java:104) ...
im getting : [CODE] MainActivity.kt: https://gist.github.com/0xN1nja/537ec6ad7d00c2284d7788f92de0a600 My model :
android|android-studio|tensorflow|kotlin|tensorflow-lite
0
2022-07-30T17:10:41.713Z
2,022
7
17
5
36
1
112
78
5
1
true
false
false
false
false
false
zero
73,177,717
Catch a native memory corruption bug on user devices
<p>Android app, Java/NDK/C++. I have very strong evidence that I have a memory corruption bug somewhere in the native parts - a variable that shouldn't change for the lifetime of the app does change. I don't have repro steps, only crash reports from user devices.</p> <p>Question, can one leverage the CPU's built-in deb...
Android app, Java/NDK/C++. I have very strong evidence that I have a memory corruption bug somewhere in the native parts - a variable that shouldn't change for the lifetime of the app does change. I don't have repro steps, only crash reports from user devices. Question, can one leverage the CPU's built-in debug facilit...
android|linux|assembly|arm64
0
2022-07-30T17:22:26.910Z
2,022
7
17
5
33
0
637
52
4
0
false
true
false
false
false
false
zero
73,177,727
Getting CPU and memory averages for Android app
<p>I have multiple Android application that require retrieving the CPU and memory average when running on a physical device. All applications can be open within Android Studio but not all are native, there are Flutter and React Native projects as well. Android Studio has a profiler but doesn't allow any export of usage...
I have multiple Android application that require retrieving the CPU and memory average when running on a physical device. All applications can be open within Android Studio but not all are native, there are Flutter and React Native projects as well. Android Studio has a profiler but doesn't allow any export of usage me...
android|performance|android-profiler
0
2022-07-30T17:23:47.993Z
2,022
7
17
5
74
2
727
47
3
0
false
false
false
false
false
false
zero
73,177,734
Bluetooth discover unpaired devices broadcastReceiver not receiving intent
<p>I am coding a Bluetooth Discovery Device Scanner and can't manage to make it work. I am unable to scan any unpaired device. I tried scouring Youtube videos and stacked overflow for similar issues and tried nearly all the solutions but none worked. I even tried using other repositories people have made for similar ap...
I am coding a Bluetooth Discovery Device Scanner and can't manage to make it work. I am unable to scan any unpaired device. I tried scouring Youtube videos and stacked overflow for similar issues and tried nearly all the solutions but none worked. I even tried using other repositories people have made for similar apps ...
java|android|bluetooth
0
2022-07-30T17:24:28.643Z
2,022
7
17
5
20
0
736
74
3
3
true
true
false
false
false
false
zero
73,178,030
What is diffrent between setContentView(id) with setContentView<binding>(activity, id))
<p>What is the difference between <code>setContentView(id)</code> with <code>setContentView&lt;binding&gt;(activity, id))</code> in the activity?</p>
What is the difference between setContentView(id) with setContentView<binding>(activity, id)) in the activity?
android
1
2022-07-30T18:12:34.413Z
2,022
7
18
5
15
0
110
87
1
0
false
true
false
false
false
false
low
73,178,082
How do you send a message from child fragment to a parent fragment
<p>I am trying to use an intent to send data from the child to the parent. But I keep getting an error which says</p> <p>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference</p> <p>I have been looking for d...
I am trying to use an intent to send data from the child to the parent. But I keep getting an error which says java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference I have been looking for days and can't see...
java|android
0
2022-07-30T18:21:22.943Z
2,022
7
18
5
23
0
360
66
2
1
true
true
false
false
false
false
zero
73,178,094
androidx.compose.ui.test.junit4.android.ComposeNotIdleException: Idling resource timed out: possibly due to compose being busy
<p>I'm trying to make a compose app with a different top app bar per screen. My strategy is to pass down a state setter for the data of the app bar through each screen. However passing in an onClick lambda is breaking my tests.</p> <p>Here's an SSCCE:</p> <pre><code>// ActionState.kt class ActionState(val title: String...
I'm trying to make a compose app with a different top app bar per screen. My strategy is to pass down a state setter for the data of the app bar through each screen. However passing in an onClick lambda is breaking my tests. Here's an SSCCE: [CODE] The error I'm getting in the test is: [CODE] If I remove the onClick la...
android|kotlin|integration-testing|android-jetpack-compose
0
2022-07-30T18:22:45.077Z
2,022
7
18
5
93
1
804
126
4
2
true
false
false
false
false
false
zero
73,178,179
FATAL EXCEPTION when Forwarding Intent (URL) in kotlin
<p><a href="https://i.stack.imgur.com/pQ4cI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pQ4cI.png" alt="WireFrame &amp; Guide about what i want to ask" /></a></p> <p>---&gt; Full Code for more details <a href="https://github.com/BUdiAKmal/CaseApp" rel="nofollow noreferrer">https://github.com/BUdi...
---> Full Code for more details https://github.com/BUdiAKmal/CaseApp After passing URL from &quot;RecyclerView&quot; to Button on &quot;DetailsActivity&quot; , i try to forwarding and load the URL to &quot;WebViewActivity&quot; when user click the &quot;Button on DeetailsActivity&quot;. and finally i get this error : [...
kotlin|android-intent|android-recyclerview|conditional-statements|parameter-passing
0
2022-07-30T18:34:41.217Z
2,022
7
18
5
55
1
706
54
5
9
true
false
false
false
false
false
zero
73,178,257
Why does WifiNetworkSpecifier with capability NET_CAPABILITY_INTERNET always return onUnavailable?
<p>I'm trying to get my app to connect to a WiFi AP to provide Internet with WifiNetworkSpecifier using code like this. But it's always calling <code>onUnavailable</code> in the NetworkCallback.</p> <pre><code>private val callback: ConnectivityManager.NetworkCallback = object : ConnectivityManager.NetworkCallback() { ...
I'm trying to get my app to connect to a WiFi AP to provide Internet with WifiNetworkSpecifier using code like this. But it's always calling onUnavailable in the NetworkCallback. [CODE]
android|android-wifi|android-10.0|android-11|android-connectivitymanager
0
2022-07-30T18:46:45.033Z
2,022
7
18
5
99
1
185
98
5
1
true
false
false
false
false
false
zero
73,178,312
TextField does not focus properly
<p>Although the cursor appears when I tap on the TextField, the label does not disappear and it doesn't actually focus. Only when I tap on it again after the keyboard appears it actually focuses, the label disappears and I am able to unfocus by tapping outside of it. Also the cursor appears in a very wrong location but...
Although the cursor appears when I tap on the TextField, the label does not disappear and it doesn't actually focus. Only when I tap on it again after the keyboard appears it actually focuses, the label disappears and I am able to unfocus by tapping outside of it. Also the cursor appears in a very wrong location but I ...
android|flutter|dart|mobile
0
2022-07-30T18:55:20.067Z
2,022
7
18
5
40
2
516
33
4
1
true
false
false
false
false
false
zero
73,178,389
Date Picker Dialog Code error in Android Kotlin
<p>Below is the date picker dialog in one of the fragment and I am getting the error shown below</p> <p><em>Type mismatch: inferred type is Int but LocalDate was expected</em><br /> on line:<br /> <em><strong>viewModel.onDateSelected(year, month, dayOfMonth)</strong></em></p> <pre><code> private val datePickerDialog by...
Below is the date picker dialog in one of the fragment and I am getting the error shown below Type mismatch: inferred type is Int but LocalDate was expected on line: viewModel.onDateSelected(year, month, dayOfMonth) [CODE]
android|kotlin|android-datepicker
1
2022-07-30T19:07:26.817Z
2,022
7
19
5
39
1
222
47
3
1
true
false
false
false
false
false
low
73,178,452
Website connection is not secure depending on device
<p>When I visit <a href="https://matchflix.ch" rel="nofollow noreferrer">https://matchflix.ch</a> on a PC or Android 8 phone, the connection is secure:</p> <p><a href="https://i.stack.imgur.com/0Wvs2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Wvs2.png" alt="enter image description here" /></a><...
When I visit https://matchflix.ch on a PC or Android 8 phone, the connection is secure: However, when visiting from an Android 12 Samsung phone, it says that the connection is NOT secure. I just don't understand how this can be? PS: The site is currently not yet live and therefore needs a username to access which is &q...
android|ssl|web|https|ssl-certificate
0
2022-07-30T19:18:45.783Z
2,022
7
19
5
38
1
335
52
5
0
false
false
false
false
false
false
zero
73,178,462
Change Callback For Camera
<pre><code>imageConverter = new Runnable() { @Override public void run() { ImageUtils.convertYUV420SPToARGB8888(bytes, previewWidth, previewHeight, rgbBytes); } }; postInferenceCallback = new Runnable() { @Override public void run() { camera.addCallbackBuffer(bytes); isProce...
[CODE] how to give bytes from uvc camera and also how to code instead of camera.addCallbackBuffer(bytes); to usb camera callback..! refer https://github.com/quantum6/Android-USB-OTG-Camera
java|android
1
2022-07-30T19:19:41.753Z
2,022
7
19
5
26
0
188
26
2
1
true
true
false
false
false
false
low
73,178,506
please i need fix i just added a Gif and its crushing when starting here i sthe log cat
<p>2022-07-30 11:08:44.355 21395-21395/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.tekiquiz, PID: 21395 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tekiquiz/com.example.tekiquiz.MainActivity}: java.lang.ClassCastException: pl.droidsonroids.gif.GifImageView cannot be...
2022-07-30 11:08:44.355 21395-21395/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.tekiquiz, PID: 21395 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tekiquiz/com.example.tekiquiz.MainActivity}: java.lang.ClassCastException: pl.droidsonroids.gif.GifImageView cannot be ca...
android|android-studio
0
2022-07-30T19:26:40.747Z
2,022
7
19
5
43
1
2,655
87
2
0
false
false
false
false
false
false
zero
73,178,562
How to remove previous fragment from back stack
<p>I'm working with the fragments navigation and have a problem removing one from the back stack. Here're specifics: I have 3 independent fragments (let's name them <strong>A1, A2, and A3</strong>) and each of them can navigate to <strong>fragment B</strong> using <code>findNavController().navigate()</code>, which afte...
I'm working with the fragments navigation and have a problem removing one from the back stack. Here're specifics: I have 3 independent fragments (let's name them A1, A2, and A3 ) and each of them can navigate to fragment B using findNavController().navigate() , which after some actions navigates to fragment C using the...
android|kotlin|android-fragments|navigation|uinavigationcontroller
1
2022-07-30T19:37:18.923Z
2,022
7
19
5
89
1
577
47
5
0
false
false
false
false
false
false
low
73,178,601
Checkboxes render differently in light and dark mode
<p>I have a row of checkboxes which seems to get extra spacing in dark mode. This is the XML for one of the checkboxes:</p> <pre><code>&lt;CheckBox android:id=&quot;@+id/cb1&quot; android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot; android:checked=&quot;true&quot...
I have a row of checkboxes which seems to get extra spacing in dark mode. This is the XML for one of the checkboxes: [CODE] This is how the checkboxes look in light mode: And in dark mode: The issue exists both in the Android Studio design view and in the physical device: there is extra space around the boxes in dark m...
android
0
2022-07-30T19:45:44.800Z
2,022
7
19
5
29
2
356
52
1
1
true
false
false
false
false
false
zero
73,178,645
ViewModel does not preserve state when leaving and returning (switching between apps)
<p><code>ViewModel</code> does not preserve state during configuration changes, e.g., leaving and returning to the app when switching between background apps.</p> <pre><code>@HiltViewModel class MainViewModel @Inject constructor( private val savedStateHandle: SavedStateHandle, ) : ViewModel() { var title by mut...
ViewModel does not preserve state during configuration changes, e.g., leaving and returning to the app when switching between background apps. [CODE] The menu: Currently: It survives the rotation configuration change, the menu remains open if opened by clicking on the three ... dots there. But, changing app, i.e. leavi...
android|android-jetpack-compose
1
2022-07-30T19:54:01.190Z
2,022
7
19
5
69
2
579
85
2
4
true
false
false
false
false
false
low
73,178,769
Issue with GestureDetector.OnGestureListener.onScroll method, on multiple views in the same parent
<h2>Issue with detecting gestures in android while there are multiple gesture detectors.</h2> <p>So here is the given scenario,</p> <p>I have 2 Views in the same parent View Group.</p> <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout android:id=&quot;@+id/main_view&quot; android:layout_width=&qu...
Issue with detecting gestures in android while there are multiple gesture detectors. So here is the given scenario, I have 2 Views in the same parent View Group. [CODE] In the Activity class, I create 2 OnGestureListener objects for both particular views. [CODE] In the Activity's onCreate method I set setOnTouchListene...
android|kotlin|gesturedetector|onscrolllistener
0
2022-07-30T20:16:09.930Z
2,022
7
20
5
29
0
896
98
4
3
true
true
false
false
false
false
zero
73,178,776
Android: Migrating from legacy SQLite to Room database using attach
<p>I'm working on an Android app where we need to migrate from some legacy SQLite code to a Room based implementation. But I've run into a couple of issues &amp; I'm not sure how to solve them.</p> <p><strong>Environment:</strong></p> <ul> <li>Android 6.0+</li> <li>SQLite implementation is in one database file</li> <l...
I'm working on an Android app where we need to migrate from some legacy SQLite code to a Room based implementation. But I've run into a couple of issues & I'm not sure how to solve them. Environment: Android 6.0+ SQLite implementation is in one database file Room implementation is in a separate database file Both will ...
android|sqlite|android-room
1
2022-07-30T20:17:16.390Z
2,022
7
20
5
31
0
2,106
67
3
1
true
true
false
false
false
false
low
73,178,786
How to hook methods with specific arguments in Frida?
<p>I am using Frida for android dynamic analysis. The question is that how can I watch all the methods in runtime and filter them by arguments or even return value?</p> <p>For example, I want to find all method that starts with &quot;bark&quot; and then dumps backtrace, return value, and other arguments.</p>
I am using Frida for android dynamic analysis. The question is that how can I watch all the methods in runtime and filter them by arguments or even return value? For example, I want to find all method that starts with &quot;bark&quot; and then dumps backtrace, return value, and other arguments.
android|reverse-engineering|penetration-testing|frida
0
2022-07-30T20:18:30.183Z
2,022
7
20
5
475
2
295
53
4
0
false
false
false
false
false
false
zero
73,178,790
Flutter android 12 icon
<p>does anyone konow, how to change this ring around the Icon while changing apps? It is everywhere in a diffent colors, like the settings<a href="https://i.stack.imgur.com/6xaf0.jpg" rel="nofollow noreferrer">enter image description here</a></p>
does anyone konow, how to change this ring around the Icon while changing apps? It is everywhere in a diffent colors, like the settings enter image description here
flutter|icons|padding|android-12|flutter-android
0
2022-07-30T20:18:50.527Z
2,022
7
20
5
89
1
164
23
5
0
false
false
false
false
false
false
zero
73,178,835
Android TV layout Eligibility Issue on Play store
<p>I'm trying to make my app available on the play store for TVs, but google is rejecting it claiming vertical letterboxing, but I don't know what that is, and in the emulator, all screens work fine</p> <p><a href="https://i.stack.imgur.com/JKeWl.png" rel="nofollow noreferrer">Error</a></p> <p><a href="https://i.stack....
I'm trying to make my app available on the play store for TVs, but google is rejecting it claiming vertical letterboxing, but I don't know what that is, and in the emulator, all screens work fine Error Screen 1 Screen 2 Screen 3, its a webview Preload Screen
android|react-native|google-play|android-tv
0
2022-07-30T20:28:58.920Z
2,022
7
20
5
80
1
258
49
4
0
false
false
false
false
false
false
zero
73,178,893
activate features the next day in android
<p>Good morning, i'm new to Android and i'm developing an app which the day after the installation it should start another activity, does someone know how to activate features or do something the next day android?</p> <p>Something like:</p> <pre><code>if(today.equals(thenextday)){ //then load the feature }else{ //wait ...
Good morning, i'm new to Android and i'm developing an app which the day after the installation it should start another activity, does someone know how to activate features or do something the next day android? Something like: [CODE] Thanks.
java|android|date
0
2022-07-30T20:36:58.387Z
2,022
7
20
5
46
1
241
41
3
1
true
false
false
false
false
false
zero
73,178,899
What size should the Layout height's that contains a SMART_BANNER be?
<p>So I have a RelativeLayout that contains the SMART_BANNER. Should it has a minimum height so that it can display many banner sizes? I don´t know what size should I put as layout height..</p> <p>Relative Layout:</p> <pre><code> &lt;RelativeLayout android:id=&quot;@+id/id_ad_view&quot; ...
So I have a RelativeLayout that contains the SMART_BANNER. Should it has a minimum height so that it can display many banner sizes? I don´t know what size should I put as layout height.. Relative Layout: [CODE] Banner: [CODE]
java|android|layout|admob
0
2022-07-30T20:37:51.533Z
2,022
7
20
5
80
0
225
69
4
2
true
true
false
false
false
false
zero
73,178,962
ListWheelScrollView freezes
<p>I am using ListWheelScrollView to display my Data...</p> <p>unfortunetly the ListWheelScrollView freezes and does not respond if I scroll slowly....</p> <pre><code>ListWheelScrollView( diameterRatio: 5, itemExtent: 250, childre...
I am using ListWheelScrollView to display my Data... unfortunetly the ListWheelScrollView freezes and does not respond if I scroll slowly.... [CODE] Any Ideas why it is so slowly, buggy or doesn´t work...
android|ios|flutter|widget|scrollview
0
2022-07-30T20:49:37.630Z
2,022
7
20
5
37
0
204
27
5
1
true
true
false
false
false
false
zero
73,179,048
I have tested an APK with Admob in Firebase Test Lab and many clicks have been done in the ads
<p>So I have accidentally uploaded to Testl lab (Robo test) an apk (.aab) that was uploaded a few months ago to PlayStore and has admob working in it with real ads. I have seen in the video that the robo test has done like 20 clicks in an ad and I am afraid my admob account could be banned.</p>
So I have accidentally uploaded to Testl lab (Robo test) an apk (.aab) that was uploaded a few months ago to PlayStore and has admob working in it with real ads. I have seen in the video that the robo test has done like 20 clicks in an ad and I am afraid my admob account could be banned.
android|firebase|admob|firebase-test-lab
0
2022-07-30T21:05:25.710Z
2,022
7
21
5
59
1
288
94
4
0
false
false
false
false
false
false
zero
73,179,057
.aab from store crash on startup
<p>Here is the app <a href="https://play.google.com/store/apps/details?id=air.windjammerpoker" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=air.windjammerpoker</a></p> <p>This app was developed in Adobe Animate with Harman AIR and uses Admob.ane for Admob.</p> <p>Admob.swc</p> <p>Admob.ane</p...
Here is the app https://play.google.com/store/apps/details?id=air.windjammerpoker This app was developed in Adobe Animate with Harman AIR and uses Admob.ane for Admob. Admob.swc Admob.ane When run with apk all work correct, but after installing aab from the store, it crashes on startup ( adt.cfg contain path: JAVA_HOME...
android|air|apk|adobe-animate|harman
0
2022-07-30T21:06:32.040Z
2,022
7
21
5
36
0
583
32
5
2
true
true
false
false
false
false
zero
73,179,090
Does a 0dp sized composable even get composed
<p>Does a composable of size 0dp even get composed or recomposed or is it just ignored by jetpack compose at runtime? This is to know if performance wise, hiding a composable using an if statement is the same as setting its size to 0dp.</p>
Does a composable of size 0dp even get composed or recomposed or is it just ignored by jetpack compose at runtime? This is to know if performance wise, hiding a composable using an if statement is the same as setting its size to 0dp.
android|kotlin|android-jetpack-compose
3
2022-07-30T21:13:19.850Z
2,022
7
21
5
183
1
233
45
3
0
false
false
false
false
false
false
low
73,179,098
Are .setContentTitle and .setCustomContentView mutually exclusive?
<p>Trying to create android notifications with a custom body provided by an XML file. When I try to set the title of these notifications, it does not appear.</p> <p>Oddly, the subtext continues to show just fine.</p> <hr /> <p>Showing a standard notification (no <code>CustomContentView</code>), and</p> <pre><code> ...
Trying to create android notifications with a custom body provided by an XML file. When I try to set the title of these notifications, it does not appear. Oddly, the subtext continues to show just fine. Showing a standard notification (no CustomContentView ), and [CODE] Both the title and subtext show. If I set it to u...
android|android-layout|android-notifications
2
2022-07-30T21:14:26.517Z
2,022
7
21
5
56
1
1,095
66
3
2
true
false
false
false
false
false
low
73,179,251
Getting an IndexOutOfBounds Exception in my Android App
<p>This code tracks what missiles players buy and sets the most recent 3 at the top of the list of missile options for players to easily buy them again. After players purchase missiles, the game crashes, but only if they purchase certain ones or purchase a certain amount.</p> <pre><code>Process: com.apps.fast.counterfo...
This code tracks what missiles players buy and sets the most recent 3 at the top of the list of missile options for players to easily buy them again. After players purchase missiles, the game crashes, but only if they purchase certain ones or purchase a certain amount. [CODE] Here is the code the error points to in CLi...
java|android|android-studio|game-development
0
2022-07-30T21:46:05.057Z
2,022
7
21
5
52
2
385
55
4
2
true
false
false
false
false
false
zero
73,179,280
Issue trying to send android push notification when time is about to reach a value
<p>I have a Project management app with Java android and I'd like to implement a push notification feature where a user can select the intervals in which they would like to be reminded before the projects due date is reached.</p> <p>At the moment when creating a project, a user can select to be reminded 2 weeks before ...
I have a Project management app with Java android and I'd like to implement a push notification feature where a user can select the intervals in which they would like to be reminded before the projects due date is reached. At the moment when creating a project, a user can select to be reminded 2 weeks before a due date...
java|android
0
2022-07-30T21:51:47.620Z
2,022
7
21
5
46
1
710
82
2
0
false
false
false
false
false
false
zero
73,179,377
For your account security, logging into Facebook from an embedded browser is disabled. Download and log into the Facebook app on your device
<p>The Facebook login feature suddenly stopped working on my Android app. I am getting this error message:</p> <blockquote> <p>For your account security, logging into Facebook from an embedded browser is disabled. To continue, download and log into the Facebook app on your device and try again.</p> </blockquote> <p><a ...
The Facebook login feature suddenly stopped working on my Android app. I am getting this error message: For your account security, logging into Facebook from an embedded browser is disabled. To continue, download and log into the Facebook app on your device and try again. In my build.gradle , this is what I have for Fa...
android|facebook
0
2022-07-30T22:11:37.740Z
2,022
7
22
5
378
1
569
140
2
0
false
false
false
false
false
false
zero
73,179,429
Your project may be using a third-party plugin which is not compatible with the other plugins in the project
<p>The problem might be similar or looks duplicated but it doesn't. I Tried every possible solution on Stackoverflow and YouTube but I couldn't solve the issue with my project. I have already released the app to Google Play Store as well. but Now facing this problem.</p> <p>Error:</p> <pre><code>Your project may be usi...
The problem might be similar or looks duplicated but it doesn't. I Tried every possible solution on Stackoverflow and YouTube but I couldn't solve the issue with my project. I have already released the app to Google Play Store as well. but Now facing this problem. Error: [CODE] The things I have tried: I removed all th...
java|android-studio|gradle|android-gradle-plugin|android-studio-3.0
1
2022-07-30T22:22:53.383Z
2,022
7
22
5
61
0
749
108
5
1
true
true
false
false
false
false
low
73,179,518
Jump on Headings when press down key in Android WebView
<p>I am doing a custom <strong>Web Browser</strong> in Android, and I am trying to analyze any webpage to see how many headings are there and then use the arrow UP/Down to move the focus to the next heading when pressing the arrow down and to the previous heading when pressing the arrow up. I got the number for heading...
I am doing a custom Web Browser in Android, and I am trying to analyze any webpage to see how many headings are there and then use the arrow UP/Down to move the focus to the next heading when pressing the arrow down and to the previous heading when pressing the arrow up. I got the number for headings in the page by inj...
android|android-studio|webview
0
2022-07-30T22:39:45.317Z
2,022
7
22
5
23
0
455
55
3
1
true
true
false
false
false
false
zero
73,179,541
expo run:android and eas build cause INSTALL_FAILED_UPDATE_INCOMPATIBLE error
<p>I was building an APK for my Expo app with <code>eas build --platform android --profile preview</code>, but when I tried to install it, I got this error: <code>Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.rooday.Prio signatures do not match previously installed version; ignoring!]</code>. Looking it up s...
I was building an APK for my Expo app with eas build --platform android --profile preview , but when I tried to install it, I got this error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.rooday.Prio signatures do not match previously installed version; ignoring!] . Looking it up showed that I needed to unin...
android|expo
0
2022-07-30T22:45:36.357Z
2,022
7
22
5
83
0
1,049
77
2
0
false
true
false
false
false
false
zero
73,179,816
How to export Room Database to .CSV
<p>How can I export my Room Database to a .CSV file. I would like it to be saved to device storage. I searched everything and no answer was suitable. I hope there is a way for this.</p>
How can I export my Room Database to a .CSV file. I would like it to be saved to device storage. I searched everything and no answer was suitable. I hope there is a way for this.
android|database|csv|kotlin|android-room
2
2022-07-30T23:57:14.937Z
2,022
7
23
5
153
1
178
35
5
0
false
false
false
false
false
false
low
73,179,884
is it possible to access mobile phone files(pdf) using java coding
<p>This is the qr-code generator, I put on String qrCodeData to try access the storage of my phone and open up a file, but it doesnt work. Turns out the generated qr code only gives the link.</p> <pre><code>public class QRCode { public static void main(String[] args) { try { String qrCodeData = ...
This is the qr-code generator, I put on String qrCodeData to try access the storage of my phone and open up a file, but it doesnt work. Turns out the generated qr code only gives the link. [CODE]
java|android|path|qr-code|generate
0
2022-07-31T00:17:39.717Z
2,022
7
0
6
47
1
195
66
5
1
true
false
false
false
false
false
zero
73,179,981
Force landscape mode in flutter apps - in iOS & Android
<p>Our app requires photos of things like motorbikes &amp; passports. Both of which are much better suited to landscape photos. How can we force landscape mode during these photo captures?</p> <p>Apps are written in flutter and have both iOS and Android versions.</p>
Our app requires photos of things like motorbikes & passports. Both of which are much better suited to landscape photos. How can we force landscape mode during these photo captures? Apps are written in flutter and have both iOS and Android versions.
android|ios|flutter
0
2022-07-31T00:45:07.530Z
2,022
7
0
6
53
1
249
55
3
0
false
false
false
false
false
false
zero
73,180,038
Android Kotlin-simple Array Adapter with ListView
<p>I am new to Kotlin and/or coding. The below mentioned are the code I made to populate a List View. But as I run the code, the <code>activity_main.xml</code> file is inflated but the text data are not attached.</p> <p><strong>Datasource.kt</strong></p> <pre><code>class Datasource{ companion object{ val a...
I am new to Kotlin and/or coding. The below mentioned are the code I made to populate a List View. But as I run the code, the activity_main.xml file is inflated but the text data are not attached. Datasource.kt [CODE] Here is the CustomAdapter.kt , [CODE] Here is MainActivity.kt [CODE]
android|kotlin|android-arrayadapter
0
2022-07-31T01:01:23.333Z
2,022
7
1
6
124
2
286
49
3
3
true
false
false
false
false
false
zero
73,180,080
Icon drawable inside IconButton is black despite it being white
<p>The <code>Icon</code> drawable inside the <code>IconButton</code> composable is black despite it being white. The picture below of the current setup shows the garbage can icon at the top right on an <code>alpha</code> background. How can I fix this issue?</p> <p><a href="https://i.stack.imgur.com/tht0o.jpg" rel="nof...
The Icon drawable inside the IconButton composable is black despite it being white. The picture below of the current setup shows the garbage can icon at the top right on an alpha background. How can I fix this issue? [CODE]
android|android-jetpack-compose|android-compose-card|android-compose-image
2
2022-07-31T01:13:11.817Z
2,022
7
1
6
54
1
223
63
4
1
true
false
false
false
false
false
low
73,180,155
Android Stopping Foreground Service when device locks
<p>On my Android 12 device, the ActivityManager is stopping my foreground service when the device locks. The service's purpose is to get GPS info and do various tracking and specialty geofencing (which cannot be handled by the regular GeoFencing features). I need it to run all the time.</p> <p>My Activity does:</p> <pr...
On my Android 12 device, the ActivityManager is stopping my foreground service when the device locks. The service's purpose is to get GPS info and do various tracking and specialty geofencing (which cannot be handled by the regular GeoFencing features). I need it to run all the time. My Activity does: [CODE] and that L...
android
0
2022-07-31T01:41:54.360Z
2,022
7
1
6
31
0
761
53
1
3
true
true
false
false
false
false
zero
73,180,281
Add an Android annotation to a param of List<T> for type-hinting
<p>Normally, if we have a int parameter <code>id</code> to present a resource ID in Android. we could add annotations like <code>@StringRes</code> or <code>@DrawableRes</code> from <code>androidx.annotation</code>. So that IDE could use the information to check type for us, which is nice.</p> <p>Now, I have a method th...
Normally, if we have a int parameter id to present a resource ID in Android. we could add annotations like @StringRes or @DrawableRes from androidx.annotation . So that IDE could use the information to check type for us, which is nice. Now, I have a method that signature looks like the snippet below. The type of the pa...
android|android-annotations
0
2022-07-31T02:24:11.263Z
2,022
7
2
6
33
0
737
64
2
1
true
true
false
false
false
false
zero
73,180,290
error: package android.support.multidex does not exist
<p>In one of my classes, when I use <code>import android.support.multidex.MultiDex;</code>, I am getting this error:</p> <p><code>error: package android.support.multidex does not exist</code></p> <p><a href="https://i.stack.imgur.com/oRV5v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oRV5v.png" al...
In one of my classes, when I use import android.support.multidex.MultiDex; , I am getting this error: error: package android.support.multidex does not exist In my build.gradle , I already have this: [CODE]
android|gradle|android-gradle-plugin|build.gradle
0
2022-07-31T02:26:20.907Z
2,022
7
2
6
26
0
205
54
4
1
true
true
false
false
false
false
zero
73,180,295
Insets Diagram for Android 11
<p>I am working on learning how to use all the different insets features of Android 11:</p> <p><a href="https://developer.android.com/reference/android/view/WindowInsets.Type" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/WindowInsets.Type</a></p> <p>One of the things that always confus...
I am working on learning how to use all the different insets features of Android 11: https://developer.android.com/reference/android/view/WindowInsets.Type One of the things that always confuses me with insets is which ones are applicable to a specific scenario. Something that I would like to see that I think would be ...
android-layout|android-11|windowinsets
0
2022-07-31T02:28:02.357Z
2,022
7
2
6
21
0
675
29
3
0
false
true
false
false
false
false
zero
73,180,337
C:\Users\faizandannisa\AppData\Local\Android\Sdk\ndk\21.4.7075529/ndk-build.cmd'' finished with non-zero exit value 2
<p>FAILURE: Build completed with 8 failures.</p> <h2>1: Task failed with an exception.</h2> <ul> <li>What went wrong: Execution failed for task ':libraries:humla:ndkBuild'.</li> </ul> <blockquote> <p>Process 'command 'C:\Users\faizandannisa\AppData\Local\Android\Sdk\ndk\21.4.7075529/ndk-build.cmd'' finished with non-ze...
FAILURE: Build completed with 8 failures. 1: Task failed with an exception. What went wrong: Execution failed for task ':libraries:humla:ndkBuild'. Process 'command 'C:\Users\faizandannisa\AppData\Local\Android\Sdk\ndk\21.4.7075529/ndk-build.cmd'' finished with non-zero exit value 2
android|android-ndk
0
2022-07-31T02:41:36.943Z
2,022
7
2
6
32
0
283
117
2
0
false
true
false
false
false
false
zero
73,180,372
Stop the audio, with or without the delay
<p>I have a button. When I click on it, audio will be played. That audio will always be repeated with a delay. I.e. the audio will be played and then there is a pause for 5 seconds and then it will be played over and over again. So far, that works fine.</p> <pre class="lang-java prettyprint-override"><code>public stati...
I have a button. When I click on it, audio will be played. That audio will always be repeated with a delay. I.e. the audio will be played and then there is a pause for 5 seconds and then it will be played over and over again. So far, that works fine. [CODE] [CODE] The Problem I use toggle() for my button. So when I cli...
java|android
0
2022-07-31T02:57:05.750Z
2,022
7
2
6
40
1
720
41
2
2
true
false
false
false
false
false
zero
73,180,445
Unexpected Token And Cannot resolve constructor
<p>I was creating Ontouchlistener But i got 2 error. 1st unexpected token and 2nd Cannot resolve constructor 'Intent(anonymous android.view.View.OnTouchListener, java.lang.Class&lt;com.krish.galaxypdfviewer.Website&gt;)'</p> <p>And when i tried onclick listener it worked without any error but i want to use Ontouchliste...
I was creating Ontouchlistener But i got 2 error. 1st unexpected token and 2nd Cannot resolve constructor 'Intent(anonymous android.view.View.OnTouchListener, java.lang.Class<com.krish.galaxypdfviewer.Website>)' And when i tried onclick listener it worked without any error but i want to use Ontouchlistener Here is the ...
java|android
-1
2022-07-31T03:22:11.163Z
2,022
7
3
6
33
1
349
47
2
1
true
false
false
false
false
true
negative
73,180,451
How to automatically add to a number when a CountDownTimer is running?
<p>I am trying to add numbers to an already existing number based on a formula when a CountDownTimer is running. The timer is working, but the number(amount) crashes the app</p> <pre><code>public class Main extends AppCompatActivity { TextView Time; ImageButton button; TextView amount; TextView rate, milltime; @Overri...
I am trying to add numbers to an already existing number based on a formula when a CountDownTimer is running. The timer is working, but the number(amount) crashes the app [CODE] What I am trying to get, is the amount to increase as the timer runs based on the rate .
android|countdowntimer
0
2022-07-31T03:23:22.630Z
2,022
7
3
6
43
1
266
70
2
1
true
false
false
false
false
false
zero
73,180,612
connecting android emulator as a physical android device
<p>I am using android studio and I am emulating a device and I need is for the emulated device to e shown on my computer as if it was connected physically ... there is an on my pc I need to see my emulator as USB android so when it works I can use it on my actual device.</p>
I am using android studio and I am emulating a device and I need is for the emulated device to e shown on my computer as if it was connected physically ... there is an on my pc I need to see my emulator as USB android so when it works I can use it on my actual device.
android|android-studio
0
2022-07-31T04:10:33.287Z
2,022
7
4
6
47
1
268
56
2
0
false
false
false
false
false
false
zero
73,180,669
Android Navigation Drawer framework issue | Kotlin | 2022
<p>I am trying to implement a navigation drawer in an existing android app using Kotlin. I have created 2 activities. Now I want to implement a Navigation Drawer in each of these activities. The implementation is quite easy. I am facing issues when I want to add a navigation drawer activity to my application. The code ...
I am trying to implement a navigation drawer in an existing android app using Kotlin. I have created 2 activities. Now I want to implement a Navigation Drawer in each of these activities. The implementation is quite easy. I am facing issues when I want to add a navigation drawer activity to my application. The code is ...
android|kotlin|android-gradle-plugin|navigation-drawer
-1
2022-07-31T04:28:26.250Z
2,022
7
4
6
49
1
519
57
4
0
false
false
false
false
false
true
negative
73,180,842
Singleton Kotlin object method is not getting called, anyone know why?
<p>please see image attached for the code. Basically, I have a singleton object in android I am trying to call methods on, but in my on receive code, the methods compile, but they wont log their messages in the log, so they are not getting called, or I am missing something. Does anyone know why?<a href="https://i.stack...
please see image attached for the code. Basically, I have a singleton object in android I am trying to call methods on, but in my on receive code, the methods compile, but they wont log their messages in the log, so they are not getting called, or I am missing something. Does anyone know why?
android|kotlin|singleton|broadcastreceiver
-3
2022-07-31T05:16:20.103Z
2,022
7
5
6
63
1
293
70
4
0
false
false
false
false
false
true
negative
73,180,898
setInterval in not updating my timer variable in react native
<pre><code>var timer = 0; const [run, setRun] = useState(false); useEffect(() =&gt; { if (run) { Toast.show(&quot;Timmer is running&quot;+timer, Toast.LONG); var interval = setInterval(() =&gt; { timer++; }, 1000); } else { Toast.show(&quot;Timmer is stopped&quot;+timer, Toast.LONG); ...
[CODE] Here , while i click on text , i need the timer to start and pause when i click back , but its not updating timer at all. Can someone help me out, Thank you.
javascript|android|reactjs|react-native|setinterval
0
2022-07-31T05:31:44.707Z
2,022
7
5
6
33
1
164
61
5
1
true
false
false
false
false
false
zero
73,180,922
AndroidView focus in Jetpack Compose
<p>I want to keep track of focus in <code>EditText</code> in an <code>AndroidView</code> composable like in legacy UI. I've tried <code>onFocusChange()</code> in <code>EditText</code> but that doesn't get triggered. Also <code>Modifier.OnFocusChange()</code> doesn't get triggered either. I don't want to use <code>TextF...
I want to keep track of focus in EditText in an AndroidView composable like in legacy UI. I've tried onFocusChange() in EditText but that doesn't get triggered. Also Modifier.OnFocusChange() doesn't get triggered either. I don't want to use TextField cause I have some operations that have to be done in native EditText ...
android|android-jetpack-compose|android-view|android-jetpack
2
2022-07-31T05:37:15.337Z
2,022
7
5
6
143
0
321
36
4
0
false
true
false
false
false
false
low
73,180,946
how to Stop auto reload in flutter android
<p>On of my e-commerce site in top have search bar, but the problem is when I click one this bar its going back and reload the page automatically. But iOS mobile have no problem. I tried to find problem in .Dart file, then androidmanifest but couldn't find. Can anyone have any suggestions.</p>
On of my e-commerce site in top have search bar, but the problem is when I click one this bar its going back and reload the page automatically. But iOS mobile have no problem. I tried to find problem in .Dart file, then androidmanifest but couldn't find. Can anyone have any suggestions.
android|flutter
0
2022-07-31T05:42:58.083Z
2,022
7
5
6
18
0
287
42
2
0
false
true
false
false
false
false
zero
73,180,989
menu items not showing on Actionbar in Viewpager tabbed layout
<p>I want to display menu items on tabbed layout. In my activity I have a ViewPager with fragments in my Android app. I want to show Action Bar menu item depending the fragment of the ViewPager.So I have 4 tabbed activities. Can anyone give me some insight as to why this may be happening?</p> <p>Refer this:- <a href="h...
I want to display menu items on tabbed layout. In my activity I have a ViewPager with fragments in my Android app. I want to show Action Bar menu item depending the fragment of the ViewPager.So I have 4 tabbed activities. Can anyone give me some insight as to why this may be happening? Refer this:- here is my code. [CO...
java|android|android-fragments|android-viewpager
0
2022-07-31T05:54:48.983Z
2,022
7
5
6
9
0
323
62
4
1
true
true
false
false
false
false
zero
73,181,047
Android Kotlin bottomNavigation weird behaviour
<p>I have an application with a single activity with a bottomNavigationView which displays 3 fragments: <code>BreakingNewsFragment</code>, <code>SavedNewsFragment</code>, and <code>SearchNewsFragment</code>. They all show a list of articles fetched from the internet. From each of those 3 fragments, I can navigate to an...
I have an application with a single activity with a bottomNavigationView which displays 3 fragments: BreakingNewsFragment , SavedNewsFragment , and SearchNewsFragment . They all show a list of articles fetched from the internet. From each of those 3 fragments, I can navigate to an ArticleFragment which displays the art...
android|kotlin|navigation
0
2022-07-31T06:08:22.140Z
2,022
7
6
6
36
1
909
47
3
3
true
false
false
false
false
false
zero
73,181,132
Call Switch onCreate return null Android (Kotlin)
<p>I'm working on an existing project and not sure how to call the Switch button in onCreate. So the Switch button is in it's own contentView not in the main contentView the class is using. Thank you!</p> <pre><code>import kotlinx.android.synthetic.main.layout_facebook.* import kotlinx.android.synthetic.main.profile_ac...
I'm working on an existing project and not sure how to call the Switch button in onCreate. So the Switch button is in it's own contentView not in the main contentView the class is using. Thank you! [CODE] profile_activity.xml [CODE] layout_preference.xml [CODE] layout_facebook.xml [CODE]
android|kotlin
0
2022-07-31T06:30:22.927Z
2,022
7
6
6
33
1
288
49
2
4
true
false
false
false
false
false
zero
73,181,210
playing video player in flutter with API
<p>good morning all, I've a problem with playing video in flutter I'm using this package <a href="https://pub.dev/packages/video_player" rel="nofollow noreferrer">video_player: ^2.4.5</a> but when I open the screen that contain my video it does not work. it gave me a white screen</p> <p>here's my code</p> <p><div class...
good morning all, I've a problem with playing video in flutter I'm using this package video_player: ^2.4.5 but when I open the screen that contain my video it does not work. it gave me a white screen here's my code [CODE] this is the out put of this snippet [CODE] and below is my log output [CODE] finally it's my flutt...
android|flutter|android-studio|flutter-dependencies|flutter-video-player
0
2022-07-31T06:48:05.617Z
2,022
7
6
6
245
1
343
40
5
4
true
false
false
false
false
false
zero
73,181,366
cannot connect to serial port on android emulator
<p>I want to connect a serial port to android emulator. I have a serial port COM6 and I want to connect this port to android studio emulator. I use the <a href="https://www.virtual-serial-port.org/vspd-post-download.html" rel="nofollow noreferrer">Virtual Serial Port Driver</a> to create a virtual port (COM1) and redir...
I want to connect a serial port to android emulator. I have a serial port COM6 and I want to connect this port to android studio emulator. I use the Virtual Serial Port Driver to create a virtual port (COM1) and redirect the real port to the virtual port. In both case of connecting to virtual port and connecting to rea...
android|android-emulator|serial-port
0
2022-07-31T07:22:04.673Z
2,022
7
7
6
40
0
628
49
3
1
true
true
false
false
false
false
zero
73,181,524
How can I get info why specific Android-related property was deprecated and how to replace it?
<p>I have <code>android.R.string.no</code> in my code and Android Studio announces to me <code>'no: Int' is deprecated. Deprecated in Java</code></p> <p>Is there any way to check info why it was deprecated, with what it is replaced and similar info?</p>
I have android.R.string.no in my code and Android Studio announces to me 'no: Int' is deprecated. Deprecated in Java Is there any way to check info why it was deprecated, with what it is replaced and similar info?
android
1
2022-07-31T07:55:29.513Z
2,022
7
7
6
26
1
213
94
1
0
false
false
false
false
false
false
low
73,181,531
NDK 25 Did not add optimized level in Build Type Release with CMake
<p>I'm working on a shared library with CMake. Today I try to build it with NDK 25. when build type is &quot;DEBUG&quot;, cmake add -O0 in CXX_FLAGS, and it add &quot;-O2&quot; in &quot;RELWITHDEBINFO&quot; build type. but when I changed it to &quot;RELEASE&quot;, no optimize level was set. I looked into the files that...
I'm working on a shared library with CMake. Today I try to build it with NDK 25. when build type is &quot;DEBUG&quot;, cmake add -O0 in CXX_FLAGS, and it add &quot;-O2&quot; in &quot;RELWITHDEBINFO&quot; build type. but when I changed it to &quot;RELEASE&quot;, no optimize level was set. I looked into the files that CM...
cmake|android-ndk
1
2022-07-31T07:57:26.557Z
2,022
7
7
6
89
2
691
67
2
4
true
false
false
false
false
false
low
73,181,559
After updating Android studio to chipmunk existing project not working
<p>Hello friend i am working on flutter project now recently i update my android studio to chipmunk after updating i am unable to run my existing flutter project on android before updating it work image is shown below while they opening xcode module only for ios but not for android and if i created any new flutter proj...
Hello friend i am working on flutter project now recently i update my android studio to chipmunk after updating i am unable to run my existing flutter project on android before updating it work image is shown below while they opening xcode module only for ios but not for android and if i created any new flutter project...
android|flutter|android-studio
0
2022-07-31T08:02:48.750Z
2,022
7
8
6
148
1
392
70
3
0
false
false
false
false
false
false
zero
73,181,699
ERROR when Forwarding intent (URL) in kotlin
<p><a href="https://i.stack.imgur.com/pQ4cI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pQ4cI.png" alt="WireFrame &amp; Guide about what i want to ask" /></a></p> <p>After passing URL from &quot;RecyclerView&quot; to Button on &quot;DetailsActivity&quot; , i try to forwarding and load the URL to ...
After passing URL from &quot;RecyclerView&quot; to Button on &quot;DetailsActivity&quot; , i try to forwarding and load the URL to &quot;WebViewActivity&quot; when user click the &quot;Button on DeetailsActivity&quot;. and finally i get this error : [CODE] MainActivity.kt [CODE] MainTabFragment1.kt [CODE] DetailsActivi...
kotlin|android-intent|android-recyclerview|conditional-statements|url-parameters
1
2022-07-31T08:28:05.087Z
2,022
7
8
6
28
1
637
44
5
9
true
false
false
false
false
false
low
73,181,753
Decompile a Unity game built for Android to find a method reference call
<p>I use JADX to decompile android apps written in Java/Kotlin to find references to Java/Kotlin method calls (that were not obfuscated).</p> <p>Is there a way to do the same for Unity code?</p>
I use JADX to decompile android apps written in Java/Kotlin to find references to Java/Kotlin method calls (that were not obfuscated). Is there a way to do the same for Unity code?
android|unity3d|reverse-engineering
0
2022-07-31T08:37:29.777Z
2,022
7
8
6
111
1
180
72
3
0
false
false
false
false
false
false
zero
73,181,921
getting java.lang.IllegalArgumentException: The size of byte buffer and the shape do not match
<p>MainActivity.kt : <a href="https://gist.github.com/0xN1nja/537ec6ad7d00c2284d7788f92de0a600" rel="nofollow noreferrer">https://gist.github.com/0xN1nja/537ec6ad7d00c2284d7788f92de0a600</a></p> <p>Model : <a href="https://i.stack.imgur.com/0B6KF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0B6KF....
MainActivity.kt : https://gist.github.com/0xN1nja/537ec6ad7d00c2284d7788f92de0a600 Model : Error : [CODE]
java|android|tensorflow|kotlin|tensorflow-lite
0
2022-07-31T09:02:25.963Z
2,022
7
9
6
43
1
105
94
5
1
true
false
false
false
false
false
zero
73,182,006
Unable to run android project. Gradle sync failing becuase of GradleConnectionException
<p>Android studio showing error when try to build project.</p> <pre><code>Unable to load class 'org.slf4j.LoggerFactory'. This is an unexpected error. Please file a bug containing the idea.log file. </code></pre> <p>idea.log file showing this error</p> <pre><code>2022-07-31 14:32:43,144 [ 452438] INFO - .project.Grad...
Android studio showing error when try to build project. [CODE] idea.log file showing this error [CODE]
android|gradle
0
2022-07-31T09:15:17.120Z
2,022
7
9
6
53
1
102
87
2
2
true
false
false
false
false
false
zero
73,182,020
How to get Android Device Token in Kotlin for Firebase Cloud Messaging
<p>I'm trying to save the Device Token for an Android device and use it with Firebase Cloud Messaging, but I'm having a problem, and I think I'm getting an incorrect token.</p> <p>When I try to request the Device Token from an Android device, I use the following function:</p> <pre><code> FirebaseInstallations.getIns...
I'm trying to save the Device Token for an Android device and use it with Firebase Cloud Messaging, but I'm having a problem, and I think I'm getting an incorrect token. When I try to request the Device Token from an Android device, I use the following function: [CODE] However, when I get the token, it's super short, a...
android|firebase|kotlin|firebase-cloud-messaging
1
2022-07-31T09:18:28.317Z
2,022
7
9
6
114
1
679
70
4
1
true
false
false
false
false
false
low
73,182,064
Why Doesn't Work This Package On Flutter?
<p>I want to use the <code>url_launcher</code> package. This package clearly runs on Android 11 virtual device but doesn't work on real Android 11 and Android 12 devices. However, it works on 9 and 7.</p> <p>Here is my <code>build.gradle</code> configs</p> <pre><code>defaultConfig { // TODO: Specify your own unique ...
I want to use the url_launcher package. This package clearly runs on Android 11 virtual device but doesn't work on real Android 11 and Android 12 devices. However, it works on 9 and 7. Here is my build.gradle configs [CODE] And here is the code block [CODE] Thank you so much :)
android|flutter|dart|url|flutter-dependencies
0
2022-07-31T09:26:03.747Z
2,022
7
9
6
52
2
278
41
5
2
true
false
false
false
false
false
zero
73,182,116
Android app crash, when stopping a service
<p>In an Android app made to play some audio file in the background, I have the following situation. The app plays the audio as I expect, also keeping playing in the background. The issue I am facing is when I want to stop the service.</p> <p>I have two buttons on the main activity, one for starting the service and the...
In an Android app made to play some audio file in the background, I have the following situation. The app plays the audio as I expect, also keeping playing in the background. The issue I am facing is when I want to stop the service. I have two buttons on the main activity, one for starting the service and the other one...
android|kotlin|service|android-mediaplayer
0
2022-07-31T09:33:38.570Z
2,022
7
9
6
34
0
798
42
4
4
true
true
false
false
false
false
zero
73,182,124
Android detect Recent App Button touched (Accessibility)
<p>I am making a custom app for a user with Visual impairment. My app has Accessibility Permission and Draw on Top Permission.</p> <p>Now I want to fire a custom action (like making a sound) when the user taps on the &quot;Recent Apps Button&quot;.</p> <p>In Samsung, this button is located on the bottom left of the scr...
I am making a custom app for a user with Visual impairment. My app has Accessibility Permission and Draw on Top Permission. Now I want to fire a custom action (like making a sound) when the user taps on the &quot;Recent Apps Button&quot;. In Samsung, this button is located on the bottom left of the screen.
java|android|kotlin|accessibility
0
2022-07-31T09:34:04.393Z
2,022
7
9
6
22
0
307
56
4
0
false
true
false
false
false
false
zero
73,182,132
Google play incorrectly warns about com.google.android.gms.permission.AD_ID
<p>I recently received this message when I tried to upload my app:</p> <pre><code>This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn't use advertising ID. </code></pre> <p>I have no adds and don't explicitly have that permission, but I u...
I recently received this message when I tried to upload my app: [CODE] I have no adds and don't explicitly have that permission, but I understand from here that something from firebase auth might use it - so I fill in that I use this permission - this then triggers another error that I said I'm using AD_ID but I didn't...
android|firebase-authentication|google-play
3
2022-07-31T09:35:24.400Z
2,022
7
9
6
635
1
954
75
3
1
true
false
false
false
false
false
low
73,182,154
I got errors when using(running) camera android block from android package in simulink:The option 'android.databinding.enableV2' is deprecated
<p>I always get following errors while using camera in simulink model:</p> <p>Execution failed for task ':libraries:opencv:compileDebugAidl'. and A problem occurred evaluating root project 'camera'.</p> <blockquote> <p>Failed to apply plugin [id 'com.android.internal.application'] The option 'android.databinding.enable...
I always get following errors while using camera in simulink model: Execution failed for task ':libraries:opencv:compileDebugAidl'. and A problem occurred evaluating root project 'camera'. Failed to apply plugin [id 'com.android.internal.application'] The option 'android.databinding.enableV2' is deprecated. The current...
android|simulink
0
2022-07-31T09:38:53.803Z
2,022
7
9
6
27
0
605
142
2
0
false
true
false
false
false
false
zero
73,182,165
Why Android 9 arm not booting after AOSP build
<p>I'm building Android 9 with CPU x86_arm and compilation is successful. But when I run it on android emulator then it stuck on black screen and not booting.</p> <p>Everytime I open emulator it shows me this error</p> <p><strong>emulator: WARNING: System image is writable</strong></p> <p><strong>emulator: WARNING: enc...
I'm building Android 9 with CPU x86_arm and compilation is successful. But when I run it on android emulator then it stuck on black screen and not booting. Everytime I open emulator it shows me this error emulator: WARNING: System image is writable emulator: WARNING: encryption is off My system details: Ubuntu 22.04, x...
arm|android-source|android-9.0-pie
0
2022-07-31T09:40:32.610Z
2,022
7
9
6
42
0
456
46
3
0
false
true
false
false
false
false
zero
73,182,180
How to place hanging icon in upper right corner of Card composable
<p>How can I achieve the effect shown below in the picture on a <code>Card</code> composable, with the <code>X</code> icon, for instance, hanging in the upper right corner? I don't want the rounded corners nor the black background, just the icon hanging in the upper right corner of the <code>Card</code>. I couldn't ach...
How can I achieve the effect shown below in the picture on a Card composable, with the X icon, for instance, hanging in the upper right corner? I don't want the rounded corners nor the black background, just the icon hanging in the upper right corner of the Card . I couldn't achieve this despite several attempts. Origi...
android|android-jetpack-compose|iconbutton
1
2022-07-31T09:41:56.700Z
2,022
7
9
6
64
1
373
66
3
2
true
false
false
false
false
false
low
73,182,191
ArrayList is still empty after adding data decoded from JSon object
<p>I have this java code in Android Studio, when creating new Majors and print m.getName().. They are printed and data is decoded correctly from the Json object, but after adding data to the ArrayList majorsArrayList, it's still empty and data isn't added.</p> <p>Here where I checked for ArrayList (in onCreate()) and t...
I have this java code in Android Studio, when creating new Majors and print m.getName().. They are printed and data is decoded correctly from the Json object, but after adding data to the ArrayList majorsArrayList, it's still empty and data isn't added. Here where I checked for ArrayList (in onCreate()) and the result ...
java|android|json|android-volley
-1
2022-07-31T09:43:41.783Z
2,022
7
9
6
58
1
386
67
4
2
true
false
false
false
false
true
negative
73,182,289
Acloud Host SetUp Issue for CuttleFish
<p>I am trying to build Android 12 AOSP on my system.</p> <p>I am using Ubuntu 20.04 till now build is successful.</p> <p>But when I am trying to setup acloud using below command :-</p> <pre><code> File &quot;/tmp/Soong.python_pzh5lh0_/acloud/public/acloud_main.py&quot;, line 470, in &lt;module&gt; EXIT_CODE, EXCEP...
I am trying to build Android 12 AOSP on my system. I am using Ubuntu 20.04 till now build is successful. But when I am trying to setup acloud using below command :- [CODE]
android|android-source
0
2022-07-31T09:57:22.910Z
2,022
7
9
6
45
0
171
38
2
1
true
true
false
false
false
false
zero
73,182,428
how to do deep linking in android?
<p>I am trying to do deep linking such that when someone opens a link from mobile browser, it should opens the app</p> <p>Here is my URI :</p> <p>myapp://opendetail</p> <p>my manifest content</p> <pre><code>&lt;application android:name=&quot;.App&quot; android:allowBackup=&quot;true&quot; androi...
I am trying to do deep linking such that when someone opens a link from mobile browser, it should opens the app Here is my URI : myapp://opendetail my manifest content [CODE] but not working
android|deep-linking
0
2022-07-31T10:19:19.593Z
2,022
7
10
6
26
0
190
34
2
1
true
true
false
false
false
false
zero
73,182,491
Disable chrome history for an android app built with a website
<p>I am developing an android app starting from a website and encapsulated with TWA (trusted web activity). The app works, but the problem is that on the chrome history I find all the app addresses visited. And that's not very good for the security. How can I do to prevent chrome from saving my history? Is there any ja...
I am developing an android app starting from a website and encapsulated with TWA (trusted web activity). The app works, but the problem is that on the chrome history I find all the app addresses visited. And that's not very good for the security. How can I do to prevent chrome from saving my history? Is there any javas...
javascript|android|firebase
0
2022-07-31T10:28:45.860Z
2,022
7
10
6
27
1
353
62
3
0
false
false
false
false
false
false
zero
73,182,604
Why does isFinishing() behaves differently in entry point Activity (with android.intent.action.MAIN) and non entry point Activity
<p>I have 2 types of <code>Activity</code> -</p> <ol> <li>One acts as the entry point of the Application, with <code>android.intent.action.MAIN</code>.</li> <li>Another activity is launched by the entry point activity.</li> </ol> <p>They looks as the following</p> <pre><code>// Act as entry point of the application, wi...
I have 2 types of Activity - One acts as the entry point of the Application, with android.intent.action.MAIN . Another activity is launched by the entry point activity. They looks as the following [CODE] I notice that this.isFinishing() behaves differently in both Activity, when I tested via Back button press Home butt...
java|android
1
2022-07-31T10:47:18.563Z
2,022
7
10
6
29
1
1,007
129
2
1
true
false
false
false
false
false
low
73,182,706
Retrofit in object form
<p>I have an MVVM program that uses Retrofit and Hilt<br /> I have two questions:</p> <ol> <li>Why the most examples the Retrofit was created in object form instead of class form?</li> <li>Why we shouldn't implements (inheritance) the AppModule from Retrofit to make a limitation for accessing the Retrofit directly?</li...
I have an MVVM program that uses Retrofit and Hilt I have two questions: Why the most examples the Retrofit was created in object form instead of class form? Why we shouldn't implements (inheritance) the AppModule from Retrofit to make a limitation for accessing the Retrofit directly? My personal experience leads me to...
android|kotlin|mvvm|retrofit|dagger-hilt
2
2022-07-31T11:01:10.237Z
2,022
7
11
6
44
1
504
23
5
2
true
false
false
false
false
false
low
73,182,852
Running adb as root from an Ubuntu machine
<p>I'm trying to modify the hosts file on my android phone and I am using adb for this on Ubuntu 20.04 to pull the file, modify it and push it back as suggested <a href="https://www.modmy.com/how-modify-hosts-file-your-android-device" rel="nofollow noreferrer">here</a>. I was able to pull the file but when I try to pus...
I'm trying to modify the hosts file on my android phone and I am using adb for this on Ubuntu 20.04 to pull the file, modify it and push it back as suggested here . I was able to pull the file but when I try to push it I get an error [CODE] One suggestion seems to be to run adb remount or adb shell mount -o rw,remount ...
android|adb|mount
0
2022-07-31T11:19:32.847Z
2,022
7
11
6
49
0
782
42
3
2
true
true
false
false
false
false
zero
73,182,869
How to check for null objects in databinding android using null coalescing operator
<p><a href="https://i.stack.imgur.com/SvChH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SvChH.png" alt="enter image description here" /></a></p> <p>How do I check for user != null using null coalescing operator. The android documentation shows if user.displayName is null then lastName will be use...
How do I check for user != null using null coalescing operator. The android documentation shows if user.displayName is null then lastName will be used. But what if user is null? How to add null check for user object in the following code ? android:text=&quot;@{user.displayName ?? user.lastName}&quot;
android|data-binding|android-databinding
0
2022-07-31T11:22:27.857Z
2,022
7
11
6
16
0
301
83
3
0
false
true
false
false
false
false
zero