Not an enclosing class error Android Studio

后端 未结 6 1191
孤街浪徒
孤街浪徒 2020-12-08 07:50

I am new in android development and do not have an in depth knowledge of Java. I am stuck on a problem for a long time. I am trying to open a new activity on button click. B

6条回答
  •  生来不讨喜
    2020-12-08 08:05

    Intent myIntent = new Intent(MainActivity.this, Katra_home.class);
    startActivity(myIntent);
    

    This Should the perfect one :)

提交回复
热议问题