Calling onResume in Android's activity

xain picture xain · May 16, 2011 · Viewed 9k times · Source

is it ok in an activity's procedure to force the onResume event by calling this.OnResume() ? Or should I implement another procedure that's called by both OnResume and by the first member ?

Answer

SK9 picture SK9 · May 16, 2011

Implement another procedure that's called in your override of onResume(). The latter is not intended to be called by you, it's a convenience method that tidies up or readies the activity when its state changes to resume. A lot like onCreate() through to onDestroy().