什么是 Hadi:
Hadi 是一个Android数据库的框架. 他可以让你简单的操作Android上的SQLite数据库。
Hadi 是个开源项目,你可以在任何项目中使用他,并且你也可以修改源代码并重新发布。
怎么使用Hadi:
增加一个属性 "android:name" 在application节点上, 加上后就是这个样子:
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name">
定义你数据库的名字和版本, 加上后就是这个样子:
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name">
<meta-data android:name="Hadi_DB_NAME" android:value="demo.db">
<meta-data android:name="Hadi_DB_VERSION" android:value="1"></meta-data></meta-data></application></application>
What is Hadi:
Hadi is an Android ORM Framework. It makes SQLite using in Android easy and simple. Hadi is and open source project.
You can use it free, change it and even re-publish it.
How to use Hadi:
Add attribute "android:name" into element application, it looks like this:
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name">
Define your database name and version under emlement Application, it looks like this:
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name">
<meta-data android:name="Hadi_DB_NAME" android:value="demo.db">
<meta-data android:name="Hadi_DB_VERSION" android:value="1"></meta-data></meta-data></application></application>