I know this is been hashed and rehashed many times on the forums but I still haven't found a way to really close an activity. I've tried of course Activity.Finish and also:
Nothing seems to close the activity. I've tried waiting literally overnight and the activity still shows in recent apps.
What I'm trying to do is execute a sub from a shortcut from the app icon and not show the activity.
Any suggestions?
B4X:
Sub CloseActivities
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("finishAffinity", Null)
End Sub
Nothing seems to close the activity. I've tried waiting literally overnight and the activity still shows in recent apps.
What I'm trying to do is execute a sub from a shortcut from the app icon and not show the activity.
Any suggestions?