hi i am implementing gallery application implementing two activites one is clicking activity
long k=((Gallery) findViewById(R.id.gallery)).getItemIdAtPosition(position);
((ImageView)findViewById(R.id.ImageViewlarge)).setImageResource( imagesList.get((int)k).imgId);
second one is endless gallery rotating every 5 sec
((Gallery) findViewById(R.id.gallery)).setSelection((Integer.MAX_VALUE / 2) - imageid % imagesList.size());
long k=((Gallery) findViewById(R.id.gallery)).getItemIdAtPosition((Integer.MAX_VALUE / 2) - imageid%imagesList.size());
((ImageView)findViewById(R.id.ImageViewlarge)).setImageResource(imagesList.get((int)k).imgId);
gallery image clicking display image continue run the clicking image next position how can implemented please forward some solution its urgent