Interview Questions for Xamarin Android
Activity LifeCycle? The following diagram illustrates the states an Activity can go through during its lifetime: The following diagram illustrates these methods in relationship to the Activity Lifecycle: OnCreate This is the first method to be called when an activity is created. OnCreate is always overridden to perform any startup initializations that may be required by an Activity such as: Creating views Initializing variables Binding static data to lists OnStart This method is always called by the system after OnCreate is finished. Activities may override this method if they need to perform any specific tasks right before an activity becomes visible such as refreshing current values of views within the activity. Android will call OnResume immediately after this method. OnResume The system calls this method when the Activity is ready to start interacting with the user. Activities should override this method to pe...