Sub Service_Start (StartingIntent As Intent)
LogColor("---- AppUpdating.newinst2: service_started", LogColor1)
LogColor("---- AppUpdating.newinst2: service_started", LogColor1)
If svcVerbose Then
Log($"${TAB}intent: ${StartingIntent}"$)
Log($"${TAB}action: ${StartingIntent.Action}"$)
Log($"${TAB}extra: ${StartingIntent.ExtrasToString}"$)
Log($"${TAB}data: ${StartingIntent.GetData}"$)
End If
If StartingIntent.Action = "android.intent.action.MY_PACKAGE_REPLACED" Then
If svcVerbose Then Log($"${TAB}Intent MY_PACKAGE_REPLACED received!"$)
pkg = GetPackageName
If svcVerbose Then Log($"${TAB}package: ${pkg}"$)
MyAppReload
End If
End Sub