Problem with gallery index

All your problems with Audio, Video and Images.

Problem with gallery index

Postby Apap » Mon Jan 18, 2010 5:45 pm

Hello,
I use a gridView to show pictures stored on the SD card and when I click on a picture I start a new activity where I show the pictures in a gallery (to show each picture in full screen), but I have a problem : i can't start the gallery at the correct picture , How can I do to tell to the gallery to go at the picture clicked before. (I use a ImageAdapter to store the pictures likes the samples in ApiDemos).

Can you help me please ?
Apap
Freshman
Freshman
 
Posts: 7
Joined: Mon Jan 18, 2010 5:31 pm

Top

Postby Apap » Wed Jan 20, 2010 3:22 pm

I find myself the solution :

myGallery.setSelection(position);
Apap
Freshman
Freshman
 
Posts: 7
Joined: Mon Jan 18, 2010 5:31 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google Feedfetcher and 11 guests