Try this:
Sub GetCharSequenceFromEditText(et As EditText) As Object
Dim jo As JavaObject = et
Return jo.RunMethod("getText", Null)
End Sub
EditText1.Text = GetCharSequenceFromEditText(EditText2)
Hello
@Erel ... I tested and still have some doubts:
- In the sample test I transferred the text content from one TextView to other
- In a real program, I have the same problem but need also to store in a sqlite database to recover later on screen
I noticed that the return of GetCharSequenceFromEditText is an object, not a text or string, what means that maybe it is not possible to store it in a simple string field and, even if I build a routine to get the extra data from object, I really don't know how to rebuild this from a storage...
SO, the question: how can I do this sequence as follows:
- EditText2.text -> sqlite database -> EditText1.text
Notice that I'm not talking about how to create or store data in a sqlite database. The problem is how to parse and store the result of GetCharSequenceFromEditText to rebuild later in a new EditText view...
Thanks!