I have a Kiosk app that is running on the tablet. If it is running at the time I upload a new release version, it replaces the running app with this new one and displays the following messages:
B4X:
** Activity (main) Pause, UserClosed = true **
** Service (newinst2) Create **
-- AppUpdating.NewInst2: service created
** Service (newinst2) Start **
-- AppUpdating.NewInst2: processing service_start
intent: (Intent) Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:b4a.CustomerTablet flg=0x8000010 cmp=b4a.CustomerTablet/eu.dgconsulting.appupdating.newinst2$newinst2_BR (has extras) }
action: android.intent.action.PACKAGE_REPLACED
extra: Bundle[{android.intent.extra.REPLACING=true, android.intent.extra.UID=10050, android.intent.extra.user_handle=0}]
Data: package:b4a.CustomerTablet
package REPLACED intent received!
package: b4a.CustomerTablet
-- AppUpdating.NewInst2: processing MyAppReload
** Activity (main) Create, isFirst = true **
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
Object context is paused. Ignoring CallSubDelayed: AddToActivity
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Service (kioskservice) Create **
** Service (kioskservice) Start **