Category "android"

How to implement hiding the toolbar when scrolling WebView?

I have an Activity with WebView and my own AppBarLayout. I want to implement hiding/showing the AppBarLayout with animation when scrolling the WebView, like in

Why do we need permission-tree in Android?

In Android documentation on permission-tree, I cannot find any use scenario showing permission-tree is useful. Now there are several questions in my mind: Why

CardView cardElevation draws random square inside of CardView

A simple problem, I used a CardView to add elevation to a Button but when assigning cardElevation , then the CardView draws a box inside of itself, I tried swit

"java.exe" exited with code 2 Xamarin.Android project

so I have my Xamarin.Android project which contains several libraries. When I try to build I receive an error which says "java.exe" exited with code 2. After

How to auto complete for loop in Android studio

I'm using Android studio and i'm trying to find a way to use a very common thing i used to do in eclipse. when i'm writing (for example) a for loop, i'm writing

Manifest merger failed : Attribute application@appComponentFactory - Androidx

When I'm building Gradle with androidx I get the following error. Please help me to solve this issue. Error Message: Manifest merger failed : Attribute ap

Unity Addressables: RemoteProviderException : TextDataProvider : unable to load from url /base.apk!/assets/aa/settings.json

I have followed closely the samples for using the play asset delivery in my project as it is from here: https://github.com/Unity-Technologies/Addressables-Sampl

Android Studio live preview requires project rebuild

I decided to make an application on jetpack compose but when I download the Android Studio canary version 2021.1.1.1 and I try to write some code to see the cha

How to manage certificates on Android devices using Android Management API

I am developing a solution to manage client certificate deployment on android devices using SCEP. I have a few questions about the Android management API. On th

Android Nougat: TextureView doesn't support displaying a background drawable

I have been using a TextureView in my android app, and it was working fine. Just recently I tested my code on an Android device with Android API 25 (7.1.2). Sam

How to combine multiple mp4 videos into one video using jcodec in Java?

I have multiple mp4 files which are parts of a whole mp4 file. They have been just split up to smaller files. I want to combine those files programmatically int

How to detect change in time each second in Android?

I am creating a custom watch face for android by following this tutorial. I have implemented broadcast receiver to detect change in time as follows: Inside my

Svg not visible in device but visible in android xml

I have used SVG's for these icons, the icons are visible in xml but not visible in device . following is my code : ` <LinearLayout

How to show thumbnail of audio files from storage in android

I want to show the audio file thumbnail with rest of information, how can i parse the thumbnail of all the audio files Function for loading audio files in recyc

java.lang.IllegalStateException:Make sure the content of your adapter is not modified from a background thread, but only from the UI thread

java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is

How to build a horizontal ListView with RecyclerView

I need to implement a horizontal listview in my Android application. I did a bit of research and came across How can I make a horizontal ListView in Android? an

PHP and WebView - Cookie doesn't are the same

I'm using a WebView to show a web application. All works, except one thing: My login: setcookie("USER_ID", $my_id, time() + 86400); My logout: setcookie("U

Bluetooth HCI snoop log not generated

I'm running Android 4.4.2 and I enabled the "Bluetooth HCI snoop log" as described here Sniffing/logging your own Android Bluetooth traffic After turning bluet

Protect media content from copy or redistribution in Android

I want to i)stream media content to android device ii)read media content from sdcard of the android device. But the media content should be secured.No other

Android DualSim, ways/task/api to turn off second sim every day at same hour [closed]

Im using my phone for personal/work lines using dualsim (right now Xiaomi Mi5) with Android 7. Im looking for a way to use my work line (2nd s