Refresh content in Tab of TabActivity
I have a tab with an intent as 开发者_如何学编程its content:
tabHost.addTab(tabHost.newTabSpec("tab3")
.setIndicator("Chart")
.setContent(lineChartIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
How is it possible to refresh the content of a tab? I am thinking of a method like
tab.refreshContent()
or similar. Background is: My intent contains a graph and I want to repaint this graph upon click of a button while the tab remains selected. Thanks.
best way i know
finish();
startActivity(getIntent());
it refresh all the Activity
精彩评论