how to retrieve ID of currently selected photo in gallery?

Put your problem here if it does not fit any of the other categories.

how to retrieve ID of currently selected photo in gallery?

Postby moonraker928 » Sun Jan 20, 2008 1:51 am

in android.widget.Gallery, I am displaying several photos which u can
spin through back and forth. The photos are coming from a cursor
querying a database and I am using an adapter to convert the data into
the view.

My question is, in a Gallery, how do you retrieve the photo ID of the
photo that is currently selected by the user?

thanks!
moonraker928
Freshman
Freshman
 
Posts: 9
Joined: Wed Jan 16, 2008 11:34 pm

Top

Postby plusminus » Sun Jan 20, 2008 1:23 pm

Hello moonraker928,

what do you mean with "ID" if the Images are coming from the Cursor/Database :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby moonraker928 » Sun Jan 20, 2008 9:54 pm

what i meant was that i want to get some sort of identifier that links the image currently selected by the user in the gallery view to the respective image ID in the database

my aim is to use this retrieved identifier and allow the user to perform actions such as edit and delete on the particular image that they selected.
moonraker928
Freshman
Freshman
 
Posts: 9
Joined: Wed Jan 16, 2008 11:34 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests