I have modified the tutorial of [TinyTut] -Passing Data to (Sub)Activities
So in the main activity instead of Button i am showing the ListView.In the subactivity there is an
edittext.Whatever i have typed in the edittext i am appending to the ListView of the main activity.
So using getSelectedItemPosition i am able to retrieve which item i have selected in main activity.
The problem is that if i am calling another activity from main activity and then again returning to main activity
the focus is not there and also if i use getSelectedItemPosition shows -1.
how to bring focus on the selected item ?