Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset manager assumes all resources are local to app - not able to fetch Internet resources #28

Open
GoogleCodeExporter opened this issue Mar 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Asset manager code seems
to be hard coded to pulling in resources from a local source..


What steps will reproduce the problem?
1. Consider the code:

private static final String CLOUDRESOURCES = "http://
commondatastorage.googleapis.com/myresources/";

...
... assetManager().getImage(CLOUDRESOURCES + "my_img.png");

I would get:

[WARN] No file found for: /mylocalgame/http://
commondatastorage.googleapis.com/myresources/myfolder/my_img.png

(mylocalgame is my local app)


What is the expected output? What do you see instead?

Ideally it would be cool if I could fetch resources from the
Internet - such as a cloud storage provider..


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 May 2011 at 6:07

@GoogleCodeExporter
Copy link
Author

Makes good sense to me. We'll want to preserve the simplicity of fetching 
bundled resources (especially on platforms like Flash and Android that have a 
native resource bundling structure), as well as those on the local server. But 
there should be an easy way to fetch arbitrary resources (maybe it's the exact 
same API, but with detection of absolute vs. relative URLs).

Original comment by [email protected] on 3 Jun 2011 at 2:02

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant