I am more or less a beginner in android programming
My Question follows from this post.
As far as I can gather, there are mainly two ways to restart the same Activity I am in:
a)Activity.recreate()
[ added after API 11 ]
b)
Intent intent = getIntent();
finish();
startActivity(intent);
How does these two actually work? Are there any difference in the process they recreate the activity?
I believe there must be some difference between the way these two recreates the activity, because, I have seen that recreate()
adds some default(junk?) values to the views in my activity.
Also, recreate()
starts the new activity with a default black splash view