You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/07/31 22:32:35 UTC
docs commit: fix imports in android plugin example
Updated Branches:
refs/heads/master bf41ae22a -> 057d99f70
fix imports in android plugin example
Conflicts:
docs/en/edge/guide/platforms/android/plugin.md
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/057d99f7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/057d99f7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/057d99f7
Branch: refs/heads/master
Commit: 057d99f7042695e69b0afac0bbe94bea3fc563eb
Parents: bf41ae2
Author: Dan Michael O. Heggø <da...@gmail.com>
Authored: Mon Jul 29 22:31:33 2013 +0200
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Wed Jul 31 13:32:27 2013 -0700
----------------------------------------------------------------------
docs/en/3.0.0/guide/platforms/android/plugin.md | 6 ++++--
docs/en/edge/guide/platforms/android/plugin.md | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/057d99f7/docs/en/3.0.0/guide/platforms/android/plugin.md
----------------------------------------------------------------------
diff --git a/docs/en/3.0.0/guide/platforms/android/plugin.md b/docs/en/3.0.0/guide/platforms/android/plugin.md
index c23ffcf..9f45a2e 100644
--- a/docs/en/3.0.0/guide/platforms/android/plugin.md
+++ b/docs/en/3.0.0/guide/platforms/android/plugin.md
@@ -126,8 +126,9 @@ application:
package org.apache.cordova.plugin;
- import org.apache.cordova.api.CordovaPlugin;
- import org.apache.cordova.api.PluginResult;
+ import org.apache.cordova.CordovaPlugin;
+ import org.apache.cordova.CallbackContext;
+
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@@ -136,6 +137,7 @@ application:
* This class echoes a string called from JavaScript.
*/
public class Echo extends CordovaPlugin {
+
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
if (action.equals("echo")) {
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/057d99f7/docs/en/edge/guide/platforms/android/plugin.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/plugin.md b/docs/en/edge/guide/platforms/android/plugin.md
index c63c2e3..1fe75d4 100644
--- a/docs/en/edge/guide/platforms/android/plugin.md
+++ b/docs/en/edge/guide/platforms/android/plugin.md
@@ -138,7 +138,8 @@ application:
package org.apache.cordova.plugin;
import org.apache.cordova.CordovaPlugin;
- import org.apache.cordova.PluginResult;
+ import org.apache.cordova.CallbackContext;
+
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@@ -147,6 +148,7 @@ application:
* This class echoes a string called from JavaScript.
*/
public class Echo extends CordovaPlugin {
+
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
if (action.equals("echo")) {