六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 140|回复: 0

Using Intent in an Android application to show another activity

[复制链接]

升级  14.67%

70

主题

70

主题

70

主题

举人

Rank: 3Rank: 3

积分
244
 楼主| 发表于 2013-1-30 04:27:52 | 显示全部楼层 |阅读模式
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
 

<span style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 12px;"><div class="post-text" style="margin-top: 0px; margin-right: 5px; margin-bottom: 5px; margin-left: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; width: 660px; line-height: 18px; padding: 0px;">The issue was the OrderScreen activity wasn't added to the AndroidManifest.xml. Once I added that as an application node, it worked properly.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表