(Please excuse my imperfect English)

Hi. I'll get straight to the point.

I downloaded the built-in Alarm Clock source and trying to modify it
so that user need to play mini game in order to stop the alarm.

What I did:
1. I removed the "dismiss" and "snooze" button. (so user will have no
choice but to play mini-game to stop the alarm)

2. I also remove all dismiss() and snooze() from the dispatchKeyEvent
() method. to ensure that the alarm won't stop even the user press
back button and return to Home screen.

3. Now I plan to put my game in place of this "alarm alert" dialog(the
one that come up when an alarm goes off)

All I did is just for that -> "user will have no choice but to play
mini-game to stop the alarm"

Problem:
- alarm goes off.
- I press 'back' button. The alert dialog(which soon will be my mini-
game) disappear and return to Home screen.
- Now I have no way to return to the dialog(my mini-game). And the
alarm is still ringing...

May I have some pointers? I've tried
android:alwaysRetainTaskState="true" but still no luck.

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

Reply via email to