Category "android"

[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

How to check for network security config with Androguard in python script

I have an .apk file and want to check wheter the res/xml/network_security_config.xml [1] trusts user supplied certificates. I read into the androguard docuemnta

TypeError when converting firebase data snapshot to map

I am currently following a Flutter tutorial and the instruction states that I retrieve data from Firestore and convert to a map, the tutorial uses the code belo

I want to intent to select the image from gallery and camera option in WebView app (both together as picture shown)

I want to like this as picture shown in WebView app Here is my code but I am not getting camera option only I am getting gallery in my app public class MainAct

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

Updating a Single Column In Room Database

That's the function I'm using for updat private fun updateSettingsDatabase(settingsDao: SettingsDao) { lifecycleScope.launch { settingsDao.u

Firebase getting ID for specific node to delete/update

first time using Firebase and pretty new to android studio, i'm trying to make a schedule app where a user can create many schedules and it would be associated

Unhandled error LateInitializationError: Field 'currentUser' has not been initialized. occurred in Instance of 'HomeBloc'

so i do get this error : Unhandled Exception: Unhandled error LateInitializationError: Field 'currentUser' has not been initialized. occurred in Instance of 'Ho

Android: How to change the control type for Accessibility

There are some controls in our app which we'd like to update the control type read out by Talkback. For example: A TextView which would better be described as

org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$

I am getting runtime exception while building the project. I have added Jetpack compose dependencies extra to the build.gradle file. I could see the following e

How to prevent onDismiss Callback to be call, in custom AlertDialog with Jetpack Compose

I was developing an app which I use Jetpack compose to define the UI. I was implementing some localdatabase such as Room, and I try to implement the remove oper

Using EdittextPreference for Goto search

sorry for my poor English. I want to use EditTextPreference in my bottom nav like the pic below, ![screenshot][1] I have recycleview xml in my project with in m

Image Slider working under activity but unrecognized in fragment

<com.smarteist.autoimageslider.SliderView android:id="@+id/imageSlider" android:layout_width="match_parent" android:layout_height="300dp" app

Is it possible to use Google drive for shareable data in android apps?

I want to create a simple shareable shoppinglist android app and I wonder, if there's a possibility to use Google drive as "db". Technically it should work righ

Divide screen to two halves with a title for each and center a view inside each one that will shrink or expand to fill the space

I'm trying to create this kind of layout in android. I'm using constraint layout. I want to divide the screen with height y to two halves with y/2 height each.