Sub Service_Start (StartingIntent As Intent)
If StartingIntent.Action = "android.intent.action.MY_PACKAGE_REPLACED" Then
pkg = GetPackageName
MyAppReload
End If
End Sub
'e nel manifest
AddReceiverText(newinst2,
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>)