我有一个Android应用程序,使用的AlarmService。根据文档,我不应该让安装/移动这个程序到外部存储。但是,用户不明白这个(可能是由于对某些设备非常少的内部存储) - 并要求安装在外部存储选项(通过低星级评级)。
I have an Android app that uses the AlarmService. According to the docs, I should not allow installing/moving this app to external storage. Users, however, do not understand this (probably due to very little internal storage on some devices) - and demand the option to install on external storage (via low-star ratings).
我需要重新注册启动报警,并有一个BroadcastReceiver监听BOOT_COMPLETED。然而,这是不要求安装在SD卡上的应用,因为这是尚未安装则意图被激发。 EXTERNAL_APPLICATIONS_AVAILABLE是,不幸的是,还没有 - 所以我没有得到任何我们已经启动,因此没有变化重新设置的警报通知
I need to re-register the alarms on boot and have a BroadcastReceiver listening for BOOT_COMPLETED. This, however, is not called for applications installed on the sd-card since this is not yet mounted then the intent is fired. EXTERNAL_APPLICATIONS_AVAILABLE is, sadly, also not -- hence I get no notification that we have booted and thus have no change to re-set the alarms.
有没有解决这个predicament什么办法?
Is there any way around this predicament?
推荐答案对不起,没有,这是不是你可以得到解决。这就是为什么我们说,你不应该把该做这样的事情在SD卡上的应用程序。
Sorry, no, this is not something you can get around. This is why we say you should not put apps on SD card that do such things.
更多推荐
Android的INSTALLLOCATION和BOOT
发布评论