simulate onclick event in gridview in android
<p>i have a gridview which is a calendar. once the user selects a date and decides to go to another activity , upon return the day he had previously selected should remain selected.</p>

<p>upon selecting a day the image of the gridview cell that was selected gets changed. now when the user returns , if i can simulate the onclick event , then i would not have to write extra code.</p>

<p>in summary, i need to simulate a onclick event on a gridview cell via code. how do i do it?</p>

<p>thank you in advance.</p>
