Category "android"

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

Flutter Unable to instantiate activity ComponentInfo Main Activity

I'm using vs code (to code) and android studio (to get virtual device). I just merged and pulled the project I'm working on this morning, and first, have a very

How to change Android "config.xml" values for low memory killer

I'm trying to tune these two low memory killer (lmk) values on my Pixel 4XL with Android 12: <integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">-

How to set NDK on android studio after downloading it

For some odd reason I'm unable to set Android NDK location, I download it and now I'm unable to set the location. The button is disabled and really don't know w

Crash of the flutter project on the Google Pixel 6 Pro, OS Level 31

We released our app and the next day we got a lot of crash reports on the Google Pixel 6 Pro with different use cases. On all other android devices, with exactl

How to define a variable which implement the interface in Kotlin?

I hope to define a variable mAction which implement the interface MediaRecorder.OnInfoListener . But Code A isn't correct, how can I fix it? Code A val mActio