hpique hpique - 4 months ago 26
Android Question

Reload activity in Android

Is it a good practice to reload an

Activity
in Android?

What would be the best way to do it?
this.finish
and then
this.startActivity
with the activity
Intent
?

Answer

You can Simply use

finish();
startActivity(getIntent());

to refresh an Activity from within itself.