美文网首页
litepal存储位置(\data\data目录)

litepal存储位置(\data\data目录)

作者: 馨予务心竞 | 来源:发表于2021-05-18 17:18 被阅读0次

    参考来源(作者:郭霖):https://github.com/guolindev/LitePal

    <?xml version="1.0" encoding="utf-8"?>

        <!--存储位置-->

        <dbname value="db"/>

        <!--版本-->

        <version value="4"/>

        <!--表-->

       <mapping class="包名.表文件路径.表名"/>

       <!--数据库存储位置

    1.直接去掉storage栏目,或者设置值为internal,位置:默认目录就是放在\data目录下,

    (注: "internal" means the .db file will be stored in the database folder of internal storage which no one can access)

    2.设置值为external,位置:内部存储\Android\data\你的项目包名\files\databasesandroid-->

    (注:"external" means the .db file will be stored in the path to the directory on the primary external storage device where the application can place persistent files it owns which everyone can access. "internal" will act as default.)

    3.设置值为例如:dbFile,位置:内存存储\dbFile

    <!--    -->

        <storage value="internal" />

    </litepal>

    相关文章

      网友评论

          本文标题:litepal存储位置(\data\data目录)

          本文链接:https://www.haomeiwen.com/subject/gdgpjltx.html