Method undefined error in Android Activity

后端 未结 2 1630
[愿得一人]
[愿得一人] 2021-01-29 14:55

I\'m trying to make a simple Android application based on a guide. I am using the code below, but it is giving me several errors. It is complaining while trying to override the

2条回答
  •  我在风中等你
    2021-01-29 15:31

    As Anatol said, you have to add extends Activity.

    If you didn't know that, the only method you have is implemented when extending from Activity.

    I would recommend you to create Activities with your IDE's wizard. And you will avoid having to add them manually to the manifest and adding unimplemented methods.

提交回复
热议问题