android-permissions

Is it possible to grant Nearby API permissions from phone settings?

♀尐吖头ヾ 提交于 2021-01-27 06:09:47
问题 Question Is it possible to grant Nearby API permissions from phone settings? If so, how? Does the answer vary by device API level? Read on for more context if needed :) General Background When an app targeting API level 23 or higher is installed on a device running API level 23 or higher, access to actions that required dangerous permissions can be granted or revoked by the user in two different ways: while the application is running in the foreground, where calls to requestPermissions result

Android 11 users can’t grant background location permission?

爷,独闯天下 提交于 2021-01-20 16:44:29
问题 As of Android 11, apps targeting SDK 30+ will not show a user an option to grant background location permission to an app, instead it requires users to go to a settings page. How do we bring a user to the proper settings page? When a feature in your app requests background location on a device that runs Android 11 or higher, the system dialog doesn't include a button to enable background location access. In order to enable background location access, users must set the Allow all the time

Android 11 users can’t grant background location permission?

浪子不回头ぞ 提交于 2021-01-20 16:43:06
问题 As of Android 11, apps targeting SDK 30+ will not show a user an option to grant background location permission to an app, instead it requires users to go to a settings page. How do we bring a user to the proper settings page? When a feature in your app requests background location on a device that runs Android 11 or higher, the system dialog doesn't include a button to enable background location access. In order to enable background location access, users must set the Allow all the time

android Build.GetSerial() throwing exception

跟風遠走 提交于 2021-01-15 21:57:26
问题 I'm developing a Xamarin.Android project,where I need to get the Device Serial number. I have implemented it the way it is shown below. Also added the permissions in the manifest file: <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> string serial; if (Build.VERSION.SdkInt >= BuildVersionCodes.O) { serial = Build.GetSerial(); } else { serial = Build.Serial; } I have tried it on two

android kotlin java.io.FileNotFoundException: /storage/emulated/0/number.txt: open failed: EACCES (Permission denied)

孤人 提交于 2021-01-10 01:38:33
问题 I'm writing an app for Android 10 using kotlin. The app has to read file named number.txt from internal storage. But it always fails to do so: java.io.FileNotFoundException: /storage/emulated/0/number.txt: open failed: EACCES (Permission denied) Here what I have in my manifest: ... <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> ... I have to only read the file, so there is no write permission in manifest. Here is my code, as you can see I use runtime permissions:

How to request and check permissions in Flutter

喜夏-厌秋 提交于 2020-12-30 03:14:18
问题 I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the user checks the Never ask again and Don't allow and enters the application again. Currently the app never ask to again when the user checks Don't allow I Know Users must grant permission for an app to access personal information, including the current location , camera , calendar , contacts ,

How to request and check permissions in Flutter

感情迁移 提交于 2020-12-30 03:12:17
问题 I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the user checks the Never ask again and Don't allow and enters the application again. Currently the app never ask to again when the user checks Don't allow I Know Users must grant permission for an app to access personal information, including the current location , camera , calendar , contacts ,

How to request and check permissions in Flutter

强颜欢笑 提交于 2020-12-30 03:11:35
问题 I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the user checks the Never ask again and Don't allow and enters the application again. Currently the app never ask to again when the user checks Don't allow I Know Users must grant permission for an app to access personal information, including the current location , camera , calendar , contacts ,

How to request and check permissions in Flutter

随声附和 提交于 2020-12-30 03:08:43
问题 I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the user checks the Never ask again and Don't allow and enters the application again. Currently the app never ask to again when the user checks Don't allow I Know Users must grant permission for an app to access personal information, including the current location , camera , calendar , contacts ,

How to request and check permissions in Flutter

半城伤御伤魂 提交于 2020-12-30 03:08:35
问题 I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the user checks the Never ask again and Don't allow and enters the application again. Currently the app never ask to again when the user checks Don't allow I Know Users must grant permission for an app to access personal information, including the current location , camera , calendar , contacts ,