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 E917CD069 for ; Mon, 2 Jul 2012 15:02:25 +0000 (UTC) Received: (qmail 78226 invoked by uid 500); 2 Jul 2012 15:02:25 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 78093 invoked by uid 500); 2 Jul 2012 15:02:25 -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 78074 invoked by uid 99); 2 Jul 2012 15:02:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 15:02:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bowserj@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 15:02:18 +0000 Received: by weyr6 with SMTP id r6so304522wey.6 for ; Mon, 02 Jul 2012 08:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wym8/UpT+CvP87M4tdK2xOCMFBMntZQmWBpZwuqETm4=; b=pvO+b+CGBKXEzPY0v7w2cK/Apgy+OaVV/dOPk8tP/Qb+X89v9VsxdtypR9LqFp5Ory rANIPLT2BSslz5iG0/m5UEVWNi3UmzWoVLcGyQlxwVqeWkYCQ7TDpGwqrBA9CY8gMw1Q lI2Ts3hJmKOzWEQRhrrurCguYo+/ZGqBCiNiM5VXF96d8i/Emti3S2S3B6T+dWLWqPpj tbjIv4bsRFpSL/8XUFTQRv5NDxN3c1l1Ga8YxnoHvUSB2+7NM5vbTZcrfyuqBFasPdiY h1ROgnlusquDFsnh6Opf+L7Qh/cGMtcMTejWpDkyEb3MIPIC7FvxG42VfbUgoqBoQlwH GYlw== MIME-Version: 1.0 Received: by 10.180.98.138 with SMTP id ei10mr8231825wib.1.1341241318577; Mon, 02 Jul 2012 08:01:58 -0700 (PDT) Received: by 10.223.47.135 with HTTP; Mon, 2 Jul 2012 08:01:58 -0700 (PDT) Received: by 10.223.47.135 with HTTP; Mon, 2 Jul 2012 08:01:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Jul 2012 08:01:58 -0700 Message-ID: Subject: Re: Use of WebResourceResponse From: Joe Bowser To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d044267fe5a176f04c3da143e --f46d044267fe5a176f04c3da143e Content-Type: text/plain; charset=ISO-8859-1 Actually, this is the fix for ? and # on Android 3.x+. We should have used reflection on this. That being said, I haven't see this actually break anything. I'm OK with a noisy logcat. On Jul 2, 2012 7:08 AM, "Simon MacDonald" wrote: > Hey, > > When using 1.9.0 on Android on OS version 2.3.6 I get the following logs > complaining about the lack of WebResourceResponse. That class does not get > introduced into the SDK until API level 11, so we'll see this on Android > 2.1 - 2.3. I haven't seen any ill effects of the change but I'm wondering > if it could mess up the handling of url's with # or ? in them. > > /dalvikvm(2233): Could not find method android.webkit.WebView., > referenced from method org.apache.cordova.CordovaWebView. > > W/dalvikvm(2233): VFY: unable to resolve direct method 325: > Landroid/webkit/WebView;. > (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V > > D/dalvikvm(2233): VFY: replacing opcode 0x70 at 0x0001 > > D/dalvikvm(2233): VFY: dead code 0x0004-0059 in > Lorg/apache/cordova/CordovaWebView;. > (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V > > I/CordovaLog(2233): Changing log level to DEBUG(3) > > E/dalvikvm(2233): Could not find class > 'android.webkit.WebResourceResponse', referenced from method > org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse > > W/dalvikvm(2233): VFY: unable to resolve new-instance 126 > (Landroid/webkit/WebResourceResponse;) in > Lorg/apache/cordova/CordovaWebViewClient; > > D/dalvikvm(2233): VFY: replacing opcode 0x22 at 0x0046 > > W/dalvikvm(2233): VFY: unable to find class referenced in signature > (Landroid/webkit/WebResourceResponse;) > > D/dalvikvm(2233): VFY: dead code 0x0048-004c in > Lorg/apache/cordova/CordovaWebViewClient;.generateWebResourceResponse > (Ljava/lang/String;)Landroid/webkit/WebResourceResponse; > > W/dalvikvm(2233): VFY: unable to find class referenced in signature > (Landroid/webkit/WebResourceResponse;) > > W/dalvikvm(2233): VFY: unable to find class referenced in signature > (Landroid/webkit/WebResourceResponse;) > > I/dalvikvm(2233): Could not find method > android.webkit.WebViewClient.shouldInterceptRequest, referenced from method > org.apache.cordova.CordovaWebViewClient.shouldInterceptRequest > > W/dalvikvm(2233): VFY: unable to resolve virtual method 336: > Landroid/webkit/WebViewClient;.shouldInterceptRequest > > (Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse; > > D/dalvikvm(2233): VFY: replacing opcode 0x6f at 0x0015 > > D/dalvikvm(2233): VFY: dead code 0x0018-0019 in > Lorg/apache/cordova/CordovaWebViewClient;.shouldInterceptRequest > > (Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse; > > D/DroidGap(2233): DroidGap.init() > > D/CordovaWebView(2233): > DroidGap.loadUrl(file:///android_asset/www/index.html, 20000) > > D/DroidGap(2233): onMessage(splashscreen,show) > > D/dalvikvm(2233): GC_EXTERNAL_ALLOC freed 97K, 52% free 2614K/5379K, > external 884K/1038K, paused 80ms > > D/CordovaWebView(2233): >>> loadUrl(file:///android_asset/www/index.html) > > D/PluginManager(2233): init() > > D/CordovaWebView(2233): >>> loadUrlNow() > > D/CordovaWebView(2233): >>> loadUrlNow() > > D/MyService(2233): onStart > > D/DroidGap(2233): > onMessage(onPageStarted,file:///android_asset/www/index.html) > > > Simon Mac Donald > http://hi.im/simonmacdonald > --f46d044267fe5a176f04c3da143e--