desof Well-Known Member Licensed User Longtime User Sep 15, 2013 #1 Hola amigos , me imagino que es una estupidez pero hace vario tiempo estoy queriendo solucionarlo y no lo logro. El asunto es que utilizo un Servicio para crear una notificación así: B4X: Sub Service_Create Notification1.Initialize Notification1.Icon = "icon" Notification1.Light = False Notification1.Sound = False Notification1.Vibrate = False Notification1.SetInfo("Radio", "Off Line", "Main") Service.StartForeground(1, Notification1) PE.Initialize("PE") End Sub AHORA YA ESTANDO LA NOTIFICACION ACTIVA COMO PUEDO MODIFICAR DESDE EL MODULO MAIN EL TEXTO PARA QUE ME QUEDE "ON Line" o sea ALGO ASI! Notification1.SetInfo("Radio", "ON Line", "Main")
Hola amigos , me imagino que es una estupidez pero hace vario tiempo estoy queriendo solucionarlo y no lo logro. El asunto es que utilizo un Servicio para crear una notificación así: B4X: Sub Service_Create Notification1.Initialize Notification1.Icon = "icon" Notification1.Light = False Notification1.Sound = False Notification1.Vibrate = False Notification1.SetInfo("Radio", "Off Line", "Main") Service.StartForeground(1, Notification1) PE.Initialize("PE") End Sub AHORA YA ESTANDO LA NOTIFICACION ACTIVA COMO PUEDO MODIFICAR DESDE EL MODULO MAIN EL TEXTO PARA QUE ME QUEDE "ON Line" o sea ALGO ASI! Notification1.SetInfo("Radio", "ON Line", "Main")
S socialnetis Active Member Licensed User Longtime User Sep 16, 2013 #2 Hola, para acceder desde el modulo main debes hacer esto: B4X: NombreDelServicio.Notification1.SetInfo("Radio","On Line", "Main") NombreDelServicio.Notification1.Notify(1) La variable Notification1 tiene que estar declarada Process Globals del servicio.
Hola, para acceder desde el modulo main debes hacer esto: B4X: NombreDelServicio.Notification1.SetInfo("Radio","On Line", "Main") NombreDelServicio.Notification1.Notify(1) La variable Notification1 tiene que estar declarada Process Globals del servicio.