How To Refresh Current Activity In Android App

Please follow and like us:

Reload / Restart An Activity In Android

Let’s say I want to refresh my current activity. and I have one refresh button in my app. when I click on the button my activity should reload/restart again.

for achieving this feature, all you need to do is just add bellow logic in your app when the button is clicked.

public void onClick (View v){
    Intent intent = getIntent();
    finish();
    startActivity(intent);
}

Hope you like our short and simple “Refresh Current Activity In Android App” Tutorial. Thanks for visiting our site. stay connected for up coming latest Android Development Tutorials.

nirav kalola