Android app unable to start activity componentinfo
Your null pointer exception seems to be on this line: because intent.getExtras() returns null when the intent doesn’t have any extras. You have to realize that this piece of code: doesn’t start the activity you wrote in Main.java, it will attempt to start an activity called ToClass and if that doesn’t exist, your app crashes. … Read more