The issue was the OrderScreen activity wasn't added to the AndroidManifest.xml. Once I added that as an application node, it worked properly.
n my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error. Here are the classes:
This was a run time error. The emulator gave the generic "the application has stopped unexpectedly" error, but using the debugger, it showed a "android.content.ActivityNotFoundException: Unable to find explicit activity class {class name} have you declared this activity in your AndroidManifest.xml? – Tai Squared
本文介绍了如何解决Android开发过程中遇到的ActivityNotFoundException错误。通过确保所有Activity都在AndroidManifest.xml文件中正确注册,可以避免该异常并使应用正常运行。
401

被折叠的 条评论
为什么被折叠?



