08 2012 档案

摘要:Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.... 阅读全文
posted @ 2012-08-29 16:34 shenbin23 阅读(1969) 评论(0) 推荐(0) 编辑
摘要:今天想调试程序结果搞了一下午,就是无法进入debugger模式。搞了几个小时原来发现,更新后的android sdk,新建的项目是没有 这个的,要自己加上才行,那样才能启动第一个activity,才可能进入到de... 阅读全文
posted @ 2012-08-27 18:32 shenbin23 阅读(126) 评论(0) 推荐(0) 编辑
摘要:http://www.open-open.com/lib/view/1330341188375 阅读全文
posted @ 2012-08-06 20:43 shenbin23 阅读(141) 评论(0) 推荐(0) 编辑
摘要:今天用viewpage控件,加载了几个子xml,然后去直接用findviewbyId获取子xml里面的控件操作,结果取出来都是null。后来查了原因,setContentView(R.layout。**),findviewbyId这个是去这个xml里面的,如果要去子xml的控件要用mInflater... 阅读全文
posted @ 2012-08-06 14:48 shenbin23 阅读(144) 评论(0) 推荐(0) 编辑
摘要:今天反编译了一个apk,结果资源文件都被在java文件中都是十进制。这咋办?还好发现一个values文件夹下 发现个 public.xml。 这个文件是资源被便宜成十六进制的文件。我取个节点出来看看就明白了 0x7f010000 就是对应的backColor,把0x去了就是7f... 阅读全文
posted @ 2012-08-05 12:10 shenbin23 阅读(2096) 评论(0) 推荐(0) 编辑
摘要:08-04 08:40:32.264: E/AndroidRuntime(368): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ningbin.homeloc/com.ningbin.homeloc.... 阅读全文
posted @ 2012-08-04 18:42 shenbin23 阅读(13142) 评论(2) 推荐(0) 编辑
摘要:有时候导入别人的Android项目,java,xml文件没有错误,可是在项目名字上有一个红色的叹号,项目无法运行.解决办法:右键点击 -> Build Path -> Configure Build Path 这里就很容易找到项目的错误所在了,一般是由于项目引用的一些包在本机路径存在错误或者jar... 阅读全文
posted @ 2012-08-04 18:32 shenbin23 阅读(608) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示