On Tue, Mar 24, 2009 at 10:53 PM, gudujarlson <gudujarl...@gmail.com> wrote:
> The context class is not where I would expect to find the function to > delete a SQLite database. Wouldn't it be more intuitive to have this > function on the SQLiteDatabase class? The Context class has a suite of functions for creating, opening, and deleting databases at the standard location of databases for your app. The SQLiteDatabase class can be used to access a databases at any absolute path. In that case, you are using an absolute path, so use File to delete the database file at that path. But unless you are putting your database on the SD card, you would be best off using the Context methods for your database access. > > > On Mar 24, 11:24 pm, gudujarlson <gudujarl...@gmail.com> wrote: > > I have an automated test that creates a SQLite database. In the setup > > of the test I want to drop the database if it already exists. The > > problem is that I cannot find a function that deletes/drops a > > database. That seems like an odd omission. Help? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---