Android的INSTALLLOCATION和BOOT

编程入门 行业动态 更新时间:2024-10-25 02:27:45
本文介绍了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

本文发布于:2023-11-27 10:28:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637701.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Android   INSTALLLOCATION   BOOT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!