On Wed, Dec 15, 2010 at 2:12 PM, gato chlr <[email protected]> wrote:
> Kostya , you right, but then, my worry is about if i will be able to > do an unit test of my PersistenceUtil, how to do it without an > instance of an Activity? > You DO NOT need to instantiate an Activity. All you need is a Context, ANY Context, for your package. Your Application object. The Instrumentation class will give you one. You can get this from all over the place. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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 [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

