Category "android"

Unknown Module in Android Studio

Hi, I am trying to delete the "Unknown" module and move app & myapplication modules outside "Unknown" but every time I delete the "Unknown" module and sync

How to check if the device uses the right-to-left direction using Jetpack Compose?

On Android we can use android determine if device is in right to left language/layout. But does Jetpack Compose provide any API to check the layout direction? W

whene i open other activity app crash android studio

public class myadapter extends FirebaseRecyclerAdapter<model,myadapter.myviewholder> { Context context; public myadapter(@NonNull FirebaseRecyclerOptions

Android 12 notification/widget PendingIntents show other activity after closing

After updating my device to android 12, activities that I start from notifications or widgets using a PendingIntent will show another activity that was started

Using Bing Maps i Non - Mixed reality mobil app

Anyone here used bing maps in an android app? I have tried the method at https://docs.microsoft.com/en-us/bingmaps/sdk-native/getting-started-android/ But keep

How do I show devices I get from intent sent to another application in kotlin?

I am trying to make connection to another application and I believe is working kind of. When press my button it shows me the logo of the other application. I am

Xamarin forms android throw null exception after updating Xamarin forms to 5.0.0.2401

I have updated Xamarin Forms to latest version(5.0.0.2401). It is working fine in iOS. In android first it returns Error: Could not find 2 Android X assemblies,

Breakpoints is not hitting while debugging a .NET MAUI android application

I have been working on a MAUI android application and when debugging, the breakpoints is not hitting and the application enter in a break state. But for windows

Moshi : Generic Json converter for Room entity

I am trying to create a generic JSON parser String to Object with Moshi but I am not sure if I am doing it right as I am stuck in a scenario which needs to deal

Clone Android tablet

I have 200 android tablets all the same make and model and identical. I want to get one of them and install a few apps and make changes to some settings and so

Intent action type ("image/jpeg") not enforced by all registered apps, which return incorrect filetypes

Objective Send an intent to open the gallery for selecting photos, show photos only, and allow multi select. Simple. Problem There are some apps that are regist

Android deep link intent doesn't work on some devices

I have an app that listens for a deeplinks starting with example:// The app can be launched by scanning a QR code containing a deeplink. <intent-filter&g

Recyclerview notifyItemRemoved removes a wrong item and not working properly when using view binding

When removing an item from recycler view, it is not working properly. For instance, if you remove beginning from the start it removes other items that are not p

NavHostFragment.findNavController throw: Method addObserver must be called on the main thread

I have another Fragment where this function work. But when i receive a response by the server the program crash and return this exeception. I'm new in android,

NavGraph with dynamic destinations - restore after process kill

This is the setup: View-based Android UI Using androidx.navigation library (tested with versions 2.4.1 and 2.5.0-beta01) Activity, consisting of a bottom bar an

Jetpack Compose Navigation - Bottom Nav Multiple Back Stack - View Model Scoping Issue

So I have two tabs, Tab A and Tab B. Each tab has its own back stack. I implemented the multiple back stack navigation using code in this google docs val na

Android pause and resume ringtone playback

In android, is there any way to pause ringtone playback, play audio and then resume ringtone playback. Using PhoneStateListener Could stop ringtone using below

How can i change the entire speed (timing) of a android game made with cocos2dx?

i'm making reverse engineering on a android game made with cocos2dx library, editing the .so file (libcocos2dcpp.so) with ida pro and a hex editor. i've getting

ViewCompat.setOnApplyWindowInsetsListener() changes background of system navigation bar

App normally has this navigation bar: But when I add ViewCompat.setOnApplyWindowInsetsListener() ViewCompat.setOnApplyWindowInsetsListener(window.decorView) {

Multiple/Nested NavHostFragments - Jetpack Navigation

I have two NavHostFragments, one in an activity which is the startDestination and another one in a Fragment. I can't seem to make the Bottom Navigation work in