I have a tabhost with some tabs, and each tab has implemented the onresume method, because I need to reload all the data from the remote database every time the user enters tabhost again, and not just the first time he opens it.
ok, it works well, but the problem is that when the user first opens the tab, two methods are called: onCreate and onResume, then my application connects to the database twice to retrieve the information .... I only want to be called onCreate when the user first introduces into tabhost
How to avoid this rare problem?
source
share