Android refresh current activity

Viewed 272846

I want to program my android app to refresh its current activity on ButtonClick. I have one button on the top of the activity layout which will do the job. When I click on button the current activity should reload again - just like a device restart.

Thanks

14 Answers

You can use this to refresh an Activity from within itself.

finish();
startActivity(getIntent());

You can call this method:

recreate();
Related