In a service module I start MediaPlayer activity that loads a layout. In MediaPlayer the user interacts and chooses the next alarm time. How can I make sure that MediaPlayer completes (i.e. the user selects his alarm time and presses Done) before it reaches my StartServiceAt line in the service module? I have tried CallSubDelayed2.
This code is in Sub Service_Create, and I find it has reached the 'Log' line well before the MediaPlayer activity has initialised, let alone allow the user the time to make his selections:-
This code is in Sub Service_Create, and I find it has reached the 'Log' line well before the MediaPlayer activity has initialised, let alone allow the user the time to make his selections:-
B4X:
StartActivity(MediaPlayer)
StartServiceAt(Me, NextTimeInstance(DateTime.GetHour(MediaPlayer.t), DateTime.GetMinute(MediaPlayer.t)), True)
Log("MediaPlayer stopped")
Last edited: