Android Question B4A.Callsub (Webviewextras) and javascript (SOLVED)

bernardR

Member
Licensed User
Hello,

Despite much research I did not understand the difference between true and false in the javascript command

B4A.CallSub('subInB4a', false, data);
and
B4A.CallSub('subInB4a', true, data);

Thank you so much
 

Star-Dust

Expert
Licensed User
Longtime User
Does the Sub called by your javascript modify your activity UI?
If the answer is yes then you need to pass boolean true as callUIThread otherwise you can pass false.
If you pass false and then the Sub tries to modify your activity UI you will get an exception.
 
Upvote 0
Top