Category "android"

is it possible to convert aar file to android studio project?

Currently I have an aar file and need to edit the structure and functions in it. I need to convert it to a project in order for you to edit it. Is there any way

How to use bias in Constraint Layout Compose

How do I set the layout_constraintHorizontal_bias prop on a Composable that is in a Constraint Layout? Here is the XML code: <TextView ... tool:layou

IOException: read failed, socket might closed - Bluetooth on Android 4.3

Currently I am trying to deal with a strange Exception when opening a BluetoothSocket on my Nexus 7 (2012), with Android 4.3 (Build JWR66Y, I guess the second 4

Toolbar subtitle is cut (It does not fit in height)

My question is very simple, but i can't figure it out: When i try to display a subtitle, the toolbar has not enough space do display it and it is cut. Toolbar

Beginning Android programming - Build your first app

After just installing the latest Android Studio (3.0.1) I started with the Build Your First App guide. I'm using Kotlin as it seems to be the suggested way to g

android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED

I'm trying to write test cases for my activities. I have several activities and there is no issue for one of them while I'm getting following error when I try t

Android BLE - Connecting to multiple devices seem to fail and GATT Response is the same for both connections?

I am developing an Android Application that connects to a BLE Device and reads the specific GATT Characteristics and Services that I need to check. I used the B

Get dual sim phone call logs (Call Log Is from what Sim Card)

We're creating a call log application and in a call log I want to show the user that the call log is from sim 1 or sim 2. I found this but when I try to get it,

Parse nested value from JSON and add into HashMap

I am using data from the Yummly API to get recipe details. I am creating an Android app which will display recipes based on a matching ingredient the user has e

How to add colored border on cardview?

I am new to Android and this is my first question here. I am trying to add a colored vertical border at the beginning of the cardview. How can I achieve it on x

Error In Wifi Toggle Android Code

I get this error when I press the button for the wifi toggle and the app stops working.It mentions that the user has no permission to access wifi state.The thin

How to hint content manager chooser to open directly on a selectable position with ACTION_OPEN_DOCUMENT_TREE

When you use ACTION_OPEN_DOCUMENT_TREEto pick the permission to a path where to store files in Android 11, the default Android content manager by default opens

Android ProGuard: Most Aggressive Optimizations

Android's official proguard documentation shows two primary optimizations: set minifyEnabled to true use proguard-android-optimize.txt instead of proguard-and

Error executing aapt: Cannot run program, CreateProcess error=5, Access is denied: CreateProcess error=5, Access is denied

Today I just updated the Android SDK on Windows 7 with the Android SDK Manager and started getting error during build in Eclipse which says "Error executin

How to Update a flutter app on already published native android using java app in play console

I have published a native app with package name e.g (com.hamzamuazzam.foo) in Google Playstore and I want to update my app that is now made in flutter , also ha

Disable StartApp SDK auto show ads when activity is visibile

I was successfully able to add StartApp ads to my project, I only added 1 banner. My question is, why a full screen ad keeps showing when my activity is visibil

How to mock Base64 in Android?

I am writing a Unit test for a class that uses android.util.Base64 and I get this error: java.lang.RuntimeException: Method encode in android.util.Base64 not m

Android Image zooming animation

I'm doing an android application which has image zooming animation control with start & stop buttons.(i.e)I've two buttons with an image.when i click start,

Android - change send icon's color on ImageButton

How to change the default color of send icon on this ImageButton? <ImageButton android:id="@+id/ImageButton1" android:layout_width="0dp" android:

Convert XML to JSON object in Android

I have an XML string as shown below: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><Response xmlns="http://tempuri.o