> I think this goes some way to explaining why there are many bad > practices in the Android examples and the API itself.
Care to share an example of bad practice from the Android core API? > Are we going to start seeing some tests being provided with these > example apps? Sample apps typically exist to demonstrate how to use an API, not how to use an API and then test it. I've shipped SDKs with sample code but none with unit tests for the sample app itself, because it just isn't worthwhile. The consumer can unit test their own stuff if they want. The sample apps just show how to get work done, not how to prove that the scaffolding works as intended. Do you have a counter example of a sample app for any API that unit tests itself independently of the APIs that it demos? Have you investigated any literature or tutorials on Android unit testing? Doug -- 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

