...stoped unexpectedly

问题描述

初试android, 想问下...stoped unexpectedly这种意外终止的情况是什么原因,console里也没日志输出public class MainActivity extends ListActivity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // 过时的People类用注释中的代替后仍然无法运行。。ContactsContract.Contacts.CONTENT_URI Cursor cursor = getContentResolver().query(People.CONTENT_URI, null, null, null, null); startManagingCursor(cursor); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, cursor, new String[]{People.NUMBER}, //PhoneLookup.NUMBER new int[] {android.R.id.text1}); setListAdapter(adapter); }} 问题补充:<div class="quote_title">dongya1987 写道</div><div class="quote_div">android的log不在console里,<br />Window-&gt;Open Perspective -&gt;DDMS<br />在logcat里看</div><br />原来如此, 3ks<img src="/images/smiles/icon_smile.gif"/>

解决方案

android的log不在console里,Window->Open Perspective ->DDMS在logcat里看

时间: 2024-07-31 10:56:03

...stoped unexpectedly的相关文章

logcat-The application has stopped unexpectedly. 求大神解救!!

问题描述 The application has stopped unexpectedly. 求大神解救!! 一开模拟器就出现the process android.process.acore has stopped unexpectedly.Please try again.然后点程序就出现The application xxx has stopped unexpectedly. Please try again.下面是Logcat 但是这程序在安装到手机上又能用,大神们!!是什么问题啊 解决

android-application xxx stopped unexpectedly

问题描述 application xxx stopped unexpectedly strings.xml [html] view plaincopy <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">msm</string> <string name="action_settings

遭遇DBD::mysql::dr::imp_data_size unexpectedly

    最近的MHA验证时,遭遇了DBD::mysql::dr::imp_data_size unexpectedly这个错误.而DBD这个包已经是安装过了的.下面是这个问题的描述和解决方案.   1.故障描述# masterha_check_repl --conf=/etc/app1.cnfMon Feb 16 19:56:29 2015 - [warning] Global configuration file /etc/masterha_default.cnf not found. Ski

MySQL提示shutdown unexpectedly问题解决方法

遇到打开本地环境XAMPP的MySQL时遇到的shutdown unexpectedly错误,那么该如何解决勒?? 关于MySQL启用失败,出现了如下情况: 14:39:05 [mysql] Error: MySQL shutdown unexpectedly. 14:39:05 [mysql] This may be due to a blocked port, missing dependencies, 14:39:05 [mysql] improper privileges, a cras

Qt Error: The program has unexpectedly finished 解决思想

    一般出现标题所示错误的原因在于没有对控件实例化,例如:     在MainWindow.h文件中: ... private:     QPushButton *pushButton; ...     而在MainWindow.cpp文件中: ... MainWindow::MainWindow(QWidget *parant):QMainWindow(parent){     pushButton->setText( tr("HelloWorld") ); } ...  

求助 关于the application has stopped unexpectedly

问题描述 刚刚入门,照着教程敲了一段代码.却出现了theapplicationhasstoppedunexpectedly的错误.网上看了一些方法,没什么效果.求各位帮助解惑,谢谢~other.xmlmain.xmiactivity.java 解决方案 解决方案二:你的这个代码没有看出什么问题,怀疑是manifest文件没有配置activity信息,你可以把报错信息发出来看看,ps:有专门的android板块解决方案三:打开模拟器的时候出现错误解决方案四:引用1楼kifile的回复: 你的这个代

xampp:Error: Apache shutdown unexpectedly.

好久没玩过php,一上来启动xampp,Apache就报警了.. 查看端口,发现80和443并没有被占用. 但是过一会再启动Apache..又奇迹般的好了...这个帖子只能留着,待下次问题再现在贴 上解决方法了...

PHP开发环境搭建详细教程

     首先你需要安装Apache Server,这里以当前最新版Apache Server2.4为例进行说明,可惜官网并没有提供最新版的msi安装包,连编译后的binary二进制压缩包都没提供,不过我已经编译并上传到我的百度网盘,下载地址如下:       Apache Server2.4最新版安装包   下载下来后直接解压到任意目录,如图:  然后你需要安装Apache Server系统服务,先cd 到apacher server2.4/bin下,然后执行如下命令: Java代码   ht

Lvs+keepalived 高可用性负载均衡自动化配置

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://navyaijm.blog.51cto.com/4647068/809397 前言* 随着互联网的发展,提供用户访问的web服务器,必须要保证每天24不间断服务,访问量不断增加,有什么好的web架构既能实现高可用性负载均衡,而且价格又是免费的呢?答案有木有?有!lvs+keepalived 是不错的选择!   一.实验环境:4台centos 5.4 ,以及简单的拓扑图: LVS-