據https://developer.android.com/training/wearables/watch-faces/service.html,我需要在這裏顯示從我的清單文件兩種權限:(?也許是因爲我升級我的手錶到6.0)PROVIDE_BACKGROUND權限不再需要?
<!-- Required to act as a custom watch face. -->
<uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
<!-- So we can keep the screen on and start vibrations -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
然而,近日開始我在日誌中看到以下內容:
06-07 12:14:24.609 470-493/? W/PackageManager: Unknown permission com.google.android.permission.PROVIDE_BACKGROUND in package com.pipperpublishing.refwatch
我GOOGLE了在該許可模式的任何改變,或許與新的模型6.0有關,但找不到這事。
有什麼想法?
更新:看着https://developer.android.com/reference/android/Manifest.permission.html很明顯,PROVIDE_BACKGROUND已經不存在,但我無法找到任何表示,它被替換或爲什麼它不再需要。
我已經提出要求,以獲取此更正的文檔。這從來沒有需要,樣品也不使用它。 –