cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Created] (CB-2307) Echo plugin docs error
Date Wed, 30 Jan 2013 00:29:12 GMT
Shazron Abdullah created CB-2307:

             Summary: Echo plugin docs error
                 Key: CB-2307
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, Docs
            Reporter: Shazron Abdullah
            Assignee: Joe Bowser

>From Gerald Skerbitz in the PhoneGap Google Groups (

I'm just getting started with android and cordova. I tried to implement the Echo Plugin from

I needed to add another parameter to the call in to get it to work.

This is the code from the docs:
public class Echo extends CordovaPlugin {
    public boolean execute(String action, JSONArray args, CallbackContext callbackContext)
throws JSONException {
        if (action.equals("echo")) {
            String message = args.getString(0); 
            return true;
        return false;

I had to make it this.echo(message,callbackContext) in order for it to work.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message