How to upload a db file to google drive from android application?

前端 未结 2 1439
鱼传尺愫
鱼传尺愫 2021-01-13 18:19

I want to upload a db file from my app to google drive. I am able to create a folder in google drive but I am not getting how to upload db file .

This is my code.

2条回答
  •  盖世英雄少女心
    2021-01-13 18:53

    Check your mime type of database file.

    private String getMimeType(String string) {
        //set return "application/x-sqlite3";
        return "application/x-sqlite3";
    }
    

提交回复
热议问题