Sub Activity_Create (FirstTime As Boolean)
"No se olvide de cargar el archivo de diseño creado con el diseñador visual. Por ejemplo:
Activity.LoadLayout ( "Layout1")
'cfg.Defaults
cfg.Initialize ( "Configuración")
cfg.Defaults (CreateMap ( "loading_phrase": "Hola mundo"))
Log ( "loading_phrase =" & cfg.getString ( "loading_phrase"))
Log ( "atractivo")
cfg.fetch (86400)
End Sub
Sub Activity_Resume
End Sub
Activity_Pause sub (UserClosed As Boolean)
End Sub
Sub Config_onFetchComplete (éxito As Boolean)
Log ($ "Config_onFetchComplete ($ {} éxito)" $)
Si el éxito Entonces
cfg.activateFetched
Log ( "Activar valores inverosímiles")
Log ( "loading_phrase =" & cfg.getString ( "loading_phrase"))
ToastMessageShow (cfg.getString ( "loading_phrase"), True)
Label1.Text = cfg.getString ( "loading_phrase")
Terminara si
End Sub [/ CODE]
[CODE] Logcat conectado a: B4A-Bridge: Motorola MotoG3
--------- Inicio del principal
** Actividad (principal) Crear, isFirst ** = false
** Actividad (principal) Reanudar **
** Servicio (service1) Destruye **
** Servicio (service1) Crear **
** Servicio (service1) Iniciar **
Conectado a B4A-Bridge (Wi-Fi)
Instalación de archivos.
** Actividad (principal) Pausa, UserClosed ** = false
PackageAdded: paquete: notificacion.desof
[/CÓDIGO]