[android-developers] Re: Running JUnit 4 Tests on Android Device

2010-08-22 Thread The.French.DJ
Just put the JUnit 4 jar before the Android jar in the classpath. This will hide the JUnit 3 classes. Note that you must not use any Android classes in your test! You will get Stub! exceptions if you do. If you need a few basic Android classes in your tests (like Intent and Bundle), add simple

[android-developers] Re: How to compile/run JUnit 4 tests in Android?

2010-08-19 Thread The.French.DJ
It depends on what parts you want to test. If you need the android test framework classes for testing activities and services in a valid android context then i am not sure if you can make junit 4 work with it. However, if you extract your app logic into android independant classes then you can

[android-developers] Re: Organizing the res/drawable folder

2010-08-12 Thread The.French.DJ
I switched to using the assets folder for this. There you can have whatever folder hierarchy you want. Of course you lose some help from the system and have to rescale images yourself. Easy enough with the Android APIs. Depends on your use-case if this is an option.. Cheers, tfdj On Aug 10,