Skip to content

Commit

Permalink
Call callback from same thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrobi committed Sep 10, 2013
1 parent 4c17ba5 commit dbc33ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/android/src/com/test/TestPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ public boolean execute(String action, CordovaArgs args,

private void test(final CallbackContext callbackContext) {
Log.d("TestPlugin", "executing test");
/*
cordova.getThreadPool().execute(new Runnable() {
@Override
public void run() {
callbackContext.success("0cc63f47cc68c3c2283a");
}
});
*/
callbackContext.success("0cc63f47cc68c3c2283a");
}
}

0 comments on commit dbc33ec

Please sign in to comment.