How to Refresh TabHost Content on an Android
Android is an operating system for mobile devices developed by Google. When creating an Android application, some developers decide to organize some of its content into tabs. In the source code of an application, tabs are created by using TabHost, a specific container for tabs. You can automatically refresh the contents of a TabHost container on Android by inserting a specific code snippet into your source code.
Instructions
-
-
1
Launch the Android Software Development Kit application and open the file that contains the source code of the Android application.
-
2
Type or copy and paste the following code snippet inside each TabHost container:
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
-
-
3
Click "File" and select "Save."
-
1