Sorry for resurrecting the thread but I was unable to find answer other
place than the docs.
You can indeed make isolated database tasts by keeping a reference to your
IsolatedContext and calling deleteDatabase(name).
private DatabaseManager manager = null;
> private IsolatedContext isolate;
> @Override
> protected void setUp() throws Exception {
> super.setUp();
>
> if(isolate == null)
> isolate = new IsolatedContext(null, mContext);
> if(manager == null)
> manager = new DatabaseManager(isolate);
> System.out.println(this.getClass().getSimpleName() + ">> setting new
> isolatedcontext");
>
> }
> @Override
> protected void tearDown() throws Exception {
> super.tearDown();
> isolate.deleteDatabase( >>databaseName<< );
> }
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en