Hi Everyone, I am trying to test my database CRUD methods. To do so I need to create a Context since Android's openDatabase and so on are invoked from the Context class. I was sure that one way to do so was to create a MockContext() and use that to invoke the mehtods. This is not working, the following piece of code gives me an UnsuportedOperationException:
private MockContext context=new MockContext(); mDb = context.openDatabase(DATABASE_NAME, null); I am not sure why this is happening, since on the references pages these methods seem to be supported but since we do not have access to the source I am not really sure what is happening. Any one has run into a problem like this? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Internals" group. To post to this group, send email to android-internals@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-internals?hl=en -~----------~----~----~----~------~----~------~--~---