Category "android"

adb server version (40) doesn't match this client (41)

Android Studio is unable to install an application throwing the following error: adb server version (40) doesn't match this client (41); killing I tried answer

Kotlin Flow returned from Room does not update when an insert is performed from another Fragment/ViewModel

I have a Room database that returns a Flow of objects. When I insert a new item into the database, the Flow's collect function only triggers if the insert was p

Android app crashes when activity is initialised from fragment [duplicate]

I am currently trying to create a calendar app in android studio. The app contains a calendar with different "Views" e.g. monthly view, weekly

Modify xml shared_prefs file using adb

I am trying to interact with android app shared_prefs using adb. Let's use VLC for this example. The shared preferences are stored in: /data/data/org.videolan.v

Interaction jetpack compose with bluetooth library

how to use Android Bluetooth api in jetpack compose ? compose need state and Bluetooth api has not compostable function .i mean how to instance state for Blueto

How do I detect back/home press in an accessibility Service?

The title pretty much sums it up. I want to detect back/home button press using an Accessibility Service. It seems that onKeyEvent is not triggered when pressin

Expo Image Picker -- not returning image from Android Emulator in Android Studio

I am running the Pixel 5 API 30 avd in Android Studio with react native client coding. I am using the expo image picker to pick the image and return to the appl

Flutter plugins not installed

I have installed both flutter and Dart plugins on Android Studio but when I run flutter doctor, it shows that plugins are not installed Doctor summary (to see a

Error 10 in Google Login plugin for Ionic/Angular/Cordova

I'm quite new to all that technologies, but trying to develop an android app with Ionic 6 and Angular 9, compiling with Cordova and publishing in Google Play. E

Reading a text file in Android Studio Kotlin and making pointers

I am fairly new to Android + Kotlin, however I am wondering if there is a faster way to read a text (.pgn) file and mark pointers to places in the file for late

How to draw over other apps with flutter

I have an Android app which renders a FAB with fan out options over other apps (like AZ Screen recorder. Refer image). I want to leverage Flutter for its ease o

Deeplinking with Navigation component with Individual Stack

I have two urls which falls under the same deep link like below : xxx.yyy.zzz/pages xxx.yyy.zzz/how-deeplinks-work-exactly Now the first one is a list of pages

how to change the Slider's thumb Material Component Android with image?

I am trying to use the slider in Material Design component, but stuck for styling the thumb. My design requirement needs shadow surrounding the thumb. From the

Cannot resolve symbol 'FirebaseInstanceId' Android

I started to encounter this error when I upgraded the version of the project to androidx. I also upgraded the firebase sdks. I started getting error "Cannot res

How to display all x-axis value align with group bar in mpchart android

private void displayGraph(){ barChart.setDrawBarShadow(false); barChart.setDrawValueAboveBar(true); barChart.setMaxVisibleValueCount(

Does the onValue listener for Realtime Database return items in the same order that they are added to the database?

I don't see this specified in the docs anywhere. Does this listener return the node's data in the order that it is added to the node? For example, if I add mess

kotlin.UninitializedPropertyAccessException: lateinit property postFragment has not been initialized on FragmentStateAdapter Dagger Hilt

i tried to implement viewpager2 with tabLayout with dagger-hilt. then i got error when implementing viewpager2 on dagger hilt "kotlin.UninitializedPropertyAcces

Seekbars in RecyclerView become "linked". Changing the value in one, changes another

I've set up a RecyclerView and getting some odd behavior when adding Seekbars to every row or "view". I've also tried this just using ListView as well and get t

How can I passs a method except parameter in Kotlin?

I hope to pass a method which implement MediaRecorder.OnInfoListener. At present I use Code A to pass the method which implement MediaRecorder.OnInfoListener.

Could not find protoc-3.9.2-osx on Flutter/Android build

I am working on a Flutter application which integrates a native package which uses Protobuff. I work on Android Studio and Mac (Apple ship). On windows, the app