Questions tagged [android-developer-api]

API for android developers to access various settings

This tag mainly used to separate android developers API related.

Such as user setting and other APIs

List of APIs and classes for android developers :

Related Tags :

439 questions
5
votes
4 answers

Android Studio Unexpected Content Storage Modification

I am currently working on a project using Android development Studio. But everytime I try to create an application I keep on getting the error Java.lang.RuntimeException:java.io.IOException:java.lang.AssertionError: Unexpected Content Storage…
5
votes
2 answers

Android Lollipop becoming device admininistrator doesn't work

I'm following this guide on how to have my app request to become a device administrator. This works great on any 4.x android versions with any phone, but doesn't work on Lollipop (I've tried on a Nexus 5 and on a Nexus 7). Logcat shoes the following…
Eran
  • 2,324
  • 3
  • 22
  • 27
4
votes
0 answers

CameraX TimeoutException Cannot complete surfaceList

I am going through the CameraX tutorial at Android Developers https://developer.android.com/codelabs/camerax-getting-started#3 using version 1.1.0 of the library. The logs look good at first, but later a TimeoutException is raised and the camera…
m_OO_m
  • 55
  • 7
4
votes
0 answers

Detecting if the app is running on the Virtual Android Environment apps like Virtual Android & VPhoneGaGa

Through 'filesDir.path' we can easily detect cloning apps like Dual Space, Multi Space, and Parallel space apps. Detection of the virtual environments offers by Xiamoi devices, One Plus and Samsung devices are also possible by…
Adnan Khan
  • 463
  • 3
  • 12
4
votes
0 answers

Android InAppPurchase | How should I invalidate linkedPurchaseToken after downgrade or upgrade the SKU?

I have just implemented InAppPurchase functionality for an Android app where users can subscribe to a product. And it is working fine along with the validation process. But if the user goes for downgrade or up-gradation then my Google play…
4
votes
2 answers

Create Color object from RGB values for API Level < Android 26 (Oreo)

I am working on an android project. I have RGB values of each pixel. I want to create a color object from it. For android API level 26 and above, we can use Color.valueOf() method which will do the work for us. But it won't support API level below…
4
votes
1 answer

What is beta/alpha testing on the developer console? How it is helpful for developer?

There are three tabs in developer console 1)Production 2) Beta Testing 3) Alpha Testing How Alpha and Beta is useful developer before publishing app in production? How we can identify that how many users have latest updates?
Kshitij Arora
  • 287
  • 3
  • 9
4
votes
2 answers

could not be instantiated com.google.android.youtube.player.YouTubePlayerView

Am new in android development.Am trying to implement youtube Api. But in my XML file it show error "could not be instantiated: - com.google.android.youtube.player.YouTubePlayerView" Here is My MAinActivity Code:- public class MainActivity extends…
4
votes
1 answer

App crashes with SecurityException on Android M

Yesterday I set upped target and compile sdk to 23 API level. When I launched the app on Nexus 9 with Preview Android M (MPA441) the app crashes with following SecurityException: FATAL EXCEPTION: main Process: com.grouplogic.mobilecho, PID: 22554 …
3
votes
0 answers

How to Enable Cookies in Android WebView App (Android Studio - JAVA)

I have recently make a food ordering website where people can login and start ordering once user login they can stay 30 days because we have save their cookie for 30 days. and recently i have coverted that website to mobile app using android…
BM Yadav
  • 31
  • 2
3
votes
0 answers

Automate play store release with Managed publishing - Google Play API

I want to deploy and publish multiple at the same time. Currently I'm using https://www.npmjs.com/package/deploy-aab-google-play npm library to push bundle files. It is working well doing the job for me. But, I have a new requirement. I need to get…
3
votes
3 answers

Cant select Java in Android Studio

I just upgraded from Android Studio to Android Studio Arctic Fox and while creating project i only see one option for Kotlin there is no option for java please help me out.
3
votes
1 answer

How do I enable/disable hotspot or tethering mode programmatically on Android?

I see many references on Android's website to local Only Hotspot However I need to manage the cellular hotspot programmatically from a background service as I can do manually from the pulldown menu. This used to be done like: method =…
3
votes
0 answers

Does Android Keystore and “Clear data” action of the “Settings” app are related?

I am working on a system app where I am storing some sensitive data in EncryptedSharedPreference. I realise that my app is not working as expected if I do clear data of android Settings app. That is happening because if I try to get the instance of…
3
votes
2 answers

How to save file in root folder of android when app target to (Android 11 / API 30) or later?

If we run the android app target to version 10 or below, we can set the below flag in the AndroidManifest file to access the root folder of the device. android:requestLegacyExternalStorage="true" But Google anymore will not going to support that…
1 2
3
29 30