Error using onClickListener (Intent)

后端 未结 5 1342
無奈伤痛
無奈伤痛 2020-12-06 10:33

Well, I\'m trying to create an intent on a \"login.java\" the code is :

 Button btEntrar = (Button) findViewById(R.id.btnSingIn);
    btEntrar.setOnClickLis         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 11:07

    Did you add manifest.xml or try this code ?
    Intent i = new Intent(login.this,mainActivity.class);

提交回复
热议问题