Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースの作成にはsqliteを使用しました。ここで、サーバー上のデータベース ファイルのバックアップを取りたいと考えています。
Androidのアプリケーションからsqliteデータベースファイルをサーバーにアップロードする方法は?
データベースを指すオブジェクトgetDatabasePath()を取得するために使用します。次に、開いているオブジェクトとオブジェクトをFileすべて閉じた後、、、などを使用してデータベースをアップロードできます。SQLiteOpenHelperSQLiteDatabaseHttpUrlConnectionHttpClient
getDatabasePath()
File
SQLiteOpenHelper
SQLiteDatabase
HttpUrlConnection
HttpClient