Category "android"

How to get Bitmap From imageUri in Api level 30?

I am using getBitmap method in the older version but I can't find any alternative of getBitmap From Uri. try { bitmap = MediaStore.Images.Me

Adding metadata tags (like title, artist, album) to audio file not working (Android MediaStore)

I want to create an audio file and set the title, artist and album tags of the song using Android MediaStore. Creating the file works but unfortunately the tags

Hide system navigation bar when show DialogFragment

My app is in sticky immersive mode that the system navigation bar (I call it SNB) is hidden in running time of my app. It works well but exists one problem, it

Gradle UncheckedIOException

My Android Studio project worked correctly, after restart project i got this error : Caused by: org.gradle.api.UncheckedIOException: Failed to create direct

how to view google play store listing in different language

i uploaded an android app to google play store, and i have English and Chinese content for the store information (descriptions, short desc, etc... My default la

Kotlin I can't add element to the end of the arrayOf

the problem is, that I can't understand differences between: ARRAY OF, LIST OF and ARRAY LIST OF I know, that arrays are mutable in nature, but list not. When I

Missing 'name' key attribute on element activity as AndroidManifest.xml

I encounter the following error when running gradle build: Missing 'name' key attribute on element activity at AndroidManifest.xml Looking up the other stacko

Is it possible to convert a Scratch project to an Android app?

For those of you who don't know, Scratch (scratch.mit.edu) is a programming language based around connecting 'blocks' of code in order to create a project. I h

Get Android system accent color (Android 10 System color accent)

This question should be simple, but i didn't find an answer. I have an app with selectable accent, and i'm trying to add an option to use the android system acc

Hilt Inject field into any class with no scope

Suppose that I have a class A class A () I want to inject an instance of A as a field into class B and let Hilt or Dagger to handle it. Class B { @Inject la

Plugin 'kotlin-parcelize' not found

Google is recommending users to migrate from kotlin-android-extensions to kotlin-parcelize. However, Gradle sync fails with the following error: Plugin [id: 'ko

androidx.constraintlayout.widget.ConstraintLayout cannot be cast to android.widget.TextView

I'm trying to learn Android development, but the problem is that my app crash every time I tried to run it and I get these errors in logcat: 2019-06-30 16:17:1

ImageView exceeds parent android studio xml

How do I make a child ImageView clip to the bounds of its parent? When I add an ImageView as a child to a parent view with rounded corners, the child ImageView

Last navigation gets resubmitted

Okay, so I'm not sure, what exactly triggers that. But I have a suspicion. Sadly it will get hard to make a MWE, since it is a very complex app with lots of fra

Android app doesn't work the same with mobile data as with wifi

I have an App which repeatedly gets some data from an API. That works really good when I have a wifi connection. But with mobile data my request either times ou

Emulator process for AVD was killed

I just downloaded Android Studio, so everything is freshly installed but I keep getting the error Emulator process for AVD was killed, : HAXM is installed, but

Trying to get the dynamic link that opened the app on Android 12 gives incomplete link

I am creating a share button for a post on the feed. I am generating a unique link using Firebase Dynamic Links with a custom parameter at the end. On Android 1

Plugin [id: 'dagger.hilt.android.plugin'] was not found in any of the following sources

I get the following warning when I want to use @AndroidEntryPoint which is a property of hilt in my project. Expected @AndroidEntryPoint to have a value. Did y

I want to send a verification link to users email without using firebase authentication [Flutter]

A website is already made up and I have to make application of that website using flutter but the website is not using Firebase authentication and sending email

Sending an ID or an object as String to the next screen in Jetpack Compose?

I have 30 users displayed in a LazyColumn. On user click, I navigate forward to UserDetailsScreen. My question, is it better to pass the ID of the user and crea