In iOS, there is a method to reload a viewcontroller without killing it, e.g.
[self.view setNeedsDisplay];
For example, when you change the button title, it will reload automatically.
Are there any similar method in Android?
I found some link such as Reload activity in Android, but it need to finish() it
startActivity(getIntent()); finish();
For
Viewit’sinvalidate()orpostInvalidate(). You don’t need to redrawActivitymanually and, in most cases, you don’t need to redraw views too (all this stuff OS carrying for you).If there is something in
onCreateoronStartmethods of your Activity, that you need to do more than one time for single screen, it’s better to rewise your code.