Merhabalar,
Android M ve üzeri uygulama içinde özel izin gerekmektedir. Bu izni almak istediğiniz fragment yada activity içinde talep edip kullanıcıdan cevap alabilirsiniz. Böylece uygulamanızın çalışması gereken izinler kullanıcı tarafından sağlanmış olacaktır.
Hello,
Special permission is required in the Android M and via the application. You can get answers from the user by requesting in fragments or activity you want to get this permission. So you need to work permit applications will be provided by the user.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (!Settings.System.canWrite(this)) {
requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.READ_EXTERNAL_STORAGE}, 2909);
}
}
Special Permissions
Table 1. Dangerous permissions and permission groups.
Permission Group | Permissions |
---|---|
CALENDAR |
|
CAMERA |
|
CONTACTS |
|
LOCATION |
|
MICROPHONE |
|
PHONE |
|
SENSORS |
|
SMS |
|
STORAGE |