_bt1 is the wrapper, _bt1.getObject() is the Button (android.widget.Button)
what do you mean by "I have tried this and did not work" ? what did you try? my example? (my example works). if you tried something else, what was it? show the error log.
unfortunately, buttons have no methods of their own to show in a test; they inherit view methods. in my example, if i pass a b4a button as a javaobject, i can run 2 inherited methods. the javaobject is a button.
look at the attached.
if i pass a b4a button (buttonwrapper, according to you) to test what it is, it's an android.widget.Button.
if i take a javaobject and assign it to a b4a button and pass it to the test, it's an android.widget.Button.
if i instantiate an android.widget.Button and pass it to the test, it's an android.widget.Button.
if i take a webview and test it, it's not an android.widget.Button (that's a test of the test).
except for the webview, the others are all instances of android.widget.Button.
Like Reply