Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting WRITE_SETTINGS permission #16

Closed
vajiralasantha opened this issue Jun 10, 2016 · 1 comment
Closed

Requesting WRITE_SETTINGS permission #16

vajiralasantha opened this issue Jun 10, 2016 · 1 comment
Labels

Comments

@vajiralasantha
Copy link

First of all thank you for this great library. However in my app I need to get WRITE_SETTINGS permission and I use following block of code.

permissions.add(PermissionModelBuilder.withContext(this)
.withCanSkip(false)
.withPermissionName(Manifest.permission.WRITE_SETTINGS)
.withTitle("CHANGE BRIGHTNESS SETTINGS")
.withMessage("This permission is required for this app to change brightness settings of this device.")
.withExplanationMessage(R.string.explanation_message_get_settings)
.withFontType("my_font.ttf")
.withLayoutColorRes(R.color.colorPrimary)
.withImageResourceId(R.drawable.permission_three)
.build());

This does not prompt me to get system settings and it simply skip to next page (using SamplePagerActivity).

I have defined uses-permission android:name="android.permission.WRITE_SETTINGS" in Manifest file as well.

Do you have any idea why? Appreciate your help. Thanks.

@k0shk0sh
Copy link
Owner

k0shk0sh commented Aug 9, 2016

the user has to allow this permission manually
Stackoverflow

@k0shk0sh k0shk0sh closed this as completed Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants