What is a OnCreate method in android

后端 未结 5 1960
北恋
北恋 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 02:02

    super is used to call the parent class constructor

    super.onCreate(savedInstanceState); calls the onCreate() method, not the constructor, of the superclass.

提交回复
热议问题