android-permissions

Android Manifest File: App Supports Tablets, but is marked “not compatible” in market?

℡╲_俬逩灬. 提交于 2021-02-09 07:32:20
问题 I've been reading several other things on the forum for handling the Manifest File. Though I've found answers; it still doesn't address my particular issue. My application is designed for any phone or tablet, but Google's Play Store says "Not Compatible." I'm attempting to make the application available to phones and tablets (cellular or just wifi). Any assistance would be terrific, thank you in advance. I'm clearly missing something in this manifest file. These are the permissions requesting

change the language of runtime permission

倖福魔咒の 提交于 2021-02-08 15:33:06
问题 How to change the language of runtime permissions in android? When I'm trying to change the language using Configuration config = getBaseContext().getResources().getConfiguration(); locale = new Locale(lang); Locale.setDefault(locale); Configuration conf = new Configuration(config); conf.locale = locale; getBaseContext().getResources().updateConfiguration(conf, getBaseContext().getResources().getDisplayMetrics()); It changes the application language but the permissions for camera such dialogs

Permission dialog exits automatically android

与世无争的帅哥 提交于 2021-02-07 10:34:20
问题 I'm working on Marshmallow permission support, and I have implemented it in my app. But I observe a strange behavior while requesting permissions. PROBLEM : When I launch my app for the first time, everything goes well, and on the home page, the user is presented with a permission dialog asking for ACCESS_FINE_LOCATION. User denies the permission, and on denial I show another dialog, explaining why the permission is needed, and to reconsider the option of denying the permission (with I'm Sure

SecurityException: Permission Denial: While launching Activity via explicit intent

霸气de小男生 提交于 2021-02-07 10:15:28
问题 I was reading about declaring permissions in activity . According to the documentation You can use the manifest's tag to control which apps can start a particular activity. A parent activity cannot launch a child activity unless both activities have the same permissions in their manifest. If you declare a element for a particular activity, the calling activity must have a matching element. To try this out, I created 2 sample Apps. First App will try to directly launch an activity of the

SecurityException: Permission Denial: While launching Activity via explicit intent

痴心易碎 提交于 2021-02-07 10:13:36
问题 I was reading about declaring permissions in activity . According to the documentation You can use the manifest's tag to control which apps can start a particular activity. A parent activity cannot launch a child activity unless both activities have the same permissions in their manifest. If you declare a element for a particular activity, the calling activity must have a matching element. To try this out, I created 2 sample Apps. First App will try to directly launch an activity of the

App Update is rejected from google play due to Background Location access (But I didn't use any background location Permission)

寵の児 提交于 2021-02-07 09:29:29
问题 Currently, I am working on a Courier service app using Flutter. My app need Location permission in foreground to find nearby Courier services. I didn't use any background location permission in my app. But, when I try to upload my updated app (Previous version of my app is already in Play Store), it shows I took background location permission. Here is a screenshot of play console app summary of updated version of my app: And here is another screenshot of my previous version of app which is

Accessing event input nodes in Android withour rooting

雨燕双飞 提交于 2021-02-05 09:42:43
问题 I want to be able to inject different events into an Android device. After some search, I found that I can do this by accessing event input nodes in Android OS, which are found in dev/input/eventX . Once these are accessed, read and write operations can take place, and hence I can inject events. The problem is that these nodes are only accessible in a rooted device. If I try to use them without rooting, the process will fail as mentioned in this article, http://www.pocketmagic.net

Issue writing in the Download directory

两盒软妹~` 提交于 2021-02-05 06:22:26
问题 I'm trying to write this xlsx file in the Download directory of a Samsung Galaxy Tab A 2019 (Android 9.0). If I try to do this on my emulator (Google Pixel C with android 9.0) it works without any problems and I can see the file. If I give the app to my client it gives an error, catches by up by this function: try { importIntoExcel(); DynamicToast.makeSuccess(UserList.this, "Saved!", 2000).show(); b1.setEnabled(true); } catch (IOException e) { DynamicToast.makeError(UserList.this, "Error!",

Xiaomi devices permission to enable apps pop-up windows while running in the background

爷,独闯天下 提交于 2021-02-04 13:47:04
问题 Xiaomi devices latest update introduced a new permission that prevents my app (custom shortcuts launcher) that works in the background from working untill users enable this permission: ""Display pop-up windows while running in the background" The question is, how can I show a permission prompt window for this permission, or at least how to redirect users to "other permissions" screen? 回答1: To redirect users to the "other permissions" screen use this code Intent intent = new Intent("miui

Xiaomi devices permission to enable apps pop-up windows while running in the background

拈花ヽ惹草 提交于 2021-02-04 13:47:02
问题 Xiaomi devices latest update introduced a new permission that prevents my app (custom shortcuts launcher) that works in the background from working untill users enable this permission: ""Display pop-up windows while running in the background" The question is, how can I show a permission prompt window for this permission, or at least how to redirect users to "other permissions" screen? 回答1: To redirect users to the "other permissions" screen use this code Intent intent = new Intent("miui