Android Question Access Activity View from Inline Java

Asoka

Member
Licensed User
Longtime User
Hi Guys!
Is there a way to change Main Activity' s View (EditText.Text) from inline java?
And How can I pass back varialble (declared in Process Globals) to Activity from Inline Java code?

Thanks
 

Asoka

Member
Licensed User
Longtime User
I found this solution for using a 3rd party library (aar file).

I use this:
#Additionaljar: myfile.aar
 
Upvote 0

Asoka

Member
Licensed User
Longtime User
In aar file there's an so file, so I open it with inline java syste.loadLibrary("so file")
These files are for control a POS terminal ("Monera").
Everything works but I need some messages for payment progress and result.
But under pay procees I want to write out POS messages like "Insert Casd", "Enter PIN" etc..
These Events are known for me and I can write to BA.Log(), but I want to write them to activity view (label, edittex).
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
pseudo:
B4X:
myactivity.label.text = whatever_i_was_putting_in_log()
presumably you're running a an inline java method from a b4a javaobject that returns some value (a string, i'm guessing). instead of doing "log( return_string )", you assign return_string to the view's text.
 
Upvote 0
Top