Category "android"

Android and Detekt: Aligning .idea CodeStyle with detekt

I have an Android project that i've set up with Detekt. I'm currently using: io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0 (Root build.gradle) io.gitl

Share a queue between the mainThread and a coroutine

I am new to the coroutine concept. I'm not very confident in the code I've written. Basically I have a queue of user events that I send to my server. Adding an

I have been trying to add a chat sdk to my project

I added the cometchat sdk to my project but each time i try to run my app i get the following errors org.gradle.api.internal.artifacts.ivyservice.DefaultLenient

Custom Push Notification - Full width background color

I am implementing custom push notifications. I have a custom layout, modified using RemoteViews. I have set color using contentView.setInt(R.id.parentLa

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