I'm more or less new to Android programming
My question follows from this post .
As far as I can collect, there are basically two ways to restart the same activity that I am in:
a) Activity.recreate() [added after API 11]
b)
Intent intent = getIntent(); finish(); startActivity(intent);
How do these two work? Is there a difference in the process of recreating this activity?
I believe that there is a definite difference between the way these two recreate activity, because, I saw recreate() add default values (undesirable?) To the views in my activity. In addition, recreate() starts a new action with a black pop-up view by default.
android android-activity
Arnab
source share