Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Workaround for receiving system broadcasts with app installed to SD card?

It seems as if applications installed to the SD card do not receive any system broadcasts whatsoever. However, we'd like to start a service at boot time that listens for push notifications.

We'd hate to abandon app2sd, since it's a feature that was asked for by many users, so is there any way to have both?

like image 437
Matthias Avatar asked Jul 27 '11 16:07

Matthias


1 Answers

According to Android bug 8485, applications on the SD card do not receive the EXTERNAL_APPLICATIONS_AVAILABLE broadcast. That doesn't make sense to me, so hopefully that gets fixed.

Meanwhile, a workaround would be to listen for CONNECTIVITY_CHANGE broadcasts from the system and use that as a trigger start your service once the network becomes available.

like image 178
Christopher Orr Avatar answered Oct 30 '22 08:10

Christopher Orr