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,836,967 | Disable button after returning from an intent | <p>Afternoon all I need to call an intent and upon returning disable the button for X seconds.
I have tried variations of the following, which either disable the button immediately and then enable or do not do what I need full stop.</p>
<pre><code> Guarding.setOnClickListener(new View.OnClickListener() {
... | Afternoon all I need to call an intent and upon returning disable the button for X seconds. I have tried variations of the following, which either disable the button immediately and then enable or do not do what I need full stop. [CODE] So on first entry to the menu i have a button that is enabled, after clicking it mu... | java|android|android-studio | 0 | 2022-09-24T11:43:24.320Z | 2,022 | 9 | 11 | 5 | 30 | 1 | 460 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
73,836,971 | Not able to import getInstance in a class | <p>I have created a class My Singleton and tried to call getInstance, but it won't import it.Below is the My singleton class which I have created- [Image Link- https://postimg.cc/471L7sr0]</p>
<pre><code>package com.example.memeshare
import android.content.Context
import com.android.volley.Request
import com.android.vo... | I have created a class My Singleton and tried to call getInstance, but it won't import it.Below is the My singleton class which I have created- [Image Link- https://postimg.cc/471L7sr0] [CODE] | android|singleton|android-volley | 0 | 2022-09-24T11:44:47.190Z | 2,022 | 9 | 11 | 5 | 12 | 1 | 192 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
73,837,110 | how should I make feature of " White noise sound" in which multiple sounds play simultaneously? | <p>I am new to Android Development and want to add a feature to my app but unable to find a suitable method to build A White Noise Feature in Kotlin.</p>
<p>audio can be stored in the cloud or in local storage</p>
<p>Features:</p>
<ol>
<li>Play multiple sounds simultaneously</li>
<li>Adjust the sound volume individuall... | I am new to Android Development and want to add a feature to my app but unable to find a suitable method to build A White Noise Feature in Kotlin. audio can be stored in the cloud or in local storage Features: Play multiple sounds simultaneously Adjust the sound volume individually Can loop these sounds Like: | android|kotlin|sdk|audio-player|android-music-player | 0 | 2022-09-24T12:07:59.053Z | 2,022 | 9 | 12 | 5 | 20 | 0 | 310 | 95 | 5 | 0 | false | true | false | false | false | false | zero |
73,837,126 | I am not able to install MagiskOnWSALocal using Ubuntu(WSLg) on my pc, I always get this error (-bash: cd: C: / / No Such File or Directory). Why? | <p>enter image description here</p>
<p>:~$ cd C:\WSA-with-magisk-stable-MindTheGapps_2207.40000.8.0_x64_Release-Nightly
-bash: cd: C:WSA-with-magisk-stable-MindTheGapps_2207.40000.8.0_x64_Release-Nightly: No such file or directory</p> | enter image description here :~$ cd C:\WSA-with-magisk-stable-MindTheGapps_2207.40000.8.0_x64_Release-Nightly -bash: cd: C:WSA-with-magisk-stable-MindTheGapps_2207.40000.8.0_x64_Release-Nightly: No such file or directory | windows-subsystem-for-android | -2 | 2022-09-24T12:12:36.427Z | 2,022 | 9 | 12 | 5 | 12 | 0 | 220 | 146 | 1 | 0 | false | true | false | false | false | true | negative |
73,837,175 | How to use searchview to retrieve data from firebase database? | <p>I am trying to use searchview to show all matching profiles based on the characters input in search view by using the code below:</p>
<pre><code>searchViewTexts = binding.searchPedagangUserEksplorasi
searchViewTexts.setOnQueryTextFocusChangeListener(object: androidx.appcompat.widget.SearchView.OnQueryTextListener,
... | I am trying to use searchview to show all matching profiles based on the characters input in search view by using the code below: [CODE] And below is my recycler view holder code: [CODE] But nothing show up from the recycler view regardless whatever I type in the searchView. What should be fixed in the code? Thanks | android|firebase|kotlin|firebase-realtime-database|searchview | 0 | 2022-09-24T12:21:08.447Z | 2,022 | 9 | 12 | 5 | 23 | 0 | 316 | 62 | 5 | 2 | true | true | false | false | false | false | zero |
73,837,193 | Delphi Android TSensorLocation | <p>there's a way with delphi to keep location tracking through tsensorlocation, even when the app is in the background (however in operation) or when a service associated with the app is running? putting for example the tsensorlocation in the service instead of in the app?</p> | there's a way with delphi to keep location tracking through tsensorlocation, even when the app is in the background (however in operation) or when a service associated with the app is running? putting for example the tsensorlocation in the service instead of in the app? | android|delphi|location|sensors | -3 | 2022-09-24T12:23:39.837Z | 2,022 | 9 | 12 | 5 | 29 | 0 | 270 | 30 | 4 | 0 | false | true | false | false | false | true | negative |
73,837,238 | StateListAnimator is overwriting the Drawable on "background"? | <p>I am trying to add a fade-in and fade-out effect on a LinearLayout <code>backgroundColor</code> property based on <code>state_selected</code>. For background I have set a drawable (in <code>android:background</code>) and for animation I have added animation (in <code>android:stateListAnimator</code>).</p>
<p>The ani... | I am trying to add a fade-in and fade-out effect on a LinearLayout backgroundColor property based on state_selected . For background I have set a drawable (in android:background ) and for animation I have added animation (in android:stateListAnimator ). The animation is working fine when I select and unselect the View,... | android|xml|android-animation | 0 | 2022-09-24T12:31:24.050Z | 2,022 | 9 | 12 | 5 | 12 | 0 | 948 | 62 | 3 | 3 | true | true | false | false | false | false | zero |
73,837,318 | CapacitorJS Geolocation watchPosition giving coordinates only every 4 seconds on Android, i need every 1 second | <p>I am using this code and for some reason it updates coordinates only every 4 seconds. How can I make the Android give me coordinates every second? Is there any settings I don't know about?</p>
<pre><code> function startWatchPosition() {
Geolocation.watchPosition(watchOptions, process_coordinates).then(f... | I am using this code and for some reason it updates coordinates only every 4 seconds. How can I make the Android give me coordinates every second? Is there any settings I don't know about? [CODE] The function process_coordinates is called back only every 4 seconds. But why? capacitor.config.json: [CODE] Permissions in ... | android|geolocation|location|capacitor | -1 | 2022-09-24T12:43:57.390Z | 2,022 | 9 | 12 | 5 | 10 | 0 | 347 | 111 | 4 | 3 | true | true | false | false | false | true | negative |
73,837,342 | Android Dialog dialog (activity context) not dismissed when activity is killed in background | <p>This one is fairly simple, so I hope I get an answer
I have an Activity which displays dialogs using both fragments (dismiss is easy to handle in fragment) and the classic <code>Dialog dialog (Context c)</code> where context is the activity context I get in <code>onCreate()</code> using <code>mContext = this</code><... | This one is fairly simple, so I hope I get an answer I have an Activity which displays dialogs using both fragments (dismiss is easy to handle in fragment) and the classic Dialog dialog (Context c) where context is the activity context I get in onCreate() using mContext = this Now, if I activate the developer's option ... | android|memory-leaks|dialog|kill|dismiss | 1 | 2022-09-24T12:47:54.253Z | 2,022 | 9 | 12 | 5 | 15 | 1 | 1,168 | 92 | 5 | 3 | true | false | false | false | false | false | low |
73,837,480 | React-Native multiple codebase issue | <p>I have a working React-Native iOS app that I am now testing on Android. So far, everything that needs modification for Android can be done by using Platform.OS to differentiate. However I have one vexing problem. For a particular feature, iOS requires one version of a package, and Android requires another. If I ... | I have a working React-Native iOS app that I am now testing on Android. So far, everything that needs modification for Android can be done by using Platform.OS to differentiate. However I have one vexing problem. For a particular feature, iOS requires one version of a package, and Android requires another. If I try to ... | android|ios|react-native | 0 | 2022-09-24T13:10:53.667Z | 2,022 | 9 | 13 | 5 | 16 | 0 | 464 | 36 | 3 | 0 | false | true | false | false | false | false | zero |
73,837,499 | Is it possible to generate CREATE TABLE SQL statements from an entity class for solve invalid schema error easily? | <p>I am working with a table with many columns in Android Room.</p>
<p>I have created the table in SQLite and the corresponding entity class in Java. And when I compile the application I have the error:</p>
<blockquote>
<p>E/AndroidRuntime: FATAL EXCEPTION: arch_disk_io_0 Process:
com.my.app, PID: 8356 ja... | I am working with a table with many columns in Android Room. I have created the table in SQLite and the corresponding entity class in Java. And when I compile the application I have the error: E/AndroidRuntime: FATAL EXCEPTION: arch_disk_io_0 Process: com.my.app, PID: 8356 java.lang.RuntimeException: Exception while co... | android|sqlite|android-room | -3 | 2022-09-24T13:14:15.983Z | 2,022 | 9 | 13 | 5 | 22 | 1 | 21,183 | 114 | 3 | 0 | false | false | false | false | false | true | negative |
73,837,505 | BottomNavigationView is not gets checked when switching, Navigation component | <p>I am new to Navigation component library. Here I have two bottom navigation fragments: a ProfileFragment and a TrendsFragment. From TrendsFragment, I can open a new fragment called BlankFragment. The problem is when I do Trends-Blank-Profile-Trends, it navigates to Blank fragment but the BottomNavigation button rema... | I am new to Navigation component library. Here I have two bottom navigation fragments: a ProfileFragment and a TrendsFragment. From TrendsFragment, I can open a new fragment called BlankFragment. The problem is when I do Trends-Blank-Profile-Trends, it navigates to Blank fragment but the BottomNavigation button remains... | java|android-fragments|uinavigationcontroller|bottomnavigationview|android-architecture-navigation | 0 | 2022-09-24T13:15:00.983Z | 2,022 | 9 | 13 | 5 | 6 | 0 | 797 | 77 | 5 | 2 | true | true | false | false | false | false | zero |
73,837,637 | NullPointerException on ConstraintLayout.setVisibility(int) after onActivityResult() (using Butterknife) | <p>There is an error I am facing that can't find the source of or any solution for it.</p>
<p>From my <strong>MainActivity</strong> I start another activity using <strong>startActivityForResult</strong> but <strong>later in the MainActivity's onActivityResult</strong> when I want to update a constraint layout's visibil... | There is an error I am facing that can't find the source of or any solution for it. From my MainActivity I start another activity using startActivityForResult but later in the MainActivity's onActivityResult when I want to update a constraint layout's visibility the following error happens, because the view becomes nul... | android|firebase|android-studio|crashlytics|butterknife | 0 | 2022-09-24T13:36:22.650Z | 2,022 | 9 | 13 | 5 | 17 | 0 | 690 | 104 | 5 | 2 | true | true | false | false | false | false | zero |
73,837,670 | How do you only subscribe once upon UI event for an observable network call (RxJava2)? | <p>I'm learning RxJava 2 and want to learn more on how to use it for Android development.</p>
<p>One thing I'm not quite sure of is subscribing to an observable only once in an event handler. For example, a button click triggering a network call.</p>
<p>The main reason for wanting to subscribe only once is because you ... | I'm learning RxJava 2 and want to learn more on how to use it for Android development. One thing I'm not quite sure of is subscribing to an observable only once in an event handler. For example, a button click triggering a network call. The main reason for wanting to subscribe only once is because you don't want to hav... | android|kotlin|rx-java | 0 | 2022-09-24T13:42:40.323Z | 2,022 | 9 | 13 | 5 | 8 | 0 | 858 | 86 | 3 | 0 | false | true | false | false | false | false | zero |
73,837,724 | Problem adding "com.github.persian-calendar:calendar" to an empty android project? | <p>What are the correct steps to add "com.github.persian-calendar:calendar:1.2.1" to an empty android project? I have tried different ways including this guide, but Gradle complains about all of them.</p>
<p>Build.gradle (project):</p>
<pre><code>buildscript {
ext { compose_version = '1.2.0' }
... | What are the correct steps to add "com.github.persian-calendar:calendar:1.2.1" to an empty android project? I have tried different ways including this guide, but Gradle complains about all of them. Build.gradle (project): [CODE] Build.gradle (module): [CODE] Error: org.gradle.api.GradleScriptException: A prob... | android|android-gradle-plugin | 0 | 2022-09-24T13:50:13.007Z | 2,022 | 9 | 13 | 5 | 14 | 1 | 635 | 82 | 2 | 2 | true | false | false | false | false | false | zero |
73,837,732 | Need code replacement for java.util.Arraylist and java.util.Comparator that works for min sdk 21 | <p>I am currently having a problem with my code. I am trying to create an application with the min sdk 21 and target sdk 32 but I can't find the code that will run with a min sdk 21. The current code I have has a requirement of min sdk 24. How do I fix this while not changing my min sdk 21 to 24. <code>arrayList.sort(C... | I am currently having a problem with my code. I am trying to create an application with the min sdk 21 and target sdk 32 but I can't find the code that will run with a min sdk 21. The current code I have has a requirement of min sdk 24. How do I fix this while not changing my min sdk 21 to 24. arrayList.sort(Comparator... | java|android|sdk|android-11 | -2 | 2022-09-24T13:50:56.323Z | 2,022 | 9 | 13 | 5 | 20 | 0 | 363 | 96 | 4 | 0 | false | true | false | false | false | true | negative |
73,837,742 | What does package:mine mean in Android Studio Logcat? | <p>I can see <code>package:mine</code> prefilled in the Android Studio Dolphin's Log cat filter. Can someone explain what it means?</p> | I can see package:mine prefilled in the Android Studio Dolphin's Log cat filter. Can someone explain what it means? | android|android-studio|logcat | 0 | 2022-09-24T13:51:58.310Z | 2,022 | 9 | 13 | 5 | 26 | 1 | 115 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
73,837,753 | Jetpack Compose - ModalBottomSheet comes up with soft keyboard | <p>I have a problem with ModalBottomSheet and it's on my work computer so I can't record it to you right now. So basically, after I give focus to one of my TextFields, my keyboard comes up and pushes all the content upwards so I can see the TextField that I'm writing to. When I'm hiding my keyboard I can see that my Mo... | I have a problem with ModalBottomSheet and it's on my work computer so I can't record it to you right now. So basically, after I give focus to one of my TextFields, my keyboard comes up and pushes all the content upwards so I can see the TextField that I'm writing to. When I'm hiding my keyboard I can see that my Modal... | kotlin|android-jetpack-compose | 0 | 2022-09-24T13:53:44.460Z | 2,022 | 9 | 13 | 5 | 11 | 0 | 446 | 62 | 2 | 0 | false | true | false | false | false | false | zero |
73,837,776 | Is it the normal behaviour for Android Studio to lose all settings after an upgrade via Jetbrains Toolbox? | <p>I'm currently using <code>Android Studio Chipmunk 2021.2.1 Patch 2 212.5712.43.2112.8815526</code>, and would like to upgrade to the latest <code>Android Studio Dolphin 2021.3.1</code>.</p>
<p>Jetbrains Toolbox is providing an option for this upgrade.</p>
<p>However, when the new version gets installed and I open An... | I'm currently using Android Studio Chipmunk 2021.2.1 Patch 2 212.5712.43.2112.8815526 , and would like to upgrade to the latest Android Studio Dolphin 2021.3.1 . Jetbrains Toolbox is providing an option for this upgrade. However, when the new version gets installed and I open Android Studio, all the settings that I had... | android-studio|jetbrains-toolbox | 0 | 2022-09-24T13:56:32.903Z | 2,022 | 9 | 13 | 5 | 8 | 0 | 765 | 106 | 2 | 1 | true | true | false | false | false | false | zero |
73,837,911 | FrameEvents(31583): updateAcquireFence: Did not find frame | <p>when I switch to some pages in my application that I set up with InAppwebView, I get this error ( updateAcquireFence: Did not find frame ) the same project works without any problem on the device with android version 6, but on devices with android version 11 12 I get this error. Can you help, thanks in advance</p>
<... | when I switch to some pages in my application that I set up with InAppwebView, I get this error ( updateAcquireFence: Did not find frame ) the same project works without any problem on the device with android version 6, but on devices with android version 11 12 I get this error. Can you help, thanks in advance [CODE] | android|flutter|dart|flutter-inappwebview | 0 | 2022-09-24T14:17:30.123Z | 2,022 | 9 | 14 | 5 | 19 | 0 | 318 | 58 | 4 | 1 | true | true | false | false | false | false | zero |
73,837,931 | Generate sine tone on button click android studio | <p>I want to create a app that produces sine tone on button click android studio .
Please help me with xml and java code.
Thanks in advance</p> | I want to create a app that produces sine tone on button click android studio . Please help me with xml and java code. Thanks in advance | android|buttonclick|sine-wave | -1 | 2022-09-24T14:19:50.223Z | 2,022 | 9 | 14 | 5 | 10 | 0 | 136 | 49 | 3 | 0 | false | true | false | false | false | true | negative |
73,837,949 | Black screen when loading activity which contains mediaplayer (url) when internet is slow | <p>am getting a black screen when loading a new activity which contains mediaplayer with an mp3 from a URL. if internet is fast e.g 4G , everything is okay and it takes a few seconds to load. but if internet is slow. e.g 2g and 3g , it takes very long and brings a black screen . i need the activity to load without inte... | am getting a black screen when loading a new activity which contains mediaplayer with an mp3 from a URL. if internet is fast e.g 4G , everything is okay and it takes a few seconds to load. but if internet is slow. e.g 2g and 3g , it takes very long and brings a black screen . i need the activity to load without interne... | java|android|kotlin|url | 0 | 2022-09-24T14:23:27.853Z | 2,022 | 9 | 14 | 5 | 9 | 0 | 408 | 89 | 4 | 1 | true | true | false | false | false | false | zero |
73,837,968 | Why using DTO model class for data source and another model class for domain layer? | <p>what are the advantages of using different model classes rather than just making one model for network requests and for the domain layer I did not get the idea of mapping models why do even we need that when we can use one model?</p> | what are the advantages of using different model classes rather than just making one model for network requests and for the domain layer I did not get the idea of mapping models why do even we need that when we can use one model? | android|kotlin|retrofit|clean-architecture | 0 | 2022-09-24T14:26:18.640Z | 2,022 | 9 | 14 | 5 | 27 | 1 | 229 | 83 | 4 | 0 | false | false | false | false | false | false | zero |
73,837,974 | Android: How to share an Uri returned from SAF? | <p>I meet some problems when I'm trying to share some files among apps. In app A, one can choose to open an existing file via <code>openDocument()</code>:</p>
<pre class="lang-kotlin prettyprint-override"><code>val launcher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.OpenDocument()
... | I meet some problems when I'm trying to share some files among apps. In app A, one can choose to open an existing file via openDocument() : [CODE] Then, app A can share the uri to other apps by: [CODE] Since Uri returned from SAF just starts with "content://", FileProvider is not used here. Then something wei... | android | 0 | 2022-09-24T14:27:55.833Z | 2,022 | 9 | 14 | 5 | 8 | 1 | 900 | 47 | 1 | 2 | true | false | false | false | false | false | zero |
73,837,985 | error: [firebase_auth/unknown] Given String is empty or null | <p>I don't know i can't create user with email and password to firebase
Here is my error</p>
<hr />
<p>I am a newbie to flutter and firebase and i don't know why</p>
<pre><code>D/EGL_emulation( 9585): eglMakeCurrent: 0xb1386320: ver 2 0 (tinfo 0xb1383e20)
I/art ( 9585): Do partial code cache collection, code=16KB, ... | I don't know i can't create user with email and password to firebase Here is my error I am a newbie to flutter and firebase and i don't know why [CODE] Here is my code with firebase -------- [CODE] | android|ios|flutter|firebase-authentication|cross-platform | 0 | 2022-09-24T14:29:04.907Z | 2,022 | 9 | 14 | 5 | 14 | 0 | 197 | 60 | 5 | 2 | true | true | false | false | false | false | zero |
73,838,031 | How do you handle dependency update issue with KotlinDSL and buildSrc? | <p>Nowadays most of the people say that <strong>it is better to use buildSrc for multi module apps</strong> <em>in order to make sure there are not any hard coded same dependencies in some modules.</em></p>
<p>But if I keep all of my dependencies inside this <strong>buildSrc</strong> folder, I lose the feature of keepi... | Nowadays most of the people say that it is better to use buildSrc for multi module apps in order to make sure there are not any hard coded same dependencies in some modules. But if I keep all of my dependencies inside this buildSrc folder, I lose the feature of keeping these dependencies up-to-date(with yellow warnings... | android|kotlin|dependencies|gradle-kotlin-dsl | 0 | 2022-09-24T14:34:36.517Z | 2,022 | 9 | 14 | 5 | 11 | 0 | 654 | 70 | 4 | 0 | false | true | false | false | false | false | zero |
73,838,035 | Extension .jks to .keystore | <p>I have an keystore file named <code>'my_keystore.jks'</code>. This keystore file I'm using in my existing playstore app. I made the previous version of the app using <code>capacitor</code>. As I switched to React Native the keystore file is in extenstion type of <code>.keystore</code> (when we adding that to <code>g... | I have an keystore file named 'my_keystore.jks' . This keystore file I'm using in my existing playstore app. I made the previous version of the app using capacitor . As I switched to React Native the keystore file is in extenstion type of .keystore (when we adding that to gradle.properties file), My question is: How to... | javascript|java|android|react-native | 1 | 2022-09-24T14:34:52.267Z | 2,022 | 9 | 14 | 5 | 17 | 0 | 448 | 27 | 4 | 0 | false | true | false | false | false | false | low |
73,838,042 | not able to set a mp3 file as ringtone in android programatically | <p>I am trying to set a ringtone for a mp3 file. I am getting this file after trimming a song.</p>
<p>The code I am using is as follows</p>
<p><strong>Code: for setting the ringtone</strong></p>
<pre><code>private fun setRingtone(path: String){
try {
Log.d("setRingtone", "started"... | I am trying to set a ringtone for a mp3 file. I am getting this file after trimming a song. The code I am using is as follows Code: for setting the ringtone [CODE] where, [CODE] When I am using this, a ringtone gets set in mobile settings but the problem is that the sound of that ringtone is just a 'Ding' sound but not... | android|android-mediaplayer|trim|ringtone | 0 | 2022-09-24T14:36:56.247Z | 2,022 | 9 | 14 | 5 | 12 | 0 | 496 | 65 | 4 | 2 | true | true | false | false | false | false | zero |
73,838,052 | Firebase Realtime Database not working on Android 12 Api 31 While It's working fine on lower versions. A vpn connection is needed on Android 12 | <p><strong>Realtime Database</strong> not working on <strong>Api 31</strong> without <strong>VPN Connection</strong>
. A VPN connection is needed on <strong>Android 12</strong></p>
<p>It works fine on other Android versions.</p>
<p>I also tried the app on Physical Devices instead of Emulators but that didn't worked</p>... | Realtime Database not working on Api 31 without VPN Connection . A VPN connection is needed on Android 12 It works fine on other Android versions. I also tried the app on Physical Devices instead of Emulators but that didn't worked Screenshot Without VPN connection Screenshot With VPN Connection main_activity.xml [CODE... | java|android|firebase|android-12 | 0 | 2022-09-24T14:38:29.160Z | 2,022 | 9 | 14 | 5 | 13 | 0 | 373 | 143 | 4 | 3 | true | true | false | false | false | false | zero |
73,838,117 | Android: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo | <p>I am making an android application for generating gr codes and when it is launched, this error occurs. I don't know why this is happening</p>
<pre><code>FATAL EXCEPTION: main
Process: gq.egor.qrcodegenerator, PID: 26906
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{gq.egor.qrcode... | I am making an android application for generating gr codes and when it is launched, this error occurs. I don't know why this is happening [CODE] Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object ... | android|xml|kotlin|mobile|nullpointerexception | -1 | 2022-09-24T14:47:17.410Z | 2,022 | 9 | 14 | 5 | 9 | 0 | 359 | 109 | 5 | 2 | true | true | false | false | false | true | negative |
73,838,216 | Android Java file create java.io.FileNotFoundException (File name too long) | <p>I have a small Java code in Android Studio. I run it in emulator (Android 7.1.1 API 25).</p>
<p>How I validate a file name and file name length?</p>
<p>Should I check the length with path name or only file name!</p>
<p>I found Android support 255 character as a file name.</p>
<p>File name text in Language Bengali (U... | I have a small Java code in Android Studio. I run it in emulator (Android 7.1.1 API 25). How I validate a file name and file name length? Should I check the length with path name or only file name! I found Android support 255 character as a file name. File name text in Language Bengali (UNICODE UTF-8) [CODE] [CODE] ERR... | java|android | 0 | 2022-09-24T14:59:30.797Z | 2,022 | 9 | 14 | 5 | 23 | 0 | 518 | 75 | 2 | 2 | true | true | false | false | false | false | zero |
73,838,228 | Can I link a layout/view class to an XML item | <p>What I am trying to achieve (which I do not know if it is even doable, since I'm new to android development) is to have:</p>
<ol>
<li>A MainActivity class utilize/reference and XML layout (this i know is doable)</li>
<li>Within the MainActivity class also call a custom Layout programmatically (I am uncertain how to ... | What I am trying to achieve (which I do not know if it is even doable, since I'm new to android development) is to have: A MainActivity class utilize/reference and XML layout (this i know is doable) Within the MainActivity class also call a custom Layout programmatically (I am uncertain how to do this) To elaborate on ... | java|android|android-layout | 0 | 2022-09-24T15:00:34.577Z | 2,022 | 9 | 15 | 5 | 18 | 1 | 771 | 45 | 3 | 3 | true | false | false | false | false | false | zero |
73,838,269 | .Net: Is a good idea to use reflection on Android devices, while I'm getting only public fields? | <p>I'm building an app for android devices with the .net standard (Unity).</p>
<p>And I have used <strong>reflection</strong> to iterate throw all public properties in a model.</p>
<p>I have read some articles about reflection on Java and they didn't recommend using Reflection on JAVA, the reflection will get all the p... | I'm building an app for android devices with the .net standard (Unity). And I have used reflection to iterate throw all public properties in a model. I have read some articles about reflection on Java and they didn't recommend using Reflection on JAVA, the reflection will get all the properties even private ones. But o... | c#|android|.net|reflection | 3 | 2022-09-24T15:05:58.143Z | 2,022 | 9 | 15 | 5 | 27 | 0 | 671 | 96 | 4 | 1 | true | true | false | false | false | false | low |
73,838,519 | How to add data with Custom ID to firestore? | <pre><code>db.collection("users")
.add(user)
.addOnSuccessListener(new OnSuccessListener<DocumentReference>() {
@Override
public void onSuccess(DocumentReference documentReference) {
Log.d(TAG, "Document... | [CODE] -Above code generates ID automatically. How to add data with Custom ID to firestore ? My purpose is to create a custom ID and write text data into this collection. Can,you help me ? Thank you. | java|android|firebase|google-cloud-firestore | 0 | 2022-09-24T15:40:48.977Z | 2,022 | 9 | 15 | 5 | 15 | 1 | 199 | 44 | 4 | 1 | true | false | false | false | false | false | zero |
73,838,613 | Compose custom drag-and-drop list | <p>I am trying to create a drag-and-drop functionality for a lazy Column in compose inspired by this <a href="https://proandroiddev.com/basic-drag-n-drop-in-jetpack-compose-a6919ba58ba8" rel="nofollow noreferrer">article</a></p>
<p>The challenge I'm having is that I want to limit the movement, so that one cell can only... | I am trying to create a drag-and-drop functionality for a lazy Column in compose inspired by this article The challenge I'm having is that I want to limit the movement, so that one cell can only go up certain amount of cells, e.g. 'ggggg' can go only up to before 'ddddd'. I can't make it work. If I add the logic to the... | android|android-jetpack-compose | 0 | 2022-09-24T15:54:29.870Z | 2,022 | 9 | 15 | 5 | 10 | 0 | 703 | 33 | 2 | 0 | false | true | false | false | false | false | zero |
73,838,621 | Robolectric + PowerMock: Getting ClassCastException on assigning shadow for GoogleApiAvailability | <p>I am getting ClassCastException while obtaining the shadow object here. If I remove the PowerMockRule it works but I need that for other parts of the tests. Not able to figure out the reason for the exception. (AGP 7.2.2 / Gradle 7.3.3). Any idea?</p>
<pre><code>package com.example.hellopowermock;
import com.google... | I am getting ClassCastException while obtaining the shadow object here. If I remove the PowerMockRule it works but I need that for other parts of the tests. Not able to figure out the reason for the exception. (AGP 7.2.2 / Gradle 7.3.3). Any idea? [CODE] Exception: class com.google.android.gms.common.GoogleApiAvailabil... | android|powermock|robolectric|robolectric-shadows | 0 | 2022-09-24T15:56:11.897Z | 2,022 | 9 | 15 | 5 | 10 | 0 | 1,213 | 97 | 4 | 2 | true | true | false | false | false | false | zero |
73,838,650 | Window "load" event not firing on Android | <p>I've got some code that's working perfectly on all other devices but Andrdoid. I need to call a function when the window is done loading, so I'm using the following code:</p>
<pre><code>if(window.addEventListener){
console.log('adding event listener!');
// ^^^ this fires
window.addEventListener('load', s... | I've got some code that's working perfectly on all other devices but Andrdoid. I need to call a function when the window is done loading, so I'm using the following code: [CODE] I'm currently testing on a OnePlus 10 Pro and using remote debugging. Is there any workaround for this issue? | javascript|android|google-chrome | 0 | 2022-09-24T16:00:58.810Z | 2,022 | 9 | 16 | 5 | 16 | 0 | 287 | 41 | 3 | 1 | true | true | false | false | false | false | zero |
73,838,697 | How to get sum of Xs and Ys for a LinearLayout? | <p>This is my code trying to get sum of Xs and Ys
in my Linearlayout, but it doesn't give me right result.</p>
<pre><code>linear.post(new Runnable() {
@Override
public void run() {
Log.d("Sum ... | This is my code trying to get sum of Xs and Ys in my Linearlayout, but it doesn't give me right result. [CODE] | java|android | 0 | 2022-09-24T16:08:48.643Z | 2,022 | 9 | 16 | 5 | 20 | 0 | 110 | 47 | 2 | 1 | true | true | false | false | false | false | zero |
73,838,741 | My TextView shows empty when the application starts | <p>I'm new at Kotlin, and I'm doing a simple app where the user writes something on <code>EditText</code>, presses a button then the app proceeds to show that text on <code>SecondActivity</code>, on that <code>SecondActivity</code> the user can do exactly the same thing, but on the <code>FirstActivity</code> (the one w... | I'm new at Kotlin, and I'm doing a simple app where the user writes something on EditText , presses a button then the app proceeds to show that text on SecondActivity , on that SecondActivity the user can do exactly the same thing, but on the FirstActivity (the one who shows up on the user starts the app) there are on ... | android|kotlin | 0 | 2022-09-24T16:15:14.157Z | 2,022 | 9 | 16 | 5 | 29 | 2 | 623 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
73,838,872 | Width change of a view is not reflected in UI even though view.isInLayout is true | <p>I'm changing the width of a view and using <code>view.isInLayout</code> to decide whether to call <code>requestLayout()</code> or not.</p>
<p>But in some cases, even if <code>view.isInLayout</code> returns <code>true</code> in the function which updates the width, the width is not updated in UI.</p>
<p>Calling <code... | I'm changing the width of a view and using view.isInLayout to decide whether to call requestLayout() or not. But in some cases, even if view.isInLayout returns true in the function which updates the width, the width is not updated in UI. Calling requestLayout() after updating the width, irrespective of layout's state m... | android|android-layout|android-view | 0 | 2022-09-24T16:31:00.533Z | 2,022 | 9 | 16 | 5 | 9 | 1 | 494 | 81 | 3 | 0 | false | false | false | false | false | false | zero |
73,838,915 | How to update old project dependencies versions into latest android studio? | <p>I am learning one android project from youtube but that video is published 2 years ago. Now in order to use that code what changes i have to do in dependencies of libraries like room , Okhttp etcc and how can i update that project to latest verison easily?</p> | I am learning one android project from youtube but that video is published 2 years ago. Now in order to use that code what changes i have to do in dependencies of libraries like room , Okhttp etcc and how can i update that project to latest verison easily? | java|android|android-studio|kotlin | 1 | 2022-09-24T16:36:24.663Z | 2,022 | 9 | 16 | 5 | 24 | 1 | 256 | 75 | 4 | 0 | false | false | false | false | false | false | low |
73,838,920 | How to create a plain Kotlin library in Android Studio? | <p>I am developing a library on Kotlin. It containst only library files and JUnit tests, no executables.</p>
<p>Here is my lib/build.gradle</p>
<pre><code>apply plugin: 'java-library'
apply plugin: 'kotlin'
dependencies {
implementation files('libs/fastutil-core-8.5.8.jar')
testImplementation 'junit:junit:4.13... | I am developing a library on Kotlin. It containst only library files and JUnit tests, no executables. Here is my lib/build.gradle [CODE] This is my root build.gradle [CODE] And settings.gradle [CODE] After compiling the project I got this error: Plugin with id 'kotlin' not found. What plugin should I use to make it wor... | android-studio|kotlin|gradle | 0 | 2022-09-24T16:37:30.493Z | 2,022 | 9 | 16 | 5 | 13 | 0 | 322 | 55 | 3 | 3 | true | true | false | false | false | false | zero |
73,839,026 | Jetpack Compose: Displaying data in compose using MVVM | <p>Need a bit of help on why data from viewmodel is not shown in the composable function MainContent. I tried to use MVVM style with coroutine but without DI which I think will be easier but somehow, I could not get it to work.</p>
<p>The viewmodel is working as the log.d is showing the correct data from server but som... | Need a bit of help on why data from viewmodel is not shown in the composable function MainContent. I tried to use MVVM style with coroutine but without DI which I think will be easier but somehow, I could not get it to work. The viewmodel is working as the log.d is showing the correct data from server but somehow, I co... | android|kotlin|mvvm|android-jetpack-compose|ktor-client | 0 | 2022-09-24T16:52:45.480Z | 2,022 | 9 | 16 | 5 | 35 | 1 | 515 | 54 | 5 | 1 | true | false | false | false | false | false | zero |
73,839,251 | Compressing multiple images before uploading them to firebase android | <p>I am working on application users have to upload multiple images. Now the problem I am facing is their size. As users can upload multiple images it takes a lot of time to upload them through the application because of their heavy size which users do not like and also make my application and database heavy. Can you p... | I am working on application users have to upload multiple images. Now the problem I am facing is their size. As users can upload multiple images it takes a lot of time to upload them through the application because of their heavy size which users do not like and also make my application and database heavy. Can you plea... | java|android|google-cloud-firestore|image-compression | 0 | 2022-09-24T17:27:58.940Z | 2,022 | 9 | 17 | 5 | 17 | 1 | 404 | 69 | 4 | 0 | false | false | false | false | false | false | zero |
73,839,596 | How to change activity without input data? | <p>I am trying to use intent to pass input data to another activity. it works well by the way, but when I try to change the activity without any input data, application shuts down. How can I change the activity without input data and image file?</p>
<p>Here is the upload activity code :</p>
<pre><code>imageView = (Imag... | I am trying to use intent to pass input data to another activity. it works well by the way, but when I try to change the activity without any input data, application shuts down. How can I change the activity without input data and image file? Here is the upload activity code : [CODE] MainActivity code : [CODE] | java|android|android-intent | 0 | 2022-09-24T18:16:40.873Z | 2,022 | 9 | 18 | 5 | 9 | 2 | 311 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
73,839,609 | What is the difference between card_view and app:card? | <p>I am implementing CardView in my app and I have notice that it is working without creating a card_view using only "app:" -></p>
<p>What is the difference between A and B?</p>
<p>A:</p>
<pre><code><androidx.cardview.widget.CardView
android:layout_width="match_parent"
... | I am implementing CardView in my app and I have notice that it is working without creating a card_view using only "app:" -> What is the difference between A and B? A: [CODE] B: [CODE] | java|android|xml|view | 0 | 2022-09-24T18:18:32.203Z | 2,022 | 9 | 18 | 5 | 9 | 1 | 193 | 54 | 4 | 2 | true | false | false | false | false | false | zero |
73,839,617 | Add world map in which each country is clickable and show some data in Android Kotlin | <p>I want to add a map to my App, in which I want to make every country clickable independently, and It shows some data in form of a Piechart. I'm a beginner in App development, can anyone help me with any kind of suggestions....</p> | I want to add a map to my App, in which I want to make every country clickable independently, and It shows some data in form of a Piechart. I'm a beginner in App development, can anyone help me with any kind of suggestions.... | android|kotlin | 0 | 2022-09-24T18:19:11.503Z | 2,022 | 9 | 18 | 5 | 13 | 1 | 226 | 85 | 2 | 0 | false | false | false | false | false | false | zero |
73,839,672 | Can't change date with DatePicker in Flutter | <pre><code> MyInputField(
title: "Tarih",
hint: DateFormat('dd/MM/yyyy').format(_selectedDate),
widget: IconButton(
onPressed: () {
_getDateFromUser();
},
</code></pre>
<p>Date data I show in TextFormField.</p>
<pre><code> ... | [CODE] Date data I show in TextFormField. [CODE] The _getDateFromUser() function I defined When I click on the icon to change the date, the calendar appears. But the date I changed doesn't change in TextFormField. DateFormat('dd/MM/yyyy') Is it because of this structure? | android|flutter|dart | 1 | 2022-09-24T18:26:50.647Z | 2,022 | 9 | 18 | 5 | 12 | 1 | 271 | 44 | 3 | 2 | true | false | false | false | false | false | low |
73,839,678 | Kotlin: Pass data from fragment to activity using interfaces | <p>I have a simple project that has a main activity, an interface and a fragment. I am trying to figure out, when a button is clicked in the fragment, how to pass a simple boolean to the main activity using the interface.
Here is the interface:</p>
<pre><code> interface OnClickInterface {
fun onClick(proceed: Boolea... | I have a simple project that has a main activity, an interface and a fragment. I am trying to figure out, when a button is clicked in the fragment, how to pass a simple boolean to the main activity using the interface. Here is the interface: [CODE] } Here is the fragment: [CODE] } Here is the MainActvity: [CODE] } Exte... | kotlin|android-fragments|fragment | 0 | 2022-09-24T18:27:29.823Z | 2,022 | 9 | 18 | 5 | 25 | 0 | 566 | 60 | 3 | 4 | true | true | false | false | false | false | zero |
73,839,727 | UI does not update in repeat (Android-Kotlin) | <p>I have code to update the screen with a new image every 3 seconds but it only updates at the end of the loop and only with the last image</p>
<p>my code essentially</p>
<pre><code>button.setOnClickListener {
repeat(5){
Thread.sleep(3000)
findViewById<ImageView>(R.id.... | I have code to update the screen with a new image every 3 seconds but it only updates at the end of the loop and only with the last image my code essentially [CODE] I did not think it necessary to provide the rest of my code because it works, I only introduced the repeat because I wanted to see it loop through the imag... | android|kotlin | 0 | 2022-09-24T18:36:50.200Z | 2,022 | 9 | 18 | 5 | 10 | 0 | 362 | 45 | 2 | 1 | true | true | false | false | false | false | zero |
73,839,741 | How to create a Card with a lazy vertical list of items that can be nested within a scrollable Column using Compose? | <p>I'd like to have a Compose UI that is something like this (overly-simplified version)...</p>
<p><a href="https://i.stack.imgur.com/jqLcsm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jqLcsm.png" alt="enter image description here" /></a></p>
<p>Each carded list below each group is variable lengt... | I'd like to have a Compose UI that is something like this (overly-simplified version)... Each carded list below each group is variable length depending on the list of items fed to the composable. Here's two options for how to approach this (using either a Column or LazyColumn ): [CODE] If you try both Previews out in e... | android|android-jetpack-compose|jetpack-compose-column | 0 | 2022-09-24T18:38:53.913Z | 2,022 | 9 | 18 | 5 | 11 | 0 | 2,272 | 116 | 3 | 2 | true | true | false | false | false | false | zero |
73,839,774 | how to cancel previous job in kotlin | <p>I'm kinda stuck right now with my implementataion, when I execute my <code>acceptAllBlood()</code> the <code>generateBlood()</code> firing off instead but if I put cancel inside the combine I have an issue that I couldn't click my backpress but the <code>acceptAllBlood()</code> firing off, I tried already to debug i... | I'm kinda stuck right now with my implementataion, when I execute my acceptAllBlood() the generateBlood() firing off instead but if I put cancel inside the combine I have an issue that I couldn't click my backpress but the acceptAllBlood() firing off, I tried already to debug it, so when calling this acceptBlood() the ... | android|kotlin|mvvm|flow | 0 | 2022-09-24T18:45:03.223Z | 2,022 | 9 | 18 | 5 | 23 | 0 | 720 | 36 | 4 | 1 | true | true | false | false | false | false | zero |
73,839,819 | minCompileSdk from aar-metadata.properties gets overwritten everytime I try to compile | <p>I opened my project after 2 months and I get the error of:</p>
<p>The minCompileSdk (33) specified in a dependency’s AAR metadata is greater than this module’s compileSdkVersion</p>
<p>My compile/target sdk are 31 and the aar-metadata.properties is 33 so I edit it to be 31. However after changing it and running the ... | I opened my project after 2 months and I get the error of: The minCompileSdk (33) specified in a dependency’s AAR metadata is greater than this module’s compileSdkVersion My compile/target sdk are 31 and the aar-metadata.properties is 33 so I edit it to be 31. However after changing it and running the app I get the sam... | java|android|android-studio | 0 | 2022-09-24T18:54:11.040Z | 2,022 | 9 | 18 | 5 | 7 | 0 | 426 | 86 | 3 | 0 | false | true | false | false | false | false | zero |
73,839,829 | Firestore addSnapshotListener with list/array in Java | <p>I am trying to use <code>addSnapshotListener</code> to listen to the changes of <code>radiobutton</code> in Firestore, which works with the string. I simply want to categorize better by grouping the response with a <code>List</code>. However, I found that there is not a method for <code>snapshot.getList()</code> and... | I am trying to use addSnapshotListener to listen to the changes of radiobutton in Firestore, which works with the string. I simply want to categorize better by grouping the response with a List . However, I found that there is not a method for snapshot.getList() and therefore I tried with List<String> participate = sna... | java|android|firebase|google-cloud-firestore|radio-button | 0 | 2022-09-24T18:56:52.390Z | 2,022 | 9 | 18 | 5 | 13 | 0 | 729 | 53 | 5 | 4 | true | true | false | false | false | false | zero |
73,839,837 | Getting error while declaring a char variable in arduino-IDE | <p>I am trying to program ESP8266-Wifi module through Arduino-IDE.
I am having an error in the following code snippet, any help would be much appreciated.</p>
<pre><code>// Import required libraries
#include <ESP8266WiFi.h>
// WiFi parameters
constchar* ssid = "your_wifi_name";
constchar* password = &q... | I am trying to program ESP8266-Wifi module through Arduino-IDE. I am having an error in the following code snippet, any help would be much appreciated. [CODE] below you'd find the error which is given by my arduino IDE version 1.8.18: [CODE] | arduino|android-wifi|arduino-esp8266|const-char | 0 | 2022-09-24T18:59:00.233Z | 2,022 | 9 | 18 | 5 | 18 | 0 | 241 | 60 | 4 | 2 | true | true | false | false | false | false | zero |
73,839,854 | Please help - Jetpack Compose Testing - Hilt - ViewModel - Repository | <p>I am trying to learn how to test with Jetpack Compose and I'm feeling lost. I'm not sure what I am doing wrong. I want to test the MainScreen, but it is nested in a ScreenNavigation() and needs a ViewModel and a NavController. I'm really confused how this works. It is telling me it can't find the activity. Im not su... | I am trying to learn how to test with Jetpack Compose and I'm feeling lost. I'm not sure what I am doing wrong. I want to test the MainScreen, but it is nested in a ScreenNavigation() and needs a ViewModel and a NavController. I'm really confused how this works. It is telling me it can't find the activity. Im not sure ... | android|kotlin|android-jetpack-compose | 0 | 2022-09-24T19:00:52.527Z | 2,022 | 9 | 19 | 5 | 24 | 1 | 706 | 69 | 3 | 2 | true | false | false | false | false | false | zero |
73,839,892 | What is best way to fetch data and caching on android? | <p>I'm currently using the algorithm networkboundresource provided by google, it has it's limitations and I wanted to know what is the best way to go about it?</p>
<p>I want to fetch data, cache it and to update the cached data whenever new data has been added to the server/remote database</p>
<pre><code>
override susp... | I'm currently using the algorithm networkboundresource provided by google, it has it's limitations and I wanted to know what is the best way to go about it? I want to fetch data, cache it and to update the cached data whenever new data has been added to the server/remote database [CODE] [CODE] | kotlin|retrofit2|android-room|android-jetpack | 0 | 2022-09-24T19:05:24.600Z | 2,022 | 9 | 19 | 5 | 15 | 0 | 294 | 54 | 4 | 2 | true | true | false | false | false | false | zero |
73,839,935 | Navigation host is not showing in Navigation graph | <p><strong>main activity (called news activity)</strong></p>
<pre><code><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"... | main activity (called news activity) [CODE] and mine nav_graph.xml code [CODE] i have tried to restart and cache android studio but it didnt work. and also updated navigation dependencies to latest version.. | android|android-studio | 0 | 2022-09-24T19:11:50.857Z | 2,022 | 9 | 19 | 5 | 7 | 1 | 207 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
73,839,979 | I want to develop simple flutter offline quiz | <p>app should contain 4 multiple choice questions I am beginner in flutter so anyone please provide any solution</p> | app should contain 4 multiple choice questions I am beginner in flutter so anyone please provide any solution | android|flutter|dart | -4 | 2022-09-24T19:19:25.937Z | 2,022 | 9 | 19 | 5 | 18 | 1 | 109 | 45 | 3 | 0 | false | false | false | false | false | true | negative |
73,840,060 | Android 13, API 33 - random crashes in native library | <p>Since we have used API 33, facing random crashes in our native library.</p>
<p>The process id mentioned in the crash details belongs to our apk but thread id does not. Appears that the crash is inside a thread internally used by Android.</p>
<p>Some weired lines in the log are:</p>
<p>12763 12783 D vulkan : searchi... | Since we have used API 33, facing random crashes in our native library. The process id mentioned in the crash details belongs to our apk but thread id does not. Appears that the crash is inside a thread internally used by Android. Some weired lines in the log are: 12763 12783 D vulkan : searching for layers in '/data/a... | android|api|crash|native | 0 | 2022-09-24T19:31:48.590Z | 2,022 | 9 | 19 | 5 | 9 | 0 | 711 | 53 | 4 | 0 | false | true | false | false | false | false | zero |
73,840,082 | A Swift/iOS Class Equivalent to Android Dialog? | <p>If I want to create a pop up view in Android, say on clicking a button, a QR code will pop up and things behind will be blurred a bit, I called the Dialog class in Android/Java, which I think is more like a View in iOS.</p>
<p>May I know whether there is a class which is almost equivalent in iOS? I googled around an... | If I want to create a pop up view in Android, say on clicking a button, a QR code will pop up and things behind will be blurred a bit, I called the Dialog class in Android/Java, which I think is more like a View in iOS. May I know whether there is a class which is almost equivalent in iOS? I googled around and seems no... | android|ios|swift|android-dialog | 1 | 2022-09-24T19:36:50.990Z | 2,022 | 9 | 19 | 5 | 19 | 1 | 692 | 47 | 4 | 0 | false | false | false | false | false | false | low |
73,840,101 | Problem in Importing DateTimeUtils package by thunder413 | <p>I am trying to import thunder413/DateTimeUtils library for my android-kotlin project.
Even though it shows successfully imported, I am unable to use the package inside the project.</p>
<p>package link:- <a href="https://github.com/thunder413/DateTimeUtils" rel="nofollow noreferrer">https://github.com/thunder413/Date... | I am trying to import thunder413/DateTimeUtils library for my android-kotlin project. Even though it shows successfully imported, I am unable to use the package inside the project. package link:- https://github.com/thunder413/DateTimeUtils I did the same as mentioned in the readme file but still use it in the project. | android|kotlin|datetime|android-library | 0 | 2022-09-24T19:38:58.337Z | 2,022 | 9 | 19 | 5 | 10 | 0 | 319 | 56 | 4 | 0 | false | true | false | false | false | false | zero |
73,840,103 | How to check if a selected date range is within a date range | <p>I'm trying to check if a selected dates range by the user is within a range of dates exist in database.</p>
<p>e.g.</p>
<p>User select :</p>
<p><strong>Start date : 24/09/2022</strong></p>
<p><strong>End date : 30/09/2022</strong></p>
<p>Date range in database is :</p>
<p><strong>Start date : 28/09/2022</strong></p>... | I'm trying to check if a selected dates range by the user is within a range of dates exist in database. e.g. User select : Start date : 24/09/2022 End date : 30/09/2022 Date range in database is : Start date : 28/09/2022 End date : 30/09/2022 My code so far : [CODE] Methods used : [CODE] Issue: 28/09 --> 30/09 is withi... | java|android|date|datetime | 0 | 2022-09-24T19:39:39.777Z | 2,022 | 9 | 19 | 5 | 29 | 2 | 458 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
73,840,145 | How to Test Array Adapter with Binding with Robolectric and Mockito | <p>override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {</p>
<p>val binding: DeveloperBinding</p>
<p>if (convertView == null) {</p>
<p>binding = DeveloperBinding.inflate(mInflater, parent, false)</p>
<p>binding.root.tag = binding</p>
<p>} else {</p>
<p>binding = convertView.tag as Developer... | override fun getView(position: Int, convertView: View?, parent: ViewGroup): View { val binding: DeveloperBinding if (convertView == null) { binding = DeveloperBinding.inflate(mInflater, parent, false) binding.root.tag = binding } else { binding = convertView.tag as DeveloperBinding } Actually I m getting error in infla... | android|kotlin|mockito|robolectric | 0 | 2022-09-24T19:45:47.977Z | 2,022 | 9 | 19 | 5 | 10 | 0 | 567 | 67 | 4 | 0 | false | true | false | false | false | false | zero |
73,840,249 | How to create dialog like this? | <p>How to create dialog like this?
Don't have to set custom .xml view.
I tried to set the theme style but still not the same.
Create dialog</p>
<pre><code>AlertDialog mAlertDialog = new MaterialAlertDialogBuilder(MainActivity.this, R.style.AlertDialogTheme)
.setTitle("Title")
... | How to create dialog like this? Don't have to set custom .xml view. I tried to set the theme style but still not the same. Create dialog [CODE] file style AlertDialogTheme [CODE] Dialog | android|styles|android-alertdialog | -1 | 2022-09-24T20:04:11.933Z | 2,022 | 9 | 20 | 5 | 12 | 0 | 185 | 31 | 3 | 2 | true | true | false | false | false | true | negative |
73,840,387 | MediaStore.Audio.Media.EXTERNAL_CONTENT_URI is deprecated for api 29+? | <p>I am developing an offline music player application. For this, I get the data of the music with MediaStore.Audio.Media.DATA and a similar structure and list them on the recycler view. The code works fine up to api level 29, but not working api 29 and later. On the Google MediStore Documents page, it is written that ... | I am developing an offline music player application. For this, I get the data of the music with MediaStore.Audio.Media.DATA and a similar structure and list them on the recycler view. The code works fine up to api level 29, but not working api 29 and later. On the Google MediStore Documents page, it is written that the... | java|android | 1 | 2022-09-24T20:31:15.807Z | 2,022 | 9 | 20 | 5 | 11 | 0 | 826 | 70 | 2 | 1 | true | true | false | false | false | false | low |
73,840,408 | Android phone connect by usb using a cable gives an error as descriptor not identified on windows device manager | <p>I am here to solve this problem, but I need reputation to answer this...It will usually happen when you update your phone with waze or android auto, or maybe android update and you dont reboot the phone....when you connect it using a cable, it will charge your phone, but wont recognize so you cant upload or download... | I am here to solve this problem, but I need reputation to answer this...It will usually happen when you update your phone with waze or android auto, or maybe android update and you dont reboot the phone....when you connect it using a cable, it will charge your phone, but wont recognize so you cant upload or download fi... | android|windows|usb|descriptor | 0 | 2022-09-24T20:33:46.077Z | 2,022 | 9 | 20 | 5 | 10 | 0 | 390 | 112 | 4 | 0 | false | true | false | false | false | false | zero |
73,840,508 | Flutter audioplayer - when clicking slider, the music plays even it should be paused | <pre><code>import 'package:flutter/material.dart';
import 'package:audioplayers/audioplayers.dart';
import 'dart:ui';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const Materi... | [CODE] I am currently making the audio player using flutter audio player. I am having a problem with the slider. For the music playing, play and pause icons are working well as when they are clicked, the music plays and stops. However, when I click slider to specific point, music plays even when the status of the music... | android|flutter|dart|flutter-dependencies|audio-player | 0 | 2022-09-24T20:51:18.367Z | 2,022 | 9 | 20 | 5 | 7 | 0 | 403 | 84 | 5 | 1 | true | true | false | false | false | false | zero |
73,840,516 | Is there a way to set up an app bar/action bar in an Android app without going through the appcompat library? | <p>I'm having a "this can't be right moment" trying to learn Android app development. I want to add some buttons to the top bar (app bar, toolbar, action bar, etc) of my Activity. Apparently this thing is called the <a href="https://developer.android.com/develop/ui/views/components/appbar" rel="nofollow noref... | I'm having a "this can't be right moment" trying to learn Android app development. I want to add some buttons to the top bar (app bar, toolbar, action bar, etc) of my Activity. Apparently this thing is called the app bar . But when I read the docs, I feel like I'm taking crazy pills: This class describes how ... | android | 0 | 2022-09-24T20:53:17.577Z | 2,022 | 9 | 20 | 5 | 10 | 0 | 1,794 | 109 | 1 | 0 | false | true | false | false | false | false | zero |
73,840,524 | TradingView Lightweight charts KOTLIN | <p>please let me know how to set Data in tradingview light weight candlestick chart, I am trying to make intraday candle stick chart, but unable to set time however if I pas Date it works fine but not working with time.</p>
<p><code>CandlestickData(Time.StringTime("2019-04-23"), 57.62f, 57.72f, 56.30f, 57.15f... | please let me know how to set Data in tradingview light weight candlestick chart, I am trying to make intraday candle stick chart, but unable to set time however if I pas Date it works fine but not working with time. CandlestickData(Time.StringTime("2019-04-23"), 57.62f, 57.72f, 56.30f, 57.15f), CandlestickDa... | android|android-studio|kotlin|tradingview-api|kotlin-android-extensions | 0 | 2022-09-24T20:54:51.857Z | 2,022 | 9 | 20 | 5 | 7 | 0 | 781 | 37 | 5 | 0 | false | true | false | false | false | false | zero |
73,840,673 | CenterAlignedTopAppBar won't scroll. What am I doing wrong? | <p>I am trying to add a scrollable behavior to the topBar parameter of Scaffold. In the <a href="https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#CenterAlignedTopAppBar(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Function1,androidx.compose.foundation.la... | I am trying to add a scrollable behavior to the topBar parameter of Scaffold. In the documentation it says, that I can add the scrollable behavior by setting the CenterAlignedTopAppBar parameter scrollBehavior . However it doesn't seem to work. The following answer from StackOverflow didn't help. Any advice appreciated... | android|kotlin|android-jetpack-compose|android-jetpack-compose-material3 | 0 | 2022-09-24T21:25:07.953Z | 2,022 | 9 | 21 | 5 | 14 | 0 | 354 | 59 | 4 | 1 | true | true | false | false | false | false | zero |
73,840,704 | Why is setAlarmClock not working for me in my dialog fragment? | <p>I am trying to set an android alarm manager, alarmMgr?.setAlarmClock . I have the code towards the bottom in my recyclerview adapter. It works fine to set the alarm. But in my dialog fragment, the code toward the top, whenever I hit the button to close the dialog fragment and also set the alarm, it does not work. I ... | I am trying to set an android alarm manager, alarmMgr?.setAlarmClock . I have the code towards the bottom in my recyclerview adapter. It works fine to set the alarm. But in my dialog fragment, the code toward the top, whenever I hit the button to close the dialog fragment and also set the alarm, it does not work. I do ... | android|kotlin|android-recyclerview|setalarmclock | 0 | 2022-09-24T21:30:12.157Z | 2,022 | 9 | 21 | 5 | 12 | 0 | 442 | 62 | 4 | 1 | true | true | false | false | false | false | zero |
73,840,705 | Add Retrofit @Query for value in the middle of link | <p>I have this link which contains different params , i want to search more through making a new request which will require passing id_ruta , i tried to pass it as params but not working , can anyone please help me , Thank you</p>
<ul>
<li>This is the link</li>
</ul>
<pre><code> https://www.samplesite.com/index.php/Ru... | I have this link which contains different params , i want to search more through making a new request which will require passing id_ruta , i tried to pass it as params but not working , can anyone please help me , Thank you This is the link [CODE] This is my code [CODE] | android|kotlin|retrofit | -1 | 2022-09-24T21:30:28.793Z | 2,022 | 9 | 21 | 5 | 7 | 0 | 270 | 51 | 3 | 2 | true | true | false | false | false | true | negative |
73,840,797 | Android Firebase query return Null | <p>I'm working on a project where there's an activity which contains 3 spinners( Nested). I need the 2nd spinner to have the data based on the selected item of the 1st spinner and the data is retrieved from Firebase</p>
<p><a href="https://i.stack.imgur.com/Rutlr.png" rel="nofollow noreferrer"><img src="https://i.stack... | I'm working on a project where there's an activity which contains 3 spinners( Nested). I need the 2nd spinner to have the data based on the selected item of the 1st spinner and the data is retrieved from Firebase The 1st spinner is going to have all "Gouv" values , the 2nd one is going to have the "Deleg... | java|android|firebase|firebase-realtime-database | 0 | 2022-09-24T21:51:18.950Z | 2,022 | 9 | 21 | 5 | 14 | 1 | 500 | 34 | 4 | 1 | true | false | false | false | false | false | zero |
73,840,812 | How to fix APK EASY TOOL compile failed error | <p>I hope you are doing well.</p>
<p>Please, could someone had the same problem with APK to help.</p>
<p>When I try to compile an apk with apk easy tool it says:</p>
<p><strong>compline failed. Please read the log.
brut.androlidexception: brut.common.brutexception: could not exec (exit code = 1)</strong></p>
<p>Here is... | I hope you are doing well. Please, could someone had the same problem with APK to help. When I try to compile an apk with apk easy tool it says: compline failed. Please read the log. brut.androlidexception: brut.common.brutexception: could not exec (exit code = 1) Here is the log: 9/24/2022 10:33:46 PM Compiling APK fi... | java|android|apk | 0 | 2022-09-24T21:54:11.533Z | 2,022 | 9 | 21 | 5 | 8 | 0 | 3,854 | 45 | 3 | 0 | false | true | false | false | false | false | zero |
73,840,906 | No connection to Firebase | <p>I have been trying to solve this problem for a few hours with different alternatives that I find in Google and nothing, I do not solve the problem.</p>
<p><strong>build.gradle</strong></p>
<pre><code>plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.gms.google-servic... | I have been trying to solve this problem for a few hours with different alternatives that I find in Google and nothing, I do not solve the problem. build.gradle [CODE] another.. [CODE] settings.gradle [CODE] I commented that because I was getting this error: A problem occurred evaluating root project 'Foods'. Build was... | android|firebase|kotlin|google-cloud-firestore | 0 | 2022-09-24T22:15:53.490Z | 2,022 | 9 | 22 | 5 | 16 | 0 | 1,540 | 25 | 4 | 3 | true | true | false | false | false | false | zero |
73,841,048 | Android Publisher Google Console API is not returning list of reviews | <p>Based on <a href="https://developers.google.com/android-publisher/api-ref/rest/v3/reviews/list" rel="nofollow noreferrer">google documentation</a>, I am calling the endpoint for fetching all reviews like here:</p>
<pre><code>curl \
'https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.questio... | Based on google documentation , I am calling the endpoint for fetching all reviews like here: [CODE] but this endpoint returns an empty objec {}, like there is no review to fetch but there are: Click here to see public reviews that I want to fetch | google-api|google-developers-console|android-package-managers | 0 | 2022-09-24T22:52:58.507Z | 2,022 | 9 | 22 | 5 | 8 | 0 | 247 | 69 | 3 | 1 | true | true | false | false | false | false | zero |
73,841,073 | Material Button Toggle Group doesn't switch switch state correctly after check() function | <p>It seems like after calling check() function on Material Button Toggle Group object, there is one additional and unwanted call to addOnButtonCheckedListener. First one is desired and correct and second one is restoring check status to previous one, so the result is that nothing changes. Can somebody tell me what i d... | It seems like after calling check() function on Material Button Toggle Group object, there is one additional and unwanted call to addOnButtonCheckedListener. First one is desired and correct and second one is restoring check status to previous one, so the result is that nothing changes. Can somebody tell me what i did ... | android|android-studio|material-design | 0 | 2022-09-24T22:58:09.923Z | 2,022 | 9 | 22 | 5 | 15 | 0 | 1,065 | 89 | 3 | 3 | true | true | false | false | false | false | zero |
73,841,083 | Is this a Kotlin compiler bug? Removing unnecessary `val` qualifier breaks this class | <p>I have a class <code>OverlaySensorViewModel</code> that exposes a <code>Flow<Boolean></code>. This <code>Flow</code> object comes from an object that it receives in a constructor:</p>
<pre><code>class OverlaySensorViewModel(val repository: Repository) {
val showTimer = repository.showTimer
}
</code></pre>
<... | I have a class OverlaySensorViewModel that exposes a Flow<Boolean> . This Flow object comes from an object that it receives in a constructor: [CODE] Other classes then reference showTimer as viewModel.showTimer . The repository parameter is not being used outside of initialization, so it technically doesn't need to be ... | java|android|kotlin|jvm|kotlin-flow | 1 | 2022-09-24T22:59:41.590Z | 2,022 | 9 | 22 | 5 | 33 | 0 | 2,248 | 85 | 5 | 4 | true | true | false | false | false | false | low |
73,841,107 | PHP FCM push notification URL parameter cached Android | <p>I am using PHP to send push notifications via Firebase Cloud Messaging.</p>
<p>The URL of the payload changes depending on the parameters sent by the app to the PHP page. When the notification comes in and the user clicks it, it opens a browser with the URL sent to FCM via the PHP script below. However, every subseq... | I am using PHP to send push notifications via Firebase Cloud Messaging. The URL of the payload changes depending on the parameters sent by the app to the PHP page. When the notification comes in and the user clicks it, it opens a browser with the URL sent to FCM via the PHP script below. However, every subsequent notif... | php|android|notifications|firebase-cloud-messaging|push | 0 | 2022-09-24T23:07:34.713Z | 2,022 | 9 | 23 | 5 | 14 | 0 | 644 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
73,841,178 | Visual Studio 2022 Android Device Manager - Emulator device setup "The decryption operation failed, see inner exception." | <p>Just installed Visual Studio Community 2022 on Windows 10 and started a basic hello world Maui template, tried to run it on the Android emulator, followed the directions from a website to setup a new Android emulator virtual device. After it downloads, I get the decryption error in the screenshot. If I try again i... | Just installed Visual Studio Community 2022 on Windows 10 and started a basic hello world Maui template, tried to run it on the Android emulator, followed the directions from a website to setup a new Android emulator virtual device. After it downloads, I get the decryption error in the screenshot. If I try again it sta... | android|android-emulator|visual-studio-2022|maui|android-device-manager | 0 | 2022-09-24T23:25:57.343Z | 2,022 | 9 | 23 | 5 | 16 | 0 | 1,119 | 121 | 5 | 0 | false | true | false | false | false | false | zero |
73,841,192 | CPython cross compilation for android: java.lang.UnsatisfiedLinkError: dlopen failed: library "libpython2.7.so.1.0" not found | <p>I want to cross compile cpython for Android, I used the script provided in this github <a href="https://github.com/mustime/py4android" rel="nofollow noreferrer">link</a>.</p>
<p>Download the source code of <a href="https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz" rel="nofollow noreferrer">cpython</a> v... | I want to cross compile cpython for Android, I used the script provided in this github link . Download the source code of cpython version 2.7.18 and place it in the same directory as the script Run the script using this command: [CODE] Everything goes as expected and generates a python2.7.a static library for each arch... | android|android-ndk|cross-compiling|cpython | 0 | 2022-09-24T23:28:20.413Z | 2,022 | 9 | 23 | 5 | 13 | 0 | 1,187 | 125 | 4 | 7 | true | true | false | false | false | false | zero |
73,841,203 | How long is a long tap? | <p>As I understand it, there is no "long tap" event in JavaScript - this isn't a huge problem because I can start a timer on "touchstart" and check to see if the user it still interacting with the same element after X seconds. My question is: <strong>how long is X seconds?</strong></p>
<p>The reason... | As I understand it, there is no "long tap" event in JavaScript - this isn't a huge problem because I can start a timer on "touchstart" and check to see if the user it still interacting with the same element after X seconds. My question is: how long is X seconds? The reason I ask this is that it seem... | javascript|android|iphone | 0 | 2022-09-24T23:30:31.690Z | 2,022 | 9 | 23 | 5 | 11 | 0 | 1,121 | 23 | 3 | 0 | false | true | false | false | false | false | zero |
73,841,278 | package expo.modules does not exist after upgrading the expo sdk | <p>I've upgraded my bare expo sdk from 44 to 45 and now I keep getting a lot of errors when I'm trying to build the android:</p>
<pre><code>//MainActivity.java
import expo.modules.devlauncher.DevLauncherController;
import expo.modules.ReactActivityDelegateWrapper;
</code></pre>
<p>the errors I receive:</p>
<pre><code>e... | I've upgraded my bare expo sdk from 44 to 45 and now I keep getting a lot of errors when I'm trying to build the android: [CODE] the errors I receive: [CODE] I didn't add any new code to the MainActivity.java and I can see the expo-updates": "~0.13.4 in my package.json. I tried to install npx install-expo-mod... | java|android|react-native|expo | 0 | 2022-09-24T23:49:52.133Z | 2,022 | 9 | 23 | 5 | 10 | 0 | 460 | 64 | 4 | 2 | true | true | false | false | false | false | zero |
73,841,316 | I have an error in Android Studio SceneForm error | <p>I have this code but whit an error:</p>
<p>Error:
<strong>Frame frame = customArFragment.getArSceneView().getArFrame();</strong></p>
<p><a href="https://i.stack.imgur.com/3mZVR.png" rel="nofollow noreferrer">HERE THE IMAGE</a></p>
<pre><code>public class FotoActivity extends AppCompatActivity {
private ModelRend... | I have this code but whit an error: Error: Frame frame = customArFragment.getArSceneView().getArFrame(); HERE THE IMAGE [CODE] Execution failed for task ':app:compileDebugJavaWithJavac'. error: invalid source release: 15 Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights... | java|android|sceneform | 0 | 2022-09-25T00:02:33.167Z | 2,022 | 9 | 0 | 6 | 11 | 0 | 321 | 49 | 3 | 1 | true | true | false | false | false | false | zero |
73,841,353 | How to build a search filter that validates even partially incorrect values? | <p>I've been using a <code>SearchView</code> in order to filter items in a <code>RecyclerView</code>, however I'm only validating strings containing the value of the string I filter with. What I want is to be able to validate strings even if there are some missclicks and 1/2 letters are incorrect (for example if I wrot... | I've been using a SearchView in order to filter items in a RecyclerView , however I'm only validating strings containing the value of the string I filter with. What I want is to be able to validate strings even if there are some missclicks and 1/2 letters are incorrect (for example if I wrote "Hellp World" in... | android|kotlin|filter|searchview | 0 | 2022-09-25T00:14:59.370Z | 2,022 | 9 | 0 | 6 | 15 | 0 | 967 | 76 | 4 | 1 | true | true | false | false | false | false | zero |
73,841,364 | How to make cradled FAB in Jetpack Compose Material 3? | <p>I am trying to make a Cradled FAB using Jetpack Compose Material 3. Based on the images from the documentation on this site: <a href="https://m3.material.io/components/bottom-app-bar/implementation" rel="nofollow noreferrer">https://m3.material.io/components/bottom-app-bar/implementation</a>
<a href="https://i.stac... | I am trying to make a Cradled FAB using Jetpack Compose Material 3. Based on the images from the documentation on this site: https://m3.material.io/components/bottom-app-bar/implementation However in the code I can not find anything about where to specify the anchor position or set the fab to docked. The example code i... | android|android-layout|material-design|android-jetpack-compose | 0 | 2022-09-25T00:19:30.820Z | 2,022 | 9 | 0 | 6 | 12 | 0 | 501 | 54 | 4 | 0 | false | true | false | false | false | false | zero |
73,842,151 | "Using insecure protocols with repositories" error message when syncing Gradle on Android Studio | <p>I was trying to perform a Gradle sync on my Android Studio project and it generated the following error.</p>
<p><a href="https://i.stack.imgur.com/x5EfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x5EfR.png" alt="" /></a></p>
<pre><code>A problem occurred configuring project ':app'.
> Cou... | I was trying to perform a Gradle sync on my Android Studio project and it generated the following error. [CODE] Please advise. Have you seen this before? How did you fix this? | android-studio|gradle|maven-repository | 0 | 2022-09-25T00:38:29.353Z | 2,022 | 9 | 0 | 6 | 3 | 0 | 175 | 96 | 3 | 1 | true | true | false | false | false | false | zero |
73,841,561 | Google Mobile Ads SDKS was initialized incorrectly | <p>I'm making a login activity that has a <strong>Sign in with Google Button</strong>
<br>
I am using a Firebase Auth to provide a Google sign-in method. I am following this documentation from <a href="https://firebase.google.com/docs/auth/android/google-signin?hl=en&authuser=0" rel="nofollow noreferrer">firebase</... | I'm making a login activity that has a Sign in with Google Button I am using a Firebase Auth to provide a Google sign-in method. I am following this documentation from firebase . I already follow along with the documentation, but my apps keep stoping. Why this problem occured? I've watched so many tutorials and searche... | android|firebase|kotlin|firebase-authentication | 0 | 2022-09-25T01:33:20.657Z | 2,022 | 9 | 1 | 6 | 17 | 0 | 560 | 50 | 4 | 2 | true | true | false | false | false | false | zero |
73,841,681 | Android emulator design not the same as XML design | <p>While building an android app using IntelliJ IDEA 2022.2.2, I discovered that the XML design, and the emulator design were not the same. I have changed my emulator from Pixel_2_API_24 to Nexus_5X_API_32, however the problem is still occurring. I have attached an image of the problem, my Java file, and XML file. I h... | While building an android app using IntelliJ IDEA 2022.2.2, I discovered that the XML design, and the emulator design were not the same. I have changed my emulator from Pixel_2_API_24 to Nexus_5X_API_32, however the problem is still occurring. I have attached an image of the problem, my Java file, and XML file. I hope ... | java|android|xml|intellij-idea|android-emulator | 0 | 2022-09-25T02:21:34.330Z | 2,022 | 9 | 2 | 6 | 8 | 0 | 382 | 50 | 5 | 2 | true | true | false | false | false | false | zero |
73,841,812 | Chasing origin of LeakedCloseableViolation in Android | <p>I've spend a day and an half now trying to chase the origin of a LeakedCloseableViolation in my app, developed to target API v32.</p>
<p>I have enabled strict mode with:</p>
<pre><code>StrictMode.setVmPolicy( new StrictMode.VmPolicy.Builder()
.detectLeakedClosableObjects()
.penaltyListener( this.getMainExecutor(... | I've spend a day and an half now trying to chase the origin of a LeakedCloseableViolation in my app, developed to target API v32. I have enabled strict mode with: [CODE] And in LogCat I get [CODE] But I don't see any clue in the stack trace as to what the origin of the issue is. I audited my code, and don't see any str... | android|debugging|stream|observers|resource-leak | 0 | 2022-09-25T03:04:58.123Z | 2,022 | 9 | 3 | 6 | 11 | 0 | 645 | 53 | 5 | 2 | true | true | false | false | false | false | zero |
73,841,842 | View Last 3 Most Recent Images Taken With Camera In Flutter | <p>I would like to display last 3 images in the <strong>camera roll</strong>/<strong>gallery</strong>/<strong>photos</strong> app. How do I achieve this in Flutter?
Any ideas?</p> | I would like to display last 3 images in the camera roll / gallery / photos app. How do I achieve this in Flutter? Any ideas? | ios|flutter|flutter-layout|flutter-dependencies|flutter-android | 0 | 2022-09-25T03:15:36.167Z | 2,022 | 9 | 3 | 6 | 10 | 0 | 125 | 59 | 5 | 0 | false | true | false | false | false | false | zero |
73,841,843 | How can I develop a flutter firebase app that runs on android and windows simultaneously? | <p>I want to create a chat app using the firebase database that runs on both Windows and Android simultaneously.
If it is possible then what is the way .Someone help, please.</p>
<p><a href="https://i.stack.imgur.com/RbwqN.jpg" rel="nofollow noreferrer">Click To Show Image</a></p> | I want to create a chat app using the firebase database that runs on both Windows and Android simultaneously. If it is possible then what is the way .Someone help, please. Click To Show Image | windows|flutter|firebase|flutter-desktop|flutter-android | -2 | 2022-09-25T03:15:39.567Z | 2,022 | 9 | 3 | 6 | 18 | 0 | 191 | 89 | 5 | 0 | false | true | false | false | false | true | negative |
73,841,978 | how to use @Body annotation in android retrofit with multipart | <p>I'm looking for how to add a string token with @Body annotation in Android retrofit for a post request. There was a token given to each patient after a successful registration so that it can be used for authentication so I want to pass the token along side with the body when the patient want to book an appointment w... | I'm looking for how to add a string token with @Body annotation in Android retrofit for a post request. There was a token given to each patient after a successful registration so that it can be used for authentication so I want to pass the token along side with the body when the patient want to book an appointment with... | java|android|retrofit | 0 | 2022-09-25T04:04:17.563Z | 2,022 | 9 | 4 | 6 | 8 | 0 | 621 | 62 | 3 | 1 | true | true | false | false | false | false | zero |
73,841,988 | Should "Google maps app" be opened on DHU in android auto using this code? | <p>I'm working on an "update" of may Android APP to include "Android auto" service for maps.
I have tested in DHU and everything works fine, but when I wan to launch "google maps" or another "maps app", this code should open it, but it doesn't work.
No error but "maps app&qu... | I'm working on an "update" of may Android APP to include "Android auto" service for maps. I have tested in DHU and everything works fine, but when I wan to launch "google maps" or another "maps app", this code should open it, but it doesn't work. No error but "maps app"... | android|kotlin|android-automotive | 0 | 2022-09-25T04:06:58.090Z | 2,022 | 9 | 4 | 6 | 14 | 0 | 590 | 74 | 3 | 1 | true | true | false | false | false | false | zero |
73,842,007 | Execute multiple adb shell command in bash script | <p>I am building a bash script for recursively copy files from the Android data folder using adb shell command. The code is like</p>
<pre><code>touch2() { mkdir -p "$(dirname "$1")" && touch "$1" ; }
PHONE_ADDR="192.168.0.105"
PHONE_PORT="5555"
adb connect ${P... | I am building a bash script for recursively copy files from the Android data folder using adb shell command. The code is like [CODE] Basically I first list all files' path in Android data folder and storage them in temp.txt. Then I would like to read trough temp.txt line by line and process each file with an adb shell ... | android|bash|shell|adb | 0 | 2022-09-25T04:12:33.583Z | 2,022 | 9 | 4 | 6 | 14 | 0 | 533 | 49 | 4 | 1 | true | true | false | false | false | false | zero |
73,842,043 | How to download base64 to pdf in react native | <p>i want to download <strong>pdf</strong> file from <strong>base64</strong> string. I want to do it without using fetch, because i will fetch the data before then i want to download it.</p> | i want to download pdf file from base64 string. I want to do it without using fetch, because i will fetch the data before then i want to download it. | android|react-native | 0 | 2022-09-25T04:23:46.310Z | 2,022 | 9 | 4 | 6 | 8 | 0 | 149 | 45 | 2 | 0 | false | true | false | false | false | false | zero |
73,842,122 | Count++ doesn't work because its inner class, how can I solve this problem? | <p><strong>If I put the count outside the method, it variable turns purple and I cant change it</strong></p>
<pre><code>public void signUp(View v) {
int count;
String emailString = emailField.getText().toString();
String passwordString = passwordField.getText().toString();
String nameString = nameField.ge... | If I put the count outside the method, it variable turns purple and I cant change it [CODE] loop for (int i = 0; i < owners.size(); i++) { [CODE] I want to count++ everytime the userType is Admin String userType = value.getString("userType"); [CODE] | java|firebase|android-studio|counter|inner-classes | 0 | 2022-09-25T04:52:02.460Z | 2,022 | 9 | 4 | 6 | 12 | 0 | 259 | 75 | 5 | 3 | true | true | false | false | false | false | zero |
73,842,223 | WorkManager doesn't work properly when app is closed | <p>I use <code>Workmanager</code> and <code>Retrofit</code> to send requests to the <code>server</code>.</p>
<p>I send the data to insert into the <code>database</code> on the <code>server</code>.</p>
<p>When the result of the <code>request</code> is fail, <code>WorkManager</code> will resend the <code>request</code> u... | I use Workmanager and Retrofit to send requests to the server . I send the data to insert into the database on the server . When the result of the request is fail, WorkManager will resend the request until the result of the request is success(Data is Inserted into the database ). As long as the app still running there ... | android|retrofit|android-workmanager | 0 | 2022-09-25T05:26:11.490Z | 2,022 | 9 | 5 | 6 | 6 | 0 | 586 | 52 | 3 | 2 | true | true | false | false | false | false | zero |
73,842,260 | why is the QR code not appearing of telegram webview on android app | <p><a href="https://i.stack.imgur.com/HabtJ.jpg" rel="nofollow noreferrer">Here is the image how the problem looks</a></p>
<pre><code>below is the code
This is the webview settings i am using. The Telegram qr code isnt appearing on this webveiw i
am using. The settings i have posted below. Can anyone tell me how ... | Here is the image how the problem looks [CODE] // This is the webview settings i am using. The Telegram qr code isnt appearing on this webveiw i am using. The settings i have posted below. Can anyone tell me how to correct it or any other webview setttings. webView.getSettings().setGeolocationEnabled(true); webView.get... | java|android|webview | 0 | 2022-09-25T05:37:20.963Z | 2,022 | 9 | 5 | 6 | 4 | 0 | 850 | 67 | 3 | 2 | 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.