Category "android"

Android SQLite same DB [duplicate]

I am using local DB (SQLite) with my android app. I know, that with every first launch of the app, a new database is created. Is there an easy

How to handle purchase made outside of the app (From Google play store)

Recently Google adds the option to resubscribe the in-app subscription from the google play store even when the plan expired (up to one year). You can check her

how implement search view from menu in fragments?

I am trying to implement search in my fragment but its not working. no results shown up with search text. Also all the items are gone from the view when search

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