How to refresh/reload an activity in android without losing the data in that activity : I am developing an android application i which i want to refresh the current activity without losing the data but when i use the following code the activity gets restarted but the selected values in edittext gets lost.So can anyone tell me how to refresh the current activity without losing data in that activity.

    Intent i=getIntent();
    finish();
    startActivity(i);