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,745,411 | Foreground Service and Progress | <p>Hi Im new in coding and I need some help.
Im trying to create a foreground download service with a progress notification. And I made a foreground service after run the app it worked really good, then I added download task; after run the app it worked again but with little freezing, then I added progress notification... | Hi Im new in coding and I need some help. Im trying to create a foreground download service with a progress notification. And I made a foreground service after run the app it worked really good, then I added download task; after run the app it worked again but with little freezing, then I added progress notification an... | android|android-asynctask|android-notifications|progress|foreground-service | 0 | 2022-09-16T13:17:17.800Z | 2,022 | 9 | 13 | 4 | 25 | 0 | 532 | 31 | 5 | 1 | true | true | false | false | false | false | zero |
73,745,427 | Is there a public repo to change translations in Android OS? | <p>I have seen a typo in the Android OS (dutch language). I searched the web, but I can't seem to find a place / repo / .... where I can signal this mistake.</p>
<p>Is there a repo where I can change the code and do a PR. Or is there another tool they are using to track translations? Or does somebody know an issuetrack... | I have seen a typo in the Android OS (dutch language). I searched the web, but I can't seem to find a place / repo / .... where I can signal this mistake. Is there a repo where I can change the code and do a PR. Or is there another tool they are using to track translations? Or does somebody know an issuetracker? | android | 0 | 2022-09-16T13:19:05.563Z | 2,022 | 9 | 13 | 4 | 12 | 0 | 313 | 60 | 1 | 0 | false | true | false | false | false | false | zero |
73,745,578 | How to preview video from react-native-image-picker in react native cli | <p>I'm working on a react native CLI, pure JavaScript eCommerce mobile application that requires users to upload a short video of 30 seconds. The design is that you upload and preview the video before sending it to the API.</p>
<p>What is the best package to use for this?</p>
<p>I'm using react-native-image-picker to p... | I'm working on a react native CLI, pure JavaScript eCommerce mobile application that requires users to upload a short video of 30 seconds. The design is that you upload and preview the video before sending it to the API. What is the best package to use for this? I'm using react-native-image-picker to pick both the vide... | android|ios|react-native|react-native-video|react-native-image-picker | 0 | 2022-09-16T13:30:45.160Z | 2,022 | 9 | 13 | 4 | 15 | 0 | 781 | 71 | 5 | 3 | true | true | false | false | false | false | zero |
73,745,951 | How could I close my sidebar without closing my app in C# xamarin forms android? | <p>I'm working with C# xamarin forms android and I'm trying to close my sidebar when the user touches de backbuttom but I'm not able to do it. Instead, my aplications closeses.</p>
<p>HomePage.xaml.cs code:</p>
<pre><code>public partial class HomePage : ContentPage
{
string[] subs;
public HomePage()
{
... | I'm working with C# xamarin forms android and I'm trying to close my sidebar when the user touches de backbuttom but I'm not able to do it. Instead, my aplications closeses. HomePage.xaml.cs code: [CODE] my sidebar AppShell.xaml.cs code: [CODE] Image of my app: How could I resolve that? Thank tou very much! | c#|xamarin|xamarin.forms|xamarin.android | 0 | 2022-09-16T14:00:18.370Z | 2,022 | 9 | 14 | 4 | 24 | 1 | 308 | 80 | 4 | 2 | true | false | false | false | false | false | zero |
73,746,001 | How can Achive this in android with SwipeRefreshLayout | <p>This the design I want to achieve
[1]: <a href="https://i.stack.imgur.com/F29kh.png" rel="nofollow noreferrer">https://i.stack.imgur.com/F29kh.png</a></p> | This the design I want to achieve [1]: https://i.stack.imgur.com/F29kh.png | android|xml | -3 | 2022-09-16T14:03:33.713Z | 2,022 | 9 | 14 | 4 | 21 | 0 | 74 | 54 | 2 | 0 | false | true | false | false | false | true | negative |
73,746,005 | screen resolution bigger than size limit | <p>I need to set higher screen resolution with adb</p>
<p>i aware of this command</p>
<pre class="lang-bash prettyprint-override"><code>adb shell wm size 1080x2246
</code></pre>
<p>I can duplicate until <code>2160x2048</code> size.</p>
<p>But if I set higher resolution (for example <code>2732x2048</code>) this size it ... | I need to set higher screen resolution with adb i aware of this command [CODE] I can duplicate until 2160x2048 size. But if I set higher resolution (for example 2732x2048 ) this size it automatically set to 2160x2048 Is there any option to pass this limit? Is it harmful for device change higher than this limit? | android|adb|screen-resolution | 0 | 2022-09-16T14:04:04.050Z | 2,022 | 9 | 14 | 4 | 11 | 0 | 312 | 40 | 3 | 1 | true | true | false | false | false | false | zero |
73,746,238 | Android API 12+ Download file access | <p>I have an android app that downloads a zip file into the public downloads folder and then tries to unzip it. With the new file permissions in android 12, the only way I have been able to get this to work is by using the <code>MANAGE_EXTERNAL_STORAGE</code> permission. However, the play store keeps rejecting my app. ... | I have an android app that downloads a zip file into the public downloads folder and then tries to unzip it. With the new file permissions in android 12, the only way I have been able to get this to work is by using the MANAGE_EXTERNAL_STORAGE permission. However, the play store keeps rejecting my app. How can I perfor... | android|android-permissions|android-12 | 0 | 2022-09-16T14:21:45.320Z | 2,022 | 9 | 14 | 4 | 35 | 0 | 441 | 36 | 3 | 1 | true | true | false | false | false | false | zero |
73,746,270 | Issue with empty queryProductDetailsAsync | <p>I have an issue retrieving product details, I have setup in my google play console this way:</p>
<p><a href="https://i.stack.imgur.com/PnpB1.png" rel="nofollow noreferrer">my google play config</a></p>
<p>And I have done the following:</p>
<pre><code>myLog("MYAPP-TEST---1")
val purchasesUpdatedListener =
... | I have an issue retrieving product details, I have setup in my google play console this way: my google play config And I have done the following: [CODE] And I keep getting those debugs 2022-09-16 16:04:17.983 13457-13457/com.my.app D/MainActivity: MYAPP-TEST---1 2022-09-16 16:04:18.012 13457-13457/com.my.app D/MainActi... | android|kotlin|play-billing-library | 1 | 2022-09-16T14:23:32.310Z | 2,022 | 9 | 14 | 4 | 35 | 0 | 748 | 41 | 3 | 1 | true | true | false | false | false | false | low |
73,746,276 | Runtime Bluetooth permission not showing in jetpack compose | <p>I want to request runtime permission. But it only show one request. Can someone guide me how can I achieve this in jetpack compose. I am using compose <code>1.1.1</code> and using <a href="https://google.github.io/accompanist/permissions/" rel="nofollow noreferrer">accompanist-permissions</a> with <code>0.23.1</code... | I want to request runtime permission. But it only show one request. Can someone guide me how can I achieve this in jetpack compose. I am using compose 1.1.1 and using accompanist-permissions with 0.23.1 version. I declare permission in my manifest according to this official doc .. In Manifest.xml [CODE] I tried this pi... | android|kotlin|android-jetpack-compose|android-jetpack|jetpack-compose-accompanist | 0 | 2022-09-16T14:23:41.690Z | 2,022 | 9 | 14 | 4 | 32 | 1 | 501 | 59 | 5 | 4 | true | false | false | false | false | false | zero |
73,746,284 | Query for existing rows with composite primary key in android sqlite | <p>I have a table with a composite primary key.</p>
<pre><code>@Entity(
tableName = "my_table",
primaryKeys = ["key1", "key2, "key3"]
)
data class MyTable(
@ColumnInfo(name = "key1")
val key1: Int,
@ColumnInfo(name = "key2)
val key2: Int,
@ColumnI... | I have a table with a composite primary key. [CODE] I am fetching new records from a remote datasource, when I get back those records I would like to determine which records are not already in the database based on the composite primary key. I think with SQL I could have used something like this to determine all alread... | android|sqlite|android-sqlite|android-room|sql-in | 0 | 2022-09-16T14:24:13.053Z | 2,022 | 9 | 14 | 4 | 39 | 1 | 566 | 68 | 5 | 2 | true | false | false | false | false | false | zero |
73,746,584 | Dao errors in every project with Room | <p>This app is taken from an android course from their site. Once I re-download the same exact code the errors are not present. The code is the same but one has errors.
[Errors are shown in the image][1]
[1]: https://i.stack.imgur.com/zkk8e.png</p>
<p>Dao</p>
<pre><code>```import androidx.room.Dao
import androidx.room.... | This app is taken from an android course from their site. Once I re-download the same exact code the errors are not present. The code is the same but one has errors. [Errors are shown in the image][1] [1]: https://i.stack.imgur.com/zkk8e.png Dao [CODE] Entity [CODE] Most android applications generate errors like these ... | android|kotlin|android-room|kotlin-coroutines|dao | 0 | 2022-09-16T14:43:02.103Z | 2,022 | 9 | 14 | 4 | 17 | 0 | 364 | 37 | 5 | 2 | true | true | false | false | false | false | zero |
73,746,615 | how to install dependencies in android gradle in unity app? | <p>i am writing android plugin for unity, android library has many dependencies, these dependencies normally included by android client app, but since i am writing wrapper for unity, i don't know how can i add these depedencies in unity project?</p>
<pre><code>implementation 'androidx.core:core-ktx:1.8.0'
implement... | i am writing android plugin for unity, android library has many dependencies, these dependencies normally included by android client app, but since i am writing wrapper for unity, i don't know how can i add these depedencies in unity project? [CODE] | android|unity3d | 0 | 2022-09-16T14:45:43.240Z | 2,022 | 9 | 14 | 4 | 18 | 0 | 249 | 59 | 2 | 1 | true | true | false | false | false | false | zero |
73,746,628 | How to create mask for shape in Android | <p>In my application I want show wave animation for custom shape (such as water drop).<br>
I want use this library for wave animation : <a href="https://github.com/scwang90/MultiWaveHeader" rel="nofollow noreferrer">enter link description here</a></p>
<p>But I want show this wave animation into custom shape, such as be... | In my application I want show wave animation for custom shape (such as water drop). I want use this library for wave animation : enter link description here But I want show this wave animation into custom shape, such as below image : I think if add this shape with SVG into android and create mask for this I can show wa... | android | -1 | 2022-09-16T14:47:08.890Z | 2,022 | 9 | 14 | 4 | 24 | 0 | 375 | 39 | 1 | 0 | false | true | false | false | false | true | negative |
73,746,675 | Sqlite record not inserted | <p>I have the following code but if I add one more column it doesn't insert the record.
The column I try to insert is date. If I remove this column everything works but if I add the column date then the exception Record not Added appears.</p>
<pre><code>public void insert(){
try {
String name = ed1.getText(... | I have the following code but if I add one more column it doesn't insert the record. The column I try to insert is date. If I remove this column everything works but if I add the column date then the exception Record not Added appears. [CODE] | android|android-studio|android-layout | 1 | 2022-09-16T14:51:45.503Z | 2,022 | 9 | 14 | 4 | 28 | 1 | 242 | 26 | 3 | 1 | true | false | false | false | false | false | low |
73,746,692 | How to add contact and photos in Android Emulator before starting a Appium Test | <p>So, I am testing an app using Appium in which I need to perform below scenarios</p>
<ol>
<li>Upload a photo in the app</li>
<li>Select a contact from the app</li>
</ol>
<p>This needs to be tested in both Android and iOS. We have a default contact and photos in iOS which we are able to use but the issue in with Andro... | So, I am testing an app using Appium in which I need to perform below scenarios Upload a photo in the app Select a contact from the app This needs to be tested in both Android and iOS. We have a default contact and photos in iOS which we are able to use but the issue in with Android. In Android, we don't have any defau... | python|android|android-emulator|appium | 0 | 2022-09-16T14:53:24.507Z | 2,022 | 9 | 14 | 4 | 9 | 0 | 805 | 79 | 4 | 0 | false | true | false | false | false | false | zero |
73,746,764 | How can I retrieve latitude and longitude fields from all Firebase Firestore documents? | <p><img src="https://i.stack.imgur.com/4TMJ0.png" alt="I attach my database" /></p>
<p>Each user registered in the "Users" collection has a field of "latitude" and "longitude" of type double.</p>
<p>Basically, I want to get all the latitude and longitude fields to insert different location... | Each user registered in the "Users" collection has a field of "latitude" and "longitude" of type double. Basically, I want to get all the latitude and longitude fields to insert different locations on the map, similar to this, but getting them from Firestore, as well as captioning them wit... | java|android|firebase|google-cloud-platform|google-cloud-firestore | -2 | 2022-09-16T14:57:55.660Z | 2,022 | 9 | 14 | 4 | 38 | 1 | 364 | 87 | 5 | 1 | true | false | false | false | false | true | negative |
73,746,784 | kotlin.UninitializedPropertyAccessException: lateinit property backendApi has not been initialized in UniTest? | <p>I am writing unit test for my viewmodel but when I run test I am getting following exception
lateinit property backendApi has not been initialized I want to know where exactly I am making problem</p>
<pre><code> kotlin.UninitializedPropertyAccessException: lateinit property backendApi has not been initialized
... | I am writing unit test for my viewmodel but when I run test I am getting following exception lateinit property backendApi has not been initialized I want to know where exactly I am making problem [CODE] ) below my SignViewModelTest.kt [CODE] I want to know where I am making wrong I have following all possible answer on... | android|unit-testing|kotlin|mockito|viewmodel | 0 | 2022-09-16T14:59:05.713Z | 2,022 | 9 | 14 | 4 | 36 | 2 | 362 | 110 | 5 | 2 | true | false | false | false | false | false | zero |
73,746,810 | JetBrains toolbox couldn't recognize the android Studio already installed in my PC and its version | <p>I installed JetBrains toolbox in-order to auto update the Android Studio as instructed by the Studio itself. After installation of JetBrains toolbox, I found that JetBrains toolbox couldn't find the Android Studio which is installed on the PC and asked me to redownload it via the toolbar itself. After I redownloaded... | I installed JetBrains toolbox in-order to auto update the Android Studio as instructed by the Studio itself. After installation of JetBrains toolbox, I found that JetBrains toolbox couldn't find the Android Studio which is installed on the PC and asked me to redownload it via the toolbar itself. After I redownloaded th... | android|android-studio|jetbrains-toolbox | 0 | 2022-09-16T15:01:41.970Z | 2,022 | 9 | 15 | 4 | 35 | 1 | 605 | 98 | 3 | 0 | false | false | false | false | false | false | zero |
73,746,957 | Java '-Xbootclasspath' not working on M1 mac | <p>I have a problem setting up Android project on M1 Mac, please help. No problem on Intel Mac. I think there is a problem with the gradle configuration.
'cannot find symbol' occurs because the external library <code>frameworks.jar</code> is not referenced first.</p>
<p>Code:</p>
<pre><code> gradle.projectsEvaluated {
... | I have a problem setting up Android project on M1 Mac, please help. No problem on Intel Mac. I think there is a problem with the gradle configuration. 'cannot find symbol' occurs because the external library frameworks.jar is not referenced first. Code: [CODE] gradle version is 4.1.2. | java|android|gradle|apple-m1|apple-silicon | 0 | 2022-09-16T15:14:10.883Z | 2,022 | 9 | 15 | 4 | 23 | 0 | 285 | 44 | 5 | 1 | true | true | false | false | false | false | zero |
73,747,298 | How to play end screen videos inside app in youtube player | <p>i'm using google youtubeplayer inside my app.
I Trying to play end screen videos inside my app but it’s redirecting me to the YouTube app.</p>
<p>now how can i solve this.</p>
<p>sorry for my English</p> | i'm using google youtubeplayer inside my app. I Trying to play end screen videos inside my app but it’s redirecting me to the YouTube app. now how can i solve this. sorry for my English | android|android-studio|youtube|youtube-api|android-youtube-api | 0 | 2022-09-16T15:42:50.087Z | 2,022 | 9 | 15 | 4 | 13 | 0 | 185 | 58 | 5 | 0 | false | true | false | false | false | false | zero |
73,747,388 | Unable to observe Viewmodel from one fragment but works from different fragment in Android [Kotlin] | <p>In a weird scenario, I am able to fetch the response from an API and see it in one of the fragments by observing the livedata from viewmodel but it doesn't show any response in a different fragment.</p>
<p>I have a fragment where I put some values and these values are further pass through viewmodel -> repository ... | In a weird scenario, I am able to fetch the response from an API and see it in one of the fragments by observing the livedata from viewmodel but it doesn't show any response in a different fragment. I have a fragment where I put some values and these values are further pass through viewmodel -> repository to fetch the ... | android|kotlin|android-fragments|viewmodel|android-livedata | 0 | 2022-09-16T15:50:58.510Z | 2,022 | 9 | 15 | 4 | 39 | 2 | 1,493 | 99 | 5 | 2 | true | false | false | false | false | false | zero |
73,747,439 | how to change background color of button in Kotlin? | <p>I recently started android and I am creating a simple login screen without any function. I created a new xml file to change the corners and background color. Changing corners do work but color does not. I also added extra color which I want to fill into the colors.xml file in values, but it does not work. I would li... | I recently started android and I am creating a simple login screen without any function. I created a new xml file to change the corners and background color. Changing corners do work but color does not. I also added extra color which I want to fill into the colors.xml file in values, but it does not work. I would like ... | android|android-studio|kotlin | 0 | 2022-09-16T15:54:29.200Z | 2,022 | 9 | 15 | 4 | 34 | 1 | 451 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
73,747,564 | How to change background color of button in flutter when selected? | <p>the image of an issue is as following</p>
<p><img src="https://i.stack.imgur.com/ghGZT.png" alt="Image" /></p> | the image of an issue is as following | flutter|android-studio|dart | 0 | 2022-09-16T16:04:04.023Z | 2,022 | 9 | 16 | 4 | 27 | 1 | 37 | 66 | 3 | 0 | false | false | false | false | false | false | zero |
73,747,581 | Android + Hilt: Which classes should I inject which not? | <p>There's one concept that's difficult to catch for me regarding DI: Why should I inject this class and not this other one?</p>
<p>My problem arises in concrete with helper classes.</p>
<p>I'm working on a multi-module Android app and using Hilt for DI, and my app has many helper classes which I'm continuously doubtin... | There's one concept that's difficult to catch for me regarding DI: Why should I inject this class and not this other one? My problem arises in concrete with helper classes. I'm working on a multi-module Android app and using Hilt for DI, and my app has many helper classes which I'm continuously doubting wether to injec... | android|dependency-injection|helper|dagger-hilt | 0 | 2022-09-16T16:05:13.437Z | 2,022 | 9 | 16 | 4 | 29 | 0 | 1,142 | 56 | 4 | 0 | false | true | false | false | false | false | zero |
73,747,661 | Kotlin coroutines: suspended function works on first call but not subsequent calls | <p>apologies if this is trivial - I am new to Kotlin and coroutines (read <a href="https://elizarov.medium.com/structured-concurrency-722d765aa952" rel="nofollow noreferrer">Elizarov etc.</a>)</p>
<p>I have an Activity that, in its onCreate(), needs to get a price from the Play Store. I wrote this:</p>
<pre><code>...
l... | apologies if this is trivial - I am new to Kotlin and coroutines (read Elizarov etc. ) I have an Activity that, in its onCreate(), needs to get a price from the Play Store. I wrote this: [CODE] Then, the helper's getProductDetails() I copy-pasted from the docs (notice suspend): [CODE] The problem: The Activity can requ... | android|kotlin|android-activity|kotlin-coroutines | 1 | 2022-09-16T16:12:46.090Z | 2,022 | 9 | 16 | 4 | 37 | 2 | 564 | 82 | 4 | 2 | true | false | false | false | false | false | low |
73,747,823 | Can you export app to IOS using Flutter plugin in Android Studio? | <p>I create an app using JavaScript, but unfortunately, it's only for Android now. I was wondering whether you know if I add the Flutter plugin in Android Studio can I export it to Ios?</p> | I create an app using JavaScript, but unfortunately, it's only for Android now. I was wondering whether you know if I add the Flutter plugin in Android Studio can I export it to Ios? | javascript|java|ios|flutter|android-studio | 0 | 2022-09-16T16:27:10.833Z | 2,022 | 9 | 16 | 4 | 15 | 0 | 182 | 65 | 5 | 0 | false | true | false | false | false | false | zero |
73,747,825 | Blackscreen when changing Activity in Android Studio | <p>I have a <code>ListView</code> with clickable <code>ListItems</code> that display a Friend objects name and birthday. The <code>onClick</code> is supposed to start a new Activity with an edit page where you can change the name and birthday of said friend. For this I start a new activity with an Intent containing a S... | I have a ListView with clickable ListItems that display a Friend objects name and birthday. The onClick is supposed to start a new Activity with an edit page where you can change the name and birthday of said friend. For this I start a new activity with an Intent containing a Serialized Friend object. The Activity work... | android|kotlin | 0 | 2022-09-16T16:27:14.520Z | 2,022 | 9 | 16 | 4 | 25 | 0 | 638 | 52 | 2 | 4 | true | true | false | false | false | false | zero |
73,747,886 | Send Local SMS using mobile apps while apps received HTTP request | <p>I have a question in my mind and the possibility of this.
Is it possible to make a mobile apps that will receive HTTP or SMPP request and read the recipient number and message from that HTTP/smpp request and send SMS to recipient number with that message.
Is it possible or its actually exist?</p> | I have a question in my mind and the possibility of this. Is it possible to make a mobile apps that will receive HTTP or SMPP request and read the recipient number and message from that HTTP/smpp request and send SMS to recipient number with that message. Is it possible or its actually exist? | android|mobile|smsmanager|smpp | 0 | 2022-09-16T16:33:48.980Z | 2,022 | 9 | 16 | 4 | 12 | 1 | 293 | 65 | 4 | 0 | false | false | false | false | false | false | zero |
73,747,981 | AdMob not showing test ads: Error Code 3 - "No ad config." | <p>I'm creating a project with the newest admob version, and I'm using admob test ids for testing ads:</p>
<p><a href="https://developers.google.com/admob/android/test-ads" rel="nofollow noreferrer">https://developers.google.com/admob/android/test-ads</a></p>
<pre><code>App id --- ca-app-pub-3940256099942544~3347511713... | I'm creating a project with the newest admob version, and I'm using admob test ids for testing ads: https://developers.google.com/admob/android/test-ads [CODE] Something isn't work properly, because both formats are giving me error: [CODE] How can I display test ads? why the official test ids doesn't works? I'm testing... | android|admob | 0 | 2022-09-16T16:42:55.790Z | 2,022 | 9 | 16 | 4 | 30 | 1 | 415 | 58 | 2 | 2 | true | false | false | false | false | false | zero |
73,748,000 | total noob with emulator problems | <p>I am attempting to learn to code via flutter (I'm a total noob) and I am having some troubles with my emulator when I am trying to test my code. I am using Visual Studio Code, and when i try to boot my emulator, the phone will appear but the screen is completely blank. the power button (on the emulator) is unrespon... | I am attempting to learn to code via flutter (I'm a total noob) and I am having some troubles with my emulator when I am trying to test my code. I am using Visual Studio Code, and when i try to boot my emulator, the phone will appear but the screen is completely blank. the power button (on the emulator) is unresponsive... | flutter|visual-studio|dart|visual-studio-code|android-emulator | 2 | 2022-09-16T16:45:06.707Z | 2,022 | 9 | 16 | 4 | 21 | 1 | 988 | 33 | 5 | 0 | false | false | false | false | false | false | low |
73,748,003 | How can I hide the back and hamburger buttons inside LanguageFragment? | <p><em>The <code>languageFragment</code> is the start destination</em></p>
<pre><code><navigation app:startDestination="@id/languageFragment">
</code></pre>
<p><em>The user when opening the app will choose the language first and after choosing the language, I'll navigate him to <code>homeFragment</code>... | The languageFragment is the start destination [CODE] The user when opening the app will choose the language first and after choosing the language, I'll navigate him to homeFragment What is the problem? The languageFragment is the start destination so it must not show the back button in the toolbar, but unfortunately, t... | android|android-fragments|android-architecture-navigation|android-navigation | 0 | 2022-09-16T16:45:18.593Z | 2,022 | 9 | 16 | 4 | 25 | 0 | 844 | 70 | 4 | 3 | true | true | false | false | false | false | zero |
73,748,186 | How to install latest version app from android studio as an "Update" in phone so that it won't lose app data | <p><strong>I Tried</strong> :</p>
<ol>
<li><p>Running signed release apk by adding signing configs of "release" from gradle through android studio, but it says <em>"The device already has an application with the same package but a different signature".</em></p>
</li>
<li><p>Creating signed apk from ... | I Tried : Running signed release apk by adding signing configs of "release" from gradle through android studio, but it says "The device already has an application with the same package but a different signature". Creating signed apk from generate/build menu and then copying the apk via USB and insta... | android|android-studio | 0 | 2022-09-16T17:02:33.943Z | 2,022 | 9 | 17 | 4 | 28 | 0 | 796 | 108 | 2 | 0 | false | true | false | false | false | false | zero |
73,748,251 | Flutter causes Error: DioError [DioErrorType.response]: XMLHttpRequest error | <pre><code>import 'package:flutter/material.dart';
import 'dart:async';
import 'package:dio/dio.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
static const nycLat = 40... | [CODE] Here is my code of searching nearby places list. I followed exactly the same thing from this video = https://www.youtube.com/watch?v=EtYLyWnW8f8 And what I only changed is the 'data:parameters' part in the end because it shows red underline error so I changed to 'queryParameters:parameters'. But the error 'Error... | android|flutter|dart|dio | 0 | 2022-09-16T17:10:19.040Z | 2,022 | 9 | 17 | 4 | 41 | 0 | 556 | 76 | 4 | 2 | true | true | false | false | false | false | zero |
73,748,335 | Filtering data is not working in firestore android | <p>I am working on an application where I have filtered my data from firestore but it is not working please guide me on where I am mistaking the code. it is neither showing any error or exception i have no idea where it is going wrong??</p>
<p><strong>code for the filtering data in my recyclerview</strong></p>
<pre><co... | I am working on an application where I have filtered my data from firestore but it is not working please guide me on where I am mistaking the code. it is neither showing any error or exception i have no idea where it is going wrong?? code for the filtering data in my recyclerview [CODE] CODE FOR THE SEARCHVIEW IN MAINA... | java|android|firebase|google-cloud-firestore | 2 | 2022-09-16T17:19:10.593Z | 2,022 | 9 | 17 | 4 | 70 | 1 | 464 | 50 | 4 | 5 | true | false | false | false | false | false | low |
73,748,359 | Is it possible for my Android App to be notified when an Android user setting has been updated? | <p>My app does not work without Notification Access, and I want to display a warning when it is on or off.</p>
<p>Is there a way I can monitor this setting without just polling it? Like is there something I can subscribe to that will automatically update me what this setting is changed?</p>
<p>I have tried the followin... | My app does not work without Notification Access, and I want to display a warning when it is on or off. Is there a way I can monitor this setting without just polling it? Like is there something I can subscribe to that will automatically update me what this setting is changed? I have tried the following code, but it is... | android | 0 | 2022-09-16T17:22:14.913Z | 2,022 | 9 | 17 | 4 | 24 | 1 | 366 | 95 | 1 | 1 | true | false | false | false | false | false | zero |
73,748,379 | Why do these two methods shows different results? | <p>I was trying to fetch an arraylist from Firestore using coroutine kotlin. I wrote two different methods to get same result. These are the methods</p>
<p><strong>MethodA</strong></p>
<pre><code>fun methodA(type: String) {
CoroutineScope(IO).launch {
val myList = mutableListOf<Product>()
... | I was trying to fetch an arraylist from Firestore using coroutine kotlin. I wrote two different methods to get same result. These are the methods MethodA [CODE] MethodB [CODE] I was expecting to get same result from these two methods but MethodA returns an empty list while MethodB returns list of item. How do i fix my ... | android|kotlin|google-cloud-firestore|kotlin-coroutines | 0 | 2022-09-16T17:24:19.423Z | 2,022 | 9 | 17 | 4 | 40 | 1 | 368 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
73,748,598 | Flutter Connected device (the doctor check crashed) | <p>I have installed flutter without android studio. I run it on windows 8.1. All runs well but I had one type of error that keeps saying <code>Connected device (the doctor check crashed)</code>. After that, I can't launch the emulator too.</p>
<p>Here is the error I got when run <code>flutter doctor</code>. Anyway, I a... | I have installed flutter without android studio. I run it on windows 8.1. All runs well but I had one type of error that keeps saying Connected device (the doctor check crashed) . After that, I can't launch the emulator too. Here is the error I got when run flutter doctor . Anyway, I also tried to enable and disable th... | android|flutter|flutter-doctor | 0 | 2022-09-16T17:47:50.627Z | 2,022 | 9 | 17 | 4 | 23 | 1 | 442 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
73,748,599 | startActivityForResult is deprecated in Java | <p>I've been trying to do a list view in android.
I tried to add a feature where when you press an item, it will send you to an edit page, letting you edit the parameters of the item.
To do so, I used an Intent.
I tried:</p>
<pre><code>@Override
public void onItemClick(AdapterView<?> adapterView, View... | I've been trying to do a list view in android. I tried to add a feature where when you press an item, it will send you to an edit page, letting you edit the parameters of the item. To do so, I used an Intent. I tried: [CODE] But for some reason there's a line on the startActivityForResult... And when I try to click an ... | java|android|android-studio | -1 | 2022-09-16T17:47:59.780Z | 2,022 | 9 | 17 | 4 | 35 | 0 | 445 | 44 | 3 | 1 | true | true | false | false | false | true | negative |
73,748,742 | How to display nested data in FirestoreRecycler? | <p>I've been reading about how to display data in a <code>RecyclerView</code> through <code>FirestoreRecycler</code>, and came across some questions in StackOverflow and this <a href="https://medium.com/firebase-tips-tricks/how-to-map-an-array-of-objects-from-cloud-firestore-to-a-list-of-objects-122e579eae10" rel="nofo... | I've been reading about how to display data in a RecyclerView through FirestoreRecycler , and came across some questions in StackOverflow and this post . However, my case seems to be somewhat different, and I'm struggling with my custom class made to read the data from the Firestore Database and map it into my Model ob... | java|android|google-cloud-firestore | 0 | 2022-09-16T18:04:40.407Z | 2,022 | 9 | 18 | 4 | 54 | 0 | 1,115 | 48 | 3 | 4 | true | true | false | false | false | false | zero |
73,748,766 | How to share viewmodel between two fragments which belong to two different activities | <p>I am trying to understand how can I use my same viewmodel across different fragments which even belongs to different activities.</p>
<p>So let's say I have Activity1 with Fragment A, Fragment B and Activity2 with Fragment C. How do I create a single instance of viewmodel that I can use across all these fragments.</p... | I am trying to understand how can I use my same viewmodel across different fragments which even belongs to different activities. So let's say I have Activity1 with Fragment A, Fragment B and Activity2 with Fragment C. How do I create a single instance of viewmodel that I can use across all these fragments. I tried unde... | android|kotlin|android-fragments|viewmodel|android-livedata | 1 | 2022-09-16T18:07:37.303Z | 2,022 | 9 | 18 | 4 | 42 | 2 | 665 | 85 | 5 | 0 | false | false | false | false | false | false | low |
73,748,790 | How to resolve two different classes with the same name in dependencies | <p>I will say right away that I have not found the answer to the question below anywhere.</p>
<p>In <code>build.gradle(:app)</code> I have:</p>
<pre><code>...
implementation platform('com.google.firebase:firebase-bom:30.4.1')
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebas... | I will say right away that I have not found the answer to the question below anywhere. In build.gradle(:app) I have: [CODE] After adding: [CODE] During Rebuilding Project I got an error message specifically: Duplicate class com.google.api.Advice found in modules jetified-proto-google-common-protos-2.9.2 (com.google.api... | android|firebase|gradle|google-cloud-platform|dependencies | 0 | 2022-09-16T18:10:03.883Z | 2,022 | 9 | 18 | 4 | 102 | 0 | 1,034 | 71 | 5 | 4 | true | true | false | false | false | false | zero |
73,748,866 | Matching font size to another font size in Android | <p>I have 3 text views on the screen. The first is guaranteed to be the longest with the other two shorter than it. I am using autoSizeText in the layout (shown below) to set the font size for the first one. This works as expected.</p>
<pre><code> android:maxLines="1"
app:autoSizeTextTy... | I have 3 text views on the screen. The first is guaranteed to be the longest with the other two shorter than it. I am using autoSizeText in the layout (shown below) to set the font size for the first one. This works as expected. [CODE] I want the other two text views to copy the first one's font size so all three have ... | android | 1 | 2022-09-16T18:19:09.653Z | 2,022 | 9 | 18 | 4 | 14 | 0 | 880 | 50 | 1 | 2 | true | true | false | false | false | false | low |
73,748,873 | Jetpack Compose: can't change TextField focus | <p>So, I have an <code>AlertDialog</code> with a <code>ListItem</code> inside, which in turn has 2 <code>TextField</code>s inside:</p>
<pre><code>val keyboardController = LocalSoftwareKeyboardController.current
val focusManager = LocalFocusManager.current
val (nameFieldFocus, valueFieldFocus) = remember{FocusRequester.... | So, I have an AlertDialog with a ListItem inside, which in turn has 2 TextField s inside: [CODE] The problem is, when I press the action key on the keyboard, no focus change occurs , regardless of whether the text fields have text in them or not. I also tried onNext = null and onDone = null , which is supposed to use t... | android|kotlin|android-jetpack-compose|android-compose-textfield|android-jetpack-compose-material3 | 1 | 2022-09-16T18:19:52.300Z | 2,022 | 9 | 18 | 4 | 44 | 1 | 463 | 45 | 5 | 1 | true | false | false | false | false | false | low |
73,748,946 | Proguard R8 warnings | <p>Getting these warning while using r8</p>
<pre><code>Missing class org.bouncycastle.jsse.BCSSLParameters (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)
Missing class org.bouncycastle.jsse.BCSS... | Getting these warning while using r8 [CODE] Tried using this but it did not work. [CODE] | android|kotlin|proguard|android-r8 | 0 | 2022-09-16T18:25:45.343Z | 2,022 | 9 | 18 | 4 | 32 | 1 | 88 | 20 | 4 | 2 | true | false | false | false | false | false | zero |
73,748,991 | Why MVP still considered tightly coupled even contract(interfaces) are used | <p>With loosely coupled what I understand that interaction between classes/objects has to be through interfaces or abstract classes moreover according to my understanding any dependency should come from outside class(dependency injection) instead of instantiating inside class. <strong>(correct me if my understanding of... | With loosely coupled what I understand that interaction between classes/objects has to be through interfaces or abstract classes moreover according to my understanding any dependency should come from outside class(dependency injection) instead of instantiating inside class. (correct me if my understanding of loosely co... | android|mvp|solid-principles|android-mvp|tightly-coupled-code | 0 | 2022-09-16T18:30:22.393Z | 2,022 | 9 | 18 | 4 | 24 | 0 | 581 | 75 | 5 | 0 | false | true | false | false | false | false | zero |
73,749,013 | how to create directory inside /data on android | <p>I'm trying to create a directory inside <code>/data</code> on an Android 10 platform. I've tried quite few things but now clueless. Appreciate any help/reference.</p>
<p>I've following <code>init.sample.rc</code> inside <code>/vendor/etc/init/</code>. I could see the print in <code>dmesg</code> but then no error.</p... | I'm trying to create a directory inside /data on an Android 10 platform. I've tried quite few things but now clueless. Appreciate any help/reference. I've following init.sample.rc inside /vendor/etc/init/ . I could see the print in dmesg but then no error. [CODE] I found this similar thread but it doesn't help me and s... | android | 0 | 2022-09-16T18:32:04.503Z | 2,022 | 9 | 18 | 4 | 25 | 0 | 750 | 47 | 1 | 3 | true | true | false | false | false | false | zero |
73,749,186 | Make a Dialog that will always appear above other Dialogs in Android | <p>In <strong>Android</strong>, I want to create a dialog that will always appear ahead of other dialogs. Even if a <code>Dialog</code> is opened in any stream afterwards, I want it to remain behind the <code>Dialog</code> I created.</p>
<p>One way to do this when I researched is the answer below.</p>
<p><a href="https... | In Android , I want to create a dialog that will always appear ahead of other dialogs. Even if a Dialog is opened in any stream afterwards, I want it to remain behind the Dialog I created. One way to do this when I researched is the answer below. https://stackoverflow.com/a/37483379/12040459 But TYPE_SYSTEM_ALERT seems... | android|android-studio|android-manifest|android-alertdialog|android-dialog | 0 | 2022-09-16T18:51:36.560Z | 2,022 | 9 | 18 | 4 | 13 | 0 | 520 | 68 | 5 | 0 | false | true | false | false | false | false | zero |
73,749,282 | How to achieve following layout in android | <p><a href="https://i.stack.imgur.com/hPHj4.png" rel="nofollow noreferrer">sample image</a></p>
<p>WK,BAT,BOWL and AR are tabs. User can click on tabs and list of player is given.. he has option to select how to achieve this using recyclerview</p> | sample image WK,BAT,BOWL and AR are tabs. User can click on tabs and list of player is given.. he has option to select how to achieve this using recyclerview | java|android|android-studio | 0 | 2022-09-16T19:00:16.293Z | 2,022 | 9 | 19 | 4 | 40 | 1 | 157 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
73,749,370 | Does "Google Forms link" WebView is allowed for Play Store APK upload | <p>I am developing an Android App for uploading to <strong>Google Play Store</strong>. In the <code>Navigation Drawer</code> of my app toolbar, i have an item <code>Feedback</code> which opens an <em>Activity</em> and this <em>Activity</em> contains a <code>WebView</code> of a <strong>Google Forms</strong> link, throug... | I am developing an Android App for uploading to Google Play Store . In the Navigation Drawer of my app toolbar, i have an item Feedback which opens an Activity and this Activity contains a WebView of a Google Forms link, through which i am collecting Feedback for my app. Is it allowed to upload this kind of APK to Goog... | google-play|apk|android-webview|google-forms|google-play-console | 0 | 2022-09-16T19:10:25.093Z | 2,022 | 9 | 19 | 4 | 14 | 0 | 715 | 69 | 5 | 0 | false | true | false | false | false | false | zero |
73,749,496 | Reduce size of map fragment's content | <p>I have this map fragment:</p>
<pre><code> <fragment
android:id="@+id/map_fragment"
class="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="100dp"
android:layout_height="100dp" /&... | I have this map fragment: [CODE] It looks like this now: But I want to reduce the size of its contents as below, how do I do that? | java|android|xml|kotlin|google-maps | 0 | 2022-09-16T19:24:16.070Z | 2,022 | 9 | 19 | 4 | 27 | 0 | 130 | 37 | 5 | 1 | true | true | false | false | false | false | zero |
73,749,521 | How to stop playing a sound initiated in AlarmManager in Flutter | <p>I'm currently writing an alarm clock app in Flutter and need to be able to start playing a custom sound at a specific time, even without the app currently running. I've already been able to achieve this with the following code (Using Android Alarm Manager Plus Flutter Package):</p>
<pre><code>onTap() async {
awa... | I'm currently writing an alarm clock app in Flutter and need to be able to start playing a custom sound at a specific time, even without the app currently running. I've already been able to achieve this with the following code (Using Android Alarm Manager Plus Flutter Package): [CODE] [CODE] For test purposes I'm firin... | android|flutter|dart|alarmmanager|dart-isolates | 0 | 2022-09-16T19:28:24.743Z | 2,022 | 9 | 19 | 4 | 23 | 1 | 958 | 64 | 5 | 3 | true | false | false | false | false | false | zero |
73,749,639 | How can I fix this build error?(buildMethodException + 3 errors) android | <p>When I build my android game in unity this error pops up <a href="https://i.stack.imgur.com/Ed6vw.jpg" rel="nofollow noreferrer">enter image description here</a></p> | When I build my android game in unity this error pops up enter image description here | android|unity3d|build|game-development | -3 | 2022-09-16T19:40:19.610Z | 2,022 | 9 | 19 | 4 | 24 | 0 | 85 | 72 | 4 | 0 | false | true | false | false | false | true | negative |
73,749,647 | Sum timestamps from two textviews and display in new textview | <p>I have two textviews and two buttons. When you click on the first button, a window with a choice of time opens. You select the time and it is displayed in textview1. Similarly with the second button and textview2. Now the main task is to sum this time and when you click on the Sum button, display the sum of the time... | I have two textviews and two buttons. When you click on the first button, a window with a choice of time opens. You select the time and it is displayed in textview1. Similarly with the second button and textview2. Now the main task is to sum this time and when you click on the Sum button, display the sum of the time in... | java|android|xml | 0 | 2022-09-16T19:40:57.193Z | 2,022 | 9 | 19 | 4 | 30 | 1 | 453 | 61 | 3 | 2 | true | false | false | false | false | false | zero |
73,749,729 | When we changed the orientation Portrait to Landscape and vice-versa in Fragment then it can't take the design from specific layout folder | <p>I am having problems in Fragment when Orientation changed from Portrait to Landscape and vice-versa then layout design will not take it from specific layout.</p>
<p><strong>Example</strong></p>
<ol>
<li><p>Currently in my project have different layouts as below</p>
<p><strong>layout-sw600dp</strong> (Generally it is... | I am having problems in Fragment when Orientation changed from Portrait to Landscape and vice-versa then layout design will not take it from specific layout. Example Currently in my project have different layouts as below layout-sw600dp (Generally it is used for Portrait Tablet layout design or depends on orientation) ... | android|android-layout|screen-orientation|android-tablet-layout | 0 | 2022-09-16T19:51:21.650Z | 2,022 | 9 | 19 | 4 | 14 | 0 | 726 | 138 | 4 | 0 | false | true | false | false | false | false | zero |
73,749,754 | flutter problem, The binary version of its metadata is 1.7.1, expected version is 1.5.1 | <h2>This is my error I dont understand what is problem,
When i am building apk then i got this error.
How to fix it?</h2>
<p>This is my error I dont understand what is problem,
When i am building apk then i got this error.
How to fix it?
This is my error I dont understand what is problem,
When i am building apk then i ... | This is my error I dont understand what is problem, When i am building apk then i got this error. How to fix it? This is my error I dont understand what is problem, When i am building apk then i got this error. How to fix it? This is my error I dont understand what is problem, When i am building apk then i got this err... | flutter|gradle|android-gradle-plugin|build.gradle|flutter-test | 0 | 2022-09-16T19:54:52.677Z | 2,022 | 9 | 19 | 4 | 68 | 1 | 378 | 87 | 5 | 2 | true | false | false | false | false | false | zero |
73,749,797 | flutter problem: Kotlin version that is used for building with Gradle (1.7.10) differs from the one bundled into the IDE plugin (1.6.10) | <p>Kotlin version that is used for building with Gradle (1.7.10) differs from the one bundled into the IDE plugin (1.6.10)</p>
<p>Here i am using latest kotlin version after using this then I got some issue, so how to fix it?</p>
<p><a href="https://i.stack.imgur.com/F9QLa.png" rel="nofollow noreferrer"><img src="https... | Kotlin version that is used for building with Gradle (1.7.10) differs from the one bundled into the IDE plugin (1.6.10) Here i am using latest kotlin version after using this then I got some issue, so how to fix it? | flutter|gradle|android-gradle-plugin|build.gradle|gradle-plugin | 1 | 2022-09-16T19:59:56.417Z | 2,022 | 9 | 19 | 4 | 36 | 2 | 215 | 136 | 5 | 0 | false | false | false | false | false | false | low |
73,749,822 | error: [Dagger/DuplicateBindings] ... is bound multiple times: | <p>Trying to set up DI with a project I'm working on (one module per layer app), and I've ran into an issue that I don't know how to fix:</p>
<pre><code> public abstract static class SingletonC implements FragmentGetContextFix.FragmentGetContextFixEntryPoint,
^
@Singleton @Provides @org.... | Trying to set up DI with a project I'm working on (one module per layer app), and I've ran into an issue that I don't know how to fix: [CODE] The project structure is as follows: Application class in the app module: [CODE] which is referenced in the manifest android:name=".DoggoApp" in the data module I have ... | android|kotlin|dependency-injection|dagger-hilt | 0 | 2022-09-16T20:02:47.990Z | 2,022 | 9 | 20 | 4 | 19 | 1 | 520 | 62 | 4 | 4 | true | false | false | false | false | false | zero |
73,749,917 | Android app access local WiFi device with no Internet while phone mobile data is on | <p>I’m working on an Android application that communicates with a Socket to a hardware device that serves a WiFi access point. This WiFi access point does not provide access to the Internet. I’m unable to connect to the socket while Mobile Data on the phone is turned on.
How can I communicate with this device without r... | I’m working on an Android application that communicates with a Socket to a hardware device that serves a WiFi access point. This WiFi access point does not provide access to the Internet. I’m unable to connect to the socket while Mobile Data on the phone is turned on. How can I communicate with this device without requ... | android|networking|mobile|routes|wifi | 0 | 2022-09-16T20:14:02.250Z | 2,022 | 9 | 20 | 4 | 17 | 0 | 701 | 83 | 5 | 0 | false | true | false | false | false | false | zero |
73,749,965 | how to make multiple buttons disappear when clicked using Kotlin in Android Studio | <p>I have an app that has <strong>12 buttons</strong> and each one of them has a <strong>Character</strong> when clicked that Character will be added to a variable called <strong>answer</strong> which will be displayed in a <strong>Text</strong>.
I want those buttons to <strong>disapear</strong> as soon as they are <st... | I have an app that has 12 buttons and each one of them has a Character when clicked that Character will be added to a variable called answer which will be displayed in a Text . I want those buttons to disapear as soon as they are clicked i know i can use something like : [CODE] But I don't want to create 2 variables fo... | android|kotlin|kotlin-coroutines | 0 | 2022-09-16T20:20:01.433Z | 2,022 | 9 | 20 | 4 | 20 | 0 | 389 | 82 | 3 | 1 | true | true | false | false | false | false | zero |
73,749,991 | Newly installed Android studio not opening | <p>GETTING THIS ERROR MESSAGE:</p>
<pre><code>!bootstrap.error.message.internal.error.please.refer.to.0!https://code.google.com/p/android/issues!
java.nio.file.AccessDeniedException: C:\Users\91704\AppData\Local\Google\AndroidStudio2021.3\port.lock
at java.base/sun.nio.fs.WindowsException.translateToIOException(Wi... | GETTING THIS ERROR MESSAGE: [CODE] | flutter|android-studio | -3 | 2022-09-16T20:22:41.770Z | 2,022 | 9 | 20 | 4 | 25 | 0 | 34 | 42 | 2 | 1 | true | true | false | false | false | true | negative |
73,749,996 | User registration fails with Firebase in Android | <p>Can you help me understand why this class does not refrain the user? In practice, when I enter email, password, etc. then I click on registration gives me that the user has not been registered, how can I do?</p>
<pre class="lang-java prettyprint-override"><code> public void singUpUser(final String email , final S... | Can you help me understand why this class does not refrain the user? In practice, when I enter email, password, etc. then I click on registration gives me that the user has not been registered, how can I do? [CODE] | java|android|firebase|firebase-authentication | 0 | 2022-09-16T20:23:14.947Z | 2,022 | 9 | 20 | 4 | 44 | 1 | 214 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
73,750,027 | android studio doesn't recognize errors in XML file | <p><img src="https://i.stack.imgur.com/CgQyX.png" alt="My style with XML File" /></p>
<p>Here I added the onCreate attribute to my textView.
When I was using it before updating android studio realized that there is no event in the .java file and started to show suggestions including creating this event.</p>
<p>In the u... | Here I added the onCreate attribute to my textView. When I was using it before updating android studio realized that there is no event in the .java file and started to show suggestions including creating this event. In the updated version it doesn't recognize that there is an error. Java file: [CODE] XML File: [CODE] | java|android|android-studio|mobile | -1 | 2022-09-16T20:27:34.620Z | 2,022 | 9 | 20 | 4 | 19 | 0 | 318 | 51 | 4 | 2 | true | true | false | false | false | true | negative |
73,750,098 | Android service is killed 10 seconds after start | <p>I need to make a service to catch server messages via websocket and show them in the notification.
First time when I closed the app the service stopped. I made a broadcast receiver in <code>onDestroy</code> to restart service after app is closed and swiped from active apps.
But after all system or some other things ... | I need to make a service to catch server messages via websocket and show them in the notification. First time when I closed the app the service stopped. I made a broadcast receiver in onDestroy to restart service after app is closed and swiped from active apps. But after all system or some other things keep killing the... | android|kotlin|service|android-service|android-background | 2 | 2022-09-16T20:37:51.587Z | 2,022 | 9 | 20 | 4 | 28 | 1 | 654 | 48 | 5 | 2 | true | false | false | false | false | false | low |
73,750,111 | Auto click android | <p>Do I need to auto click the "Start now" button or make this request only accepted once. How can I do this? I'm trying through the click with accessibility option. But how to do the click I don't know.</p>
<p><a href="https://i.stack.imgur.com/P21hD.png" rel="nofollow noreferrer"><img src="https://i.stack.i... | Do I need to auto click the "Start now" button or make this request only accepted once. How can I do this? I'm trying through the click with accessibility option. But how to do the click I don't know. [CODE] | java|android | 0 | 2022-09-16T20:39:55.307Z | 2,022 | 9 | 20 | 4 | 30 | 0 | 217 | 18 | 2 | 1 | true | true | false | false | false | false | zero |
73,750,159 | Kotlin sealed class | <p>I have below class, I would like to make this class a sealed class. Can you please help me as I am new to Kotlin.</p>
<pre><code> @JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type")
@JsonSubTypes(
JsonSubTypes.Type(value = ... | I have below class, I would like to make this class a sealed class. Can you please help me as I am new to Kotlin. [CODE] How to make this a sealed class perhaps a subclass of a sealed class, and how to instantiate it? The foodType is enum class [CODE] I have the following based on the other post, but I am confused on p... | kotlin|generics|kotlin-coroutines|kotlin-multiplatform|kotlin-android-extensions | -1 | 2022-09-16T20:46:38.153Z | 2,022 | 9 | 20 | 4 | 64 | 1 | 420 | 19 | 5 | 3 | true | false | false | false | false | true | negative |
73,750,190 | Flutter image_gallery_Saver plug-in cause UI thread gets stuck when saving pictures, and getting error when I try create it by compute | <pre><code> try {
//CheckPermission
if (await Permission.storage
.request()
.isGranted) {
final result = await SaveImageToKoi(post.fimgUrl!.url!);
print(result);
if (result != null)
BotToast.showText(text: "Success");
... | [CODE] I am trying to use the below library: https://pub.dev/packages/image_gallery_saver And when I am saving picture, it will cause the UI thread to get stuck. The stuck time depends on the size of the image An error will be reported when trying to create a new thread by using compute to save. I don't know how to sol... | android|flutter|kotlin|dart | 0 | 2022-09-16T20:52:58.053Z | 2,022 | 9 | 20 | 4 | 33 | 1 | 778 | 134 | 4 | 1 | true | false | false | false | false | false | zero |
73,750,205 | Flutter app stuck in black screen when opening in some android devices | <p>I recently uploaded my first Flutter app to the Play Store. Some Android users have reported that the app shows a black screen when launching the app and stays there, it doesn't load or show the app content. I don't know if it can be related or just a coincidence, but all 3 of them have a Samsung phone with Android ... | I recently uploaded my first Flutter app to the Play Store. Some Android users have reported that the app shows a black screen when launching the app and stays there, it doesn't load or show the app content. I don't know if it can be related or just a coincidence, but all 3 of them have a Samsung phone with Android 12,... | android|flutter|gradle|build.gradle | 0 | 2022-09-16T20:54:16.880Z | 2,022 | 9 | 20 | 4 | 42 | 0 | 678 | 70 | 4 | 0 | false | true | false | false | false | false | zero |
73,750,233 | How to build apps like droidcam and ivcam | <p>I've been surfing the web to no avail for info on how apps like droid work on a technical level and how to build one. Please can someone help me out?</p> | I've been surfing the web to no avail for info on how apps like droid work on a technical level and how to build one. Please can someone help me out? | android-camera | -1 | 2022-09-16T20:56:50.147Z | 2,022 | 9 | 20 | 4 | 10 | 0 | 149 | 41 | 1 | 0 | false | true | false | false | false | true | negative |
73,750,291 | Is it possible to use more than one ad SDK in an Android app? | <p>Recently updated my app and I want to know if I can use AdMob when I already have another ad SDK.</p>
<p>I'm currently using AdMob and Appodeal to monetize my App.</p> | Recently updated my app and I want to know if I can use AdMob when I already have another ad SDK. I'm currently using AdMob and Appodeal to monetize my App. | android|admob | 0 | 2022-09-16T21:04:21.250Z | 2,022 | 9 | 21 | 4 | 36 | 1 | 156 | 61 | 2 | 0 | false | false | false | false | false | false | zero |
73,750,346 | Include headers in Android Gradle C++ project in visual studio | <p>I am working on a Visual Studio Mobile development project using the Basic Application (Android, Gradle) template but I modified the main file to be a C++ file instead of Java. Here is my Project structure:</p>
<pre><code> VSProject
├─VSProject.sln
├─VSProject.sln.DotSettings.user
└─VSProject
├... | I am working on a Visual Studio Mobile development project using the Basic Application (Android, Gradle) template but I modified the main file to be a C++ file instead of Java. Here is my Project structure: [CODE] My main.cpp starts by including some headers that are necessary for the file to compile, but in the Visual... | android|c++|gradle|build.gradle|gradlew | 0 | 2022-09-16T21:13:14.517Z | 2,022 | 9 | 21 | 4 | 25 | 0 | 1,510 | 62 | 5 | 3 | true | true | false | false | false | false | zero |
73,750,369 | How to implement ActivityEventListener on my custom module? | <p>I successfully created a custom react native module that allows me to open another app and launch an intent for it. I can’t seem to get the response back onto react native when the opened app finishes what it was doing. I’ve tried using .startActivityForResult() but I run into some issues since my MainActivity is ex... | I successfully created a custom react native module that allows me to open another app and launch an intent for it. I can’t seem to get the response back onto react native when the opened app finishes what it was doing. I’ve tried using .startActivityForResult() but I run into some issues since my MainActivity is exten... | java|react-native|android-intent | 0 | 2022-09-16T21:15:28.553Z | 2,022 | 9 | 21 | 4 | 15 | 0 | 704 | 59 | 3 | 2 | true | true | false | false | false | false | zero |
73,750,542 | How to auto paste text or url in android application | <p>I want to implement a feature in my android app, when I copy some text or link from anywhere(from messages, whatsapp or instagram post link) in my phone and open my app, so I want the text to be auto pasted if text is in my clipboard.</p>
<p>Requirements:</p>
<ol>
<li>Open insta app & copy a post link</li>
<li>G... | I want to implement a feature in my android app, when I copy some text or link from anywhere(from messages, whatsapp or instagram post link) in my phone and open my app, so I want the text to be auto pasted if text is in my clipboard. Requirements: Open insta app & copy a post link Go back to my app and auto paste the ... | android|clipboard|copy-paste | 0 | 2022-09-16T21:40:46.150Z | 2,022 | 9 | 21 | 4 | 31 | 1 | 391 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
73,750,644 | how do I know if someone bought my app refered by a partner? | <p>is there a way to identify if someone buying my app was refered by a partner? Like a promo code or something? I have someone who will advertise my app in his media channels, but we need to identify who bought using his code, so I can pay him his fee.</p> | is there a way to identify if someone buying my app was refered by a partner? Like a promo code or something? I have someone who will advertise my app in his media channels, but we need to identify who bought using his code, so I can pay him his fee. | android|google-play|publish | 0 | 2022-09-16T21:56:50.213Z | 2,022 | 9 | 21 | 4 | 9 | 0 | 250 | 60 | 3 | 0 | false | true | false | false | false | false | zero |
73,750,851 | Badges in Google's navigation bar | <p>I wanted to add a notification badge to my gnav bar, like in the picture below. I didn't find any documentation about the navigation bar from Google, so I don't know how to do it. The programming language is Dart and I work with Flutter in Android Studio.</p>
<p><a href="https://i.stack.imgur.com/yjvnq.png" rel="nof... | I wanted to add a notification badge to my gnav bar, like in the picture below. I didn't find any documentation about the navigation bar from Google, so I don't know how to do it. The programming language is Dart and I work with Flutter in Android Studio. This is my code: [CODE] | flutter|android-studio|dart|uinavigationbar|badge | 0 | 2022-09-16T22:32:27.333Z | 2,022 | 9 | 22 | 4 | 40 | 1 | 279 | 33 | 5 | 1 | true | false | false | false | false | false | zero |
73,750,866 | Why does referencing a color from the resource folder for the background color work, but not specifying a hex value? | <p>Having <code><item name="android:colorBackground">@color/bg</item></code>(where <code><color name="bg">#f0f0ff</color></code> is the color) in a style in the style.xml file causes the correct color to show in the background:</p>
<p><a href="https://i.stack.imgur.com/rknSA.... | Having <item name="android:colorBackground">@color/bg</item> (where <color name="bg">#f0f0ff</color> is the color) in a style in the style.xml file causes the correct color to show in the background: But having <item name="android:colorBackground">#f0f0ff</item> does not work: Anyone know ... | android|android-styles | 1 | 2022-09-16T22:37:19.013Z | 2,022 | 9 | 22 | 4 | 21 | 0 | 324 | 116 | 2 | 0 | false | true | false | false | false | false | low |
73,750,887 | Found two getters or fields with conflicting case sensitivity for property: s however, I don't have an "s" property of the classes nor Firebase | <p>I don't have an "s" property of the classes or in Firebase and line 12 of FeedService points to: import android.os.IBinder; and no cause in the code of class FeedService. This only happens in the minified and obfuscated version published on the PlayStore for testing.</p>
<p>I've read all the questions and ... | I don't have an "s" property of the classes or in Firebase and line 12 of FeedService points to: import android.os.IBinder; and no cause in the code of class FeedService. This only happens in the minified and obfuscated version published on the PlayStore for testing. I've read all the questions and answers on... | android|getter-setter|case-sensitive | 0 | 2022-09-16T22:42:36.507Z | 2,022 | 9 | 22 | 4 | 25 | 1 | 577 | 143 | 3 | 2 | true | false | false | false | false | false | zero |
73,750,990 | Viewmodel executes init after updating a MutableStateFlow | <p>whenever I try to update a mutable state flow (uiState), the code in the init of the viewModel executes again (and hence the uiState resets).</p>
<p>This only happens if I use any info related to the previous state of the uiState (at least that's why I think given the following code).</p>
<p>The Code:</p>
<pre><code... | whenever I try to update a mutable state flow (uiState), the code in the init of the viewModel executes again (and hence the uiState resets). This only happens if I use any info related to the previous state of the uiState (at least that's why I think given the following code). The Code: [CODE] So when only executing t... | android|kotlin|viewmodel|kotlin-flow | 0 | 2022-09-16T23:02:09.307Z | 2,022 | 9 | 23 | 4 | 29 | 1 | 526 | 57 | 4 | 1 | true | false | false | false | false | false | zero |
73,751,085 | Flutter how to get google map nearby places automatically with user's current location? | <pre><code>import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:geolocator/geolocator.dart';
import 'dart:async';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widg... | [CODE] Hello, this is the code I've been working on and it shows users' location on the map when they click the 'current location' button. What I want to implement is to make the map shows nearby hospitals based on the user's current location. I've searched for documents about this problem but couldn't find one that re... | android|flutter|dart|google-maps|google-nearby | 0 | 2022-09-16T23:20:15.237Z | 2,022 | 9 | 23 | 4 | 17 | 0 | 673 | 87 | 5 | 1 | true | true | false | false | false | false | zero |
73,751,127 | How can i create activties when pressing on Recycleview Item | <p>im new to programming apps for android in android studio with kotlin.</p>
<p>im trying to make my own application and i made a concept of how it should work but i cant really help myself, and it is hard to google it because i dont know what to google for.</p>
<p>What i have done already is to implement recylceview a... | im new to programming apps for android in android studio with kotlin. im trying to make my own application and i made a concept of how it should work but i cant really help myself, and it is hard to google it because i dont know what to google for. What i have done already is to implement recylceview and did a class fo... | android|kotlin|android-activity | -1 | 2022-09-16T23:30:50.317Z | 2,022 | 9 | 23 | 4 | 44 | 1 | 794 | 60 | 3 | 0 | false | false | false | false | false | true | negative |
73,751,196 | Load Cutom Marker Icon From URL (OSM) | <p>I am using OpenStreetMap, I am able to load custom icons (multiple) from drawable using the following code:</p>
<pre><code> startMarker = new Marker(map);
startMarker.setPosition(new GeoPoint(latitude,longitude));
startMarker.setAnchor(Marker.ANCHOR_CENTER, 1.0f);
startMarker.setTitle((intMarkerID+&qu... | I am using OpenStreetMap, I am able to load custom icons (multiple) from drawable using the following code: [CODE] I would like to use Picasso or Glide to load marker icons from URL, I already have the URLs in a string format from an array, I just need to apply these strings url_abs_fileName ("Image URLs") as... | android|openstreetmap | 0 | 2022-09-16T23:43:51.780Z | 2,022 | 9 | 23 | 4 | 17 | 0 | 460 | 37 | 2 | 2 | true | true | false | false | false | false | zero |
73,751,226 | Notification doesn't show when alarm is triggered | <p>Hi I am implementing a alarm system in my app. I have an alarm manager that triggers a notification everyday in a certain time. It doesn't work as it intended the notification is not displayed at all. Please can anyone help me with these thank you.</p>
<p>my Alarm set code:</p>
<pre class="lang-kotlin prettyprint-ov... | Hi I am implementing a alarm system in my app. I have an alarm manager that triggers a notification everyday in a certain time. It doesn't work as it intended the notification is not displayed at all. Please can anyone help me with these thank you. my Alarm set code: [CODE] Broadcast receiver: [CODE] | android|kotlin|broadcastreceiver|android-notifications|alarmmanager | 0 | 2022-09-16T23:50:59.460Z | 2,022 | 9 | 23 | 4 | 21 | 0 | 301 | 49 | 5 | 2 | true | true | false | false | false | false | zero |
73,751,274 | flutter pub get fails in docker | <p>i run <code>docker pull cirrusci/flutter:stable</code> to get a clean docker with android and flutter installed</p>
<p>my system is an m1 mac with macOS 12.6 and</p>
<pre><code>1m1@1m1s-MacBook-Air ~ % docker --version
Docker version 20.10.17, build 100c701
</code></pre>
<p>running <code>docker run -it image_id /bin... | i run docker pull cirrusci/flutter:stable to get a clean docker with android and flutter installed my system is an m1 mac with macOS 12.6 and [CODE] running docker run -it image_id /bin/bash gives a warning: [CODE] inside the docker, flutter --version gives [CODE] the error comes here by running flutter doctor --androi... | android|flutter|docker|cirrus-ci | 0 | 2022-09-17T00:02:32.973Z | 2,022 | 9 | 0 | 5 | 25 | 0 | 1,121 | 31 | 4 | 4 | true | true | false | false | false | false | zero |
73,751,537 | I have this problem, the same thing happens as the previous question but I have not been able to implement one of the solutions | <p><a href="https://i.stack.imgur.com/ogP1J.png" rel="nofollow noreferrer">I have this problem, the same thing happens as the previous question but I have not been able to implement one of the solutions</a></p> | I have this problem, the same thing happens as the previous question but I have not been able to implement one of the solutions | android|flutter|firebase | -4 | 2022-09-17T01:18:01.080Z | 2,022 | 9 | 1 | 5 | 29 | 0 | 127 | 127 | 3 | 0 | false | true | false | false | false | true | negative |
73,751,700 | What went wrong: A problem occurred configuring project ':qr_code_scanner' | <p>FAILURE: Build failed with an exception.</p>
<ul>
<li>What went wrong:
A problem occurred configuring project ':qr_code_scanner'.</li>
</ul>
<blockquote>
<p>Could not resolve all artifacts for configuration ':qr_code_scanner:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10.
Required by:... | FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':qr_code_scanner'. Could not resolve all artifacts for configuration ':qr_code_scanner:classpath'. Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10. Required by: project :qr_code_scanner > The consumer wa... | android|flutter|android-studio|gradle | 0 | 2022-09-17T02:12:31.223Z | 2,022 | 9 | 2 | 5 | 24 | 0 | 5,412 | 74 | 4 | 0 | false | true | false | false | false | false | zero |
73,751,736 | I added second response in my ApiService and I get null from second retrofit response | <pre><code>## ApiService ##
interface ApiService {
@GET("recipes/random")
suspend fun getRecipes(
@Header("x-api-key") apiKey: String,
@Query("number") number: Int
): Response<Recipes>
@G... | [CODE] How can i make the second response not null? Application works, first response not null. I checked response with postman and it isn't null. I am new with koin and retrofit, and i have no idea. I have thought problem from my AppModule? but i don't know, how to correct this................................ | android|retrofit|retrofit2|koin | 0 | 2022-09-17T02:26:13.533Z | 2,022 | 9 | 2 | 5 | 16 | 0 | 311 | 85 | 4 | 1 | true | true | false | false | false | false | zero |
73,751,743 | How to remove the YouTube Player Listener in Android Studio? | <p>How am I going to remove the YouTube Player Listener I initialize</p>
<pre><code>youTubePlayerView.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {
@Override
public void onStateChange(@NonNull YouTubePlayer youTubePlayer, @NonNull PlayerConstants.PlayerState state) {
setPlay... | How am I going to remove the YouTube Player Listener I initialize [CODE] How to Remove it using this Method: [CODE] What should I put inside the Parenthesis of "youTubePlayerView.removeYouTubePlayerListener( What to put in here? ); -------Please Help Thank You! | android|android-studio|youtube|android-youtube-api | 0 | 2022-09-17T02:29:00.377Z | 2,022 | 9 | 2 | 5 | 15 | 0 | 266 | 60 | 4 | 2 | true | true | false | false | false | false | zero |
73,751,756 | The minCompileSdk (31) specified in a dependency's AAR metadata is greater than this module's compileSdkVersion (android-30) in React native | <p>I am currently upgrading my React native Project that was created using React-native cli
I upgraded all the dependencies from package.json except react-native and react as: -</p>
<pre><code> "dependencies": {
"@monterosa/react-native-parallax-scroll": "^1.8.0",
"@notifee/react-nati... | I am currently upgrading my React native Project that was created using React-native cli I upgraded all the dependencies from package.json except react-native and react as: - [CODE] }, "devDependencies": { "@babel/core": "^7.4.5", "@babel/runtime": "^7.4.5", "babel... | android|react-native|gradle | 0 | 2022-09-17T02:36:06.540Z | 2,022 | 9 | 2 | 5 | 35 | 0 | 917 | 140 | 3 | 3 | true | true | false | false | false | false | zero |
73,751,793 | How to find project directory name in Android Studio | <p><strong>$projectDir</strong> how can i find this? i'm trying add room dependency in my project
`android {</p>
<pre><code>defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments += [
"room.schemaLocation":"$projectDir/schemas".toString()... | $projectDir how can i find this? i'm trying add room dependency in my project `android { [CODE] }` | android|android-studio|project | 0 | 2022-09-17T02:44:01.517Z | 2,022 | 9 | 2 | 5 | 27 | 0 | 98 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
73,751,829 | XmlResourcesTransformer No mapping for package 'android.support.v7.internal.widget' in 'com\android\support\migrateToAndroidx\migration.xml' | <p><a href="https://i.stack.imgur.com/nlf6T.png" rel="nofollow noreferrer">[XmlResourceTransformer]Facing a lot of problem that no mapping package in MigrateToAndroidX</a></p>
<p><a href="https://i.stack.imgur.com/NhRRa.png" rel="nofollow noreferrer">[XmlResourceTransformer]Facing a lot of problem that no mapping packa... | [XmlResourceTransformer]Facing a lot of problem that no mapping package in MigrateToAndroidX [XmlResourceTransformer]Facing a lot of problem that no mapping package in MigrateToAndroidX build.gradle [CODE] 2.This is the settings.gradle [CODE] 3.this is the main activities [CODE] Please help me to solve this, i spend th... | java|android-studio|android-layout|androidx | 0 | 2022-09-17T02:54:46.903Z | 2,022 | 9 | 2 | 5 | 11 | 0 | 388 | 140 | 4 | 3 | true | true | false | false | false | false | zero |
73,751,840 | Can I completely remove android support for my LittleKT project? | <p>I am trying to create a LittleKT project in Visual Studio Code. I tried building a Gradle instance of the project but was told that I did not have an Android SDK. I installed the Android SDK Tools and got pretty far. I was unable to use a key emulator that I needed and was wondering if I could completely remove andr... | I am trying to create a LittleKT project in Visual Studio Code. I tried building a Gradle instance of the project but was told that I did not have an Android SDK. I installed the Android SDK Tools and got pretty far. I was unable to use a key emulator that I needed and was wondering if I could completely remove android... | android|game-engine|android-sdk-tools | 0 | 2022-09-17T02:56:58.233Z | 2,022 | 9 | 2 | 5 | 12 | 0 | 620 | 64 | 3 | 0 | false | true | false | false | false | false | zero |
73,751,857 | How to send numberKey of numberPad(NOT the numberKey above Q/W/E/R/T/T..) via KDE Connect with Hacker's Keyboard | <h2>Background</h2>
<p>I am controlling my Windows 10 host via <code>KDE Connect APP</code> on Android with <code>Hacker's Keyboard</code> as the input method.</p>
<h2>What I Need</h2>
<p>I need to send the numberKey of numberPad(NOT the numberKey above Q/W/E/R/T/Y..) to Windows 10, how to do that in <code>KDE Connect ... | Background I am controlling my Windows 10 host via KDE Connect APP on Android with Hacker's Keyboard as the input method. What I Need I need to send the numberKey of numberPad(NOT the numberKey above Q/W/E/R/T/Y..) to Windows 10, how to do that in KDE Connect APP or Hacker's Keyboard ? Any help will be appreciate! | android-softkeyboard|kde-plasma | 0 | 2022-09-17T03:03:50.473Z | 2,022 | 9 | 3 | 5 | 8 | 0 | 315 | 112 | 2 | 0 | false | true | false | false | false | false | zero |
73,751,859 | Using `RenderEffect` with a `Bitmap` instead of `ImageView` | <p>I want to blur a <code>Bitmap</code> object in Android, currently I have the following code which blurs an <code>ImageView</code>:</p>
<pre><code>private fun blurImageView(radius: Float) {
if (Build.VERSION.SDK_INT >= 31) {
binding.activityMainImageView.setRenderEffect(
RenderEffect.create... | I want to blur a Bitmap object in Android, currently I have the following code which blurs an ImageView : [CODE] I want to get the underlying Bitmap object, so I tried to achieve that by doing the following: [CODE] But it doesn't seem to be working. So how would I go around simply blurring a Bitmap object, is this poss... | android|kotlin|graphics | 0 | 2022-09-17T03:04:36.303Z | 2,022 | 9 | 3 | 5 | 49 | 0 | 544 | 59 | 3 | 2 | true | true | false | false | false | false | zero |
73,751,883 | How to keep high traffic mobile app up to sync with backend database? | <p>In my company we're working on a messaging app, that we hope will have a large number of users, we are developing mobile apps that are going to be re-saving all our messages in their local databases, to handle offline state.</p>
<p>We need to validate, that the approach we're taking will scale and produce a great us... | In my company we're working on a messaging app, that we hope will have a large number of users, we are developing mobile apps that are going to be re-saving all our messages in their local databases, to handle offline state. We need to validate, that the approach we're taking will scale and produce a great user experie... | android|ios|swift|kotlin|cassandra | -2 | 2022-09-17T03:11:14.630Z | 2,022 | 9 | 3 | 5 | 29 | 0 | 419 | 69 | 5 | 0 | false | true | false | false | false | true | negative |
73,751,911 | Expo react-native app works when debugging on phone but released apk crashes on start | <p>I am new to react-native and created a straightforward app (just a home page basically, not yet finished) using expo and published it. It works fine when debugging with web or expo android app but the built app crashes on start. I am not sure what is wrong.</p>
<p>app.json</p>
<pre><code>{
"expo": {
... | I am new to react-native and created a straightforward app (just a home page basically, not yet finished) using expo and published it. It works fine when debugging with web or expo android app but the built app crashes on start. I am not sure what is wrong. app.json [CODE] package.json [CODE] webpack.config.js: [CODE] ... | android|react-native|expo | 0 | 2022-09-17T03:19:13.680Z | 2,022 | 9 | 3 | 5 | 73 | 1 | 341 | 85 | 3 | 3 | true | false | false | false | false | false | zero |
73,751,925 | keyEvent simulation make setOnKeyListener dont work | <pre><code>private fun execKey() {
var cmd: String = "input keyevent ${KEYCODE_DPAD_DOWN}"
try {
val process = Runtime.getRuntime().exec(cmd)
} catch (e: Exception) {
println("YM========执行Linux命令异常==========${e.message}")
}
}
</code></pre>
<p>i have code like this , s... | [CODE] i have code like this , simulate key event. but not work like the real keyevent. which can make setOnKeyListener realy work. its More than I expected。could you know the reason,and give me some advice | android|adb|keyevent | 0 | 2022-09-17T03:26:00.890Z | 2,022 | 9 | 3 | 5 | 16 | 0 | 206 | 51 | 3 | 1 | true | true | false | false | false | false | zero |
73,752,019 | How do i get rid of Duplicate class error in android studio | <pre><code>Duplicate class javax.annotation.CheckForNull found in modules jetified-annotations-3.0.1 (com.google.code.findbugs:annotations:3.0.1) and jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2)
</code></pre>
<p>Duplicate class javax.annotation.CheckForSigned found in modules jetified-annotations-3.0.1... | [CODE] Duplicate class javax.annotation.CheckForSigned found in modules jetified-annotations-3.0.1 (com.google.code.findbugs:annotations:3.0.1) and jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.CheckReturnValue found in modules jetified-annotations-3.0.1 (com.google.code... | java|android|annotations|dependencies | 1 | 2022-09-17T03:56:04.790Z | 2,022 | 9 | 3 | 5 | 26 | 1 | 8,907 | 59 | 4 | 1 | true | false | false | false | false | false | low |
73,752,027 | Kotlin Coroutines Run out of memory Error | <p>I am trying to understand the performance difference between Threads and Coroutines,
So what I did to see this, I have created a task where a millions of threads will be created in a for loop and each thread will have a delay of 2000L Milliseconds and then It should print thread name to Log cat.</p>
<p>My Android De... | I am trying to understand the performance difference between Threads and Coroutines, So what I did to see this, I have created a task where a millions of threads will be created in a for loop and each thread will have a delay of 2000L Milliseconds and then It should print thread name to Log cat. My Android Device Detai... | android|kotlin|kotlin-coroutines|coroutine | -1 | 2022-09-17T03:58:03.410Z | 2,022 | 9 | 3 | 5 | 38 | 0 | 693 | 41 | 4 | 7 | true | true | false | false | false | true | negative |
73,752,158 | How to use canvas flags in Android | <p>In my application I want use this library : <a href="https://github.com/race604/WaveLoading" rel="nofollow noreferrer">https://github.com/race604/WaveLoading</a><br>
This library used canvas flags but not found in my project!<br></p>
<p><strong>This flags is :</strong> <br></p>
<pre><code>int sc = canvas.saveLayer(0... | In my application I want use this library : https://github.com/race604/WaveLoading This library used canvas flags but not found in my project! This flags is : [CODE] After search I found this solution : Can not find Canvas variables in API Level 28 But when change codes to i nt sc = canvas.saveLayer(0, 0, mWidth, mHeig... | java|android|canvas | 0 | 2022-09-17T04:33:03.843Z | 2,022 | 9 | 4 | 5 | 19 | 0 | 420 | 34 | 3 | 1 | true | true | false | false | false | false | zero |
73,752,178 | This is correct when using onClick in onBindViewHolder to avoid "do not treat position as fixed only use immediately and call holder"? | <p>I am working on an application that on the main screen uses RecyclerView to show attendance information of different groups of people, each element contains a list of the last 3 saved records ("Latest records" in the image):</p>
<p><a href="https://i.stack.imgur.com/6YZfS.jpg" rel="nofollow noreferrer"><im... | I am working on an application that on the main screen uses RecyclerView to show attendance information of different groups of people, each element contains a list of the last 3 saved records ("Latest records" in the image): Clicking the "Watch" button should display the attendance record for the co... | java|android|android-recyclerview|android-viewholder | 0 | 2022-09-17T04:41:17.317Z | 2,022 | 9 | 4 | 5 | 33 | 0 | 2,096 | 134 | 4 | 1 | true | true | false | false | false | false | zero |
73,752,232 | About AndroidStudio Application Gradle Version | <h2>Why can't the project I cloned from GitHub run locally AndroidStudio?
It say:
<em>The project is using an incompatible version (AGP 7.4.0-alpha08) of the Android Gradle plugin. Latest supported version is AGP 7.2.0</em>
<a href="https://i.stack.imgur.com/dBp45.png" rel="nofollow noreferrer">enter image description ... | Why can't the project I cloned from GitHub run locally AndroidStudio? It say: The project is using an incompatible version (AGP 7.4.0-alpha08) of the Android Gradle plugin. Latest supported version is AGP 7.2.0 enter image description here I try my best search in Internet,but I can't find result... And my runtime envir... | java|android|gradle | 0 | 2022-09-17T04:56:41.990Z | 2,022 | 9 | 4 | 5 | 17 | 0 | 464 | 46 | 3 | 1 | 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.