i dont know how to get the position of the img that i click so i can pass it to next acitvity
问题 my Grid View is working okay and displays image from the Sdcard.When i long press an image a contextual task box open.One of the option is View(to view in full screen).i dont know how to get the id or postion of the selected image so that i can pass it to another activity that will open it in fullscreen. public class MainActivity extends Activity { public class ImageAdapter extends BaseAdapter { private Context mContext; ArrayList<String> itemList = new ArrayList<String>(); public