摘要:
尊重原创,转自: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 阅读全文
摘要:
一、遇见错误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 阅读全文