Hola a todos, mi pregunta es ¿como se coloca el icono de la aplicación, en la parte superior del móvil y así saber que la aplicación esta activa?.
Saludos
Pepe
Saludos
Pepe
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.Vibrate =False
n.Sound = True
n.SetInfo("Esto es el titulo", "Esto es el cuerpo del mensaje", "Main")
'Cambiar Main por "" si el codigo viene del layout que se le llama.
n.Notify(1)
n.Cancel(1)
Notificacion.SetInfo("CIDE", "Aplicación en uso", "")
Notificacion.SetInfo("CIDE", "Aplicación en uso", "about")
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Notificacion As Notification
End Sub
Sub Service_Create
Notificacion.Initialize
Notificacion.Icon = "icon"
Notificacion.Light = False
Notificacion.Sound = False
Notificacion.Vibrate = False
Notificacion.SetInfo("CIDE", "Aplicación en uso", "about")
Service.StartForeground(1, Notificacion)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed = False Then
Notificacion.notify(1)
else
Notificacion.cancel(1)
end if
End Sub
Service.StartForeground(1, Notificacion)
Dim CN As CustomNotification