Regarding option 1 - if I create a content provider it appears I need to
implement the openFile method and return a ParcelFileDescriptor. Sounds easy
enough.  But how do you create a File object from something in the assets
directory?

On May 13, 2010 4:12 PM, "Mark Murphy" <[email protected]> wrote:

Jeff wrote:
> 1. Should I load it with my WebView? I thought I could use img tags
> with urls like f...
As I wrote in my previous reply:


Try creating a ContentProvider to serve the image, and see if you have
better luck with a content:/...

> 2. Can I start a new Activity with an Intent that shows the image in
> the default image viewer?
Not if your image is only in an asset. The image viewer won't have
rights to access it.


> 3. I can write my own Activity to load the image from my assets
> directory. Does ImageView suppo...
Not directly, but you can use the 2D graphics API (e.g., Canvas and
friends). Basically, you're looking to use the same techniques games do
to view a portion of a large map, for example.

--

Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware...
Android Online Training: 21-25 June 2010: http://onlc.com


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

-- 
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