¡@

Home 

2014/10/16 ¤W¤È 08:25:54

android Programming Glossary: testrunner

Why does AndroidTestCase.getContext().getApplicationContext() return null?

http://stackoverflow.com/questions/6516441/why-does-androidtestcase-getcontext-getapplicationcontext-return-null

tag Can't get app context. And this is a chunk of the resulting logCat 1.6 emulator on SDK11 WinXP via Eclipse INFO TestRunner 465 started test_exploreContext test.foo.android.DatabaseTest INFO XPLORE1 465 testCtx android.app.ApplicationContext@43757368.. pkg com.foo.android INFO XPLORE4 465 appContext.getAppCtx com.foo.android.MyApplication@43783830 INFO TestRunner 465 finished test_exploreContext test.foo.android.DatabaseTest Notice that getApplicationContext returned null for a while.. 3rd runtime displayed messages indicating that it instantiated a different instance of MyApp in process ID 447 INFO TestRunner 447 started test_exploreContext test.foo.android.DatabaseTest INFO MYAPP 447 this com.foo.android.MyApplication@437809b0..

Why are annotations under Android such a performance issue (slow)?

http://stackoverflow.com/questions/7417426/why-are-annotations-under-android-such-a-performance-issue-slow

String foo private static class Foo @MyAnnotation foo bar String field This results in the following log output I TestRunner 895 started testAndroidAnnotations D dalvikvm 895 GC freed 6567 objects 476320 bytes in 85ms D dalvikvm 895 GC freed 8951..