Can I still use the WRITE_CONTACTS permission?
わかりやすく
API レベル38以上を対象とするアプリは、WRITE_CONTACTSで連絡先を作成、変更、削除することはできなくなりました。Contacts Providerへの書き込みはSecurityExceptionを発生させるため、アプリで処理する必要があります。
- API レベル38以上を対象とするアプリでは、WRITE_CONTACTSによって連絡先を作成、変更、削除する権限は付与されなくなります。
- システムはこれらのアプリに対して権限リクエストのダイアログを表示しません。
- Contacts Providerへの書き込みを試みると、SecurityExceptionが発生します。
- 書き込みが成功したと決めつけず、この例外を処理するようアプリを実装してください。
公式テキストより
Not for apps targeting API level 38 or higher. For these apps, WRITECONTACTS no longer grants the ability to create, modify, or delete contacts. The system won't show the permission request dialog. Attempts to write to the Contacts Provider will throw a SecurityException. Your app should handle this exception rather …
公式テキスト全文を読む ↗ StoreRules ライブラリで開く アプリが準拠しているか質問する
変更履歴
- · 追加
この条項に関する開発者の事例
まだ事例はありません。