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,378,694 | react-native-whatsapp-stickers getting success but not exported to whatsapp or not working properly | <p>1st go to :-
node_modules > react-native-whatsapp-stickers > android > src> main > java > com >
jobeso > RNWhatsAppStickers >RNWhatsAppStickersModule.java</p>
<p>2nd :- comment out below lines from @ReactMethod
public void send(String identifier, String stickerPackName, Promise promise) { ... | 1st go to :- node_modules > react-native-whatsapp-stickers > android > src> main > java > com > jobeso > RNWhatsAppStickers >RNWhatsAppStickersModule.java 2nd :- comment out below lines from @ReactMethod public void send(String identifier, String stickerPackName, Promise promise) { ... } section [CODE] | android|react-native|sticker | 0 | 2022-05-25T13:37:55.707Z | 2,022 | 5 | 13 | 2 | 63 | 0 | 303 | 99 | 3 | 1 | true | true | false | false | false | false | zero |
72,378,733 | How to check if layout is covered by another layout? | <p>On top of the screen I have a Grid Recycler layout and it has height wrap content. So on start it has 1 row of items. In the middle of the screen I have a button. So I am starting adding items in recycler and number of rows increases 1 then 2 then 3 etc... So I want to know the point when my recycler view will be vi... | On top of the screen I have a Grid Recycler layout and it has height wrap content. So on start it has 1 row of items. In the middle of the screen I have a button. So I am starting adding items in recycler and number of rows increases 1 then 2 then 3 etc... So I want to know the point when my recycler view will be visua... | android | 0 | 2022-05-25T13:40:02.333Z | 2,022 | 5 | 13 | 2 | 27 | 1 | 459 | 52 | 1 | 0 | false | false | false | false | false | false | zero |
72,378,829 | Android Slice is not added to Google Assistant | <p>I have added shortcuts.xml to my current android application and deployed to the google console within an internal testing track.</p>
<p>My app has been reviewed and approved however my Slice is still not visible in the google assistant.</p>
<p>my static shortcuts work fine as does my google assistant voice capabili... | I have added shortcuts.xml to my current android application and deployed to the google console within an internal testing track. My app has been reviewed and approved however my Slice is still not visible in the google assistant. my static shortcuts work fine as does my google assistant voice capabilities such as OPEN... | android|actions-on-google | 0 | 2022-05-25T13:46:27.957Z | 2,022 | 5 | 13 | 2 | 23 | 0 | 504 | 46 | 2 | 0 | false | true | false | false | false | false | zero |
72,378,859 | Composable screen with two or more BottomSheets | <p>Through the question <a href="https://stackoverflow.com/questions/72378164/bottomsheetscaffold-is-overriding-the-background-color-of-its-parent">BottomSheetScaffold is overriding the background color of its parent</a> it just came to my attention that when using using a <code>BottomSheetScaffold</code> we should pla... | Through the question BottomSheetScaffold is overriding the background color of its parent it just came to my attention that when using using a BottomSheetScaffold we should place the content of the screen inside it (which, to me, is a bit odd). Then the following question came to my mind. What should we do when a Scree... | android|android-jetpack-compose|bottom-sheet | 0 | 2022-05-25T13:48:25.613Z | 2,022 | 5 | 13 | 2 | 73 | 1 | 539 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
72,378,926 | React Native and Google Sheets API - What should package name and bundle identifier be? | <p>I am creating a react native app, and would like to read from and write to Google Sheets spreadsheets.</p>
<p>I am using the Google Sheets API. When creating an OAuth Client ID in the Google Cloud Platform, I am asked for a package name (for Android) and a bundle identifier (for IOS). However, i do not have the an... | I am creating a react native app, and would like to read from and write to Google Sheets spreadsheets. I am using the Google Sheets API. When creating an OAuth Client ID in the Google Cloud Platform, I am asked for a package name (for Android) and a bundle identifier (for IOS). However, i do not have the android manife... | android|ios|react-native|google-sheets | 0 | 2022-05-25T13:51:56.680Z | 2,022 | 5 | 13 | 2 | 48 | 1 | 423 | 87 | 4 | 0 | false | false | false | false | false | false | zero |
72,378,971 | How do I format my HashMap and access specific elements? | <p>I have a .json file in my assets directory that looks like that:</p>
<pre><code>{
"2": {
"3 darts hint": "D1",
"2 darts hint": "D1",
"1 dart hint": "D1"
},
"3": {
"3 darts hint": "1 D1"... | I have a .json file in my assets directory that looks like that: [CODE] Then I want to create a HashMap from it, which I do with the following code: [CODE] I have to admit, I don't fully understand that code snippet and found parts of it online. I know that I can do things like System.out.printIn(hashMap.keySet()) or S... | java|android|hashmap | 0 | 2022-05-25T13:54:33.857Z | 2,022 | 5 | 13 | 2 | 43 | 0 | 665 | 56 | 3 | 2 | true | true | false | false | false | false | zero |
72,379,054 | What is the definition of type A and type B Android services? | <p>While inspecting the Total PSS usage by OOM adjustment via <code>dumpsys meminfo oom</code> I came across the categories "<em>A Services</em>" and "<em>B Services</em>".</p>
<p>Do you know what is the exact meaning of these 2 categories?</p>
<p>Maybe it has something to do with the service's posi... | While inspecting the Total PSS usage by OOM adjustment via dumpsys meminfo oom I came across the categories " A Services " and " B Services ". Do you know what is the exact meaning of these 2 categories? Maybe it has something to do with the service's position in the LRU? | android-memory|dumpsys | 0 | 2022-05-25T13:59:34.543Z | 2,022 | 5 | 13 | 2 | 9 | 0 | 292 | 61 | 2 | 0 | false | true | false | false | false | false | zero |
72,379,525 | MVVM Error handling using Navigation Components and Retrofit | <p>I am facing the below error on implementing MVVM with Error Handling (Loading, Success, Error). I am fetching an api from the cloud using Retrofit. I would like to define three states using the Seal class so I can reuse them for the room database.</p>
<pre><code>java.lang.RuntimeException: Unable to invoke no-args c... | I am facing the below error on implementing MVVM with Error Handling (Loading, Success, Error). I am fetching an api from the cloud using Retrofit. I would like to define three states using the Seal class so I can reuse them for the room database. [CODE] It was working fine before I implement Response Class in my proje... | android|android-mvvm | 0 | 2022-05-25T14:29:30.653Z | 2,022 | 5 | 14 | 2 | 124 | 0 | 449 | 60 | 2 | 6 | true | true | false | false | false | false | zero |
72,379,593 | How to make a simple onClickListener in my recyclerView? | <p>I'm a beginner here and I'm struggling to find a good explanation on how to make an onClickListener, I don't want to copy, I want to understand everything, as I'm already working hard on understanding the process of creating recyclerView</p>
<p>I am currently trying to create a Quiz application with levels. My recyc... | I'm a beginner here and I'm struggling to find a good explanation on how to make an onClickListener, I don't want to copy, I want to understand everything, as I'm already working hard on understanding the process of creating recyclerView I am currently trying to create a Quiz application with levels. My recyclerView ha... | android|kotlin|android-recyclerview|onclicklistener | 0 | 2022-05-25T14:33:15.703Z | 2,022 | 5 | 14 | 2 | 45 | 1 | 729 | 56 | 4 | 3 | true | false | false | false | false | false | zero |
72,379,617 | Type declaration in header file ignored | <p>I am trying to access my phone's camera in c++ using the ndk. I copied the below code exactly, which does return a value for the person i copied it from: <a href="https://stackoverflow.com/questions/57743462/how-to-access-camera-from-natively-compiled-c-binary-in-android">How to access camera from natively compiled ... | I am trying to access my phone's camera in c++ using the ndk. I copied the below code exactly, which does return a value for the person i copied it from: How to access camera from natively compiled c++ binary in Android [CODE] However, it gives me 'ACameraManager was not declared in this scope' as an error. If i copy t... | android|c++|android-ndk | 1 | 2022-05-25T14:34:40.890Z | 2,022 | 5 | 14 | 2 | 57 | 0 | 1,167 | 39 | 3 | 2 | true | true | false | false | false | false | low |
72,379,667 | java.security.cert.CertPathValidatorException: Trust anchor for certification path not found although network security config and certificate exist | <p>I have a server with a valid certificate and I want to communicate with it via HTTPS on android using retrofit.</p>
<p>I'm getting the exception when trying to use the base-url of the server with https prefix and it works just fine with http.</p>
<pre><code>public class ModelNode {
private final Retrofit retrof... | I have a server with a valid certificate and I want to communicate with it via HTTPS on android using retrofit. I'm getting the exception when trying to use the base-url of the server with https prefix and it works just fine with http. [CODE] I do make sure I have the networkSecurityConfig attribute in my manifest [COD... | android|https|ssl-certificate|retrofit|android-network-security-config | 0 | 2022-05-25T14:38:14.650Z | 2,022 | 5 | 14 | 2 | 718 | 0 | 561 | 147 | 5 | 4 | true | true | false | false | false | false | zero |
72,379,712 | is there a way of showing the direction a user is facing | <p>Is there a way of showing the direction a user is facing? What I want to achieve is this.
I have a polyline representing several latitudes and longitudes. A user's current location is always got from the RTK source and once that location is within a radius of coordinates on the polyline, a user can mark off that poi... | Is there a way of showing the direction a user is facing? What I want to achieve is this. I have a polyline representing several latitudes and longitudes. A user's current location is always got from the RTK source and once that location is within a radius of coordinates on the polyline, a user can mark off that point.... | android-studio|google-maps | 0 | 2022-05-25T14:41:24.643Z | 2,022 | 5 | 14 | 2 | 39 | 0 | 542 | 56 | 2 | 0 | false | true | false | false | false | false | zero |
72,379,715 | Location not detected when using fake position | <p>I am implementing a navigation app, and I take the positions update like this:</p>
<pre><code>private fun checkSettingsAndStartLocationUpdates() {
val request: LocationSettingsRequest =
LocationSettingsRequest.Builder().addLocationRequest(locationRequest).build()
val client: SettingsClie... | I am implementing a navigation app, and I take the positions update like this: [CODE] For testing purpose, I am using Lockito app, that helps me to simulate fake paths on map. The problem is that the method above works with real tests or with Lockito runnung on a Samsung galaxy Note10 Lite, but it doesn't on Huawei p20... | android|android-location|android-maps-v2 | 0 | 2022-05-25T14:41:38.300Z | 2,022 | 5 | 14 | 2 | 19 | 0 | 522 | 46 | 3 | 1 | true | true | false | false | false | false | zero |
72,379,829 | How to close System Alert Dialogs in Android 12 and above | <p>I have an app that has an anti-off feature where the user can use a feature called <em><strong>anti-poweroff</strong></em> where after the user has turned on the feature the device cannot be turned off using the power button long press as the system dialog fired by that will be closed by a broadcast sent with the a... | I have an app that has an anti-off feature where the user can use a feature called anti-poweroff where after the user has turned on the feature the device cannot be turned off using the power button long press as the system dialog fired by that will be closed by a broadcast sent with the action Intent.ACTION_CLOSE_SYST... | java|android | 0 | 2022-05-25T14:48:07.227Z | 2,022 | 5 | 14 | 2 | 98 | 0 | 822 | 57 | 2 | 1 | true | true | false | false | false | false | zero |
72,379,845 | Passing parcelized Kotlin data class from activity to activity does not persits data | <p>I tried to pass a class between activities using parcelize. For this I got A class which has other classes as members:</p>
<pre><code>@Parcelize
class Entry(var uid_sensor: String = "No-Id", val firstConfig: fConfig= fConfig(), val SecondConfig: sConfig = sConfig(),
...) : Parcelable { ... }
</code></pr... | I tried to pass a class between activities using parcelize. For this I got A class which has other classes as members: [CODE] where e. g. fConfig is given by [CODE] and UInt8 , UInt32 are as well custom classes, e. g.: [CODE] Note, that these classes are initialized with zeros! Although I've marked each of this class a... | android|kotlin|parcelable | 0 | 2022-05-25T14:49:13.037Z | 2,022 | 5 | 14 | 2 | 60 | 1 | 838 | 84 | 3 | 5 | true | false | false | false | false | false | zero |
72,379,865 | Jetpack Compose, recomposition won't trigger when using custom Lifecycle/ViewModelStore/SavedStateRegistry Owner | <p>I'm trying to create an overlay and attach the view to the WindowManager, I've managed to do this by creating a class which implements Lifecycle/ViewModelStore/SavedStateRegistry Owner.
But for some reason whenever I try to show a dialog/change the UI in any way using MutableState or MutableStateFlow recomposition w... | I'm trying to create an overlay and attach the view to the WindowManager, I've managed to do this by creating a class which implements Lifecycle/ViewModelStore/SavedStateRegistry Owner. But for some reason whenever I try to show a dialog/change the UI in any way using MutableState or MutableStateFlow recomposition won'... | android|kotlin|android-jetpack-compose | 1 | 2022-05-25T14:50:11.443Z | 2,022 | 5 | 14 | 2 | 244 | 1 | 560 | 112 | 3 | 3 | true | false | false | false | false | false | low |
72,379,877 | How to get data from flow to new subscriber after some time? | <p>I wanted to do request to the server in my first fragment and get this value in my second fragment using sharedViewModel and flow. This is my code.
Here I am doing reqest from first fragment inside viewmodel.</p>
<pre><code>fun getAllLanguageList() {
viewModelScope.launch(handler) {
try {
va... | I wanted to do request to the server in my first fragment and get this value in my second fragment using sharedViewModel and flow. This is my code. Here I am doing reqest from first fragment inside viewmodel. [CODE] This is my code snippet from viewModel [CODE] This is my second fragment here, I wanted to get data when... | android|android-studio|stateflow | 0 | 2022-05-25T14:50:59.570Z | 2,022 | 5 | 14 | 2 | 20 | 0 | 402 | 60 | 3 | 3 | true | true | false | false | false | false | zero |
72,379,938 | Chain of RxJava calls | <p>I am new to RxJava. I am struggling with chaining multiple API calls. The class structures are as follows:</p>
<pre><code>Location(location_id, location_name)
Hub(hub_id, hub_name, location_id)
Room(device_id, room_id, room_name)
</code></pre>
<p>LocationList is defined as</p>
<pre><code>LocationList: List<Locati... | I am new to RxJava. I am struggling with chaining multiple API calls. The class structures are as follows: [CODE] LocationList is defined as [CODE] The requirement is [CODE] The final output is a List<HubItem> .How to achieve the above through RxJava? | android|kotlin|rx-java|rx-java2|rx-kotlin2 | 0 | 2022-05-25T14:55:55.447Z | 2,022 | 5 | 14 | 2 | 55 | 1 | 251 | 21 | 5 | 3 | true | false | false | false | false | false | zero |
72,379,996 | How to fix "Non exhaustive 'when' statements on sealed class/interface" in Kotlin | <p>Non exhaustive <code>when</code> statements on sealed class/interface will be prohibited in <strong>Kotlin 1.7</strong>.</p>
<p>I have a <code>sealed class State</code> and it's children:</p>
<pre><code>sealed class State {
object Initializing : State()
object Connecting : State()
object Disconnecting : ... | Non exhaustive when statements on sealed class/interface will be prohibited in Kotlin 1.7 . I have a sealed class State and it's children: [CODE] In some cases I want to handle only particular items, not all, for example: [CODE] But I get a warning (in Kotlin 1.7 I guess it will be an error), saying: Non exhaustive 'wh... | android|kotlin|sealed-class|kotlin-when|kotlin-sealed | 5 | 2022-05-25T15:00:05.147Z | 2,022 | 5 | 15 | 2 | 636 | 0 | 662 | 81 | 5 | 4 | true | true | false | false | false | false | low |
72,380,088 | AndroidX GridLayout: incorrect layout when cell content changes | <p>I am using an <a href="https://developer.android.com/reference/androidx/gridlayout/widget/GridLayout" rel="nofollow noreferrer">AndroidX GridLayout</a> to display a 2x2 grid of content using the following XML layout:</p>
<pre><code><androidx.gridlayout.widget.GridLayout
android:id="@+id/gridlayout_first&... | I am using an AndroidX GridLayout to display a 2x2 grid of content using the following XML layout: [CODE] This is what it looks like when @string/button_text is "button" : But when I increase the length of this string just a little, to "my button" , the grid layout suddenly jumps to this: I can unde... | android|androidx|android-gridlayout | 0 | 2022-05-25T15:04:52.407Z | 2,022 | 5 | 15 | 2 | 82 | 1 | 1,466 | 63 | 3 | 1 | true | false | false | false | false | false | zero |
72,380,095 | Android Studio NavController navigation not working | <p>I use fragments in my app and the NavController to move between the different screens, and it works in every fragment except one and I have no idea why. I tried writing the same thing in a few different ways and clearing the cache memory but I can't understand why it's not working in this fragment ONLY.
Thanks for r... | I use fragments in my app and the NavController to move between the different screens, and it works in every fragment except one and I have no idea why. I tried writing the same thing in a few different ways and clearing the cache memory but I can't understand why it's not working in this fragment ONLY. Thanks for read... | java|android|android-studio|android-layout | 0 | 2022-05-25T15:05:15.620Z | 2,022 | 5 | 15 | 2 | 46 | 0 | 392 | 51 | 4 | 1 | true | true | false | false | false | false | zero |
72,380,107 | Expo Project warn No apps connected | <p>I am trying to run my react native expo project on my android phone (also iOS), but have been running into some problems. Everytime I try to open the dev menu on the app running on the device, I get the warning</p>
<pre><code>warn No apps connected. Sending "devMenu" to all React Native apps failed. Make s... | I am trying to run my react native expo project on my android phone (also iOS), but have been running into some problems. Everytime I try to open the dev menu on the app running on the device, I get the warning [CODE] This also happens when I try to reload it through the cli. The app is running fine as it builds and is... | android|ios|react-native|expo | 0 | 2022-05-25T15:05:58.640Z | 2,022 | 5 | 15 | 2 | 184 | 2 | 1,003 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
72,380,141 | BroadcastReceiver Intent delivered without extras | <p>My <code>BroadcastReceiver</code> is not receiving the <code>Intent</code> extras when it gets delivered.</p>
<p>Here's how I create the <code>PendingIntent</code></p>
<pre><code>private fun getPendingIntent(type: ReminderType, date: DateTime): PendingIntent {
val context = App.appContext
val intent = Intent... | My BroadcastReceiver is not receiving the Intent extras when it gets delivered. Here's how I create the PendingIntent [CODE] As you can see, the extras are clearly appended as soon as the Intent is initialised. When the BroadcastReceiver gets fired, the intent.extras is empty. After researching this, I can only assume ... | android|broadcastreceiver|alarmmanager|android-pendingintent | 1 | 2022-05-25T15:08:48.247Z | 2,022 | 5 | 15 | 2 | 31 | 1 | 676 | 49 | 4 | 1 | true | false | false | false | false | false | low |
72,380,258 | How to disable a button if the user is not inside a certain radius? | <p>So basically I wanted to disable the button at first until or if the user enters a certain radius then the button would be enabled again but I'm not sure how to do it so here's the example of my code which i wanted to disable the button on the 'Reserve parking' button. Here's the code to the page.</p>
<pre><code>imp... | So basically I wanted to disable the button at first until or if the user enters a certain radius then the button would be enabled again but I'm not sure how to do it so here's the example of my code which i wanted to disable the button on the 'Reserve parking' button. Here's the code to the page. [CODE] And here is th... | android|flutter|firebase|android-studio | 0 | 2022-05-25T15:16:23.587Z | 2,022 | 5 | 15 | 2 | 26 | 0 | 425 | 67 | 4 | 2 | true | true | false | false | false | false | zero |
72,380,406 | In Android: how can I print an entire paragraph as columns made from its rows? | <p>In Android:<br />
what is the most easy way to print an entire paragraph (made of numbers and words) as (mono-spaced)
columns. In the terminology of matrices how can I print a matrix A as A^Transposition.</p>
<p><strong>EDIT</strong></p>
<p>I could also use horizontal scroll, but this attempt doesn't work:</p>
<pre>... | In Android: what is the most easy way to print an entire paragraph (made of numbers and words) as (mono-spaced) columns. In the terminology of matrices how can I print a matrix A as A^Transposition. EDIT I could also use horizontal scroll, but this attempt doesn't work: [CODE] Only ... are shown at the and of hhhh's. | android|matrix|output | 0 | 2022-05-25T15:25:56.333Z | 2,022 | 5 | 15 | 2 | 29 | 0 | 318 | 78 | 3 | 1 | true | true | false | false | false | false | zero |
72,380,440 | Click on custom button in android | <p>I have created a custom button for my application.</p>
<pre><code>class CustomButton(context: Context) : AppCompatButton(context) {
private var lastClickTime: Long = 0
override fun setOnClickListener(l: OnClickListener?) {
if (SystemClock.elapsedRealtime() - lastClickTime < 1000){
return
}
l... | I have created a custom button for my application. [CODE] } I am trying to use this for blocking double clicks but the setonClickListener only calls once. on the second time, the parent clicks not invoke. | android|android-button | 0 | 2022-05-25T15:28:23.913Z | 2,022 | 5 | 15 | 2 | 42 | 1 | 204 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
72,380,497 | Android/Java: How to create personalized schemes without https in it? | <p>How to use schemes with parameters without using <em><strong>https</strong></em> ? It works only with https, I would like to use other piece of code for example opening the app with the url :</p>
<pre><code>myapp://open
</code></pre>
<p>Here is my actual code:</p>
<pre><code> <intent-filter
android:autoV... | How to use schemes with parameters without using https ? It works only with https, I would like to use other piece of code for example opening the app with the url : [CODE] Here is my actual code: [CODE] I tried <data android:scheme="myapp" android:host="open" /> but doesn't work. I tried in Google ... | java|android | 0 | 2022-05-25T15:33:08.157Z | 2,022 | 5 | 15 | 2 | 38 | 1 | 438 | 69 | 2 | 3 | true | false | false | false | false | false | zero |
72,380,520 | Fragment ListView doubles on return | <p>I use a custom adapter for my ListView in a fragment. When I go to a second fragment and press the back key to go back, though, my list doubles (everything from my ArrayList is added again to the listView). This happens everytime I go to my second fragment and come back (the ArrayList gets appended to the back again... | I use a custom adapter for my ListView in a fragment. When I go to a second fragment and press the back key to go back, though, my list doubles (everything from my ArrayList is added again to the listView). This happens everytime I go to my second fragment and come back (the ArrayList gets appended to the back again). ... | java|android-studio|android-fragments|android-listview|android-adapter | 0 | 2022-05-25T15:35:05.570Z | 2,022 | 5 | 15 | 2 | 27 | 1 | 965 | 35 | 5 | 1 | true | false | false | false | false | false | zero |
72,380,620 | iOS cocoaods framework not generating in Kotlin Multiplatform project | <p>I am creating KMM library. I want to create a cocoapods framework, but when I tried to build my project, the framework is not generating. I tried <code>clean</code> project and <code>build</code> again. My cocoapods is not generating the at all in build folder. I didn't get why this is not working. I am adding my <s... | I am creating KMM library. I want to create a cocoapods framework, but when I tried to build my project, the framework is not generating. I tried clean project and build again. My cocoapods is not generating the at all in build folder. I didn't get why this is not working. I am adding my build file. build.gradle.kts [C... | android|ios|kotlin|cocoapods|kotlin-multiplatform | 1 | 2022-05-25T15:41:58.223Z | 2,022 | 5 | 15 | 2 | 175 | 1 | 379 | 69 | 5 | 1 | true | false | false | false | false | false | low |
72,380,685 | After attaching Firebase: Duplicate class com.google.android.gms.measurement.AppMeasurement | <p>I'm programming Androidjava application displaying the map. Everything worked fine, until I decided to connect the application to Firebase. I followed the steps to edit the two gradle files.</p>
<h2>Top gradle file:</h2>
<pre><code>// Top-level build file where you can add configuration options common to all sub-pro... | I'm programming Androidjava application displaying the map. Everything worked fine, until I decided to connect the application to Firebase. I followed the steps to edit the two gradle files. Top gradle file: [CODE] App gradle file: [CODE] Error messages [CODE] Do you have any ideas how I can solve it? I stuck for two d... | android|firebase|duplicates|build.gradle|google-play-services | 0 | 2022-05-25T15:46:26.650Z | 2,022 | 5 | 15 | 2 | 151 | 0 | 370 | 91 | 5 | 3 | true | true | false | false | false | false | zero |
72,380,704 | save and search fingerprint in database using external scanner | <p>is it possible to create an android app that i can create users and search using fingerprint external scanner ?</p>
<ol>
<li><p>is it possible to save fingerprint into database and find the fingerprint from it ?</p>
</li>
<li><p>if i use two different mark of fingerprint and i add user with the 1st one then i save t... | is it possible to create an android app that i can create users and search using fingerprint external scanner ? is it possible to save fingerprint into database and find the fingerprint from it ? if i use two different mark of fingerprint and i add user with the 1st one then i save the result into my db then if i use t... | android|database|operating-system|fingerprint | 0 | 2022-05-25T15:48:20.770Z | 2,022 | 5 | 15 | 2 | 27 | 0 | 461 | 62 | 4 | 0 | false | true | false | false | false | false | zero |
72,380,820 | Menu items are not displayed in the Android app | <p>everyone! I'm a beginner, developing a mobile app.
Friends, my menu items are not displayed. I click on three dots <a href="https://i.stack.imgur.com/4SpPX.png" rel="nofollow noreferrer">clicking on the menu</a>. A white window appears <a href="https://i.stack.imgur.com/hn7tQ.png" rel="nofollow noreferrer">window wi... | everyone! I'm a beginner, developing a mobile app. Friends, my menu items are not displayed. I click on three dots clicking on the menu . A white window appears window without menu items . Program code "menu.xml": [CODE] Program code "themes.xml": [CODE] Program code "MainActivity.java" [C... | android-studio|menu|menuitem|android-theme|android-inflate | 0 | 2022-05-25T15:55:26.563Z | 2,022 | 5 | 15 | 2 | 59 | 2 | 430 | 47 | 5 | 3 | true | false | false | false | false | false | zero |
72,380,911 | Android - Fetching Value from Firebase RemoteConfig | <p>I want to fetch the value only once during the launch of the application. I am setting the the setMinimumFetchIntervalInSeconds = 3600 seconds. I made a change on remoteConfig. But when I build my Application, I can't see that change. Does that mean setMinimumFetchIntervalInSeconds is required to after how long user... | I want to fetch the value only once during the launch of the application. I am setting the the setMinimumFetchIntervalInSeconds = 3600 seconds. I made a change on remoteConfig. But when I build my Application, I can't see that change. Does that mean setMinimumFetchIntervalInSeconds is required to after how long user ca... | android|firebase|firebase-remote-config | 0 | 2022-05-25T16:01:44.020Z | 2,022 | 5 | 16 | 2 | 419 | 1 | 387 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
72,380,922 | Android peripheral BLE advertisement sometimes returns an undocumented error code | <p>I'm using the Android <code>BluetoothManager</code> to open a <code>BluetoothGattServer</code> and advertise using a <code>BluetoothLeAdvertiser</code>. Example snippet:</p>
<pre><code>...
AdvertiseData advertiseData = new AdvertiseData.Builder()
.setIncludeTxPowerLevel(true)
.addServ... | I'm using the Android BluetoothManager to open a BluetoothGattServer and advertise using a BluetoothLeAdvertiser . Example snippet: [CODE] Sometimes, on a particular device running Android 9 (Droidlogic w400), I get an error from my mAdvertiseCallback : https://developer.android.com/reference/android/bluetooth/le/Adver... | java|android|android-bluetooth | 0 | 2022-05-25T16:02:37.447Z | 2,022 | 5 | 16 | 2 | 52 | 0 | 1,269 | 81 | 3 | 1 | true | true | false | false | false | false | zero |
72,380,969 | React Native support PiP (Picture-in-Picture) mode for video calling app | <p>I need to add PiP(Picture in Picture) mode to a react native app (both Android and iOS).
Some video calling apps such as Google Meet, etc are already support PiP mode, and I want to make the app like this. I'm using <code>react-native-webrtc</code> library for video calling feature and app works fine in foreground m... | I need to add PiP(Picture in Picture) mode to a react native app (both Android and iOS). Some video calling apps such as Google Meet, etc are already support PiP mode, and I want to make the app like this. I'm using react-native-webrtc library for video calling feature and app works fine in foreground mode, but don't k... | android|ios|react-native|videocall|react-native-webrtc | 0 | 2022-05-25T16:05:23.193Z | 2,022 | 5 | 16 | 2 | 298 | 1 | 388 | 72 | 5 | 0 | false | false | false | false | false | false | zero |
72,381,259 | how to resolve this flutter issue? | <ul>
<li>What went wrong:
A problem occurred evaluating root project 'android'.</li>
</ul>
<blockquote>
<p>Could not find method android() for arguments [build_a8r047ea5oudntrj7r90qfqdv$_run_closure5@500fa6c] on root project 'android' of type org.gradle.api.Project.</p>
</blockquote> | What went wrong: A problem occurred evaluating root project 'android'. Could not find method android() for arguments [build_a8r047ea5oudntrj7r90qfqdv$_run_closure5@500fa6c] on root project 'android' of type org.gradle.api.Project. | android|flutter|github|gradle|build | 0 | 2022-05-25T16:25:59.260Z | 2,022 | 5 | 16 | 2 | 23 | 0 | 230 | 34 | 5 | 0 | false | true | false | false | false | false | zero |
72,381,260 | Do I need an init block in my subclass of WebView? | <p>I'm creating a subclass of WebView with Kotlin and currently I get an NullPointerException when I try to use that Class (View). I only have three constructors and don't have an init block. Do I need one?</p> | I'm creating a subclass of WebView with Kotlin and currently I get an NullPointerException when I try to use that Class (View). I only have three constructors and don't have an init block. Do I need one? | android|android-studio|kotlin|inheritance|webview | 0 | 2022-05-25T16:26:01.620Z | 2,022 | 5 | 16 | 2 | 36 | 0 | 203 | 50 | 5 | 0 | false | true | false | false | false | false | zero |
72,381,420 | Deserialize json of recursive nested objects | <p>I am trying to deserialize json like this using gson and then insert it into DB using Room but unsuccessfully:</p>
<pre><code>[
{
"id": 1,
"name": "category1",
"categories": [
{
"id": 2,
"name": "category2",
... | I am trying to deserialize json like this using gson and then insert it into DB using Room but unsuccessfully: [CODE] Category object should contain: id (unique, required) name (required) parent_id count (content size if no child items) Please help me to recursively parse this and insert into the db. | java|android|json|gson|android-room | 0 | 2022-05-25T16:37:30.733Z | 2,022 | 5 | 16 | 2 | 94 | 1 | 301 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
72,381,426 | Microphone calibration on Android | <p>I am working on a project almost like the one here: (<a href="https://stackoverflow.com/questions/38339677/how-to-calibrate-an-android-devices-microphone">How to calibrate an android device's microphone</a>). I have tried the code and it works properly. but it is not clear to me how exactly I can use this code t... | I am working on a project almost like the one here: ( How to calibrate an android device's microphone ). I have tried the code and it works properly. but it is not clear to me how exactly I can use this code to calibrate the device. when should I stop recording? | java|android|microphone|calibration | 0 | 2022-05-25T16:38:17.177Z | 2,022 | 5 | 16 | 2 | 22 | 0 | 266 | 33 | 4 | 0 | false | true | false | false | false | false | zero |
72,381,514 | react-native expo-notifications scheduleNotificationAsync sound dont work | <p>I use expo notifications ~0.14.0</p>
<p>android 8+</p>
<p>I use expo-notifications local notifications scheduleNotificationAsync</p>
<p>I use eas build</p>
<p>my handler:</p>
<pre><code>Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true... | I use expo notifications ~0.14.0 android 8+ I use expo-notifications local notifications scheduleNotificationAsync I use eas build my handler: [CODE] I use channels My channel: [CODE] my Notification: [CODE] my app.json : [CODE] after prebuild my sound is in android\app\src\main\res\raw but after eas build sound dont w... | javascript|android|react-native|expo|expo-notifications | 0 | 2022-05-25T16:46:53.977Z | 2,022 | 5 | 16 | 2 | 121 | 0 | 323 | 73 | 5 | 4 | true | true | false | false | false | false | zero |
72,381,550 | how to implement reload app in react native expo (production) | <p>I tried to create restart with react-native-restart, but I get an error when calling RNRestart.Restart():</p>
<blockquote>
<p>[Unhandled promise rejection: TypeError: null is not an object (evaluating '_reactNativeRestart.default.Restart')]</p>
</blockquote>
<p>How do I implement reload in production ?</p>
<p>p.s. I... | I tried to create restart with react-native-restart, but I get an error when calling RNRestart.Restart(): [Unhandled promise rejection: TypeError: null is not an object (evaluating '_reactNativeRestart.default.Restart')] How do I implement reload in production ? p.s. I use expo | javascript|android|react-native|expo|reload | 1 | 2022-05-25T16:50:14.030Z | 2,022 | 5 | 16 | 2 | 709 | 1 | 278 | 61 | 5 | 0 | false | false | false | false | false | false | low |
72,381,634 | Android Studio Get Application Directory dataDir | <p>In other Apps I can access files in directories like <code>/storage/emulated/0/Android/data/com,xxx,yyy/files</code></p>
<p>In my own app I want to use it too. But with <code>getApplicationInfo().dataDir</code> I receive <code>/data/user/0/com.xx.yy/files</code></p>
<p>How can I receive the path to <code>/storage...... | In other Apps I can access files in directories like /storage/emulated/0/Android/data/com,xxx,yyy/files In my own app I want to use it too. But with getApplicationInfo().dataDir I receive /data/user/0/com.xx.yy/files How can I receive the path to /storage... and how to create this directory (it was not create automatic... | android | 0 | 2022-05-25T16:58:14.587Z | 2,022 | 5 | 16 | 2 | 59 | 1 | 350 | 48 | 1 | 0 | false | false | false | false | false | false | zero |
72,381,668 | Flutter Error: Unable to prepare TestiPhone for development. (code -1) | <p>In the Android studio i see my own iphone device. But i cannot to build the application on it. I see the following message in the console: <strong>No devices found with name or id matching '00008030-..........'.</strong> If i write in the terminal that: <strong>flutter devices</strong>
I see the following error: <st... | In the Android studio i see my own iphone device. But i cannot to build the application on it. I see the following message in the console: No devices found with name or id matching '00008030-..........'. If i write in the terminal that: flutter devices I see the following error: Error: Unable to prepare TestiPhone for ... | android|ios|iphone|flutter|build | 0 | 2022-05-25T17:01:41.817Z | 2,022 | 5 | 17 | 2 | 57 | 0 | 472 | 70 | 5 | 0 | false | true | false | false | false | false | zero |
72,381,779 | Android Camera Image Rotate Issue | <p>I have the image rotate problem. All the solutions I have found are outdated. The closest I have got is following <a href="https://stackoverflow.com/questions/47448297/how-to-get-uri-of-captured-photo">How to get uri of captured photo?</a> to get the uri.
If I include the line
takePicture.putExtra(android.provider.... | I have the image rotate problem. All the solutions I have found are outdated. The closest I have got is following How to get uri of captured photo? to get the uri. If I include the line takePicture.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri) then I do not get resultCode == Activity.RESULT_OK. If I run with ... | android | 0 | 2022-05-25T17:11:36.640Z | 2,022 | 5 | 17 | 2 | 27 | 0 | 499 | 33 | 1 | 1 | true | true | false | false | false | false | zero |
72,381,888 | RecyclerView not populating from Room DB ViewModel | <p>I'm trying to show data from db to RecyclerView from ViewModel, but unable to see the list on home screen. I'm new to MVVM model.</p>
<p>I've implemented POJO class for product and implemented Room DB using that class. Also recyclerview has been implemented using ViewModel class.</p>
<p>With this I'm unable to popul... | I'm trying to show data from db to RecyclerView from ViewModel, but unable to see the list on home screen. I'm new to MVVM model. I've implemented POJO class for product and implemented Room DB using that class. Also recyclerview has been implemented using ViewModel class. With this I'm unable to populate data from db,... | android|mvvm|android-recyclerview|android-room|viewmodel | 0 | 2022-05-25T17:22:47.187Z | 2,022 | 5 | 17 | 2 | 18 | 0 | 636 | 50 | 5 | 7 | true | true | false | false | false | false | zero |
72,381,975 | Facing error code 6 in curl easy perform when tried in Android TV HIDL service | <p>I am trying to perform fetch the URL contents using curl in HIDL service in Android TV. But when curl_easy_perform is executed, facing the below strerror</p>
<pre><code>result: 6, curl_easy_strerror: Couldn't resolve host name
</code></pre>
<p>This was executed in Android 11 using libcurl in c++.</p> | I am trying to perform fetch the URL contents using curl in HIDL service in Android TV. But when curl_easy_perform is executed, facing the below strerror [CODE] This was executed in Android 11 using libcurl in c++. | libcurl|android-tv|android-11|hidl | 0 | 2022-05-25T17:29:44.820Z | 2,022 | 5 | 17 | 2 | 52 | 0 | 214 | 78 | 4 | 1 | true | true | false | false | false | false | zero |
72,381,983 | Workaround - Termux chmod +x doesn't apply | <p>Workaround for Termux and chmod. Works!</p>
<p>Successfully cloned:</p>
<p><code>git clone https://github.com/xeffyr/termux-x-repository setup.sh</code></p>
<p>Even though the chmod command ran without error:</p>
<p><code>chmod +x setup.sh</code></p>
<p>I couldn't run the install script:</p>
<p><code>setup.sh --inst... | Workaround for Termux and chmod. Works! Successfully cloned: git clone https://github.com/xeffyr/termux-x-repository setup.sh Even though the chmod command ran without error: chmod +x setup.sh I couldn't run the install script: setup.sh --install * permission denied * Termux Workaround: bash setup.sh --install Apparent... | android-sdcard|chmod|termux | 0 | 2022-05-25T17:30:22.357Z | 2,022 | 5 | 17 | 2 | 1,281 | 2 | 392 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
72,382,064 | Is it possible to change AlertDialog message only based on condition met? | <p>E.g. I have similar code to this post <a href="https://stackoverflow.com/questions/13303446/show-alertdialog-if-some-condition-is-met">Show AlertDialog if some condition is met</a></p>
<pre><code>if (condition) {
AlertDialog.Builder(requireActivity())
.setTitle("Internet")
... | E.g. I have similar code to this post Show AlertDialog if some condition is met [CODE] But can I do the check for conditions met inside the message for dialog? So that I do not rewrite same code twice, but with different message | kotlin|android-alertdialog | 1 | 2022-05-25T17:38:12.980Z | 2,022 | 5 | 17 | 2 | 36 | 1 | 228 | 73 | 2 | 1 | true | false | false | false | false | false | low |
72,382,111 | Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] when attempting to run flutter app on android emulator on MacOS | <p>I have been dealing with a very persistent error when attempting to run a flutter app on an Android Emulator (Android Virtual Device launched through Android Studio) through VS Code. Here is a screenshot of the errors: <a href="https://i.stack.imgur.com/LFg9h.png" rel="nofollow noreferrer"><img src="https://i.stack.... | I have been dealing with a very persistent error when attempting to run a flutter app on an Android Emulator (Android Virtual Device launched through Android Studio) through VS Code. Here is a screenshot of the errors: I have attempted to wipe data & cold brew both my emulators & reopen the application folder to no ava... | flutter|macos|android-studio|visual-studio-code|android-emulator | 1 | 2022-05-25T17:41:42.203Z | 2,022 | 5 | 17 | 2 | 1,958 | 2 | 477 | 109 | 5 | 0 | false | false | false | false | false | false | low |
72,382,140 | Implementing pullable/expandable layout/view in Android? | <p>I'm not a native speaker, and no idea what's the proper English term for this.</p>
<p>Let say I have this following activity. For the sake of simplicity, let's assume this is just one LinearLayout (the black row on the bottom is a BottomNavigationView)</p>
<p><a href="https://i.stack.imgur.com/pYu5n.png" rel="nofoll... | I'm not a native speaker, and no idea what's the proper English term for this. Let say I have this following activity. For the sake of simplicity, let's assume this is just one LinearLayout (the black row on the bottom is a BottomNavigationView) Item One, Item Two, Item Three etc are located inside a RecyclerView. Noti... | android|android-recyclerview|android-linearlayout | 0 | 2022-05-25T17:44:59.923Z | 2,022 | 5 | 17 | 2 | 19 | 0 | 748 | 56 | 3 | 0 | false | true | false | false | false | false | zero |
72,382,146 | The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin | <p>I want to use architecture project (todo list) but get this error when i want to run project</p>
<p>The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin. Latest supported version is AGP 7.2.1</p> | I want to use architecture project (todo list) but get this error when i want to run project The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin. Latest supported version is AGP 7.2.1 | android|kotlin|gradle|android-gradle-plugin|build.gradle | 5 | 2022-05-25T17:45:37.640Z | 2,022 | 5 | 17 | 2 | 4,106 | 2 | 225 | 93 | 5 | 0 | false | false | true | false | false | false | low |
72,382,174 | Android storing SVG in assets then decoding to bitmap | <p>I currently have a huge amount of PNGs in my assets folder. When i launch my app i retrieve the file path of each one and use it to convert to a bitmap when that specific png is needed like so</p>
<pre><code>fun getImageBitmapFromAsset(assetManager: AssetManager, imagePath: String?): ImageBitmap {
val inputStream: I... | I currently have a huge amount of PNGs in my assets folder. When i launch my app i retrieve the file path of each one and use it to convert to a bitmap when that specific png is needed like so [CODE] My question is can this be done with SVGs and how? | android | 0 | 2022-05-25T17:48:01.250Z | 2,022 | 5 | 17 | 2 | 10 | 0 | 250 | 53 | 1 | 1 | true | true | false | false | false | false | zero |
72,382,247 | How to make StringRequest work 100% of time Android | <p>I have a StringRequest reading from an API, but it only sometimes works:</p>
<pre><code>System.out.println("Getting data");
String myUrl = "https://api.quotable.io/random";
StringRequest myRequest = new StringRequest(Request.Method.GET, myUrl,
response -> {
try{
... | I have a StringRequest reading from an API, but it only sometimes works: [CODE] output [CODE] As you can see, in the final line of output, it is able to print "set", but doesn't output either the quote or the author. Any ideas? | java|android|request | 2 | 2022-05-25T17:56:20.583Z | 2,022 | 5 | 17 | 2 | 21 | 1 | 237 | 51 | 3 | 2 | true | false | false | false | false | false | low |
72,382,309 | Stuck on black screen when activating debug in React-Native | <p>I have a problem with my RN app in my android device (have not tested on iOS yet), as soon as I activate debug on the device, it gets stuck on a black screen.</p>
<p>I dont know what part of the code or what setting is causing this, and this is the reason I am not showing any coding here. Just trying to check if you... | I have a problem with my RN app in my android device (have not tested on iOS yet), as soon as I activate debug on the device, it gets stuck on a black screen. I dont know what part of the code or what setting is causing this, and this is the reason I am not showing any coding here. Just trying to check if you guys have... | android|react-native|react-native-debugger | 0 | 2022-05-25T18:02:30.667Z | 2,022 | 5 | 18 | 2 | 430 | 2 | 646 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
72,382,319 | Not able to commit data into realtime database of firebase | <p>I'm trying to add the data entered by the user into the realtime database, but it stops working and doesn't commit data. The image gets stored in the firebase storage, but data isn't getting saved in realtime and the activity closes and moves back to the previous activity.</p>
<p>This the code in the activity file:<... | I'm trying to add the data entered by the user into the realtime database, but it stops working and doesn't commit data. The image gets stored in the firebase storage, but data isn't getting saved in realtime and the activity closes and moves back to the previous activity. This the code in the activity file: [CODE] On ... | android|firebase|android-studio|firebase-realtime-database|nullpointerexception | 0 | 2022-05-25T18:03:20.800Z | 2,022 | 5 | 18 | 2 | 39 | 1 | 496 | 58 | 5 | 1 | true | false | false | false | false | false | zero |
72,382,328 | Error inflating class ImageButton The app crashes | <p>I'm making a small card game at the moment and for some reason anytime I try to open my second Activity, it crashes. With the error being the one mentioned in the title.</p>
<p>I tried various ways and unfortunately it always gives me this error.</p>
<p>This is my latest code:</p>
<pre><code>package com.example.jueg... | I'm making a small card game at the moment and for some reason anytime I try to open my second Activity, it crashes. With the error being the one mentioned in the title. I tried various ways and unfortunately it always gives me this error. This is my latest code: [CODE] And it says the error is in this line: [CODE] And... | java|android|xml|android-studio | 0 | 2022-05-25T18:04:02.523Z | 2,022 | 5 | 18 | 2 | 76 | 2 | 4,877 | 49 | 4 | 7 | true | false | false | false | false | false | zero |
72,382,397 | Cannot create an instance of class view model - Kotlin | <p>I'm currently working on a project to practice dependency injection with Dagger-Hilt, however I can't get my ViewModel to instantiate, I've already looked at some other questions on the same topic, most point the issue to Gradle but that didn't fix it for me, all errors in the Stacktrace are from internal classes ex... | I'm currently working on a project to practice dependency injection with Dagger-Hilt, however I can't get my ViewModel to instantiate, I've already looked at some other questions on the same topic, most point the issue to Gradle but that didn't fix it for me, all errors in the Stacktrace are from internal classes excep... | android|kotlin|viewmodel|android-viewmodel | 0 | 2022-05-25T18:10:55.773Z | 2,022 | 5 | 18 | 2 | 1,512 | 2 | 491 | 54 | 4 | 3 | true | false | false | false | false | false | zero |
72,382,508 | Photos are deleted from the app after a short period of time automatically in android 11 | <p>Why does Android 11 delete photos from the program automatically after a short period of time even though I use the program constantly and all permissions are accepted
i use this code for create a folder that store photos</p>
<pre><code> public static File pcsfoldr(Context contxt){ return new File( contxt.getExterna... | Why does Android 11 delete photos from the program automatically after a short period of time even though I use the program constantly and all permissions are accepted i use this code for create a folder that store photos [CODE] and granted this permissions [CODE] and in application [CODE] this image with pictures and ... | android|android-studio | 0 | 2022-05-25T18:20:50.330Z | 2,022 | 5 | 18 | 2 | 32 | 0 | 375 | 88 | 2 | 3 | true | true | false | false | false | false | zero |
72,382,510 | Acces a broken screen android phone with PC | <p>is there a way to recover some pictures inside my phone ?
(2 phones actually, Galaxy A5 and A50)</p>
<p>-the screen is broken
-i tried ADB, but device unauthorized</p> | is there a way to recover some pictures inside my phone ? (2 phones actually, Galaxy A5 and A50) -the screen is broken -i tried ADB, but device unauthorized | android|windows|adb|exploit|recovery | -2 | 2022-05-25T18:20:55.400Z | 2,022 | 5 | 18 | 2 | 121 | 1 | 156 | 43 | 5 | 0 | false | false | false | false | false | true | negative |
72,382,554 | Unity OneSignal SDK : Application not opening then I click on push notification | <p>Application on phone is closed.
When I click on received notification from OneSignal my Unity app not opening.</p>
<p>How to open an application on notification click in OneSignal Unity project?</p>
<p>I have latest OneSignal SDK version:
<a href="https://assetstore.unity.com/packages/add-ons/services/billing/onesig... | Application on phone is closed. When I click on received notification from OneSignal my Unity app not opening. How to open an application on notification click in OneSignal Unity project? I have latest OneSignal SDK version: https://assetstore.unity.com/packages/add-ons/services/billing/onesignal-sdk-193316#publisher A... | android|unity3d|onesignal | 0 | 2022-05-25T18:24:49.360Z | 2,022 | 5 | 18 | 2 | 210 | 1 | 352 | 79 | 3 | 1 | true | false | false | false | false | false | zero |
72,382,560 | gradle, is there side effect with exclude on a transitive dependency | <p>In an android lib (my_lib) which has dependency on other lib (other_lib), the other lib has dependency on <code>okhttp:3.10.0</code>.
Now my lib would like to use <code>okhttp:4.9.3</code></p>
<p>the <code>other_lib</code> has</p>
<pre><code> api "com.squareup.okhttp3:okhttp:3.10.0"
</code></pre>
<p>so ... | In an android lib (my_lib) which has dependency on other lib (other_lib), the other lib has dependency on okhttp:3.10.0 . Now my lib would like to use okhttp:4.9.3 the other_lib has [CODE] so my_lib changed from: [CODE] to: [CODE] so that my_lib will still use other_lib , but all okhttp will be from okhttp:4.9.3 . And ... | gradle|android-gradle-plugin|build.gradle|dependency-management|transitive-dependency | 0 | 2022-05-25T18:25:36.550Z | 2,022 | 5 | 18 | 2 | 42 | 0 | 1,015 | 68 | 5 | 4 | true | true | false | false | false | false | zero |
72,382,603 | How to parse string that contains objects as a string to list of objects - Kotlin | <p>I had a list of objects and saved them as a String in shared preferences. Now I need to extract that saved string and convert it back to the list of objects. So how to convert this kind of string</p>
<pre><code>[DataClass(label=testLabel, testData=someData), DataClass(label=testLabel, testData=someData)]
</code></pr... | I had a list of objects and saved them as a String in shared preferences. Now I need to extract that saved string and convert it back to the list of objects. So how to convert this kind of string [CODE] To val result = listOf<DataClass>() So as result I will be able to get data from dataclass.label and dataclass.testDa... | android|kotlin | 0 | 2022-05-25T18:29:55.190Z | 2,022 | 5 | 18 | 2 | 80 | 3 | 322 | 81 | 2 | 1 | true | false | false | false | false | false | zero |
72,382,700 | How to make a timer based on English time | <p>I use daily rewards in my game, the date in "dd/MM/yyyy" format is based on <code>Locale.ENGLISH</code></p>
<pre><code>final Date currentDate = Calendar.getInstance().getTime();
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH);
</code></pre>
<p>To make it mor... | I use daily rewards in my game, the date in "dd/MM/yyyy" format is based on Locale.ENGLISH [CODE] To make it more clear for the user, I want to count down the remaining time until the next reward, I also want to base the countdown on Locale.ENGLISH I would like the format to be in 24h, for example if it is 12... | java|android|android-studio | 0 | 2022-05-25T18:38:53.443Z | 2,022 | 5 | 18 | 2 | 52 | 2 | 435 | 41 | 3 | 2 | true | false | false | false | false | false | zero |
72,382,741 | Error in inflating a ConstraintLayout when doing a test Android Studio | <p>I´m trying to do a test in android studio, and the fragment i´m trying to launch has a ConstraintLayout, I've seen other responses of this type of error but none of them were useful. The error I get is this one:</p>
<pre><code>android.view.InflateException: Binary XML file line #2 in com.example.museosgijon:layout/f... | I´m trying to do a test in android studio, and the fragment i´m trying to launch has a ConstraintLayout, I've seen other responses of this type of error but none of them were useful. The error I get is this one: [CODE] When I run the aplication I dont get any error and it launches. The dependencie of the constraintlayo... | android-studio|kotlin|testing|android-espresso | 0 | 2022-05-25T18:43:02.693Z | 2,022 | 5 | 18 | 2 | 93 | 1 | 457 | 70 | 4 | 2 | true | false | false | false | false | false | zero |
72,382,760 | Run Shell script on boot in AOSP 11 | <p>I am building AOSP 11 for emulator x86_64 and trying to run shell script on boot.</p>
<p>Below is my shell script test.sh</p>
<pre><code>#!/vendor/bin/sh
echo "Hello" >> /data/local/tmp/test.txt
</code></pre>
<p>created myrc.rc file to create service</p>
<pre><code>service runapp /vendor/bin/test.sh... | I am building AOSP 11 for emulator x86_64 and trying to run shell script on boot. Below is my shell script test.sh [CODE] created myrc.rc file to create service [CODE] In device/generic/goldfish/sepolicy/x86/file_contexts i have file_contexts with [CODE] In device/generic/goldfish/sepolicy/x86/init-myservice.te [CODE] ... | android|security|android-source|init|selinux | 1 | 2022-05-25T18:46:04.657Z | 2,022 | 5 | 18 | 2 | 287 | 1 | 697 | 35 | 5 | 6 | true | false | false | false | false | false | low |
72,382,777 | How to benefit on "warm start" from the saved instance state bundle passed into onCreate() or onRestoreInstanceState() | <p>After reading these Android documents, we feel confused about how to benefit on "warm start issue" from the saved instance state bundle passed into onCreate() or onRestoreInstanceState(().
In the document of saving-states, it says the "Saved instance state" saves only for primitive types and simp... | After reading these Android documents, we feel confused about how to benefit on "warm start issue" from the saved instance state bundle passed into onCreate() or onRestoreInstanceState((). In the document of saving-states, it says the "Saved instance state" saves only for primitive types and simple,... | android|startup|android-savedstate|app-startup|viewmodel-savedstate | 0 | 2022-05-25T18:47:26.130Z | 2,022 | 5 | 18 | 2 | 32 | 1 | 1,492 | 118 | 5 | 1 | true | false | false | false | false | false | zero |
72,382,842 | How can I make a SeekBar take up the width available between a TextView and an ImageButton? | <p>I'd like the TextView and ImageButton to take up space based on their size & have the SeekBar take up whatever space remains. Here's my current code:</p>
<pre><code><androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_cont... | I'd like the TextView and ImageButton to take up space based on their size & have the SeekBar take up whatever space remains. Here's my current code: [CODE] With this code, the SeekBar has no width & the ccBtn appears in the center of the screen. How can I fix this? | java|android|xml | 0 | 2022-05-25T18:53:19.353Z | 2,022 | 5 | 18 | 2 | 27 | 2 | 266 | 91 | 3 | 1 | true | false | false | false | false | false | zero |
72,382,877 | Android OnActivityResult gave me a NULL value with getExtras(), although it was set | <p>I'm trying to get a bitmap inside the onActivityResult from putExtra.getData(), which I fill in beforehand. However, putExtra.getData() is always NULL. And I wonder why</p>
<pre><code> photoFile = createImageFile();
// Continue only if the File was successfully created
if (photoFile != null) {
Uri p... | I'm trying to get a bitmap inside the onActivityResult from putExtra.getData(), which I fill in beforehand. However, putExtra.getData() is always NULL. And I wonder why [CODE] | android|android-intent | 0 | 2022-05-25T18:56:26.087Z | 2,022 | 5 | 18 | 2 | 106 | 0 | 175 | 83 | 2 | 1 | true | true | false | false | false | false | zero |
72,382,886 | System applies night mode to views added in service (TYPE_APPLICATION_OVERLAY), but how to apply night mode manually? | <p>I have a <code>LinearLayout</code> that I inflate and add to screen from a service as <code>TYPE_APPLICATION_OVERLAY</code>. This view changes to dark mode when I change the theme from system settings for the whole phone. But when I want to set the night mode manually in my app, this view doesn't change. It only obe... | I have a LinearLayout that I inflate and add to screen from a service as TYPE_APPLICATION_OVERLAY . This view changes to dark mode when I change the theme from system settings for the whole phone. But when I want to set the night mode manually in my app, this view doesn't change. It only obeys the system theme. Note th... | android-service|android-theme|android-night-mode|appcompatdelegate|type-application-overlay | 1 | 2022-05-25T18:56:48.743Z | 2,022 | 5 | 18 | 2 | 43 | 1 | 889 | 117 | 5 | 0 | false | false | false | false | false | false | low |
72,383,030 | Problem with accessing contacts on React-Native Android | <p>I have implemented all the installation instructions for working with contacts, but for some reason it does not work for me.</p>
<p>I have tried all the solutions offered here including a number of different examples of code.</p>
<p>The problem seems to be related to adding the package to the MainApplication.java fi... | I have implemented all the installation instructions for working with contacts, but for some reason it does not work for me. I have tried all the solutions offered here including a number of different examples of code. The problem seems to be related to adding the package to the MainApplication.java file : [CODE] The r... | android|react-native|contacts | 1 | 2022-05-25T19:12:32.513Z | 2,022 | 5 | 19 | 2 | 285 | 1 | 797 | 55 | 3 | 4 | true | false | false | false | false | false | low |
72,383,053 | binding and live data general RadioGroup in RecyclerView Android | <p>I am trying to make a recyclerView consistent of several user question items, there may be infinite number of questions and top of 4 answers for each, I am trying to make the data load from the vm in case of a screen orientation change, and to save the user chosen answer in an Answer object, I got confused after try... | I am trying to make a recyclerView consistent of several user question items, there may be infinite number of questions and top of 4 answers for each, I am trying to make the data load from the vm in case of a screen orientation change, and to save the user chosen answer in an Answer object, I got confused after trying... | android|android-recyclerview|data-binding|android-livedata|android-radiogroup | 0 | 2022-05-25T19:14:59.640Z | 2,022 | 5 | 19 | 2 | 16 | 0 | 535 | 64 | 5 | 4 | true | true | false | false | false | false | zero |
72,383,064 | IndexOutOfBoundsException for EditText setSelection Android | <p>The Fragments crashes when trying to get the data using the location with the error below:</p>
<pre><code>2022-05-26 00:42:46.057 30678-30678/com.example.android.politicalpreparedness E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.politicalpreparedness, PID: 30678
java.lang.IndexOutOfBo... | The Fragments crashes when trying to get the data using the location with the error below: [CODE] I am confused how this is causing an error. It's supposed to show the value that's in the adapter right? Fragment Code : [CODE] The XML Code for that text field. [CODE] | android|kotlin | 1 | 2022-05-25T19:16:01.073Z | 2,022 | 5 | 19 | 2 | 189 | 1 | 266 | 59 | 2 | 3 | true | false | false | false | false | false | low |
72,383,094 | Swipe down update from Firebase in RecyclerView | <p>I am trying to make update of my RecyclerViewer with data from Storage for profile picture and Firestore for other data. But I tried many methods and I don't know how to make this.
The goal is to make a RecyclerViewer update each time user goes to fragment and also be able to swipe to refresh the list. Also the layo... | I am trying to make update of my RecyclerViewer with data from Storage for profile picture and Firestore for other data. But I tried many methods and I don't know how to make this. The goal is to make a RecyclerViewer update each time user goes to fragment and also be able to swipe to refresh the list. Also the layout ... | android|firebase|kotlin | 0 | 2022-05-25T19:19:26.290Z | 2,022 | 5 | 19 | 2 | 30 | 0 | 660 | 47 | 3 | 3 | true | true | false | false | false | false | zero |
72,383,122 | Force HDMI audio from android WebView | <p>I'm loading url in WebView that accesses device's camera and microphone and also plays audio. When device is connected to external display by type-c to HDMI adapter, audio is played on device, not on TV. If I decline permissions from WebView for camera and microphone, audio is played from TV speakers. How do I force... | I'm loading url in WebView that accesses device's camera and microphone and also plays audio. When device is connected to external display by type-c to HDMI adapter, audio is played on device, not on TV. If I decline permissions from WebView for camera and microphone, audio is played from TV speakers. How do I force an... | android|audio|webview|hdmi | 0 | 2022-05-25T19:21:41.977Z | 2,022 | 5 | 19 | 2 | 29 | 0 | 408 | 37 | 4 | 0 | false | true | false | false | false | false | zero |
72,383,226 | How I can create history layout in android studio such as recent | <p>I am building an app include edit text and button. The user can put text in the edit text, then click button to transfer him to the browser.
So, I would like to create other layout as recent to store the text that the user entered on the edit text.</p>
<p>How I can do that? I need the logic or code that can help me!... | I am building an app include edit text and button. The user can put text in the edit text, then click button to transfer him to the browser. So, I would like to create other layout as recent to store the text that the user entered on the edit text. How I can do that? I need the logic or code that can help me! Also, sho... | java|android|android-studio | 0 | 2022-05-25T19:31:35.693Z | 2,022 | 5 | 19 | 2 | 142 | 1 | 403 | 64 | 3 | 0 | false | false | false | false | false | false | zero |
72,383,299 | animateFloatAsState in compose custom layout not animating all composables | <p>I have a custom layout which is a calendar like screen that the user can drag around as a whole. Events that are visible to the user in the time frame visible on the screen get drawn with placeables/measurable.</p>
<p>I have a feature that as the user partially drags events off screen, the titles in the content stic... | I have a custom layout which is a calendar like screen that the user can drag around as a whole. Events that are visible to the user in the time frame visible on the screen get drawn with placeables/measurable. I have a feature that as the user partially drags events off screen, the titles in the content sticky to the ... | android|android-jetpack-compose | 0 | 2022-05-25T19:39:21.573Z | 2,022 | 5 | 19 | 2 | 222 | 1 | 2,146 | 74 | 2 | 3 | true | false | false | false | false | false | zero |
72,383,429 | Why doesn't the linked views change after an animation? | <p>I am trying to create a simple animation; move a view down the Y-axis. In this example the view is testnote1 but the view attached to the bottom testnote2 doesn't change. Why is this?</p>
<p>I read using View.animate() just animates views visually while ObjectAnimator does more than that such as moving the click are... | I am trying to create a simple animation; move a view down the Y-axis. In this example the view is testnote1 but the view attached to the bottom testnote2 doesn't change. Why is this? I read using View.animate() just animates views visually while ObjectAnimator does more than that such as moving the click area with the... | android|kotlin|android-layout|animation|android-animation | 0 | 2022-05-25T19:51:59.263Z | 2,022 | 5 | 19 | 2 | 34 | 1 | 1,085 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
72,383,477 | Why I can't find by id XML image | <pre><code>public class MainActivity extends AppCompatActivity {
ListView listView;
Button buttonForCP;
ImageView img;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
buttonForCP =(B... | [CODE] for some reason can not read xml image the compiler writes "Expected resource of type id" I googled nothing found help please | java|android|xml|android-studio | 0 | 2022-05-25T19:55:43.783Z | 2,022 | 5 | 19 | 2 | 64 | 2 | 142 | 32 | 4 | 1 | true | false | false | false | false | false | zero |
72,383,479 | TextView.text changes but display of its display on a fragment isn't updating | <p>I had a working app that does some arithmetic functionality that is out of the scope of the question, then I wanted to add more functionality to it, so i separated the layout into activity and fragment in order to later add other fragments that will do extra functions.</p>
<p>yet when I separated the layout taking s... | I had a working app that does some arithmetic functionality that is out of the scope of the question, then I wanted to add more functionality to it, so i separated the layout into activity and fragment in order to later add other fragments that will do extra functions. yet when I separated the layout taking some button... | android|kotlin|android-fragments|textview | -1 | 2022-05-25T19:56:01.900Z | 2,022 | 5 | 19 | 2 | 58 | 2 | 1,468 | 77 | 4 | 5 | true | false | false | false | false | true | negative |
72,383,559 | is there Material increment/decrement Button implementation for Android? | <p>is there by any chance a Material design implementation for increment/decrement button ? <a href="https://i.stack.imgur.com/H4hgj.jpg" rel="nofollow noreferrer">image for illustration</a></p> | is there by any chance a Material design implementation for increment/decrement button ? image for illustration | android|material-design | 0 | 2022-05-25T20:02:22.047Z | 2,022 | 5 | 20 | 2 | 72 | 1 | 111 | 72 | 2 | 0 | false | false | false | false | false | false | zero |
72,383,621 | column clickable lambda block is not invoked on tap - jetpack compose | <pre><code>Column(
Modifier
.padding(0.dp).clickable {
expanded = !expanded
}) {
OutlinedTextField(
value = selectedText,
readOnly = true,
onValueChange = {
selectedText = it
onItemSelected(selectedText)
},
modifier = Mo... | [CODE] I am having a drop down menu in jetpack compose, i need to show the dropdown when i click on the column, but clickable lambda block of the column is not getting invoked on tap. What could be the issue? | android|kotlin|android-layout|android-jetpack-compose|android-jetpack | 0 | 2022-05-25T20:09:26.903Z | 2,022 | 5 | 20 | 2 | 72 | 1 | 208 | 69 | 5 | 1 | true | false | false | false | false | false | zero |
72,383,784 | Kotlin Split a List of Model into another List of Models | <p>I am working on a project which looks simple but I am blocked on an issue.
I receive from an api a list of music titles which contains an albumId, an Id and the title.
The data class will look like this :</p>
<pre><code>data class Title(
val albumId: Int,
val id: Int,
val title: String)
</code></pre>
<p>... | I am working on a project which looks simple but I am blocked on an issue. I receive from an api a list of music titles which contains an albumId, an Id and the title. The data class will look like this : [CODE] I have created a data class called Album : [CODE] I want to split my [CODE] to create a [CODE] by splitting ... | android|list|kotlin | 0 | 2022-05-25T20:26:41.770Z | 2,022 | 5 | 20 | 2 | 53 | 1 | 386 | 56 | 3 | 4 | true | false | false | false | false | false | zero |
72,383,830 | How to disable back arrow in DrawerLayout using Navigation Controller with fragments? | <p>I would like to prevent creating the backstack. I do not want the back arrow button to show up. What is the most elegant way to do this?</p>
<p>My code in Activity <code>OnCreate()</code></p>
<pre><code>setSupportActionBar(findViewById(R.id.toolbar))
supportActionBar?.setDisplayShowTitleEnabled(false)
supportActionB... | I would like to prevent creating the backstack. I do not want the back arrow button to show up. What is the most elegant way to do this? My code in Activity OnCreate() [CODE] And I navigate fragments using: [CODE] | android|kotlin|drawerlayout | 0 | 2022-05-25T20:31:07.890Z | 2,022 | 5 | 20 | 2 | 54 | 0 | 213 | 85 | 3 | 2 | true | true | false | false | false | false | zero |
72,383,849 | How to shuffle/randomize ImageView on Android Studio Using Java? | <p><a href="https://i.stack.imgur.com/rMZEr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rMZEr.jpg" alt="enter image description here" /></a></p>
<p>This is the app, in xml every image have ID and I instantiate them on Main Java file using ImageView img = findByID(R.id.imgViewOnXml), but I can't r... | This is the app, in xml every image have ID and I instantiate them on Main Java file using ImageView img = findByID(R.id.imgViewOnXml), but I can't randomize their position can someone help me how can I store them in an array, I'm having a trouble | java|arrays|xml|android-studio|logic | -1 | 2022-05-25T20:33:49.580Z | 2,022 | 5 | 20 | 2 | 30 | 1 | 247 | 64 | 5 | 0 | false | false | false | false | false | true | negative |
72,383,976 | Add shadow to this kind of drawable in XML | <p>I have such <a href="https://i.stack.imgur.com/9r1rO.png" rel="nofollow noreferrer">Drawable</a> XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:left="5dp" andro... | I have such Drawable XML: [CODE] And this is the image how it should look, what's the best way to add a shadow? I found Carbon library for material designs, but there is another problem: I can't change shadow direction(bottom to top) | android|android-layout | 0 | 2022-05-25T20:46:26.717Z | 2,022 | 5 | 20 | 2 | 32 | 0 | 233 | 42 | 2 | 1 | true | true | false | false | false | false | zero |
72,384,025 | Java.net.ConnectException:Connection refused, All Android Browsers wont connect to (https://t.co|https://g.co etc) links | <p>Hello I'm running Android 7.0 Nougat sdk 24 rooted and I'm having issues with all browsers connecting to <a href="https://t.co" rel="nofollow noreferrer">https://t.co</a> links from Twitter. I have used Android Studio logcat with the browsers and have confirmed its an issue with Java.net socket connection. I am gett... | Hello I'm running Android 7.0 Nougat sdk 24 rooted and I'm having issues with all browsers connecting to https://t.co links from Twitter. I have used Android Studio logcat with the browsers and have confirmed its an issue with Java.net socket connection. I am getting errors such as: [CODE] | java|android|https|socket.io|http-status-code-403 | 0 | 2022-05-25T20:50:55.250Z | 2,022 | 5 | 20 | 2 | 87 | 1 | 290 | 120 | 5 | 1 | true | false | false | false | false | false | zero |
72,384,386 | I cant use java script on flutter | <p>My JavaScript code is not working. I want to make a WebView application via flutter. but I want to remove some sections or customize some properties using JavaScript on flutter. I also removed header and footer but I cant customize container padding of the website using JavaScript. Its not working.</p>
<p>Here is t... | My JavaScript code is not working. I want to make a WebView application via flutter. but I want to remove some sections or customize some properties using JavaScript on flutter. I also removed header and footer but I cant customize container padding of the website using JavaScript. Its not working. Here is the code: [C... | javascript|reactjs|flutter|flutter-web|android-webview-javascript | 0 | 2022-05-25T21:30:36.950Z | 2,022 | 5 | 21 | 2 | 73 | 1 | 359 | 33 | 5 | 1 | true | false | false | false | false | false | zero |
72,384,507 | android studio create fragment missing checkbox | <p>When I click on new fragment I get this configure component box that has no checkboxes<a href="https://i.stack.imgur.com/MxYDt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MxYDt.png" alt="enter image description here" /></a></p>
<p>But what I want is this, with checkboxes<a href="https://i.stac... | When I click on new fragment I get this configure component box that has no checkboxes But what I want is this, with checkboxes I assume this is a problem with my studio config, but I cannot figure it out. Unless there is something else about fragments I am unaware of? | android-studio|android-fragments | 0 | 2022-05-25T21:47:11.710Z | 2,022 | 5 | 21 | 2 | 14 | 0 | 269 | 47 | 2 | 0 | false | true | false | false | false | false | zero |
72,384,528 | No signature of method: with flutter | <p>can anyone help solve this problem?</p>
<p><strong>FAILURE: Build failed with an exception.</strong></p>
<ul>
<li><p>Where:
Build file 'USER' line: 29</p>
</li>
<li><p>What went wrong:
A problem occurred evaluating project ':app'.
No signature of method: build_5m3vrzqpuwf7ewlzf5pa3dgnt.android() is applicable for ar... | can anyone help solve this problem? FAILURE: Build failed with an exception. Where: Build file 'USER' line: 29 What went wrong: A problem occurred evaluating project ':app'. No signature of method: build_5m3vrzqpuwf7ewlzf5pa3dgnt.android() is applicable for argument types: (build_5m3vrzqpuwf7ewlzf5pa3dgnt$_run_closure2... | android|flutter | 2 | 2022-05-25T21:50:26.980Z | 2,022 | 5 | 21 | 2 | 318 | 0 | 393 | 36 | 2 | 1 | true | true | false | false | false | false | low |
72,384,617 | Flutter: Binding has not yet been initialized | <p>After upgrading FLutter to <strong>3.0.0</strong> I got this error when using <strong>compute isolate</strong>,
knowing that I have initialized in main.dart:</p>
<pre><code>void main() async {
WidgetsFlutterBinding.ensureInitialized();
</code></pre> | After upgrading FLutter to 3.0.0 I got this error when using compute isolate , knowing that I have initialized in main.dart: [CODE] | android|flutter|flutter-layout | 0 | 2022-05-25T22:02:31.613Z | 2,022 | 5 | 22 | 2 | 889 | 2 | 131 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
72,384,735 | ForegroundServiceStartNotAllowedException even when app transitions from a user-visible state (Activity) | <p>I need to start a service to allow background audio playing when the user backgrounds the app:</p>
<pre><code>val intent = Intent(context, MyService::class.java)
ContextCompat.startForegroundService(context, intent)
</code></pre>
<p>This is fired in an Activity as the app is backgrounded. I'm detecting backgrounding... | I need to start a service to allow background audio playing when the user backgrounds the app: [CODE] This is fired in an Activity as the app is backgrounded. I'm detecting backgrounding apps by registering a LifecycleObserver and using this method: [CODE] The background notify is working correctly, but I'm still getti... | android|foreground-service | 3 | 2022-05-25T22:21:48.273Z | 2,022 | 5 | 22 | 2 | 85 | 0 | 720 | 104 | 2 | 2 | true | true | false | false | false | false | low |
72,384,736 | Retrieve Firebase data using Coroutines | <p>I'm trying to rewrite my program and start using Kotlin Coroutines.
That is my function to retrieve a list of products for a given group. After debugging it looks like everything is correct.</p>
<pre class="lang-kotlin prettyprint-override"><code>class FirebaseRepository {
private val db = FirebaseFirestore.get... | I'm trying to rewrite my program and start using Kotlin Coroutines. That is my function to retrieve a list of products for a given group. After debugging it looks like everything is correct. [CODE] That is my ViewModel class: [CODE] And finally in my fragment I'm trying to observe live data but looks like nothing is be... | android|firebase|kotlin|google-cloud-platform|google-cloud-firestore | 0 | 2022-05-25T22:22:07.173Z | 2,022 | 5 | 22 | 2 | 141 | 2 | 375 | 39 | 5 | 3 | true | false | false | false | false | false | zero |
72,384,763 | React Native targetSdkVersion 30 but play store shows 28 | <p>React Native targetSdkVersion is set to 30 but play store shows 28</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>ext {
buildToolsVersion = "30.0.2"
// buildToolsVe... | React Native targetSdkVersion is set to 30 but play store shows 28 [CODE] When I upload .aab file Google play says that my current targetSdkVersion is 28 but in /android/build.gradle it is 30 | android|react-native|google-play | 0 | 2022-05-25T22:27:17.483Z | 2,022 | 5 | 22 | 2 | 140 | 0 | 191 | 56 | 3 | 1 | true | true | false | false | false | false | zero |
72,384,974 | Problems updating quantity in menuitem in Android | <p>I am making an application that through a thread generates the load of the people that belong to a specific condition, but the number is not updated in the menuitem notification.</p>
<pre><code> @Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu (menu);
MenuInflater inflate... | I am making an application that through a thread generates the load of the people that belong to a specific condition, but the number is not updated in the menuitem notification. [CODE] In that thread I should change the number but nothing happens, until I click on the icon, it seems that it needs to refresh the icon, ... | android|android-studio | 0 | 2022-05-25T23:00:04.463Z | 2,022 | 5 | 23 | 2 | 19 | 1 | 418 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
72,385,154 | Incorrect use of ParentDataWidget. Exception | <h2>Problem</h2>
<p>I build home page for my app but get <code>Incorrect use of ParentDataWidget</code> exception. At first I though it was because <code>Expanded</code> but I remove all of them still getting an exception then commented like 90% of my code and still getting the exception. I don't know where the error i... | Problem I build home page for my app but get Incorrect use of ParentDataWidget exception. At first I though it was because Expanded but I remove all of them still getting an exception then commented like 90% of my code and still getting the exception. I don't know where the error is. witch Widget coursing the exception... | flutter|android-studio|dart | 0 | 2022-05-25T23:33:41.247Z | 2,022 | 5 | 23 | 2 | 20 | 0 | 357 | 44 | 3 | 1 | true | true | false | false | false | false | zero |
72,385,215 | Android Studio Chipmunk 2021.2.1 - SMS Messages wont work 5/25/2022 | <p>I have been working to make a simple SMS app with Android Studio Chipmunk 2021.2.1, but none of my attempts to receive SMS have worked.</p>
<p>I am able to send messages from the emulator and on my devices. Although, I can't receive SMS messages with help from any example or tutorial I have found, using a device or ... | I have been working to make a simple SMS app with Android Studio Chipmunk 2021.2.1, but none of my attempts to receive SMS have worked. I am able to send messages from the emulator and on my devices. Although, I can't receive SMS messages with help from any example or tutorial I have found, using a device or emulator. ... | java|android|broadcastreceiver|sms|android-permissions | 1 | 2022-05-25T23:45:01.160Z | 2,022 | 5 | 23 | 2 | 276 | 0 | 2,272 | 67 | 5 | 0 | false | true | false | false | false | false | low |
72,385,561 | How to sync a ValueAnimator with a MediaPlayer loop? | <p>My app plays a few seconds wav song in a loop through <code>MediaPlayer.setLooping(true)</code>, and I want an indicator (a simple 3dp width view) that moves on the screen showing the progress, starting over at the left when the song restarts in the loop.</p>
<p>One way of doing this is through a <code>HandlerTask</... | My app plays a few seconds wav song in a loop through MediaPlayer.setLooping(true) , and I want an indicator (a simple 3dp width view) that moves on the screen showing the progress, starting over at the left when the song restarts in the loop. One way of doing this is through a HandlerTask like this: [CODE] This works,... | android|loops|synchronization|repeat|animator | 0 | 2022-05-26T00:56:03.797Z | 2,022 | 5 | 0 | 3 | 22 | 0 | 1,280 | 52 | 5 | 4 | true | true | false | false | false | false | zero |
72,385,679 | Fetch Firebase Crashlytics logs using Github Actions | <p>I am using Github actions in my project for CI/CD. I want to fetch top crashes from Firebase crashlytics but somehow I can't seem to find a way to do it. Basically, it would be a cron job, I don't need help in creating a cron job using Github actions, I know how to do it. I need help in how can I connect to Firebase... | I am using Github actions in my project for CI/CD. I want to fetch top crashes from Firebase crashlytics but somehow I can't seem to find a way to do it. Basically, it would be a cron job, I don't need help in creating a cron job using Github actions, I know how to do it. I need help in how can I connect to Firebase cr... | github-actions|crashlytics|crashlytics-android | 0 | 2022-05-26T01:22:45.230Z | 2,022 | 5 | 1 | 3 | 27 | 0 | 352 | 52 | 3 | 0 | false | true | false | false | false | false | zero |
72,385,708 | View getting cut off when using React Navigation Header | <p>My view is getting cut off on android with React Navigation's header (it works fine on IOS). I have tried changing the windowSoftInputMode to adjustPan to no avail. No matter what content I put in the View it gets cut off. Heres a minimal version of the code:</p>
<pre><code>page.jsx
<View style={styles.container}... | My view is getting cut off on android with React Navigation's header (it works fine on IOS). I have tried changing the windowSoftInputMode to adjustPan to no avail. No matter what content I put in the View it gets cut off. Heres a minimal version of the code: [CODE] [CODE] | android|react-native | 1 | 2022-05-26T01:28:10.723Z | 2,022 | 5 | 1 | 3 | 56 | 0 | 273 | 55 | 2 | 2 | true | true | false | false | false | false | low |
72,385,722 | How do I execute local/remote sync commands sequentially? Android Architecture, Retrofit and Room database | <p>I have a few tables I need to sync between my remote database and my local room database.<br>
Basically, if remote users add to the remote tables and local users add to the local tables, there are now duplicate ids representing different table entries.<br>
When the user hits the sync button, the ids in the local tab... | I have a few tables I need to sync between my remote database and my local room database. Basically, if remote users add to the remote tables and local users add to the local tables, there are now duplicate ids representing different table entries. When the user hits the sync button, the ids in the local tables are cha... | java|android-studio|synchronization|android-room | 0 | 2022-05-26T01:31:05.607Z | 2,022 | 5 | 1 | 3 | 29 | 0 | 1,393 | 106 | 4 | 4 | true | true | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.