Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 649EFEEC9 for ; Fri, 15 Mar 2013 20:02:15 +0000 (UTC) Received: (qmail 83619 invoked by uid 500); 15 Mar 2013 20:02:14 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 83588 invoked by uid 500); 15 Mar 2013 20:02:14 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 83484 invoked by uid 99); 15 Mar 2013 20:02:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 20:02:14 +0000 Date: Fri, 15 Mar 2013 20:02:13 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-2546) File API on Android should be async MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Grieve resolved CB-2546. ------------------------------- Resolution: Fixed https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=d25b73f47d4503993d2f910789020515501e6ff6 > File API on Android should be async > ----------------------------------- > > Key: CB-2546 > URL: https://issues.apache.org/jira/browse/CB-2546 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Reporter: Andrew Grieve > Assignee: Max Woghiren > Priority: Minor > > I think this probably broke when we moved from Plugin -> CordovaPlugin. > The FileUtils functions should (all?) execute on background threads instead of on the UI thread. This is not only for performance, but also for correctness in the case of: > var f = new FileReader(); > f.readAsText(blob); > f.onload = ...; > On desktop and iOS, it's fine to assign the callbacks after the call to readAsText, but on Android this currently fails. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira