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 733E1901B for ; Mon, 16 Apr 2012 22:55:54 +0000 (UTC) Received: (qmail 1540 invoked by uid 500); 16 Apr 2012 22:55:54 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 1504 invoked by uid 500); 16 Apr 2012 22:55:54 -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 1496 invoked by uid 99); 16 Apr 2012 22:55:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 22:55:54 +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 (athena.apache.org: domain of bowserj@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 22:55:47 +0000 Received: by wgbdr12 with SMTP id dr12so4720605wgb.0 for ; Mon, 16 Apr 2012 15:55:26 -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=uattENg3bzWuSDY3OKXLc8/fEvFXHml8Nvz3ij7LaXY=; b=p75j5IEMCckGcLSKe+YXGeqZIYXsq2IXBt0JApIcpztE7+b7ULVhyBzRkNGK/HpCH0 Sc+phZNv5EBW4iG5FVzkfDuYEtHnzcMUmN8QoMiLdTNPk5KkZWZLp0h/j2p8VISIqBjc vFdU0bRKJHdayQd9Lamx5kxiLFi5ynHgthoyKlRG5ppptEHcgz1lOPj30doZRAsfHbPo lJm3tw3JfSdNM68RlsFlnZkNCi8PXV3jTH4jqqGdA0OKITwbV8PgrzUwB0EO19JbEyQf lC3i0pIsewe+WzQjDbcEm3Vv6EF5MfX1UbS0nAFuHEwSKDeV5jXwb0MflK/n/igyIany 03aA== MIME-Version: 1.0 Received: by 10.180.94.33 with SMTP id cz1mr10078464wib.13.1334616926772; Mon, 16 Apr 2012 15:55:26 -0700 (PDT) Received: by 10.223.103.7 with HTTP; Mon, 16 Apr 2012 15:55:26 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Apr 2012 15:55:26 -0700 Message-ID: Subject: Re: [Android] CordovaWebView - loadUrlIntoView From: Joe Bowser To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d044268e6d4dc6204bdd3b7b7 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044268e6d4dc6204bdd3b7b7 Content-Type: text/plain; charset=ISO-8859-1 Undocumented or poorly documented APIs are bad, since the only people who really know about them are the people who wrote them initially. The problem right now is that none of these properties are documented anywhere other than the header file on DroidGap. Also, they currently are in DroidGap. I personally don't think that we should have the loading dialog in the activity and that it should be a plugin where we can control the text via javascript (either as a part of Cordova's API, or something external). I've closed a bug because it could be worked around using one of these properties, but this is a new doc task that we have to add that's Android specific, which I'm not a big fan of. BTW: I moved CordovaWebView to 1.8.0, because I don't think we'll get it done in the next two weeks with the testing required. Does anyone have any strong objections to this? Joe On Mon, Apr 16, 2012 at 3:49 PM, Bryce Curtis wrote: > There are several properties that can be set on DroidGap that deal > with UI - loading dialog, splash screen and background color. They > are used to give the user an indication that something is going on > before the app is ready to be displayed. > > I think they are needed, but should be moved out of the webview into > DroidGap (or other activity that the user can extend). The webview > can broadcast events that the activity can register for to management > these things. > > I know that other platforms have splash screen, so would it work to > abstract this? > > On Mon, Apr 16, 2012 at 4:24 PM, Filip Maj wrote: > > +1 ripping it out, sounds like a great candidate for a plugin. > > > > None of the other native platform implementations have this sort of stuff > > "built-in" (loading dialog UI niceties) so I am not super keen on keeping > > it. Esp. if it's done in a way that makes Android antsy. > > > > That being said, we don't wanna just rip it out out of nowhere. Probably > > need to deprecate somehow [1], ya? I.e. Deprecate til 2.0 and then axe > it! > > > > [1] http://wiki.apache.org/cordova/DeprecationPolicy > > > > On 4/16/12 11:29 AM, "Joe Bowser" wrote: > > > >>Hey > >> > >>After looking at CordovaWebView code this morning, I have some concerns > >>about the method that we're currently using in DroidGap to load the URL, > >>namely this spinner that was added into the method. I know that this was > >>added last year, but I'm thinking that we should actually abstract out > the > >>indeterminate progress indicator. In addition to that, this code is > going > >>to break on future versions of Android, because we're calling methods on > >>WebView that should be called on the UIThread. > >> > >>So, what's the story with this spinner, does it have to be there, or can > >>we > >>rip it out? Should I create a ticket to do this? > >> > >>Joe > > > --f46d044268e6d4dc6204bdd3b7b7--