当前位置: 动力学知识库 > 问答 > 编程问答 >

Android N - Direct Boot ,geofences and gps locations

问题描述:

According to http://android-developers.blogspot.co.il/2016/04/developing-for-direct-boot.html

Starting with Android N, a device that has been powered on can boot into a new mode called Direct Boot before the user has a chance to unlock it for the first time. In this mode, the operating system is fully operational, but access to private app data is limited and only apps that have been updated to be Direct Boot aware can run.

Is Direct Boot right for my app?

Not every app should run in Direct Boot mode, so before you start coding check if your app fits these common use cases:

- Apps that schedule alarms, such as alarm clocks.

- Apps that provide important and timely notifications, like

messaging apps.

- Apps that provide services to other apps or the system, such as

Accessibility Services.

Please note that this is not an exhaustive list and we look forward to seeing what other kinds of apps can benefit from Direct Boot.

My question is: if my app gets geofence events and gps locations. In this case, can i let my app run before the user unlocks the device by using Direct Boot?

分享给朋友:
您可能感兴趣的文章:
随机阅读: