Category "android"

Compose: Why does a list initiated with "remember" trigger differently to Snapshot

I've been messing around with Jetpack Compose and currently looking at different ways of creating/managing/updating State. The full code I'm referencing is on m

Parsing Nested JSON give Unhandled Exception

I am trying to parse complex Nested JSON, I have multiple classes to get down the JSON nests. I am looking for the numbers from this JSON { "data": { "att

Get context in xml for "onDraw" in a custom view

I want to load an image from url in onDraw method for the view preview. I tried to do this using Picasso. But, I get an error in the xml. This is the onDraw met

Firebase Analytics Custom Events Data Is Not Reflecting In Dashboard

i am trying to log custom events using following code. firebaseAnalytics.logEvent("custom_event") { param("event_name", "Push Notification Clicked") par

Take Multiple Picture Using Flutter Camera Plugin

I'm trying to take multiple photos using the camera plugin, am doing that inside a loop and I keep getting the error below: CameraException (CameraException(Pre

onPressed from MaterialButton were trigged when the page from initialRoute

There're two buttons from my WelcomeScreen, when this page is loaded, two buttons will be pressed automatically. two buttons were used by the external widget"Ro

The SDK has not been intialized. Got this error while running react native android application in debug mode

I am using react-native-fbsdk-next(version 4.6.0) in my react native project. I followed the docs accordingly but then it started giving me following error sinc

Android appcompat edittext input automatically changes to selected language text problem

Hi Every One I am facing rare problem in an android app currently I am working on. Whenever my app has changed to different language except from english.EditTex

AdMob: Ads not working with my package name

I have a problem implementing AdMob with my Android app, ads are not showing for my package name, I changed the name and everything works fine, I restored the p

failed to build react native project

I had been able to build and run the react-native project in my old intel based mac successfully. Recently I migrated my project to the apple silicon and now I'

listview not getting data correctly

okay, so i got a listView in my android app to display messages, everything has been going good ever since i got help on time but now i got a bug where the last

Can't install nodejs in Termux on Android

When I do pkg install nodejs or pkg install nodejs-lts it gives me a this message: Checking availability of current mirror: ok Ign:1 https://dl.bintray.com/gri

How to add arc for rounded corner for cut off area in jetpack compose?

I wanted the rounded curve around the corner of triangle in left and right. I tried to add arc but I don't know it's not working maybe the coordinate are wrong

Android stop foreground service executes onStartCommand

Why calling context.stopService(stopIntent) is going to execute onStartCommand am i missing something? i had to do this in the onStartCommand if (ACTION_STOP_SE

Service stope after few Hours in android

I am creating one foreground service and start this service using STICKY. It detect phone lock and on event. It working fine for few hours but after some time t

[Android][MenuItem]How to display title text when long press actionLayout?

I'm using MenuItem in my tool bar and some of the items require custom layouts, so I created actionLayout for them. The UI looks fine, but when I long press the

How can use MediaMetadataRetriever().setDataSource() while MediaStore.Audio.Media.DATA is deprecated to get the path

I'm trying to get all audio files of an android device in addition to cover image of each one of them. MediaMetadataRetriever().setDataSource() should take a pa

setOnClickListener is not showing the Toast or doing the Intent

this is in Kotlin, it doesn't seem to work no matter what I try it's just a button with a click listener. Its function is to take me to another activity, I trie

Button in Action Menu in Title bar doesn't Work

When I click the button in the title bar it doesn't do any thing. I use item in menu and I linked it to main activity class but it doesn't work. @Override

How to add border to a circle image in DevEco Studio?

Whenever I am using border-radius property the border to the image is not coming but when I am not using the border-radius property the square image is coming a