Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // handler is an instance of Handler
- // textView is an instance of TextView, to display text from JavaScript
- private class AndroidBridge {
- public void callAndroid(final String arg) {
- handler.post(new Runnable() {
- public void run() {
- textView.setText(arg);
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment