Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- btn.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- if (hasPermissions()){
- // our app has permissions.
- makeFolder();
- }
- else {
- //our app doesn't have permissions, So i m requesting permissions.
- requestPerms();
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement