eolwral/OSMonitor

Startup on boot

Opened this issue · 6 comments

This function isn't working on some devices, code review and testing are required.

The bug has been found, if user enable APP2SD feature, it won't able to startup on boot.

Solution: Add extra code for checking APP2SD and disable this function properly.

If an app is on an SD Card, then there is no way for it to startup on boot, correct?

Yes, it is correct. you also can check the following link.
http://developer.android.com/guide/topics/data/install-location.html#ShouldNot
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.

Thanks!

  1. There may be a small bug in that OSMonitor may allow the "startup on boot" option even when neither notification type is enabled. The result is that nothing is displayed on boot, even with this item selected. I have not performed enough testing to confirm this is the case, but it appeared to be the case during a clean install. Once either notification option is checked, everything works as designed (assuming I understand the design correctly!). I recommend testing with a clean install, if interested.
  2. Instead of disabling the ability to enable the "startup on boot" option if neither notification option is checked, always allow enabling that option. If neither notification option is checked, but "startup on boot" is enabled, load the main OSMonitor interface at boot time. This would be very useful to monitor the boot process.

Thanks for suggestion!

I have checked the first suggestion, I can confirm it is a bug after several testing, the problem is that the "start on boot" option isn't disabled by default, I will fix it on next version.

The second suggestion is good, but I would like to add the another option, the old users already used to the behaviour, the new behaviour may cause some troubles, I may add an option "show up after booting".

You're welcome! Thanks for OSMonitor!