Questions tagged [android-10.0]

Android 10 (API level 29), formerly known as Android Q, is 2019's major Android OS update.

On March 13th 2019, Google released the beta version of Android Q. Android Q features link

980 questions
0
votes
0 answers

onLocationChanged not called on android Q (android 10)

I have below codes to request new location: mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mLocationListener); and get call back in public void onLocationChanged(Location location) . This works fine on android P or…
tainy
  • 951
  • 7
  • 19
0
votes
0 answers

Fix for restricted non-sdk in Android Q

I want to set a field. However, the non SDK interfaces which have been restricted under Android Q has an interface I am using i.e. Ljava/lang/Integer;->value:I The suggested way by Google is to use public API instead. i.e.…
codeignitor
  • 51
  • 1
  • 3
0
votes
1 answer

Security Exception on Android Q: UID XXXXX does not have permission to content://com.android.externalstorage.documents/tree/downloads [user 0]

DocumentFile pickedDir = DocumentFile.fromTreeUri(this, "content://com.android.externalstorage.documents/tree/downloads"); grantUriPermission(, "content://com.android.externalstorage.documents/tree/downloads",…
be_good_do_good
  • 4,311
  • 3
  • 28
  • 42
0
votes
0 answers

How to use MediaScannerConnection with Uri

With Android Q it's no more possible to file access, so how to call the method scanFile of class MediaScannerConnection without a path? Is there any alternative?
greywolf82
  • 21,813
  • 18
  • 54
  • 108
0
votes
0 answers

Uri management for android Q

In my app the user can select an existing file or just write a plain file path. Later the app uses the path to perform operations on selected file. I'm trying to study a strategy to face how filesystem access is changed in Android Q. I see two…
greywolf82
  • 21,813
  • 18
  • 54
  • 108
0
votes
1 answer

Android Q - The swipe back gesture behavior is not intuitive when custom animation between fragments is vertical and not horizontal

I'm already testing my apps on emulator with targetSdkVersion 29 to test the new swipe back gesture with Android Q. I'm facing an issue when I have an animation transition between fragments from bottom to top (enter) and from top to bottom…
sokarcreative
  • 536
  • 7
  • 18
0
votes
0 answers

Couldn't play music/video on Google Pixel 3a (Q Beta 5)

I'm building an music android app, when i tried to build an apk file and install it on Google Pixel 3a so app can start normally, but couldn't play music/video but when build it from Android Studio so music/video can play normally. So why that issue…
Le Minh
  • 135
  • 1
  • 1
  • 12
0
votes
1 answer

How to acess all the picture in Android Q?

I want to make a lib like a photo album and adapt it into Android Q Because of the Scoped Storage, the MediaStore.Images.ImageColumns.DATA was deprecated; We can't read the file directly by the path like…
weechan
  • 87
  • 9
0
votes
0 answers

Android Q Camera 2 Permissions Crashing App

Our app will be targeting Android Q once it's released. I've updated my Pixel 3 XL to test our existing app and have found an issue with the camera screen. The app has never had an issue here before and only crashes when my phone is running Android…
AngryCubeDev
  • 155
  • 2
  • 16
0
votes
0 answers

Adaptation storages scopes for android Q and use of SAF?

Google requires us to prepare our applications for new scopes storages. So I'm totally modifying my code for that by using SAF. There are a lot of things that I have to deal with but I will start with this question: For a given tree you can easily…
Aristide13
  • 244
  • 2
  • 16
0
votes
0 answers

Apps in Settings crashes in Android Q (Beta 3) emulator

I'm having trouble when trying to open "Apps & Notifications" in Settings. When I try to do it, Settings crashes and the Launcher's Homescreen is shown. Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: …
Daniel F
  • 13,684
  • 11
  • 87
  • 116
0
votes
1 answer

Is there a location to keep app files after app uninstallation in Android Q, except Media collections or Downloads

According to https://developer.android.com/preview/privacy/scoped-storage, an app with sandboxed view can just access files located in app-specific directory or Media collections or Downloads in Android Q. I'm just confused if I want to keep app…
RachelHq
  • 3
  • 1
0
votes
0 answers

"ProtocolException: problem parsing majorVersion=null as int" Android Q Beta 3

I'm getting this exception in my app, after trying it on Android Q Beta 3. Looks like I'm missing majorVersion parameter... but I haven't found it in the documentation. Does anyone faced this issue? java.net.ProtocolException: problem parsing…
Roger Alien
  • 3,040
  • 1
  • 36
  • 46
0
votes
0 answers

Android Q results in a series of "Unresolved reference:" errors for new classes

When compiling this app in Android Studio Canary 10 I get a series of those errors. Presumably it is compiling against the wrong SDK, but it says android-Q in the gradle. Any tips?
der_Fidelis
  • 1,475
  • 1
  • 11
  • 25
0
votes
1 answer

UsageStatsManager.getAppStandbyBucket() : Unresolved method

I'm trying to access the standby bucket that my app is currently in by calling UsageStatsManager.getAppStandbyBucket() in my activity, but the getAppStandbyBucket() method is unresolved. The docs say that the method is public. I've ensured that my…
CacheMeOutside
  • 699
  • 7
  • 24