摘要: 1、修改模拟器大小 点start模拟器时,将3改为4,大小合适。2、int型颜色 android.graphics.Color.RED3、将音乐文件导入sdcard时,报错transfer error: Invalid argument 原因:文件名中含有中文4、取出项目下的完整路径,如data/data/com... String audioFilePath = getFilesDir().getAbsolutePath() + File.separator + "aa.mp4";5、取sdcard下的完整路径 String audioFilePath = Environ 阅读全文
posted @ 2012-10-15 11:27 little_star 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 尊重原创,转自:http://www.cnblogs.com/xuling/archive/2011/06/06/android.html,首先我们先来看下官方API对SurfaceView的介绍SurfaceView的API介绍Provides a dedicated drawing surface embedded inside of a view hierarchy. You can control the format of this surface and, if you like, its size; the SurfaceView takes care of placing th 阅读全文
posted @ 2012-10-15 10:30 little_star 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 一、遇见错误IllegalArgumentException: column '_id' does not exist解决:建的表中必须以'_id'为主键,且利用Cursor查询中必须要查询这个值 1)创建数据表时插入一个名为_id的列,类型为自增量,因为在使用Cursor相关的Adapter时需要用到这个列2)如果实在不需要这个列的话,可以把数据表中某一列使用AS映射为 _id,再进行操作二、把数据库的部分列的内容显示到ListView if(mCur!=null&&row>=0){ ListAdapter adp = new Simpl 阅读全文
posted @ 2012-10-15 10:25 little_star 阅读(397) 评论(0) 推荐(0) 编辑