Reputation: 3288
I've been reading about the new Android permissions model, and I have a question since I can't test it right now:
If an app does not target the M Developer Preview, the app continues to use the old permissions model even on M Preview devices.
So if my app is not targeting the M Developer Preview, it wont need to check every time on granted permissions, BUT, they also say
Users can revoke permissions at any time from the app Settings screen.
So what happens when the user revokes one of my permissions while not targeting the M Developer Preview ? they say that unexpected behavior will happen, but without targeting the M version, we won't have access to new Android M methods, so in my opinion we are bound to use the new model ?
Upvotes: 4
Views: 428
Reputation: 21766
In short, Yes. Sooner or later we have to switch to new permission model because legacy app may behave abnormal on Android M platform in case end user revoke permission. To handle permissions in a good manner we need to switch to new permission model. To use this permission model you need to set targetSdkVersion= MNC
(As of preview 2) After final M release need to set targetSdkVersion=23
.
Update:
Android 6.0 Marshmallow is officially released. For more information check this link: http://developer.android.com/index.html
Upvotes: 2