That would work, if I was getting the entire data from one source. As
it stands, I'm getting part of the data (text) from one URL and
another part (image) from a different URL.

So I get both pieces of data then I have to combine them in a webview.

On Mar 29, 11:02 pm, Ralf <ralfo...@gmail.com> wrote:
> In this case simply use a data URI when creating the loadData string.
> See "4. Examples" at  http://www.ietf.org/rfc/rfc2397.txt
>
> R/
>
> On Sun, Mar 29, 2009 at 6:44 PM, Beginner <ayrton.merc...@gmail.com> wrote:
>
> > I thought this might have fixed my problem, but not quite. Since the
> > apk is readonly, it seems I can't put any files in the assets
> > directory at runtime. So I can't grab an image, put it in there, and
> > then have the webview load it.
>
> > Is it possible to load an image from the files directory?
>
> > Something like
> >  data.loadData("<IMG SRC=\"file:///data/data/myApp/files/myImage.gif
> > \" />", "text/html",  "UTF-8");
>
> > Thanks again.
>
> > On Mar 29, 9:29 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> >> Beginner wrote:
> >> > Wow. That worked. Thanks a bunch.
>
> >> > Is there a bug already opened for this? Or...
>
> >> There was a bug already opened. And closed. Without what I would
> >> consider an adequate explanation.
>
> >> It's one of my pet peeves, which is why I come up with slightly
> >> different fake URLs to try to get answers by poking fun at the problem.
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> >> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to