Category "android"

can't setup app events for the app (react native) on ads manager for android

I had react native app I tried to get app events manual by these line await Facebook.logEventAsync('addToCart'); I can see these event on the event manager b

How can I enforce returning to my app when starting google navigation with an intent

I call Google Maps with an Intent like this: Intent mapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + lat + "," + lon + "&mode=d

I can draw a straight line between two points but I want to draw a route. how to do this? com.google.maps.android.compose

I'm using the free Maps SDK for Android with https://googlemaps.github.io/android-maps-compose/index.html I wanted to draw lines between two points.but Polyline

Android ZoneDateTime.withHour always sets hour to 8

So I am tring to schedule alarm at a particular time on current day using AlarmManager. To do that I am using ZoneDateTime to get current time and then updating

Gson parse invalid json with a quotation mark

I use Gson in my android project. And I try to parse object like { "field1":"value1", "field2":value2" } It's invalid json. But I'm not getting an exception. I'

Using Coroutine for continuous data polling and dumping to UI

My existing Android code uses AsyncTask to continuously poll data from a virtual COM port and dumps data to UI thread by overriding the onProgressUpdate() funct

setAlarmClock() is not exact and system adjusts the time for it

Android documentation for setAlarmClock: Invoke an alarm at a precise time in the future. Because these alarms are highly visible to users, the system never ad

Android Studio stuck 'Connecting to emulator'

I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' scree

Admob Android SDK 20.x : how to init InterstitialAd?

I update my app with Admob Android SDK 20.x. In the previous versions of the SDK, it was possible to do something like this (in order to avoid to repeat the cod

Android project can't find net.sourceforge.jtds.jdbc.Driver

I want to connect database to android project using android studio and sql server management studio. I add dependencie in build.gradle, but when I try to login

Problem with a recyclerview adapter in android?

I am working on a game called Space Mines. I am trying to get a list of planets on the screen, but am having trouble and do not know why. I try to debug the app

How to open Android pop-up view from adb?

in samsung galaxy s8 how open app in popup view from adb ?

Avoid using deprecated API for UtteranceProgressListener

I am using android.speech.tts.TextToSpeech and would like to have an UtteranceProgressListener that does not override the deprecated onError but rather uses the

RecyclerView sorting process and getting position issue

I have an activity that shows model comes from Firebase in a recyclerView. Each row has a delete button and user can delete which row he/she wants. The problem

Android device shows microphone is actively being used even though session is paused and audio is disabled

Start publishing to a session, notice that Android OS now reports that camera and microphone is being used by the app, which is fine. Call session.onPause() fo

Get multiple times current time on single Button

I have a button showing text START when I click on it I shows me current time in textview.(I consider this time as start time). Than convert the text on Button

Finding Error in android studio java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT

I am new to Android studio. I am trying to connect to brother label printer QL-820NMB with the new Android APK (SDK 31) with android version 12 and the device

Why is my imported image asset completely black in color?

I am trying to import a png image to use in my app, from File -> New -> Image Asset. After choosing my desired image file, my preview is this: I have tri

How to show and save contact name in Android Fragment

I am a newcomer to Android development and Kotlin. I encounter a problem when I read a Android programming book. The book uses startActivityForResult() and onAc

E/LB: fail to open file: No such file or directory - Flutter

I try to display whatsapp Status images from the File directory ('/storage/emulated/0/WhatsApp/Media/.Statuses'). But there do not appear any image. Console sho