Hello. Let me be direct.
I put the following code in manifest editor
My "AutoStartApp" service is as simple as this
That's it
Now, i test this on two phones (Note 3- Android 5, and another samsung A 2017 with Android 8)
In neither one of them the app will NOT start after self update (downloaded from server, installing using FileProvider all OK) but it refuse to restart after update.
Solution?
I put the following code in manifest editor
B4X:
AddReceiverText(AutoStartApp, <intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>)
B4X:
#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
End Sub
Sub Service_Create
Log("..........APP SELF UPDATED OK, RESTARTING...........")
StartActivity(Main)
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub Service_Destroy
End Sub
Now, i test this on two phones (Note 3- Android 5, and another samsung A 2017 with Android 8)
In neither one of them the app will NOT start after self update (downloaded from server, installing using FileProvider all OK) but it refuse to restart after update.
Solution?