0

I tried this link question but don't run those ways.

I add part code relared to method "onClick", but it don't run.

In manifest added:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="23" />

I don't understand what write in place of activity and parentActivity.

Community
  • 1
  • 1
21koizyd
  • 1,843
  • 12
  • 25

2 Answers2

0

You need to configure runtime permission for giving support to Android 6.0 Here is the url : https://developer.android.com/training/permissions/requesting.html

Nilay Dani
  • 896
  • 6
  • 24
0

As you said that you are already tried this answer and still stucked, As you need to manage RuntimePermissions on API versions 23 and higher here is documentation about adding permissions in android.

Although if you want to get all about RuntimePermissions simply i recommend you to follow this blog. It's a simple way to getting all about RuntimePermissions

TapanHP
  • 5,969
  • 6
  • 37
  • 66