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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.