views:

14

answers:

0

Hello All,

I have one tabActivity. From First Tab i am loading one listactivity with some parameters to display data (say city). From Second tab i m creating new activity(via startActivity) which needs to display list item (say based on states). How can i reused Single listactivity to display both different items.

First time for both case it calls oncreate and displays result properly. but while displaying for second time it calls onresume and gives mixed results like two entries with city and remaining entries with states.

I am using intent to pass parameter city and states, parsing this extra content in OnCreate().

Thanks in advance. JRC