I want to restart the activity when switch every time,
One activity connects the network and uploads data.
If it displays data successfully, there is no need to restart the activity on tab change.
If it’s not able to displays data unsuccessfully, I hope restart activity when switches tab every time and connect network to upload again.
How to achieve this?
Please check this code
// this is where we are Clear the current tab ..
Access the tabHost in different activity and do the same..