在定义第二个activity时,内容编辑好了,出现
The method onCreate(Bundle) is undefined for the type Object
这个错误提示
可始终找不到为什么会显示没有为type对象定义
找了一下,
发现
自定义的Activity要继承android提供的Activity类
才会有这个方法
写完继承后的Activity后,错误就没有啦。
在定义第二个activity时,内容编辑好了,出现
The method onCreate(Bundle) is undefined for the type Object
这个错误提示
可始终找不到为什么会显示没有为type对象定义
找了一下,
发现
自定义的Activity要继承android提供的Activity类
才会有这个方法
写完继承后的Activity后,错误就没有啦。