How do I grant permission to write on Android?

Đức Linh

New member
How do I grant permission to write on Android?
Answer
Call Settings.System.canWrite() to see if you are eligible to write out settings. If canWrite() returns false , start up the ACTION_MANAGE_WRITE_SETTINGS activity so the user can agree there to allow your app to actually write to settings.
 

Tìm kiếm

Back
Top