[android-developers] Re: Reflection API:List all classes in a package that extend a specific super class

2011-02-25 Thread donV
Hi! Did you ever solve this? I desperately need to list all classes in a package. -- 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,

Re: [android-developers] Re: Reflection API:List all classes in a package that extend a specific super class

2011-02-25 Thread Kostya Vasilyev
What for? Perhaps there is another solution? 25.02.2011 12:38 пользователь donV don...@gmail.com написал: Hi! Did you ever solve this? I desperately need to list all classes in a package. -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Re: Reflection API:List all classes in a package that extend a specific super class

2011-02-25 Thread donV
Thank you for your reply! Very possibly there is another solution. The problem to be solved is that I want to run some test scripts stored as assets to test multiple activities. The test scripts need access to the activity to be tested. This is normally done by subclassing

Re: [android-developers] Re: Reflection API:List all classes in a package that extend a specific super class

2011-02-25 Thread Kostya Vasilyev
Don, ActivityInstrumentationTestCase2 has a method, getInstrumentation(), which gives you an Instrumentation object instance that's used in the test. Instrumentation has getContext() which gives you your test package's context object, now you can access its resources (as opposed to

Re: [android-developers] Re: Reflection API:List all classes in a package that extend a specific super class

2011-02-25 Thread donV
Thanks! This was very helpful! I have it running now. -- 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