Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D679DB89 for ; Wed, 11 Jul 2012 00:48:35 +0000 (UTC) Received: (qmail 56824 invoked by uid 500); 11 Jul 2012 00:48:35 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 56704 invoked by uid 500); 11 Jul 2012 00:48:35 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 56678 invoked by uid 99); 11 Jul 2012 00:48:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 00:48:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id A27A4142822 for ; Wed, 11 Jul 2012 00:48:34 +0000 (UTC) Date: Wed, 11 Jul 2012 00:48:34 +0000 (UTC) From: "Simon MacDonald (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1392347972.32831.1341967714667.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1300818046.671.1341247043968.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Reopened] (CB-993) Android plugin problems upgrading to 1.9.0 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-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon MacDonald reopened CB-993: -------------------------------- Assignee: Simon MacDonald (was: Joe Bowser) I'm going to use this issue to check in the shim. > Android plugin problems upgrading to 1.9.0 > ------------------------------------------ > > Key: CB-993 > URL: https://issues.apache.org/jira/browse/CB-993 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Docs > Affects Versions: 1.9.0 > Reporter: Joel Hegg > Assignee: Simon MacDonald > Fix For: 2.0.0 > > > I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems: > 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below. > 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below: > 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20 > 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError > 07-02 12:29:04.229: E/AndroidRuntime(11041): at org.apache.cordova.DroidGap.getContext(DroidGap.java:943) > 07-02 12:29:04.229: E/AndroidRuntime(11041): at org.apache.cordova.DroidGap.getContext(DroidGap.java:944) > .. > 07-02 12:29:04.229: E/AndroidRuntime(11041): at org.apache.cordova.DroidGap.getContext(DroidGap.java:944) > 07-02 12:29:04.229: E/AndroidRuntime(11041): at org.apache.cordova.DroidGap.get > 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms > 07-02 12:29:04.269: W/ActivityManager(498): Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp > [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331 > [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294 > Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012 > 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide. > 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira