我一直在閱讀有關的新的Android權限模型,和我有一個問題,因爲我現在不能測試:版本的Android M權限模型
If an app does not target the M Developer Preview, the app continues to use the old permissions model even on M Preview devices.
所以,如果我的應用程序是不針對M個開發者預覽版,它不會需要檢查每一個時間上授予的權限,但是,他們也說
Users can revoke permissions at any time from the app Settings screen.
那麼,當用戶撤銷我的一個權限而未針對M Developer Preview時會發生什麼?他們說會出現意想不到的行爲,但是如果沒有針對M版本,我們將無法使用新的Android M方法,因此我認爲我們必須使用新模型?
第二個評論也是如果應用程序已被列入M預覽。 –
是的,這是正確的 –
https://github.com/nitiwari-dev/Android-M-RuntimePermissionDemo演示瞭解聯繫人的許可如何工作 – nitesh