Questions tagged [android-11]

For questions regarding programming in Android 11 (a.k.a., Android R), the primary 2020 version update for the Android OS.

Google released the Preview version of Android 11. Android 11 features [link][1]

https://developer.android.com/preview

796 questions
0
votes
0 answers

How to set FLAG_KEEP_SCREEN_ON for a different app?

Is it possible to set the FLAG_KEEP_SCREEN_ON for a different app? I want to enable it for a 3rd-party app when my app is started and disable it when my app exits. https://developer.android.com/training/scheduling/wakelock#screen only shows me how…
D.R.
  • 20,268
  • 21
  • 102
  • 205
0
votes
1 answer

Broadcast Receiver not receiving intent from another app in android 11

I am trying to send broadcast from App A to App B on Android 11. Here is the receiver App B: Manifest:
0
votes
1 answer

Black dead area above app activity since Android 11

Since Android 11, a large black area appeared above my app. I use multiple different activities (mostly RelativeLayout) and all of them are affected, so I don't think it's a layout issue. Switching between ActionBarActivity and AppCompatActivity or…
0
votes
0 answers

Android 10+ bring to foreground

How can I bring the app to foreground in android 10 and upper? I want to bring the app to foreground in case of incoming VOIP call that detected by push notification
WebMaster
  • 3,050
  • 4
  • 25
  • 77
0
votes
0 answers

Trying to update async task (deprecated) to new class in Android

I'm quite new in mobile development and also in JAVA language and I'm havin a big trouble now, because android 11 is comming to a lot of devices and I need to update the classes of a project to stop using AsyncTask (which is deprecated) but I quite…
0
votes
1 answer

Getting extra space after migrating to sdk 30 android 11

Have and issue after android 11 upgrade I have an application which need to be updated to sdk 30, after upgrading I am getting wierd UI issue, There is an extra space added on top of the container just below the appbar. When I run the app in lower…
0
votes
1 answer

setShortcutInfo in NotificationCompat.Builder and pushDynamicShortcut in ShortcutManagerCompat doesn't work in Api 30(Android 11)

I am working on Bubbles in Android 11 and some functions doesn't work I don't know how to fix this. Android Studio writes: Unresolved reference: setShortcutInfo My NotificationCompat.Builder: val builder = NotificationCompat.Builder( …
Renattele Renattele
  • 1,626
  • 2
  • 15
  • 32
0
votes
0 answers

Android: Can I specify DIRECTORY_DOWNLOADS as starting point for ACTION_OPEN_DOCUMENT intent?

The ACTION_OPEN_DOCUMENT intent which lets the user pick a file to be opened by my app can get pointed to some URI where it would list files from. Is there some Android 11 compatible way to point this to DIRECTORY_DOWNLOADS? Or which allowed ways…
Markus
  • 129
  • 1
  • 12
0
votes
1 answer

Correct way to use DownloadManager and Content Provider for Android Q (API 29) and above?

The problem with my code is, it is downloading the file and it is showing in the gallery having path like => "/storage/emulated/0/Download/filename.jpg" But when I click on the finished download notification it opens a file with a URI =>…
0
votes
1 answer

Android Layout : Height of Linear layout not enough

I am trying to design a layout in android which looks like following:
Vivek Mangal
  • 532
  • 1
  • 8
  • 24
0
votes
1 answer

How can I make custom folder (App folder's) in android 11

Im facing a problem when creating app custom folder. like com.app and storage/.hideFolder etc. by using some of approaches below android 11 (SDK API 30) device it's working fine but in android 11. not able to make it im using an approach…
Tanveerbyn
  • 764
  • 1
  • 10
  • 25
0
votes
0 answers

Crashlytics android 11 device crash on capturing photo and opening gallery

I had an app that is working fine in the below version of android while doing the operation on the Android 11 version for gallery and camera capturing pics the app gets crashed. it is showing me an error on the below code. I am doing here getting…
0
votes
1 answer

The emulator process for AVD Nexus_5X_API_30 was killed

Firstly, I want to say that I looked into all the solutions in here and on the net but couldn't resolve the issue. My system properties : 16GB RAM, Intel Core i7-7700HQ CPU 2.80ghz and 64-bit version of Windows 10. The virtual device I'm trying to…
0
votes
1 answer

Access or list non media content from Download folder using SAF (Storage Access Framework)

I am trying to list non-media content from Download folder using SAF. Sample Code: public void openDirectory(Uri uriToLoad) { // Choose a directory using the system's file picker. Intent intent = new…
Abdul
  • 79
  • 1
  • 6
0
votes
0 answers

Android 11/R - start recording audio/video using foreground service that started from the background (alarm receiver)

Is there a way to start recording audio or video from a foreground service when it starts from the background like alarm receiver while using Android R/targetSdkVersion 30? Maybe I do something wrong or do not understand how to schedule alarms? They…
kfir
  • 635
  • 8
  • 27