Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reload an Activity that exists within a TabView?

I have a Tabview with 3 tabs (each having their own activity). I have a tab that parses a RSS feed. How can I refresh this feed via a menu button? I tried doing the following but I lose the tabs above of course. Thanks!

  Intent UpdateFeedIntent = new Intent(classA.this, classA.class);

startActivity(UpdateFeedIntent); finish();

like image 999
daveomcd Avatar asked Dec 14 '25 20:12

daveomcd


1 Answers

See these closely related questions for different approaches:

  • Restarting an activity in a single tab in a TabActivity?
  • Communication between TabActivity and the embedded activity
  • Android TabHost: update tabs from tab’s activity
like image 59
Justin Avatar answered Dec 17 '25 16:12

Justin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!