You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Max Woghiren (JIRA)" <ji...@apache.org> on 2013/03/14 22:14:12 UTC

[jira] [Commented] (CB-2546) File API on Android should be async

    [ https://issues.apache.org/jira/browse/CB-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602762#comment-13602762 ] 

Max Woghiren commented on CB-2546:
----------------------------------

I've made the readAs* calls asynchronous, running on a background thread.

Pull request: https://github.com/apache/cordova-android/pull/30
                
> 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