Menu

Hadi / Blog: Recent posts

Hadi 0.1 版本发布了

什么是 Hadi:

Hadi 是一个Android数据库的框架. 他可以让你简单的操作Android上的SQLite数据库。
Hadi 是个开源项目,你可以在任何项目中使用他,并且你也可以修改源代码并重新发布。

怎么使用Hadi:

  1. 首先把Hadi的包文件引入到你的工程中(hadi_libary/hadi_sdk.jar).
  2. 然后配置你Android工程中的AndroidManifest.xml文件

    增加一个属性 "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>

  3. 编写你的表基本对象,如下面的Book类:... read more
Posted by 9tcat 2011-09-07

Hadi's first version released

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:

  1. Import Hadi libary(hadi_libary/hadi_sdk.jar) into your Android project.
  2. Edit your AndroidManifest.xml

    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>

  3. Write your table's model class:... read more
Posted by 9tcat 2011-09-07 Labels: Hadi ORM SQLite Android Database