From dbc33eca4658bb1c94ebfbdfc95904acbb73a9c0 Mon Sep 17 00:00:00 2001 From: Jakob Class Date: Tue, 10 Sep 2013 12:59:33 +0200 Subject: [PATCH] Call callback from same thread. --- platforms/android/src/com/test/TestPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platforms/android/src/com/test/TestPlugin.java b/platforms/android/src/com/test/TestPlugin.java index ea3ea83..7826223 100644 --- a/platforms/android/src/com/test/TestPlugin.java +++ b/platforms/android/src/com/test/TestPlugin.java @@ -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"); } } \ No newline at end of file