B4J Question how to run app as minimized

jmon

Well-Known Member
Licensed User
Longtime User
This should work (requires JavaObject):
B4X:
Public Sub SetFormIconified(f As Form, Value As Boolean)
    Dim jmf As JavaObject = f
    Dim stage As JavaObject = jmf.GetField("stage")
    stage.RunMethod("setIconified", Array(Value))
End Sub
 
Upvote 0

bogdanc

Active Member
Licensed User
Longtime User
This should work (requires JavaObject):
B4X:
Public Sub SetFormIconified(f As Form, Value As Boolean)
    Dim jmf As JavaObject = f
    Dim stage As JavaObject = jmf.GetField("stage")
    stage.RunMethod("setIconified", Array(Value))
End Sub

Thanks jmon. This working fine for me.
 
Upvote 0
Top