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 51DBF9B0F for ; Tue, 24 Apr 2012 15:21:47 +0000 (UTC) Received: (qmail 62383 invoked by uid 500); 24 Apr 2012 15:21:47 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 62330 invoked by uid 500); 24 Apr 2012 15:21:47 -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 62317 invoked by uid 99); 24 Apr 2012 15:21:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 15:21:47 +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 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 15:21:40 +0000 Received: by wibhj13 with SMTP id hj13so607051wib.0 for ; Tue, 24 Apr 2012 08:21:20 -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=jXNvj6RuMxrYxQ2g7LeIlD13gg04atVdWT8lZR7+BYE=; b=vjSNRSZ1YSDyVzHDbdvg0K4bfGB/dNrZOjqAMeLxt6OVu9ubLqva8xK6Hfogvmi4ZU RGkttc8K5hm/H2+T2eLa8jZNDonCvbz3x/rkcEvdUTyZqS1y31DncgBpsCJu4N5Ue7N6 WTuFs/V4WkMQrPQGVmf+jpqWWRnY5CQG/q7OOw8+MMAebXKSOfWS4OQc/6ahbG7L74wm cLCU6Bq2YnCRLnLdI7KoaXkpNs3S0ZnbDtPjKt3CyVBKJub7fCupitP20YDG9sRR8mNJ HryZGGYOpjbBeig8xEDwxl1KlI7I73kHyLDTiDnofW4A2rFZFOrwtJ64PfwlRUgErvhj T7dw== MIME-Version: 1.0 Received: by 10.180.104.65 with SMTP id gc1mr32318425wib.13.1335280880183; Tue, 24 Apr 2012 08:21:20 -0700 (PDT) Received: by 10.223.103.7 with HTTP; Tue, 24 Apr 2012 08:21:19 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Apr 2012 08:21:19 -0700 Message-ID: Subject: Re: Better Splash Screen? From: Joe Bowser To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d043bdb7689e9b404be6e4e4e --f46d043bdb7689e9b404be6e4e4e Content-Type: text/plain; charset=ISO-8859-1 On Tue, Apr 24, 2012 at 7:40 AM, Simon MacDonald wrote: > Hey, > > I did a bit of a refactor on the Android splash screen. I didn't like the > fact that when you do a: > > *super*.setIntegerProperty("splashscreen", R.drawable.*splash)*; > > *super*.loadUrl("file:///android_asset/www/conn.html", 5000); > The splash screen is shown for 5 seconds then the web view begins to load > the page. That is, the splash screen is a blocking call. > > I believe I've made this better by changing the way we display the splash > screen to a dialog box. This way the web view underneath the dialog can > continue to load the web page while splash screen is being displayed. > Additionally, I've added a splash screen plugin to Android so you can call > it's hide method to make the splash screen go away in your onDeviceReady > handler. For developers using our API I haven't changed the way the splash > screen is setup so they won't be required to change their code. The only > downside is the dialog does not fully cover the screen. > > Here is the commit: > > > https://github.com/macdonst/cordova-android/commit/d359eaf4534dc0eed91cdac7e9e0bd23ab36bc46 > > Comments? Is this something I should push into the Android repo for 1.8? > Can we hook something in the common JS so folks can call hide on the splash > screen plugin on Android and iOS? > > Looks good, and it solves a problem that we've been having with the way we do splashscreens. We may need to add exception handling for the plugin if people do something stupid like use it with a CordovaWebView, but other than that it looks good and is much easier to read than the current code. Please push this into the Android repo for 1.8. Let me know if there's problems merging it with the CordovaWebView branch. Joe --f46d043bdb7689e9b404be6e4e4e--