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.
アプリのデータベースが増え続けているため、VACUUM を実行して失われたスペースを取得したいと考えています。私が読んだことから、他のトランザクションがある場合、VACUUM は実行されません。
私の質問は、SQLiteOpenHelper からコマンドを実行するにはどうすればよいですか? 仕事のようなものdb.execSQL("VACUUM")ですか?しかし、ロード ダイアログで UI をブロックできるように、これを行っている間に何らかの進行状況を得るにはどうすればよいでしょうか?
db.execSQL("VACUUM")