Android M : Ask multiple Runtime Group Permissions together - android

I know how can i ask multiple permission at Runtime in android, and i am well aware about Group system in Runtime Permission Architecture.
I want to know if there is way allows to ask multiple Group permissions together as like multiple permissions at Runtime.
I want to ask Storage Group, Camera Group and Location Group permissions together.

You do not ask for rights to permission groups using the current runtime permission API. You ask for rights to permissions, not permission groups. At the moment, through Android 7.0, the way the system handles this is by asking the user to grant you rights to the associated permission groups. It may or may not do so in the future.
I want to know if there is way allows to ask multiple Group permissions together as like multiple permissions at Runtime.
No. There is no way to ask for a single permission group, let alone multiple ones.

As per current version of Android, there is no way to ask multiple Group permissions together as you want. There is other option possible is this

Related

Android Application Permissions Logging

i have a question related to Android app run time permissions.
Is it preferrable/allowed practice for developers to save users' permission preferences i.e. each user has allowed/denied any permission, on our remote server database?
Offcourse we are asking run time permission for every feature we want to use, but is it preferrable that we log on server that if user has allowed for any permission or not, please let know. Thanks
Android framework has restricted the developers to ask only those permissions which are necessary to implement a specific feature and that too if there's no other way to implement the feature without that specific permission. In your case, it seems like you have already taken care of the permissions and just want to hold the result of the asked permissions.
So the answer is YES, You can save this data and it's even considered good practice for handling permissions. Here's the reference from the official android documentation.
Greater flexibility in granting permissions
Users can deny access to individual permissions at the time they’re requested and in settings, but they may still be surprised when functionality is broken as a result. It’s a good idea to monitor how many users are denying permissions (e.g. using Google Analytics) so that you can either refactor your app to avoid depending on that permission or provide a better explanation of why you need the permission for your app to work properly. You should also make sure that your app handles exceptions when users deny permission requests or toggle off permissions in settings.
https://developer.android.com/training/permissions/usage-notes

Android Permissions should be asked on startup or only when needed?

I have built an app that use different kind of permissions like location, contacts etc.
Not all the permissions are used by all the users, instead each user only needs the permissions related to the features he/she is using it.
My question, should I ask all the permission on startup for all users or can I add them gradually while using the app and only when needed?
Thanks
If a user doesn't know why they need to accept a specific permisson, they may be suspicious and refuse (eg. camera).
If they click on a functionnality like 'Scan code' they will know why they are being asked for that permission and accept.
If you asked beforehand and the user refused, when you get to the part where you need that permission, it won't work. This is why they changed it to dynamic permissions in Android 6.

ask multiple permission only once in single pop up on targetsdk 23

I want to view pop up like OLA app for ask permission only one time to user(do not need more click for user ) .
I am using this example and no other concept or logic found out any where enter link description here
Android Runtime Permissions are categorized into two parts Normal and Dangerous Permissions
Normal Permissions: They Just to be added in manifest
Dangerous Permissions: They need to asked at runtime from user.
All dangerous Android system permissions belong to permission groups.
you can request a group permission and all permissions in a group will be granted in single click but if you need some permission from different groups then you will see different popups from system.
Hope you understand the structure.

Handling Android M run-time permissions with multi module project

I have a multiple module Android M app. Several modules require "WRITE_EXTERNAL_STORAGE" & "READ_EXTERNAL_STORAGE" permissions.
I would like to ask the user for permissions once:
1. Where would be the right place to do that?
1.1 Are permissions granted per activity?
1.2 Would asking for permission in module 1 give permissions to all app?
1.3 Is there a way to ask for both READ & WRITE permissions?
Google has published guidelines describing when to ask for permissions. It depends on context. Your questions 1.1 and 1.2 can be answered with the same info: permissions are granted and denied at the app level. It applies to every part of your app package. For 1.3: they are limited together into a group. When you ask for one you automatically get everything in the group.
This talk from DroidconNYC NYC will give you more details: https://youtu.be/WGz-alwVh8A.
Where would be the right place to do that?
From somewhere in your UI, before you need those permissions.
Are permissions granted per activity?
No, they are for the entire application.
Would asking for permission in module 1 give permissions to all app?
Asking for a permission in a module will give that permission to the entire app, if the user grants you the permission.
Is there a way to ask for both READ & WRITE permissions?
In this case, AFAIK you do not need both. Just ask for WRITE_EXTERNAL_STORAGE. In general, you can request as many permissions as you want; the requestPermissions() method takes a String[] of permission names.

Permission LIst of applications (Android)

I want a list of permission of the application installed in android , but as seen by other applications which offer privacy advisor , they have explained or grouped the permission.
Also seen when installing a new application on the device.
How can i get grouped permission list ?
Any specific way to classify them ?
Is there a particular way to get the groups or permission group ?
Thanks in advance .
System permissions are listed here and permission groups here. All you need is to use PackageManager to get apps' permissions and then keep doing what you want to do.

Categories

Resources