Category "android"

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

Using Resource wrapper with multiple entities and mapper classes in clean architecture android

Let's say we have an app that is going to apply clean architecture principles. we have repositories, data sources(local & remote), multiple value objects fo

LifecycleOwner also if I change Activity

I m trying to build a code to get position of the smartphone from a private SDK. So i m build this code: nextomePhoenixSdk.getLocalizationLiveData().observe((Li

Android and Detekt: Aligning .idea CodeStyle with detekt

I have an Android project that i've set up with Detekt. I'm currently using: io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0 (Root build.gradle) io.gitl

Share a queue between the mainThread and a coroutine

I am new to the coroutine concept. I'm not very confident in the code I've written. Basically I have a queue of user events that I send to my server. Adding an