android-permissions

Handling Permissions: Making one activity of a large app into an instant app

给你一囗甜甜゛ 提交于 2021-01-29 07:11:05
问题 I have been asked to make an instant app module openable from play store in a base app which I am working on. The base app is large with lots of activities. It also uses many more permissions than those allowed for instant apps. Is it possible that I make the instant app module from only one of the activities which utilizes only the allowed permissions? If yes, how should I go about it? In other words, can I declare the allowed permissions in the manifest file of the instant app module

Read Text file From Download Folder Failed

时光总嘲笑我的痴心妄想 提交于 2021-01-29 05:43:55
问题 When I click a load button, the file content does not load in TextView There appears to be an error uploading the file in BufferedReader in ReadText method. And this is a picture from "Logcat" public class MainActivity extends AppCompatActivity private static final int READ_REQUEST_CODE = 42; private static final int PERMISSION_REQUEST_STORAGE = 1000; Button b_load; TextView tv_output; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Android 7.0 Dont Show Multiple Permission Request

╄→尐↘猪︶ㄣ 提交于 2021-01-28 06:31:37
问题 im trying to show multiple permission request on Android 7.0 This code working with no problem on Android sdk 23. SDK 24 showing one time the request, if i touch allow or denied button, this code working one time and Don't show other request. Code is here; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED) { requestPermissions(new String[]{android.Manifest.permission.WRITE

Where can I find more info about android specific permissions

你说的曾经没有我的故事 提交于 2021-01-28 05:13:26
问题 I need to upgrade old android aplication from minSdkVersion="19" , so I need to handle all the permissions. In the manifest, it requires some dangerous permissions. e.g.: <uses-permission android:name="android.permission.BLUETOOTH" /> <!-- normal --> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <!-- normal --> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <!-- normal --> <uses-permission android:name="android.permission.WRITE_EXTERNAL

How to get “Never ask Again” option in runtime permission

孤人 提交于 2021-01-28 01:40:39
问题 In my app I have created a class name Untility where I wrore the code for permission of READ_EXTERNAL_STORAGE. But the problem is when I click Deny on the app, I am not finding the alert notification to set it allow again. Initialy I have the option "Never ask Again". Once I clicked on it, the dialog desapperas. and now after running the app if I click on deny, I cannot find Dialog message anymore to make it allow again. How can I modify my code to show this message every time. My Utility

shouldShowRequestPermissionRationale is false

℡╲_俬逩灬. 提交于 2021-01-27 21:07:47
问题 I added location permissions to my app. When installing the app now it asks the user for permission. This is my code: if (fragment.shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION) { fragment.requestPermissions(....); } But when I have my previous app verison installed, where I didn't have this location permission and update the app then it does not ask for permission, as fragment.shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION

How to surpass location enabler dialogue in UI testing Espresso android?

余生颓废 提交于 2021-01-27 06:47:33
问题 I am using Espresso for UI testing android. I wanted to run a test with location off in the settings and I got stuck with the location enabler dialogue as it fails other test. I have mentioned my observations and what I have tried so far Used UiAutomator, it works only on single test case but it fails on complete run of test suite. Used Grant permission rule, it gave permission but the dialogue still exists. Used Roboelectric, it had no effect on the problem. Used Shadow operation, it had no

How to surpass location enabler dialogue in UI testing Espresso android?

[亡魂溺海] 提交于 2021-01-27 06:46:08
问题 I am using Espresso for UI testing android. I wanted to run a test with location off in the settings and I got stuck with the location enabler dialogue as it fails other test. I have mentioned my observations and what I have tried so far Used UiAutomator, it works only on single test case but it fails on complete run of test suite. Used Grant permission rule, it gave permission but the dialogue still exists. Used Roboelectric, it had no effect on the problem. Used Shadow operation, it had no

How to bind CallScreeningService?

微笑、不失礼 提交于 2021-01-27 06:27:13
问题 I want to get the Call Details and block the calls(if necessary). As the TelecomManager endCall method is deprecated and as per the documentation it is suggesting to use the CallScreeningService. https://developer.android.com/reference/android/telecom/CallScreeningService.html As mentioned in the Android documentation, I am trying to bind the CallScreeningService with my application. I have created a class public class CallUtil extends CallScreeningService { private Call.Details mDetails;

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

≡放荡痞女 提交于 2021-01-27 06:10:41
问题 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