On Mon, May 30, 2011 at 12:48 PM, Spooky <[email protected]> wrote:
> Apologies if this is posted twice, but it doesn't appear to have made
> the e-mail digest since I posted it last night.
> How do I get the currently-displayed image's filename or R.drawable.
> [filename] from the Gallery widget?

You don't, directly. An ImageView does not retain information on where
the image came from. Use getSelectedItemId() or
getSelectedItemPosition() to backtrack and determine the source of the
image.

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

Android Training in Oslo: http://bit.ly/fjBo24

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