简体   繁体   中英

Android 6.0 access sd card (download music)

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.

您需要配置运行时权限才能为Android 6.0提供支持。这是url: https : //developer.android.com/training/permissions/requesting.html

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM