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
26
votes
3 answers

Targeting SDK Android Q results in Failed to finalize session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2

Once I switch my target api to 'Q' I cannot install the APK on Android Q Emulator. I get error: Failed to finalize session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2 Android Studio (v3.3.2) recommends I uninstall…
user1159819
  • 1,549
  • 4
  • 16
  • 29
25
votes
8 answers

Connect to Wifi in Android Q programmatically

I had this function to connect in Wifi network, below Android 10 it works fine, but when I tried on Android 10, I had a successful connection but WITHOUT internet, I knew it's a bug in Android 10 but I found this application which can connect to…
NizarETH
  • 969
  • 3
  • 15
  • 38
24
votes
4 answers

How to save an image in a subdirectory on android Q whilst remaining backwards compatible

I'm creating a simple image editor app and therefore need to load and save image files. I'd like the saved files to appear in the gallery in a separate album. From Android API 28 to 29, there have been drastic changes to what extent an app is able…
23
votes
2 answers

Accessing external storage in Android API 29

I'm trying to achieve some clean up tools. More and more manufacturers have forbidden rooting devices due to some "security reason", it's forbidden NOT to request for unlock. After API 28, This code will make…
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(); …
23
votes
1 answer

Media scanner for secondary storage on Android Q

With the newer Android Q many things changed, especially with scoped storage and gradual deprecation of file:/// URIs. The problem is the lack of documentation on how to handle media files correctly on Android Q devices. I have a media file (audio)…
21
votes
4 answers

boot_completed not working on Android 10 Q API level 29

I have an application that starts an Intent after the boot that works from Android 6 to Android 9 API level 28. But this code does not work on Android 10 API level 29, Broadcast simply does not receive any events and does not run onReceive on…
Marcos Nielsen
  • 311
  • 1
  • 2
  • 3
19
votes
1 answer

Android 10 BLE connection issue

I am working on an app that is connected to the BLE device using BluetoothGatt. I am successfully able to scan and connect with BLE devices in all devices like Samsung, Pixel, etc. I followed Android official BLE connection guide for scanning and…
18
votes
3 answers

Install self-signed certificates no longer working in Android Q

I have generated a self-signed certificate which I tried to install on my phone running Android 10, but a snack appears telling me that Private key required to install certificate. I have tried on a phone running Android 9 with the same certificate…
18
votes
8 answers

API 29 Mediastore Access

My app creates playlists in the android mediastore. All is well for api's including 28 however, api 29 seems to require additional permissions. Inserting a new playlist name and id works without issue. When it comes to inserting track id and play…
Theo
  • 2,012
  • 1
  • 16
  • 29
17
votes
0 answers

Get file path from URI on Android 10,

I need to pick files from the device, Here is my code, Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); String[] mimeTypes = {"image/*", "application/pdf"}; …
Omar Hassan
  • 727
  • 1
  • 11
  • 24
17
votes
1 answer

Is voice call recording back with android 10 (2019)?

I'm really interested in call recording in android. But as you already know android officially shuts off voice call recording in android 9. But just after the release of Android 10(sept 3 2019), while going through their new release notes, I came…
asasamar
  • 263
  • 1
  • 2
  • 9
17
votes
4 answers

Is it possible to add a network configuration on Android Q?

Background I've noticed that in WifiManager class there is a function called addNetwork, that might be useful if I want to restore or save networks information (network name AKA SSID, together with the password and the type), so that I could also…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
15
votes
8 answers

Full screen intent not starting the activity but do show a notification on android 10

I try to launch activity for a broadcastReceiver by using the next code Intent i = new Intent(context, AlarmNotification.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); if (Build.VERSION.SDK_INT >=…
15
votes
2 answers

List WiFi networks on Android Q / API 29

I'm currently migrating my application to Android Q. I want to list all configured WiFi networks and before Q I was able to do so with the function getConfiguredNetworks from the WiFiManager. Sadly this method was deprecated on API level 29 and…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
1
2
3
65 66