PendingIntent 是否在设备重启后仍然存在?
Does a PendingIntent survive device restart?
提交给 LocationServices
的 PendingIntent 是否在设备重启后仍然存在?如果不是,重新提交而不要求用户重新启动应用程序的最佳做法是什么?
Does a PendingIntent submitted to LocationServices survive device restart?
没有
If not, what's the best practice for re-submitting without requiring the user to relaunch the app?
使用 ACTION_BOOT_COMPLETED
BroadcastReceiver
控制重启,然后重新设置您的位置请求。
提交给 LocationServices
的 PendingIntent 是否在设备重启后仍然存在?如果不是,重新提交而不要求用户重新启动应用程序的最佳做法是什么?
Does a PendingIntent submitted to LocationServices survive device restart?
没有
If not, what's the best practice for re-submitting without requiring the user to relaunch the app?
使用 ACTION_BOOT_COMPLETED
BroadcastReceiver
控制重启,然后重新设置您的位置请求。