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
27
votes
2 answers

What are the advantages of Kotlin programming language?

I am quite eager to know the advantages of Kotlin programming language over Java for Android application development as I would love to explore new things. If any one have any knowledge about it please do needful. Thank you.
user3082143
24
votes
2 answers

no cpu/abi system image available for this target

I'm getting this error when trying to create a virtual device (I'm brand new to android development, following a tutorial to get everything set up). Everything I found simply said install the ARM or Intel System Image for the target that you're…
user3653381
  • 273
  • 1
  • 2
  • 7
23
votes
5 answers

Android Q, programmatically connect to different WiFi AP for internet

As in Android Q, several WiFi APIs are restricted. I am trying to use alternate APIs to connect to different Wifi AP for internet. Below is my code : WifiNetworkSpecifier.Builder builder = new WifiNetworkSpecifier.Builder(); …
22
votes
3 answers

Android O API 26. Newly added Location methods don't work as needed

I'm using Android O Developer preview 4 - API 26 Device - Google Pixel XL And seems like the new features such as: hasSpeedAccuracy() always returns false getSpeedAccuracyMetersPerSecond() always returns 0.0 getBearingAccuracyDegrees() always…
InsFi
  • 1,298
  • 3
  • 14
  • 29
19
votes
7 answers

Missing Google APIs for API Level 25

In the Android SDK Manager, I am unable to find the Google API for API Level 25. Because of this I am unable to set the compileSdkVersion to 'Google Inc.:Google APIs:25'. I am using MapActivity in my application and due to incompatible sdk version…
19
votes
3 answers

SecurityException: Permission Denial: reading (only on emulator)

I have two activities in my app, MainActivity calls ImagePicker, which has a GridView laying out all the images in the phone gallery, where I use a ContentResolver to get the cursor. It worked fine on my phone when I tested it but crashed every time…
15
votes
6 answers

Android - How to check if Developer option is enabled

How can I check if the user has developer option enabled on its device? (not with adb comunication active, or debug USB active, I need to know only if Developer Option are enabled). I've tried this solution: How to check programmatically whether app…
user1432059
13
votes
2 answers

can't disable re-subscription for android subscription on Play Store

TL;DR Why can our users re-subscribe on Play Store, despite opting-out of this on Google Play console? we are implementing a subscription on our Android app. we have selected the "resubscribe" option to be "not enabled". yet, when we test this by…
13
votes
7 answers

importing an existing JAR or AAR as new project module

how to import JAR or AAR package as new project module in A new Android Studio Arctic Fox | 2020.3.1 Canary 9 ? please let me know.
13
votes
0 answers

Toggle/Change Hidden Developer Options Settings Programmatically

I know that settings can be changed programmatically this way: Settings.Secure.putInt(getContentResolver(),Settings.Secure.ADB_ENABLED, 1); But there are some settings in Developer Options which are not provided neither in Settings.Secure,…
arsena
  • 1,935
  • 19
  • 36
13
votes
2 answers

"Daily save quota exceeded" after a while using Google Play Android Developer API

After discovering that the Google team upgraded the Android Developer API, I made a script to automatically update all my apps data in multiple languages at once. However, I've noticed that, when you follow a workflow of: Ask for Edit ID, Do all…
Sergi Juanola
  • 6,531
  • 8
  • 56
  • 93
12
votes
1 answer

Layout bounds not showing in Fultter app but it shows for other apps

I just started with flutter and created a blank app with default config, when I turned on show layouts bounds from developer options it is not showing any boundaries like any other app. How is this happening?
Vinil Prabhu
  • 1,279
  • 1
  • 10
  • 22
11
votes
3 answers

Is it possible to pause any video (mediaplayer) APP in Android when pull down the notification panel?

Assume I have the AOSP source code, How can I pause the APP in the foreground when pulling down the notification panel? I've googled and find an APP can listen the event onWindowFocusChange and take some action proactively, but how can I pause ANY…
zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
10
votes
3 answers

Android crash reports are not showing up in Google play console's ANRs & Crashes report

I'm currently testing Google play's billing library for in-app subscriptions on my android app. I've created the subscriptions and have released my app to the internal test track. However, when I try going through my billing flow, my app is crashing…
9
votes
1 answer

Why wait for debugger and then attach debugger to process?

What is the significance of android.os.Debug.waitForDebugger(); I am aware that we [sometimes] need to use this function in order to debug a Service, but my question is: WHY do we have to do this? Why does this method exist? What other purpose…
1
2 3
29 30