Category "android"

Randomize Mac Address Bluetooth LE Broadcast

As far as I know some android phones today can act as BLE beacon (this feature is usually disabled in most devices ) . When an android device is acting as a bea

Jetpack Compose navigate for result

I'm using the Jetpack Navigation library with the Compose version. I'm setting up navigation like it's shown here I want to be able to navigate from screen A to

How to display each clicked words from TextView

I am planned to develop an App with very simple concept.The requirement is I want to add a text file from phone(Dynamic, so set span with clickabble position no

onNewIntent in Fragments in android

I am trying to develop a NFC application. I need to recognize the NFC TAG from the OnNewIntent that in the Activity class. Now I need to move and use fragments

Black screen on phone

I have problem with my 'first' application on android. When I run my program I see only black screen. I found some information and I used Android.sdk abd.exe fi

Android Paging 3: LoadType.APPEND returns null remote keys

I've been trying to work out how to fix my issue with RemoteMediator's APPEND LoadType. On an empty Room DB, here's how the LoadType flows: REFRESH -> PREPEN

What is the simplest way to set the focus order in Jetpack Compose?

I have a column of TextFields, something like: Column { TextField( value = ..., onValueChange = { ... }, keyboardOptions = KeyboardO

IllegalStateException: Fragment already added in the tabhost fragment

FATAL EXCEPTION: main Process: com.example.loan, PID: 24169 java.lang.IllegalStateException: Fragment already added: FormFragment{428f10c8 #1 id=0x7f050055 form

java.lang.IllegalArgumentException: Error: Failed to parse APK file:

I have search stockoverflow and google with no luck. I recently migrated my app to androidx, after a lot of effort I was able to fix all the build fails. but n

React Native Android libc.so crash on first open after installation

Everything is working fine in debug mode. If I uninstall the app and reinstall from an apk, the first time is crashing. When I reopen, starts working fine. Reac

Android Geofence triggers on enter/exit with no error but no GEOFENCE_TRANSITION_ flag

I am monitoring for geofence transition using the code below LocationServices.GeofencingApi .addGeofences(AssistApplication.getApiHelper().getClient(),

TextInputLayout Material Component Issue : The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)

I am having a problem implementing a Material design with TextInputLayout, I know the solution is to make your activity theme inherits one of Material Component

android remove data from getintent

I have an activity for handling deeplink which is a browsable activity suppose user clicks a link on another app and my browsable activity handles that intent

Android Logging Strings with newline character or <br>

It seems that if you call String text = "String<br>String"; Log.d(TAG, text); it automatically parses the String to take two lines. The same goes for

How to initialize OutputStream

I am developing an app that controls arduino with bluetooth , everything was working fine with the app , I am able to connect with the arduino bluetooth bridge

Deep linking not working in chrome mobile browser

I am facing issue of deeplink. We have created a deep link for mobile application post but at google chrome mobile browser, its not opening the app screen. I sa

Align image within imageView to bottom center

I have a simple imageView and I want an image to be displayed in the center of the bottom. At the moment it is displayed in the bottom right corner. <ImageV

android - broadcast receiver - caller verification

I am writing an Android application wherein I need to receive some broadcasts sent by the system. I want to make sure the broadcasts are indeed sent by the syst

Android Dialog with CountDown TImer

In my app, I show the push notification as a Dialog that has two buttons named Yes and No. I need to show a timer (20 seconds) running in the dialog's title.

Android socket.io application can't connect to node.js server

my application, using socket.io, cant connect to node.js server. server node.js var app = require('http').createServer() var io = require('socket.io')(app);