alucard20004 wrote:
> 1. User can just turn off the phone. How did the developer prevent
> user from turning-off the device?

They probably do not stop the user from turning off the device (i.e.,
holding down the end-call button and choosing Power Off). I would be
rather disturbed if an application could do that.

They might stop the user from putting the phone to sleep (i.e., pressing
the end-call button) by holding a suitable WakeLock.

> 2. If the user CAN turn off the device, how did the developer schedule
> the 'math' activity to start next time the device is turned on?

Possibly by arranging to have a BroadcastReceiver respond to the
ACTION_BOOT_COMPLETED broadcast Intent.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to