I have a scenario... 1. User presses button. 2. Dialog opens; user presses 'OK' 3. Activity starts a service.
I wish to provide a JUnit test for (3). Can anybody please advise me how to do this. I've tried using ActivityInstrumentationTestCase2 for my MyActivity, testing that the service is not running, using Robotium to drive GUI, and then testing service is running. The initial test that the service is NOT running (using bind()) always passes true, even though I'm using 0 as last param. which I *understand* will not do AUTO_CREATE. Any ideas/info appreciated. [I understand there is ServiceTestCase for testing the service, but I only want to test that the Activity starts the service correctly]. Many Thanks Ian Hunter -- 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

