Category "android"

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

React Native. Native Android component is not rendered

I want to add a component from Android to React Native. But it does not render and does not have dimensions. How can I fix this and display the component? Code

Android Plurals for float values

I would like to use plurals for my Android project. However, the values I provide can be float values. So for instance, when setting 1.5 stars, I want this to

Android Studio Error Code: 1 Executing tasks: [:app:assembleDebug]

When I run my app I get this: Executing tasks: [:app:assembleDebug] Configuration on demand is an incubating feature. :app:preBuild :app:compileDebugNdk UP-T

How to prevent Bluetooth Disconnected when moving Fragment

I make a POS in android. I want to make a printing in my apps. To do printing I'm using bluetooth printer. Then, I had success make the bluetooth connection and

How do we get the position/size of a Composable in a screen?

In Compose, how do we get the position or size of a Composable in a screen ? For example, I'm trying to focus the map camera between specific bounds and adding

Unable to sync Gradle with Firebase Crashlytic 2.6.0 using Android Studio 4.2

Project-level build.gradle buildscript { addRepos(repositories) dependencies { classpath 'com.google.gms:google-services:4.3.5' // Cra

Communication between BroadcastReceiver and Activity - android

I have a broadcast receiver in my app which is fired every time the user gets an incoming call. Now, when it happens, I need the broadcast receiver to invoke a

Is it possible to update Android Manifest programmatically at runtime?

What I want to achieve: I am creating an application which changes the app icon and app name programmatically. What I have achieved: I've already achieved t

How Do We Leave Picture-In-Picture Mode?

We have enterPictureInPictureMode() to move an activity from its current form into a picture-in-picture representation. What is the means by which we revert th

How to build an app locker application using flutter

I want to create an app which allows to put lock on the other apps that are to be protected in the device. This app lock will start automatically before opening

how to update value of a firebase column on event success

I am using the RazorPay API in my android app and I want to update the value of a particular user's "count" on successful payment. So I put the following code f