Category "android"

If I replace an old app with a new app with the same bundle ID and keychain values. Can the new app access the previously stored data?

If I download App B (React Native App) which has the same bundle ID and keychain values as App A. Can I access the locally stored SQLITE database of App A using

How to solve '@GET' not applicable to field Error while defining retrofit interface in android

I'm trying to pull a json data with a retrofit, but when using the @GET method, this error " '@GET' not applicable to field" pops up. What is the solution? My I

Using If in RecyclerView, doesnt show all the item of the list

I am trying create a RecycleView for my chat application and to align the sent and arrived messages to the left and right. I used an if state to check if that i

Android Studio no tools.jar found

I use the latest version of Android Studio. If I try to build an APK then I get the following error message: "Cannot determine path to 'tools.jar' library for A

How can I spoof prop values that don't belong to android.os.Build?

With the following segment of code I'm able to spoof certain build.prop parameters such as brand, manufactuer, device, product and model: data class DeviceEntri

Using Resource wrapper with multiple entities and mapper classes in clean architecture android

Let's say we have an app that is going to apply clean architecture principles. we have repositories, data sources(local & remote), multiple value objects fo

LifecycleOwner also if I change Activity

I m trying to build a code to get position of the smartphone from a private SDK. So i m build this code: nextomePhoenixSdk.getLocalizationLiveData().observe((Li

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