You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/05/14 13:59:16 UTC
[jira] [Comment Edited] (CB-3384) Resource Loading API for Android
[ https://issues.apache.org/jira/browse/CB-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13656617#comment-13656617 ]
Andrew Grieve edited comment on CB-3384 at 5/14/13 11:58 AM:
-------------------------------------------------------------
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.
- Update plugin guide
was (Author: agrieve):
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