标签:param ica data ase get sse each tps create
LitePal是一款开源Android数据库框架,采用了对象关系映射的模式,
详细的使用文档见LitePal项目的Github主页
Edit your build.gradle file and add below dependency.
If you program with Java:
dependencies {
implementation ‘org.litepal.android:java:3.0.0‘
}
Create a file in the assets folder of your project and name it as litepal.xml. Then copy the following codes into it.
<?xml version="1.0" encoding="utf-8"?>
<litepal>
<dbname value="demo" />
<version value="1" />
<list>
</list>
</litepal>
This is the only configuration file, and the properties are simple.
You don‘t want to pass the Context param all the time. To makes the APIs simple, just configure the LitePalApplication in AndroidManifest.xml as below:
<manifest>
<application
android:name="org.litepal.LitePalApplication"
...
>
...
</application>
</manifest>
Android常用开源库的使用——————————————LitePal的使用方法
标签:param ica data ase get sse each tps create
原文地址:https://www.cnblogs.com/kyun/p/10000326.html