Method undefined error in Android Activity

后端 未结 2 1593
[愿得一人]
[愿得一人] 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:28

    import android.app.Activity;
    
    public class CheatActivity extends Activity {
    

    You should extend from Activity class. Because you are just creating new class without any methods which can be overridden from parent class.

提交回复
热议问题