I was recently able to solve this problem. I displayed an image saved on the local file system in a WebView, the steps are same for html file as well.
I wrote about it step by step here http://www.techjini.com/blog/2009/01/10/android-tip-1-contentprovider-accessing-local-file-system-from-webview-showing-image-in-webview-using-content/ you dont need to implement the ContentProvider in so much details just one method. HTH On Jan 12, 5:45 pm, "Mariano Kamp" <mariano.k...@gmail.com> wrote: > As I said by private mail already. I am not there yet, but that doesn't > matter as I found this > discussion:http://groups.google.com/group/android-developers/browse_thread/threa... > which talks exactly about using a homegrown content provider to serve files > directly. > Inside this article you'll find a link to this blogpost > (http://lucabelluccini.blogspot.com/2008/09/android-developers-google-...) > which contains the working code. > > On Mon, Jan 12, 2009 at 12:50 PM, Asif k <asifk1...@gmail.com> wrote: > > > Hi Mariano, > > > Can you please tell us what is the final result > > and how u had implement those API to run your code > > > Thanks, > > Asif > > > On Jan 12, 12:21 am, "Mariano Kamp" <mariano.k...@gmail.com> wrote: > > > Once again, thanks. > > > > I found this tutorial: > >http://www.anddev.org/tutproviding_data_in_a_contentprovider-t4073.html > > > and will try that. > > > > I checked that the ContentProvider is called from the Browser... So the > > rest > > > should work. > > > > On Sun, Jan 11, 2009 at 7:58 PM, Mark Murphy <mmur...@commonsware.com > > >wrote: > > > > > Mariano Kamp wrote: > > > > > I don't see how that should work? > > > > > Wouldn't that be the same as the FileContentProvider? > > > > > I cannot find a FileContentProvider class in the SDK or SDK samples. I > > > > see where there is one in the source code, and, yes, I think that's the > > > > basic idea. > > > > > > How would WebView learn about this provider. > > > > > I believe you feed it a URL, like: > > > > > content://your.provider.here/path/to/something.html > > > > > But, again, I have not tried this myself, though I recall seeing some > > > > posts in this group, and maybe a blog post, covering this technique to > > > > some degree. > > > > > -- > > > > Mark Murphy (a Commons Guy) > > > >http://commonsware.com > > > > Android Training in Sweden --http://www.sotrium.com/training.php-Hide > > quoted text - > > > > - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---