When you create the database you are specifying the database name (for instance products.db
). If your application package name is com.example.yourapplicationpackage, you can access the file using the path: /data/data/com.example.yourapplicationpackage/databases/products.db
Then you can send that file just like any other file to your server (use a POST request). On the server side, you need classes to read a SQLite 3 database file, this should not be hard to find.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…