setView() method in onCreate() and onResume()