I have 30 images on grid view (3 images per row). If user select 20th image and go to next screen and come back then I want to focus to that position. I used following line
You can try somthing like this .I hope this will work for you..
When selection happens do this save position
int index = gridview.getFirstVisiblePosition();
And when you come back to the gridview then you can try this
gridview.smoothScrollToPosition(int index)