anroid开发遇到问题:跳转出现错误 the application xxx has stopped unexpectedly
2009-12-19 00:18
711 查看
最近看到android比较火,看着手痒啊,最近就抽个空写了一个例子练练手,好了直接进入正题:
所写的例子是参照网上的一个登陆的实例写的网址是http://heji.javaeye.com/blog/347206
这个例子主要展示了多个 Activity之间的切换以及通信,例子里的关键代码,也注释的比较到位。就看着它代码边敲边理解,代码敲完之时以为大功告成了,启动模拟器运行,发现主界面可以出来,输入用户名密码点击登陆就弹出一个框框 说: the application XXXX has stopped unexpectedly
,顿时一阵抓狂,因为刚开始写这东西,console里又没显示异常信息,都不知道怎么处理,然后就查google,最后发现当你创建了一个Activity后需要在
AndroidManifest.xml配置一下每个Activity的信息
<activity android:name=".Information" android:label="@string/information"> </activity>
<activity android:name=".ErrorPage" android:label="@string/errorPage"> </activity>
将这些放到<application></application>中就OK了。
为了解决在myclipse的console里输出异常信息,又翻了下google,网址在这里
http://hi.baidu.com/skyland_lee/blog/item/f02d4622750e08fbd7cae2ec.html/cmtid/eafd67014b193908728da571
设置一下 logcat就行了,当在运行时报错的时候,console下就会有异常信息了。
所写的例子是参照网上的一个登陆的实例写的网址是http://heji.javaeye.com/blog/347206
这个例子主要展示了多个 Activity之间的切换以及通信,例子里的关键代码,也注释的比较到位。就看着它代码边敲边理解,代码敲完之时以为大功告成了,启动模拟器运行,发现主界面可以出来,输入用户名密码点击登陆就弹出一个框框 说: the application XXXX has stopped unexpectedly
,顿时一阵抓狂,因为刚开始写这东西,console里又没显示异常信息,都不知道怎么处理,然后就查google,最后发现当你创建了一个Activity后需要在
AndroidManifest.xml配置一下每个Activity的信息
<activity android:name=".Information" android:label="@string/information"> </activity>
<activity android:name=".ErrorPage" android:label="@string/errorPage"> </activity>
将这些放到<application></application>中就OK了。
为了解决在myclipse的console里输出异常信息,又翻了下google,网址在这里
http://hi.baidu.com/skyland_lee/blog/item/f02d4622750e08fbd7cae2ec.html/cmtid/eafd67014b193908728da571
设置一下 logcat就行了,当在运行时报错的时候,console下就会有异常信息了。
相关文章推荐
- 跳转出现错误 the application test has stopped unexpectedly 的解决
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- the application has stopped unexpected。please try again错误提示以及logcat不能打印解决
- Android运行报告the application test(process com.test) has stopped unexpectedly
- Android跳转页面出现THe Application has stopped unexpectedly,please try again
- 安卓学习之调试 the application has stopped unexpected。please try again 的错误
- Android——The application study has stopped unexpectedly
- Android开发之 adb 启动问题或是部署应用不成功,出现“The connection to adb is down, and a severe error has occured.”错误
- The application has stopped unexpectedly
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- the application has stopped unexpected。please try again
- 目前遇到的这个错误的“The application *** hans stopped unexpectedly. Please try again.”的原因。
- Qt 错误 The program has unexpectedly finished
- SpringMVC中遇到页面跳转出现404错误的问题
- git clone 出现错误 fatal: The remote end hung up unexpectedly
- The program has unexpectedly finished.问题小结
- 在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unu
- Myeclipse出现the jar file xxx.jar has no source attachment. 问题
- BAE使用git push出现错误:fatal: The remote end hung up unexpectedly
- Linux环境下段错误的产生原因及调试方法小结 最近在Linux环境下做C语言项目,由于是在一个原有项目基础之上进行二次开发,而且项目工程庞大复杂,出现了不少问题,其中遇到最多、花费时间最长的问题就是