Q:

Android refresh current activity

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

A:

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

A:

You may try this
finish();
startActivity(getIntent());

This question was asked before:
How do I restart an Android Activity

A:

In an activity you can call recreate() to "recreate" the activity
(API 11+)

