forked from github/cordova-android
365edcad16
Also included in this refactoring: -Better use of StringBuilder when encoding messages -Defers actual encoding of messages until they are popped. -Add a pause/unpause of message queue so that all pending messages will be sent to JS in order at the end of a PROMPT or JS_OBJECT context. Before they may not have been sent in order. -Tweaked LOAD_URL so that it always happens on the UI thread (avoids log warning).