Android - Activity Not Found Exception

前端 未结 13 1813
春和景丽
春和景丽 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条回答
  •  Happy的楠姐
    2020-11-30 10:39

    I know this is an old post, but it's on top of the google search at the moment, so for anyone who would come here later: ActivityNotFound can be caused by unhandled exceptions in your onCreate in the activity you're trying to create. It took me a while to notice that I was causing a nullPointerException there, because I wasn't looking for it.

提交回复
热议问题