Skip to Content

The Oncreate method of Android Activities is used to store state information. This information is typically non-persistent dynamic data. By using the Bundle class, you can pass this information back to the onCreate method and prevent the activity from re-creating itself. The savedInstanceState parameter is required. If you don’t set it, the savedInstanceState will be …

Read More about What is Oncreate Bundle Savedinstancestate in Android?