Using Intent in an Android(安卓)application to show another activity
16lz
2021-12-21
阅读更多
http://stackoverflow.com/questions/736571/using-intent-in-an-android-application-to-show-another-activity
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
The issue was the OrderScreen activity wasn't added to the AndroidManifest.xml. Once I added that as an application node, it worked properly.
http://stackoverflow.com/questions/736571/using-intent-in-an-android-application-to-show-another-activity
更多相关文章
- 阅读《Android(安卓)从入门到精通》(12)——自动完成文本框
- Android官方文档阅读之旅——Introduction to Android
- 高焕堂:iPhone软件是芝麻,巧用Android才能赚大钱
- Android(安卓)文档的阅读顺序![转]
- Android(安卓)1.6 支持更多的屏幕大小和分辨率
- (一)阅读器客户端开发实战_引言
- Do's and Don'ts for Android(安卓)development
- Android(安卓)中数据库查询方法 query() 中的 select
- Ubuntu 无线热点 Set Up A Wireless Hotspot (Access Point Mode