Category "android"

What does mean these errors in Gradle?

I'm trying to assemble a Kotlin project using Gradle and I'm getting this kind of errors: Execution failed for task ':app:processProDebugResources'. > Could

Sharedialog SDK does not work on some device

We have developed a mobile application available on Android. This mobile application allows users to share advertiser videos on Youtube and earn money.

What does mean these errors in Gradle?

I'm trying to assemble a Kotlin project using Gradle and I'm getting this kind of errors: Execution failed for task ':app:processProDebugResources'. > Could

Firebase - get childrens of children

I am looking for a good solution to take data from a child of children. As You can see in my "users" database i have nodes with users uid's, and in this nodes i

Gradle Implementation vs API configuration

I'm trying to figure out what is the difference between api and implementation configuration while building my dependencies. In the documentation, it says that

Load MainActivity during Splash Screen

I currently have a splashScreenActivity that requires the User the press on a button to go to the MainActivity. Would it be possible to load all the contents o

RecyclerView java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter position. Due to changing getItemCount()

I am getting a java.lang.IndexOutOfBoundsException: Inconsistency detected with the RecyclerView, but only when I seem to fling it. When I scroll slow enough it

How to use TabLayout with ViewPager2 in Android

I want to use com.google.android.material.tabs.TabLayout component with Android's new ViewPager implementation androidx.viewpager2.widget.ViewPager2. However, t

How to control views wrapping in Android's GridLayout?

I'm wondering why in portrait mode, this android xml is not rendered properly: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http:

How to control views wrapping in Android's GridLayout?

I'm wondering why in portrait mode, this android xml is not rendered properly: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http:

Is there any way to remove item from PagedList and notify RecyclerView?

Is there any way to remove item from PagedList and notify RecyclerView without invalidating DataSource (not Room)? What I have tried: Store all model in own l

Select image from gallery using Kotlin

Recently i have started learning Kotlin. After having some basic functionality i am stuck with image picker. Does there any specific way to select an image fro

BottomNavigationView with navigation component - selected fragment not showing

I'm currently migrating to android navigation component and cannot get the fragment transitions to work when a new item is being selected in the BottomNavigatio

How to make view "wrap_content but not larger than" with ConstraintLayout?

I'm having 3 view in a row: title, version and imageview (working as button): title should be wrap_content but respecting the following rules version should be

google map fragment set on click Listener dose not work

i want create a google map fragment in a full screen project and then when i touch google map fragment call some function but when i touch google map fragment s

Android 12: Using SCHEDULE_EXACT_ALARM permission to get/show data at specific time are safe in Google Play Policy?

I have an Android app on Play store for 8 years. Recently Google release Android S or 12 introduce some limit with Foreground service launch restrictions https:

Android Studio stuck on loading devices

I'm currently running Android Studio Bumblebee 2021.1.1 in windows 10. The problem I have is each time I start android studio the device list is stuck in loadin

Error of connection jdbc postgreSQL Android Studio - Failed resolution of: Ljava/lang/management/ManagementFactory;

I don't understand why the code doesn't works on Android, it's the same code in Java and it's works on my laptop. I've already search on Google, Stackoverflow,

Getting IMEI number using ADB commands Android 12

For android versions before 11 I was using the below command to get IMEI number from my device: adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '

ANR and crash in an android app, Android 8(.1), 90% Huawei devices

Since a recent android app update, I'm facing an ANR and a crash issue, that mainly appear on Huawei devices running Android 8. (I managed to reproduce the ANR