cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3384) Resource Loading API for Android
Date Tue, 14 May 2013 01:18:13 GMT

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

Andrew Grieve commented on CB-3384:
-----------------------------------

Things I would still like to see happen with this API:

- Move it into CordovaInterface so that it's discoverable
  - We may want to remove the restriction of requiring the Activity to be the same object
as the CordovaInterface that is present in CordovaWebView.java
  - This way we can provide a default CordovaInterfaceImpl that can be used even when using
custom Activity classes
- Fold FileHelpers into DataResource, or at lease make it package-private.
- Allow http: URLs to be handled by DataResource for simple GET requests.
- Add checks to getInputStream() that ensures users are not calling it from the UI thread
nor the WebCore thread.
                
> Resource Loading API for Android
> --------------------------------
>
>                 Key: CB-3384
>                 URL: https://issues.apache.org/jira/browse/CB-3384
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Shravan Narayan
>
> Motivations:
> 1. Many plugins do not handle URLs correctly when they are in the form content: or file:///android_asset.

> 2. For the cordova-app-harness, there needs to be a way to re-route resource load requests
so that the harness can load app resources while still respecting the <content> tag.

--
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

Mime
View raw message