![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DataBase
移动爱好者
这个作者很懒,什么都没留下…
展开
-
android 关于ContentProvider的一些知识
如果我们要建立一个ContentProvider,必须在menufest中声明: <provider android:name=".MyProvider" android:authorities="com.example.testactivity.provider.myprovider" android:exporte原创 2014-07-27 20:36:28 · 676 阅读 · 0 评论 -
android DataBase的相关操作(建立表结构和创建表)
先建立一个table的基类:public abstract class DbBaseTable { private static final String TAG = "DbBaseTable"; /** * @return the DB table name */ abstract String getName(); /** * Creates the DB table原创 2014-07-27 20:32:02 · 1462 阅读 · 0 评论 -
android数据库的升级的写法
在基类的table中加入upgrade操作:public abstract class DbBaseTable { private static final String TAG = "DbBaseTable"; /** * @return the DB table name */ abstract String getName(); /** * Creates th原创 2014-07-27 20:52:18 · 1207 阅读 · 0 评论