Android Studio – Why is everything in one heap in the Android Studio emulator?
I am learning Android Studio. Making a calculator. Why is everything (Summ button and fields for num 1, 2 and result) in one heap in the Android Studio emulator?
I am learning Android Studio. Making a calculator. Why is everything (Summ button and fields for num 1, 2 and result) in one heap in the Android Studio emulator?
I made a lock screen app. I want to restart my service when the OS kills the service in Xiaomi Redmi Note 10 Pro (MIUI 12). When the service is killed, onDestroy is not call. public class LockScreenService extends Service…
File filePath = new File(Environment.getDataDirectory().getAbsolutePath()); But i return only /data, so where is /data is located and how i get andrid/data/"package_name"/
I'm unable to run any tests or run the app or debugger because of this error: `Unable to find method void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)` I've tried all of the provided solutions and hit the File > Invalidate Caches/Restart... option. This is an…
Hellow, i want to ask something. How can i change this color of circle from Progress Dialog? My project don't have style.xml, it has themes.xml and the dark version of themes.xml so no colorAccent, even so i added colorAccent in…
I followed the istructions of the tutorial at com.google.codelab.mlkit. Instead of using intent.data I am using FileProvider to get and analyze the full picture. I replaced the virtural image in the emulation based on the recommendation in Android emulator camera…
I am using Gitlab to build a Java tool using ant The tool requires JDK 17, but ant JDK version is 11, and I'm trying to change it. So I tried a lot of solutions using a remote repository or…
I am making a knowledge based game , in which user participate and if they win and get their rank within criteria they earn gems , coins etc. Example- A game in which their are 500 participants , and predefined…
I upgraded my apps targetSdkVersion and compileSdkVersion to SDK 31, and started receiving the following crash in app in a service that updates widget in background. java.lang.RuntimeException: at android.app.ActivityThread.handleReceiver (ActivityThread.java:4321) at android.app.ActivityThread.access$1600 (ActivityThread.java:247) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2068) at android.os.Handler.dispatchMessage (Handler.java:106) at…
I started to implement Night/Light mode inside my android app by using this tutorial. But devices has this function by system. The problem is that the system night mode does block my code in app. How does this happen?? If…