JasonMP wrote:
> Well then I am probably doing this the wrong way.  Essentially what i
> want to accomplish is for a user to be able to select a picture from
> the sdcard as an avatar/logo/profile pic/etc and have that image
> reference stored in my database.  Is there an easy way to do this?

I have no idea how this pertains to assets baked into your APK. In
theory, you should be able to get a Uri from the MediaStore, assuming
the image has been indexed, though I haven't played with the MediaStore
provider as yet.

If not, use OI File Manager or something to allow the user to pick an
image, and store the file:/// Uri to the SD card in the database.

Then, use that Uri as needed. This may involve subclassing
SimpleCursorAdapter and overriding setViewImage(), or using a ViewBinder.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

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