How to refresh TabHost Activity?

女生的网名这么多〃 提交于 2019-12-13 08:20:36

问题


I have a TabHost activity as main activity of my app. This TabHost contains 4 activity. How can I refresh this TabHost (or one of my activity which TabHost includes) by clicking on button in another activity.

btw. I know how to make button, etc. I only need to know code for refreshing TabHost.


回答1:


startActivity of that tab and have your code of the activity you want to refresh in onResume() method, that should refresh your tab activity. It is working fine in one of my apps.



来源:https://stackoverflow.com/questions/8853927/how-to-refresh-tabhost-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!