Category "android"

Xamarin - Shell.Current.GoToAsync($"//...") performance too slow on Android

I have a Xamarin project and I'm using visual studio 2019. I consume an API to access data and for my LoginPage flow I used routing in shell. So here is my AppS

Image View doesn't match parent's rounded cornered background

<FrameLayout android:id="@+id/flTodayTraining" android:layout_width="match_parent" android:layout

get position item from a multiple json array

Hi i'm beginner of android and I have a big problem. I have this JSON file: {"People": [{"boy":{"name":"Jack","id":"11"}}, {"girl":{"name":"Rose","id":"22"}]}

Hide RecyclerView until List is sorted

When my RecyclerView loads it shows the unsorted list for a few milliseconds and then switches to the sorted list. Here is a video what it looks like: https://d

Gradle build sync failed. Basic functionality (e.g. Editing Debugging) will not work properly

Error screenShot `plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.helloworld" minSdk 16

Android- studio error - Cause: unable to find valid certification path to requested target

I got this error on Android Studio while attempting to sync gradle. Cause: unable to find valid certification path to requested target What I have attempted so

Could not resolve com.squareup.moshi:moshi-kotlin:1.13.0

Getting this error and unable to build Gradle file. Android Studio Version : Bumblebee Latest Patch Gradle Plugin Version : 7.1.2 Gradle Version : 7.2 I already

error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory

I am trying to run an Android emulator in a Docker container. /opt/android-sdk/emulator/emulator -avd "Android_API_29" -noaudio -no-boot-anim -netdelay none -ac

how to build libxml2 for Android NDK

I try to compile libxml2 for android ndk but I get this error: libxml2-2.9.8/include/libxml/encoding.h:28:19: fatal error: iconv.h: No such file or directory Y

different between call view by name or use binding in android

i'am a newest in android kotlin I want to know what is the difference between the two lines of code below and which one is better to use class MainActivity : Ap

User profile fragment Setting

i am creating small app with login and signup option and also with profile fragment so that user can update their profile later. i design my user profile layout

Delay before next line on code on android SurfaceView kotlin

Hello how can I delay the next line of code after drawing because the sleep() doesn't seem to draw the bitmap with canvas take a look at this code I read somewh

How to implement a OnItemSelectedListener for Spinner in Dialog Box

I have a Dialog Box in my MainActivity that is activated by touching a cog button in my Layout. When it appears, it contains a drop down Spinner. The Spinner wo

How to convert a arraylist <String> to arrayList <Integer> and Calculate the values of Integers on it?

How i am supposed to calculate ArrayList String from Listview values into ArrayList Integer and back to Listview, Because i've been making a application for And

How to convert String having key=value pairs to Json

myString = {AcquirerName=abc, AcquiringBankCode=0.2, ApprovalCode=00}; I want to convert it to the following string. {"AcquirerName": "abc", "AcquiringBankCode

If I replace an old app with a new app with the same bundle ID and keychain values. Can the new app access the previously stored data?

If I download App B (React Native App) which has the same bundle ID and keychain values as App A. Can I access the locally stored SQLITE database of App A using

How to solve '@GET' not applicable to field Error while defining retrofit interface in android

I'm trying to pull a json data with a retrofit, but when using the @GET method, this error " '@GET' not applicable to field" pops up. What is the solution? My I

Using If in RecyclerView, doesnt show all the item of the list

I am trying create a RecycleView for my chat application and to align the sent and arrived messages to the left and right. I used an if state to check if that i

Android Studio no tools.jar found

I use the latest version of Android Studio. If I try to build an APK then I get the following error message: "Cannot determine path to 'tools.jar' library for A

How can I spoof prop values that don't belong to android.os.Build?

With the following segment of code I'm able to spoof certain build.prop parameters such as brand, manufactuer, device, product and model: data class DeviceEntri