Dim inte As Intent
inte.Initialize(Me,"")
Dim ob As JavaObject = inte
inte.Flags = Bit.Xor(ob.GetField("FLAG_ACTIVITY_NEW_TASK"),ob.GetField("FLAG_ACTIVITY_CLEAR_TASK"))
Activity.Finish
StartActivity(inte)
'Also tried
Dim inte As Intent
inte.Initialize(Me,"")
Dim ob As JavaObject = inte
ob.RunMethod("addFlags",Array(ob.GetField("FLAG_ACTIVITY_NEW_TASK")))
ob.RunMethod("addFlags",Array(ob.GetField("FLAG_ACTIVITY_CLEAR_TASK")))
Activity.Finish
StartActivity(ob)
'.... and ....
Dim inte As Intent
inte.Initialize(main,"")
Dim ob As JavaObject = inte
ob.RunMethod("addFlags",Array(ob.GetField("FLAG_ACTIVITY_NEW_TASK")))
ob.RunMethod("addFlags",Array(ob.GetField("FLAG_ACTIVITY_CLEAR_TASK")))
Activity.Finish
StartActivity(inte)