I have a service modul running in the background that calls from time to time the sub of an activity. if the phone is not in standby mode everything is fine and works...but if its in standby mode nothing happens....
is there something special i have to do? is there a command to awake the phone from standby mode?
its an alarm clock that plays a sound with the mediaplayer.
I dont know how else i should solve it? Playing the alarm with the service module is no problem, but stop playing it...
When the alarm occurs (set/called by callserviceat).
an activity is loaded (no matter if standby or not / if the app is started or not).
this activity plays the alarm sound until the user press the Stop Playing Alarm button
When the alarm occurs (set/called by callserviceat).
an activity is loaded (no matter if standby or not / if the app is started or not).
this activity plays the alarm sound until the user press the Stop Playing Alarm button
Play the sound in the service. Then run StartActivity.
When the user cancels the alarm on the activity, do a CallSubDelayed in the service to stop the sound.