Android的INSTALLLOCATION和BOOT_COMPLETED [英] Android installLocation and BOOT_COMPLETED

查看:152
本文介绍了Android的INSTALLLOCATION和BOOT_COMPLETED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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_COMPLETED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆