Hello
Here is a simple minimize function that may suit some apps.
Regards
John.
Here is a simple minimize function that may suit some apps.
B4X:
Sub Activity_Minimize
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "")
i.AddCategory("android.intent.category.HOME")
i.Flags = 0x10000000
StartActivity(i)
End Sub
or
Sub Activity_Minimize
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("moveTaskToBack", Array(True))
End Sub
Regards
John.
Last edited: