Android - Activity Not Found Exception

前端 未结 13 1815
春和景丽
春和景丽 2020-11-30 10:05

I am using startActivity to call another Activity and I get the \"Activity Not Found Exception\". Here is my code:

  TextView textView = (TextView) itemClic         


        
13条回答
  •  庸人自扰
    2020-11-30 10:29

    In addition to the answer which Unfrog has given.

    One way to get the NullPointerException is to execute a code which is referring to the view parts before the setContentView().

提交回复
热议问题