0

I have a tracker app which i want to run on boot up of the device. It works fine if it is installed in the internal storage but when the users move it to their sd card, my app won't work during boot up, they need to move it due to shortage in internal storage capacity. Any suggestions please. Thanks in advance.

jcv
  • 13
  • 2

1 Answers1

0

The explanation is provided in Android's App Install Location doc.

Quote:

The system delivers the ACTION_BOOT_COMPLETED broadcast before the external storage is mounted to the device. If your application is installed on the external storage, it can never receive this broadcast.

[EDIT]

If your app is not that big but users are running out of internal storage because your app is storing too much data, you could have your app write that data to external storage. In this case, you should make your app installable only in internal storage (since it has to receive ACTION_BOOT_COMPLETED).

cybersam
  • 63,203
  • 6
  • 53
  • 76
  • i see. thanks for the answer @cybersam. Would there be any work around with this problem? – jcv Dec 01 '15 at 03:47
  • I have added a possible workaround to my answer, but it may not apply to your case. – cybersam Dec 01 '15 at 21:26
  • I see. Thanks. Well, as I had checked, the device itself has a very low storage capacity and the users want it to be installed in their external sd card. As you've already mentioned, it might not work well with that workaround. – jcv Dec 02 '15 at 01:59