[android-developers] Re: Urgent help required
Thomas napisał(a):
> Hello,
>
> You state you want to share this on a public network. What is the URL
> where the html and and other files live"? The code is straight
> forward enough if that is what you want to do.
>
> Best,
> Tom B
OP problem is that he has at least some files as app resources stored
in /res/raw folder and typical HTTP server can only access files
stored in the file system so he needs either to copy all resources he
wants to share to some location in the file system or modify his
server to access app resources.
When trying the second scenario, docs/guide/topics/resources/providing-
resources.html says:
"""
raw/
Arbitrary files to save in their raw form. To open these resources
with a raw InputStream, call Resources.openRawResource() with the
resource ID, which is R.raw.filename.
However, if you need access to original file names and file hierarchy,
you might consider saving some resources in the assets/ directory
(instead of res/raw/). Files in assets/ are not given a resource ID,
so you can read them only using AssetManager.
"""
so probably it would be better to save his resources in /res/assets/
folder since those resources can be accessed by name and not by id.
pskink
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home