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 1B57B10F3E for ; Thu, 11 Jul 2013 20:43:56 +0000 (UTC) Received: (qmail 55091 invoked by uid 500); 11 Jul 2013 20:43:55 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 55063 invoked by uid 500); 11 Jul 2013 20:43:55 -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 55055 invoked by uid 99); 11 Jul 2013 20:43:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jul 2013 20:43:55 +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 bowserj@gmail.com designates 209.85.128.181 as permitted sender) Received: from [209.85.128.181] (HELO mail-ve0-f181.google.com) (209.85.128.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jul 2013 20:43:52 +0000 Received: by mail-ve0-f181.google.com with SMTP id db10so7484118veb.40 for ; Thu, 11 Jul 2013 13:43:31 -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=ok0ufAXqdy3HtCkN5AZS4uxhMXZP56x8O5YSSNdZU7g=; b=Jl0yAUA0jvX9AYE07t5/un+uZJ+repu22HL4IiSg7JMWVuf5A51KNAx/8nzpeDtzVs fcumGV32v2qUXHFt8HI0Zkm6cOy/U+PT7aq060HMK1GfMkUoMX69Mu8SvTGs9XgaGJl7 d7AuRlfodAzgxSbSU/HQ/EvoHbl3lpcn6RfwCXttzZAAPi21NXCOx+YyHZJkDAweKUf3 PNPJ/E1RPqyRT6ne//KIzS8w/JvpPba7MNTdEpPkHHgHgU97+MIoFPGmnmyvupnXIVkp 1xDMrQr5Yt4JX5oSLmnEkSmXB8BO7hDIZGCZkwByd0OtXWSTszOo31i7AYLwIes4w+SX BEYg== MIME-Version: 1.0 X-Received: by 10.220.6.135 with SMTP id 7mr22743349vcz.72.1373575411364; Thu, 11 Jul 2013 13:43:31 -0700 (PDT) Received: by 10.221.6.197 with HTTP; Thu, 11 Jul 2013 13:43:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Jul 2013 13:43:31 -0700 Message-ID: Subject: Re: Android - Webview Method on WebViewCoreThread Warning From: Joe Bowser To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Created a new thread. I know that people wanted to get rid of it for reasons of ideology, for lack of a better word. On Thu, Jul 11, 2013 at 1:36 PM, Simon MacDonald wrote: > Just checked it in for 2.9.x. Did we drop the App plugin in 3.0? If so did > we let people know it was going away or do we count it as undocumented? > > > Simon Mac Donald > http://hi.im/simonmacdonald > > > On Thu, Jul 11, 2013 at 4:30 PM, Joe Bowser wrote: > >> Fair enough. >> >> On Thu, Jul 11, 2013 at 12:58 PM, Simon MacDonald >> wrote: >> > It's a simple fix Joe, I'm doing it now. >> > >> > >> > Simon Mac Donald >> > http://hi.im/simonmacdonald >> > >> > >> > On Thu, Jul 11, 2013 at 3:55 PM, Joe Bowser wrote: >> > >> >> Can you attach the plugin to the ticket so we can incorporate the fix? >> >> >> >> On Thu, Jul 11, 2013 at 12:35 PM, Andreas Sander >> >> wrote: >> >> > I've created an issue for that: >> >> > >> >> > https://issues.apache.org/jira/browse/CB-4155 >> >> > >> >> > BTW: I've resolved the problem, by creating a plugin, to call the >> >> clearCache command in UIThread. >> >> > >> >> > Am 11.07.2013 um 16:28 schrieb Simon MacDonald < >> >> simon.macdonald@gmail.com>: >> >> > >> >> >> This is the Android App plugin in Cordova core. Andreas, can you >> open an >> >> >> issue on JIRA so this can be tracked/fixed. >> >> >> >> >> >> >> >> >> Simon Mac Donald >> >> >> http://hi.im/simonmacdonald >> >> >> >> >> >> >> >> >> On Thu, Jul 11, 2013 at 8:34 AM, Andrew Grieve > > >> >> wrote: >> >> >> >> >> >>> Are you doing this from a plugin? If so, you should use >> >> >>> cordova.getActivity().runOnUiThread() >> >> >>> >> >> >>> >> >> >>> On Thu, Jul 11, 2013 at 4:31 AM, Andreas Sander >> >> >>> wrote: >> >> >>> >> >> >>>> Hi together, >> >> >>>> >> >> >>>> I've found out that Android is caching some HTTP-Responses, so I'm >> >> using >> >> >>>> navigator.app.clearCache(); to trigger the clearing procedure >> >> manually. >> >> >>>> >> >> >>>> But in logcat I get the following Warning: >> >> >>>> >> >> >>>> java.lang.Throwable: Warning: >> >> >>>> A WebView method was called on thread 'WebViewCoreThread'. >> >> >>>> All WebView methods must be called on the UI thread. Future >> versions >> >> of >> >> >>>> WebView may not support use on other threads. >> >> >>>> >> >> >>>> I use Cordova 2.7.3. >> >> >>>> >> >> >>>> Can you help me to fix this thread compatibility problem? >> >> >>>> >> >> >>>> I can see that android.webkit.WebViewCoreThread.run is used. I >> guess >> >> >>>> that's the problem. >> >> >>>> >> >> >>>> Any help is appreciated! >> >> >>>> >> >> >>>> With best regards, >> >> >>>> >> >> >>>> Andreas >> >> >>>> >> >> >>>> >> >> >>> >> >> > >> >> >>