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

bernardR

Member
Licensed User
Longtime 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
 
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
Back
Top