Category "android"

SQLite (Android) : UPDATE query with ORDER BY

Android, SQLite : I want to insert rows in between other rows in myTable using SQLite in android. For this, I am trying to increment ids of the all rows startin

Android : copy file to Google Drive using Google Drive API - what is best approach?

I need to copy a file to Google Drive from Android App. Consider copying 4-5 MB file size to root folder. Have gone through some sample code from here. Can some

No signature of method: .android() is applicable for argument types. Exception in build.gradle (app)

Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app' Caused by: groovy.lang.MissingMethodException: No signature of

Radio buttons in android studio

I want to have list of radio buttons and after i select one and click next I would like to perform different actions depending on which button was pressed. i am

Proper implementation of ViewPager2 in Android

I came to know about ViewPager2 and tried to implement it, but didn't find any proper example. Can anyone tell me how can I use it. I am looking for proper us

Cannot use WifiP2pManager.setDeviceName on Android 11 (Wi-Fi Direct)

My team and I are working with Wi-Fi Direct technology on Android devices. Until now, the used devices were on Android 8, 9 and 10. We were able to change the W

onItemClick and Toast don't work in a listfragment

i tried to do a simple Toast into my onitemclickmethod but nothing it's happening and no error just nothing happen when i press an item of the list My listfra

Proper implementation of ViewPager2 in Android

I came to know about ViewPager2 and tried to implement it, but didn't find any proper example. Can anyone tell me how can I use it. I am looking for proper us

Bitrise: Could not resolve all artifacts for configuration ':classpath' Could not resolve com.google.gms:google-services:4.2.0

After updating com.android.tools.build:gradle and com.google.gms:google-services I can build project local (command gradlew build --scan) but in Bitrise I get B

Trusted Web Activity - Address bar not hide (Chrome for Android 72)

I've followed this guide to learn how to use a Trusted Web Activity. All fine but the address bar still appear. At begin I think it was because when the app was

Room Dao LiveData as return type causing compile time error

I am using Room and implemented Dao that returns LiveData. It was working fine with below dependency added. implementation "androidx.room:room-runtime:2.1.0-al

Activity Transition animation in a ListView in Android Lollipop with Material Design

I am using a Master/Detail pattern and currently moving to Android Lollipop. I want to have one of the new activity transistions if I click on a item in my List

Firebase Analytics Debug View does not show anything

I linked my Android app with Firebase using Android Studio Which created and set my google-service.json into my project. When i debug my event logging in logca

Debugging with Android Studio stuck at "Waiting For Debugger" forever

UPDATE The supposed duplicate is a question on being stucking in "Waiting For Debugger" when executing Run, while this question is on being stucking in "Waiting

flutter admob issues on m1 mac for android

Admob for Android emulator IPixel_2_API_S:5554) hangs a lot with errors/warnings. It looks like something to do with com.google.android.gms.chimera, which I be

Android - Already have a pending vsync event

I have three services. MorningNotification, DinnerNotification, EveningNotification And I have this code to init them: morning_notification = new Intent();

android parse error parsing package

I'm developing auto update from inner server. The download works good, but when I'm trying to install the downloaded apk I'm getting: "parse error, problem pars

How to style the Android status bar on Nativescript?

The problem I'm having (and for which I haven't been able to find a solution) is how to style the status bar in NativeScript. I tried to use this but when I put

Firebase Delete User Authentication on Android

Is there a way to delete a user from firebase authentication, when the current user is not the one who is being deleted. I know that there is a way to delete a

How do I update Android SDK in Linux via command line

Is there a ubuntu commandline command to update my Android API, I need to download android-19 Note: I am using ubuntu commandline only, no GUI. Thanks,