android-permissions

missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH

佐手、 提交于 2020-08-27 08:20:33
问题 I add bluetooth to my app but am running into the following problem. When I do the code: BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter(); if (bluetoothAdapter == null) { Toast.makeText(getApplicationContext(),"Device doesnt Support Bluetooth",Toast.LENGTH_SHORT).show(); } if(!bluetoothAdapter.isEnabled()) { Intent enableAdapter = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableAdapter, 0); } The error is on the following line: if(

missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH

情到浓时终转凉″ 提交于 2020-08-27 08:20:11
问题 I add bluetooth to my app but am running into the following problem. When I do the code: BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter(); if (bluetoothAdapter == null) { Toast.makeText(getApplicationContext(),"Device doesnt Support Bluetooth",Toast.LENGTH_SHORT).show(); } if(!bluetoothAdapter.isEnabled()) { Intent enableAdapter = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableAdapter, 0); } The error is on the following line: if(

Android: Get localized permission group names

。_饼干妹妹 提交于 2020-08-07 05:12:32
问题 In marshmallow's runtime permission, user can choose "never ask again" in permission requests. In this case, we have to redirect user to app settings to let them enable the permissions for the app. Also, Android permissions are group based, it will be very handy to display names of the permission groups that the app needs before we send the user to the settings. I've seen the strings in android.Manifest such as " android.permission-group.LOCATION ". Is it possible to get the permission group

Android: Get localized permission group names

喜欢而已 提交于 2020-08-07 05:08:33
问题 In marshmallow's runtime permission, user can choose "never ask again" in permission requests. In this case, we have to redirect user to app settings to let them enable the permissions for the app. Also, Android permissions are group based, it will be very handy to display names of the permission groups that the app needs before we send the user to the settings. I've seen the strings in android.Manifest such as " android.permission-group.LOCATION ". Is it possible to get the permission group

ERROR_ALREADY_REQUESTING_PERMISSIONS on flutter

风格不统一 提交于 2020-08-06 11:49:03
问题 I create an android app with flutter, I create permission request at the first time when app is run, so when user click deny and then click login button, permission requested again. I got this error Exception has occurred. PlatformException (PlatformException(ERROR_ALREADY_REQUESTING_PERMISSIONS, A request for permissions is already running, please wait for it to finish before doing another request (note that you can request multiple permissions at the same time)., null)) this is my code

Highlighting a menu item in system settings

夙愿已清 提交于 2020-08-05 08:22:50
问题 Trying to bring up an unaswered question I found here - How to highlight android setting app menu item? As seen in this video https://www.youtube.com/watch?v=eHXBc5Mmsqs The "Power Shade" menu item is being highlighted once you enter the screen. I am trying to add the same feature to my app, guiding users to an item in the settings menu using this highlight feature. I can't seem to find any information on how to actually implement this, nor do I know if it has a specific name I could search

Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)

本秂侑毒 提交于 2020-08-02 04:15:35
问题 My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app uses the HistoryAPI to read com.google.step_count.delta data. This documentation claims that "com.google.android.gms.permission.ACTIVITY_RECOGNITION permission is converted into a pre-granted runtime permission" if the app targets SDK 28 but runs on SDK 29: https://developers.google.com/fit/android/authorization#android_permissions I have added to the app's manifest like the documentation

Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)

*爱你&永不变心* 提交于 2020-08-02 04:14:36
问题 My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app uses the HistoryAPI to read com.google.step_count.delta data. This documentation claims that "com.google.android.gms.permission.ACTIVITY_RECOGNITION permission is converted into a pre-granted runtime permission" if the app targets SDK 28 but runs on SDK 29: https://developers.google.com/fit/android/authorization#android_permissions I have added to the app's manifest like the documentation

How to read a file from internal storage or external storage and store the file in a arrayList in android

僤鯓⒐⒋嵵緔 提交于 2020-07-23 07:51:18
问题 My requirement is the end-user must be able to upload files into the application from internal or external storage and finally display the name of the file in the page. Actual result: Now I've fetched the file name from the storage and displayed the name in my page. Expected Result: The end user must be able to load image or video files from external or internal storage to the application and finally display their name in the page. But don't have any idea about how to load read the file from