有没有办法如何启动和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