android code for restart activity programmatically code example
Example: how to restart activity in android
restart.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
recreate();
}
});
}