afterwards, from other activities, i need to get some information from MediaBrowser (if is playing, lenght, etc.) that is inside the service, avoiding "null object errors"
i tried:
B4X:
If Player <> Null Then
If Player.MB.MediaIsPlaying....
I assume that MB is a process global variable. You don't need to check whether Player is Null or is sleeping.
However as a general rule, all public process global objects should be in the starter service and initialized in Service_Create. This way they will always be initialized.
I assume that MB is a process global variable. You don't need to check whether Player is Null or is sleeping.
However as a general rule, all public process global objects should be in the starter service and initialized in Service_Create. This way they will always be initialized.