Hi,

   let's say I write content onto the local filesystem using  
Context.openFileOutput(). For the sake of this example one file IS  
index.html and one IS image.png. The former references the latter in  
the html code.

   How can I get the browser to display the content? I tried many  
different ways and failed so far.

   I can't just use the url: file:///data/data/com.myapp/files/index.html 
. The browser just says "Web page not available". Also when loading  
the content of the index.html file directly, it does not show the  
image. Like this:
contentWebView.loadDataWithBaseURL("file:///data/data/com.myapp/files/index.html
 
", "<html>Hello, World!<img src=\"image.png\"/></html>", "text/html",  
"utf-8", null);

   I wrote the content with Context.MODE_WORLD_READABLE.

   Any ideas? I read somewhere that I should provide a WebClient and  
override shouldOverrideUrlLoading for whatever reason. But that  
doesn't work at all for me. This method is never called (android-sdk- 
mac_x86-1.0_r2).

   I guess I can try to ask the user to turn off shared access for the  
sdcard and use that, but that's really not what I want. In a pinch  
though ... any ideas?

   Also when using Context.openFileInput/Output I can't use folders,  
right? Any ideas if the file system slows down when I have a thousand  
small files there?

Cheers,
Mariano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to