阅读更多

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

更多相关文章

  1. 阅读《Android(安卓)从入门到精通》(12)——自动完成文本框
  2. Android官方文档阅读之旅——Introduction to Android
  3. 高焕堂:iPhone软件是芝麻,巧用Android才能赚大钱
  4. Android(安卓)文档的阅读顺序![转]
  5. Android(安卓)1.6 支持更多的屏幕大小和分辨率
  6. (一)阅读器客户端开发实战_引言
  7. Do's and Don'ts for Android(安卓)development
  8. Android(安卓)中数据库查询方法 query() 中的 select
  9. Ubuntu 无线热点 Set Up A Wireless Hotspot (Access Point Mode

随机推荐

  1. ProBuilder快速原型开发技术 ---模型精细
  2. 数字孪生与物联网(IoT)底层伴生技术的强联
  3. RHEL7 root 开启FTP服务
  4. 如何解决Plao Alto防火墙的V*P*N客户端Gl
  5. Nginx编译报错解决方法
  6. ceph-块设备部署
  7. postgresql12 流复制搭建
  8. postgresql备份与PITR恢复
  9. openGauss集群搭建
  10. 什么是自动化运维?为什么选择Python做自