runtime-permissions Questions

2

Solved

I need to know if my app is running on a MIUI device like XIAOMI at runtime due to issues like pre android 6.0 permissions etc. Is there a way to to do it?
Aplanospore asked 21/8, 2017 at 7:48

8

I am targeting my Android app for Android 13 (API 33) The WRITE_EXTERNAL_STORAGE permission seems to be working fine below API 33 i.e. Android 12 and less but the runtime permission popup for WRITE...

1

Solved

After upgrading to Android API level 34, our Android app's push notifications are blocked by default. I know this is in line with the newest changes from Android to use an "opt in" vs &qu...

5

Solved

So as I read in the developer.android site the Android 13 brings new changes in the Permission field. I have a Chat application where I need to make calls, open the camera, record audio, read and w...
Cheater asked 23/9, 2022 at 10:24

2

Solved

In Shot:, In onRequestPermissionsResult grantResults on some device return empty and some device have a value PackageManager.PERMISSION_DENIED when user decline the permission. I have implmeneted ...

3

Solved

I need to ask for runtime permission to use camera in my fragment class.my code is like this.. int currentapiVersion = android.os.Build.VERSION.SDK_INT; if (currentapiVersion >= Build.VERSION...

11

Solved

I am doing an application to scan barcodes on a button click and it was working fine up to Lollipop versions. When I came to Marshmallow it stopped working. This is the error: camerabase an erro...

1

I am using com.google.accompanist:accompanist-permissions:0.25.1 in my project. I am trying to request bluetooth permission in runtime which is requesting. I want to know how user know that permiss...

1

Solved

I'm targeting Android 13 and using the new photo picker to retrieve images. E.g. val photoPicker = rememberLauncherForActivityResult( contract = ActivityResultContracts.PickMultipleVisualMedia() ...

2

Solved

Question about Android runtime permissions. AFAIK, android grant dangerous permission at runtime. I reset my phone, then adb pull /data/system/users/0/runtime-permissions.xml, I found android.ui.sy...
Anthropologist asked 10/5, 2016 at 6:31

1

I am building an SDK API with beacons integration which requires Bluetooth scan permission for android 12 and above. So, I added annotation for the API like this: @RequiresPermission(allOf = [Manif...
Unrobe asked 9/6, 2022 at 4:2

3

when current activity jump to system setting page to disable permissions and then switch current activity again,the app crashed Step 1: Opened app and gave all the necessary permissions Step 2: ...
Tomtoma asked 24/3, 2018 at 11:18

2

The developer doc: Requesting Permissions at Run Time clearly mentions what runtime permission is and how to use it. And I am able to execute them as well. However, the question is : where does An...

7

Solved

I am trying to make a phone call from Android, and I've set run time permissions as well. And it asks whether to allow making phone calls. But when I press allow, the app crashes: This is how I im...
Linearity asked 19/10, 2016 at 8:24

16

I want to use the android.permission.CAMERA android.permission.WRITE_EXTERNAL_STORAGE in single request using ActivityCompat.requestPermissions(Activity activity,new String permisionList[],i...
Bedivere asked 2/12, 2015 at 10:27

2

Solved

I have created WebView Activity and loading https://web.doar.zone/coronavirus This URL required Camera permission which I had taken Runtime Permission in Android. Here is the full code of MainAct...

6

public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = ...
Positronium asked 30/11, 2017 at 12:10

2

I want to re ask the permission to the user in the situation if he/she deny for the first time. I have set the permission but my app runs even if I press deny option. I have a code which should do ...

6

Solved

I want to test the permissions of Android 6, but I didn't find the way to click on the "Allow" button using Espresso. Is there a way to do this? The version of Espresso is 2.2.1. The test: @T...

11

Solved

I am testing my app on Marshmallow 6.0 and it's getting force closed for the android.permission.READ_EXTERNAL_STORAGE, even if it is defined in the Manifest already. Somewhere I have read that if I...

1

I am working on a file sharing app. I need to turn on local only hotspot of a device programmatically by calling WifiManager.startLocalOnlyHotspot(). According to the android docs on this page - h...

6

Solved

I wish to know where the "Never ask again" checkbox boolean flag is stored and how to clear its value? Not necessarily programmatically, but manually - via setting, command or some tool. Tried cl...
Depress asked 9/11, 2015 at 13:8

2

Solved

Runtime permission dialog is shown in Android 6.0 or higher, so Activity.requestPermissions(...) which was added in API level 23 makes sense. But why is there another one (ActivityCompat.requestPe...
Phototopography asked 25/6, 2019 at 19:47

0

I am trying to download some .pdf file from the server to download folder This exception is thrown randomly on some device Xiomi running android (8,7,6) : 97% crashes only in this device Storag...
Simpleminded asked 29/4, 2019 at 8:46

1

Solved

In some applications i see read receive SMS for get active code! But for read this message not allowed any permission! My android version is 28 and i know in 23 or above for read messages we get ru...
Tenstrike asked 9/2, 2019 at 8:54

© 2022 - 2024 — McMap. All rights reserved.