Skip to content

获取外部sqlite数据 #1

@majorinche

Description

@majorinche

请问下怎么获取外部的sqlite数据库呢?

例如把aaa.db放在项目的chapter06/res/raw目录下,然后这样定义DB_NAME
private static final String DB_NAME = "/data/data/com.example.chapter06/aaa.db";

但是效果还是不对,我想直接读取自定义的test.db中内容,而不是通过程序写数据

谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions