Skip to content

Instantly share code, notes, and snippets.


Dave Park DaveNOTDavid

View GitHub Profile
DaveNOTDavid / ext_strge_prmns_sample.txt
Last active Feb 28, 2017
Requesting/granting in-app external storage permissions for devices Marshmallow (6.0/API 23) and above for a sample music player app (
View ext_strge_prmns_sample.txt
* Code snippet for requesting/granting permissions properly for dangerous permissions
* such as external storage for devices M (6.0/API 23) and above. For sampling purposes,
* snippet includes only the onCreate() and onRequestPermissionsResult() methods within
* MainActivity.
protected void onCreate(Bundle savedInstanceState) {