Android 11 のフォアグラウンド サービス
Android 11 では、フォアグラウンド サービスがデバイスの位置情報、カメラ、マイクにアクセスできるタイミングが変更されています。これにより、機密性の高いユーザーデータを保護できます。
- カメラとマイク(フォアグラウンド サービス タイプ)
- アプリが Android 11 以降をターゲットとしており、フォアグラウンド サービスでカメラまたはマイクにアクセスする場合、フォアグラウンド サービス タイプとして
camera
と microphone
を含める必要があります。
- 使用中のアクセス制限
- アプリがバックグラウンドで実行されているときにフォアグラウンド サービスを開始する場合、フォアグラウンド サービスはマイクやカメラにアクセスできません。また、アプリがバックグラウンドで位置情報にアクセスできない限り、サービスは位置情報にアクセスできません。
詳しくは、アプリでのフォアグラウンド サービスの利用方法をご覧ください。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-09-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]