小编Jan*_*mec的帖子

Android - 如何在启动后在/ sdcard上启动应用程序

有没有办法如何启动和Android应用程序自动启动后,如果它在/sdcard

好吧,可能是BroadcastReceiver.但哪个行动是正确的呢?

ACTION_BOOT_COMPLETED - does not work if it is on the /sdcard (documented)
ACTION_MEDIA_MOUNTED - does not work if it is on the /sdcard (which is undocumented)
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE - does not work, I do not know why
ACTION_USER_PRESENT - does not work if the BroadcastReceiver is registered in AndroidManifest (which is undocumented, but documentation bug has been reported)
Run Code Online (Sandbox Code Playgroud)

谢谢
Jan

boot android sd-card broadcastreceiver

20
推荐指数
1
解决办法
3685
查看次数

标签 统计

android ×1

boot ×1

broadcastreceiver ×1

sd-card ×1