Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DAE8EBA8 for ; Wed, 30 Jan 2013 22:21:16 +0000 (UTC) Received: (qmail 35755 invoked by uid 500); 30 Jan 2013 22:21:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 35709 invoked by uid 500); 30 Jan 2013 22:21:16 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 35618 invoked by uid 500); 30 Jan 2013 22:21:16 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 35602 invoked by uid 99); 30 Jan 2013 22:21:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2013 22:21:16 +0000 Date: Wed, 30 Jan 2013 22:21:16 +0000 (UTC) From: "Joe Bowser (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-2307) Echo plugin docs error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser resolved CB-2307. ---------------------------- Resolution: Fixed Good catch! This seems to be a missed param: https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=commit;h=3ce8a033 > Echo plugin docs error > ---------------------- > > Key: CB-2307 > URL: https://issues.apache.org/jira/browse/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 (https://groups.google.com/d/topic/phonegap/k0g8_av17pE/discussion): > I'm just getting started with android and cordova. I tried to implement the Echo Plugin from > guide_plugin-development_android_index.md > I needed to add another parameter to the call in Echo.java to get it to work. > This is the code from the docs: > {code} > public class Echo extends CordovaPlugin { > @Override > public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { > if (action.equals("echo")) { > String message = args.getString(0); > this.echo(message); > return true; > } > return false; > } > } > {code} > I had to make it: > {code} > this.echo(message,callbackContext) > {code} > 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: http://www.atlassian.com/software/jira