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 EEDD5CE5D for ; Mon, 13 Aug 2012 17:33:26 +0000 (UTC) Received: (qmail 53752 invoked by uid 500); 13 Aug 2012 17:33:26 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 53718 invoked by uid 500); 13 Aug 2012 17:33:26 -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 53705 invoked by uid 99); 13 Aug 2012 17:33:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 17:33:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simon.macdonald@gmail.com designates 209.85.160.175 as permitted sender) Received: from [209.85.160.175] (HELO mail-gh0-f175.google.com) (209.85.160.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 17:33:22 +0000 Received: by ghbz2 with SMTP id z2so3093182ghb.6 for ; Mon, 13 Aug 2012 10:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zNEjzFZalsq9U0s/n0mWy36Qw8Y1e0bEC8SI+co2sDU=; b=D5506YnDcvOOrAeDb0lQvOEiX3TbewbN0pcFDKWWdD08/YfbEJnb/oXVo1zn7tP0IN 8cyTqRGHIrXmMfEz4LkZBtqqdQg/4t+W5rhMIWeeSLONdQHLgR2KiRtQkvzhjcSdKDQj XyH7Sc3KORq1/0XDPKwI/lRB1Fj+xZBhrzD7NBevUv+u64TlBoKO8ES1027T3+UNY8r6 +eEcpTCDjN2Ks/mqhFcpwEZjCX0SOCofcHoh8wqV9UrDdDrKCzFs/kbswGcGZiPNDWea jYUTibhfEOH/hl6cWTL0ShJbTkFXdG/Fj2T1Y3alU0oh8YLYFwBYTN1guaxGHWr+ktOt Fzbg== Received: by 10.66.84.229 with SMTP id c5mr18187859paz.12.1344879181200; Mon, 13 Aug 2012 10:33:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.21.5 with HTTP; Mon, 13 Aug 2012 10:32:40 -0700 (PDT) In-Reply-To: References: <5027E33F.8020600@users.sourceforge.net> From: Simon MacDonald Date: Mon, 13 Aug 2012 13:32:40 -0400 Message-ID: Subject: Re: Android version support level in Cordova 2.0.0? To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Aug 13, 2012 at 12:16 PM, Joe Bowser wrote: > On Mon, Aug 13, 2012 at 7:12 AM, Andrew Grieve wrote: >> In my playing with Android, I've had some issues with this as well. Here's >> what I've found: >> >> >> In the template AndroidManifest, it specifies version level 8 (should this >> be 7 then?): >> > > It should be 7, picking 8 is really weird since it excludes Android 2.1 Fixed it and pushed change. >> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=blob;f=bin/templates/project/AndroidManifest.xml;h=9e9abcdf9273a5d5c38c71481e8de71761c617e2;hb=HEAD#l60 >> >> The framework AndroidManifest specifies version 2 (this should certainly >> match the template's value): >> >> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=blob;f=framework/AndroidManifest.xml;h=92f66f449b31fefd8edd969d1cc4bc363a5d709f;hb=HEAD#l67 >> > > This is very old, and most likely should be ignored. We don't support > any Android versions below 2.1 and there would be some weird runtime > errors if you were to run PhoneGap on a T-Mobile G1. Fixed it and pushed change. >> Once updating the value in the framework's manifest, Eclipse complains >> about one of CordovaWebView's constructors calling a super-constructor that >> is new in API version 11 (privateBrowsing). >> >> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=blob;f=framework/src/org/apache/cordova/CordovaWebView.java;h=f7f2be6f7bd87ed89abe44dc99dca9e2bbe4c384;hb=HEAD#l161 >> >> Adding @TargetSdk(11) fixes this warning. Is that the correct fix though? >> > > That is correct. We don't care about that warning, since we always > target the latest SDK, and older SDKs won't be running newer > constructors. We also assume that anyone who is turning on private > browsing on a PhoneGap application knows what they're doing, and that > since it's open source, and this requires source modification to do > this, they get to keep both pieces. :) > > That being said, we make sure that CORE phonegap features work. We > can't vouch for plugins, and I find that we're on this constant > slippery slope with plugins and other Java dev happening in the > Android version that we should find ways to work around. Agree 100% with Joe, always build with the latest SDK. It is an involatile rule along the lines of "always bet on black". Simon Mac Donald http://hi.im/simonmacdonald