Hi,
I think it would be very convenient to have a .RunMethod method for every node. So we would need to create new variables as JavaObject when running external methods.
Current:
Suggested:
Or:
I currently use the asJo snippet from @Daestrum (https://www.b4x.com/android/forum/threads/javaobjects-the-easy-way.45121/), which is very good, but I found that this new proposition would be a great addition.
Thank you
Jmon.
I think it would be very convenient to have a .RunMethod method for every node. So we would need to create new variables as JavaObject when running external methods.
Current:
B4X:
Dim l As Label
l.Initialize("")
l.Text = "Blah"
Dim lJo As JavaObject = l
lJo.RunMethod("setRotate", Array(90.0))
Suggested:
B4X:
Dim l As Label
l.Initialize("")
l.Text = "Blah"
l.RunMethod("setRotate", Array(90.0))
Or:
B4X:
Dim l As Label
l.Initialize("")
l.Text = "Blah"
l.asJo.RunMethod("setRotate", Array(90.0))
I currently use the asJo snippet from @Daestrum (https://www.b4x.com/android/forum/threads/javaobjects-the-easy-way.45121/), which is very good, but I found that this new proposition would be a great addition.
Thank you
Jmon.