My app's database keeps growing and I want to perform a VACUUM to retrieve some lost space. From what I've read VACUUM does not run if there are other transactions.
My question is: how do I run the command from my SQLiteOpenHelper? is something like db.execSQL("VACUUM")
work? But how do I get some sort of progress while doing this so I can block the UI with a loading dialog?