Category "android"

PendingIntent does not send Intent extras

My MainActicity starts RefreshService with a Intent which has a boolean extra called isNextWeek. My RefreshService makes a Notification which starts my MainAc

Compose preview doesn't work at all - project needs to be compiled

I use Android Studio Bumblebee 2021.1.1 Patch 3 built on March 16, 2022 androidx.compose.ui:ui-tooling, androidx.compose.ui:ui-tooling-preview, androidx.compose

How to download file from Google Drive with link in Android?

I want to download file from google drive for which I am using dependency that is compile 'com.google.android.gms:play-services:8.4.0' and using this I am able

How to use my phone as ''emulator'' on Android Studio?

I know I can use my phone to debug and run application on Android Studio. However, I'd like to know if there is a way to run on my phone, but I see on my comput

App not updating for alpha testers on google play

My app is being tested using Google Play. I am one of my alpha testers, naturally. I released a new alpha version of the app. I was expecting it to update autom

RecyclerView Adapter is repeating values at wrong places

I am displaying 17 CardViews. I am using RecyclerView to achieve the same. Each CardView shows a common data (format). Depending on data received from a JSO

Firebase phone auth not initiating OTP only in release mode but works on Debug mode even after added sha1 for release mode

Steps how I implemented. As advised, I implemented all the way. It was quite good in debug mode. Unfortunately its not working in release mode even I added my d

how to get next item in ArrayList in java

i followed a YouTube tutorial about programming a quiz app using java android studio in the tutorial you put the question in array list then you get randomly qu

Realm won't update on runtime when realm file changed

I have an android phone app sending the whole realm file through data item api to the wear app. There is a service on wear app to replace the local realm file w

Restarting activity maintaing state with no animation

When the user clicks a button in my application, it will alter some data in the document being worked on and at that point I want the activity to rebuild its UI

Flutter: Execution failed for task ':location:compileDebugKotlin'

Execution failed for task ':location:compileDebugKotlin'. build:gradle(Module:app) ext.kotlin_version = '1.6.10' repositories { maven {

Why does Flutter Doctor not find an option named "android --licences"

I am trying to complete the install of Flutter. Within the Flutter help, it has an option called "Flutter doctors android --licences" However, when you run it,

React Native Android run causes "Illegal number of arguments for updateHotspot command"

I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focu

Why my RecyclerView updated while I don't notify the adapter?

I have some trouble to understand why my recyclerView get update while I add the data only after setAdapter() and never call notifyDataSetChanged() ! In the sa

Changing .BuildConfig package

Is there a way to dynamically change the package of the generated file .BuildConfig? I want to use build.gradle file to use the applicationId and change the pa

How to start an RTSP connection using android app?

How can I start an RTSP connection using android app? Is there any API or method with which we can start and establish RTSP connection? Thanks Sneha

Android MVVM - How to reference Activity in ViewModel

MVVM architecture, this is my View (Activity): private MyApp app; private MainActivityVM viewModel; @Override protected void onCreate(Bundle savedInstanceSta

How to lock phone on a button click event? - android

I want my application to lock the phone when a button is clicked ! Following is my code. public class MainActivity extends Activity implements OnClickListener

Check for internet connectivity from Unity

I have a Unity project which I build for Android and iOS platforms. I want to check for internet connectivity on Desktop, Android, and iOS devices. I've read ab

how to make overlay window view clickable and touchable in android

I am trying to learn how to create an overlay window similar to Facebook chat head messenger icon in Android. I managed to create the following class which ena