What is a OnCreate method in android

后端 未结 5 1976
北恋
北恋 2020-12-08 01:09

I am new to android trying to understand what the below method does

public void onCreate(Bundle savedInstanceState)
{
        super.onCreate(savedInstanceS         


        
5条回答
  •  孤城傲影
    2020-12-08 01:59

    First super.onCreate(savedInstanceState); calls the method in the superclass and saved InstanceState of the activity if any thing damage the activity so its saved in instanceState so when reload the activity it will be the same before.

提交回复
热议问题