I've reported this bug as Issue 12117 (the implementation of ServiceTestCase.startService(Intent) is indeed out of date):
http://code.google.com/p/android/issues/detail?id=12117 Please star the issue if it's caused you problems too! Roberto On Sep 3, 7:36 pm, "A. Elk" <[email protected]> wrote: > My guess is that this is a bug. The Android 2.2 SDK says that > onStart() was deprecated in favor of onStartCommand(). The test case > class may not have been updated. Try SDK 2.2? > > On Sep 2, 4:07 pm, doug <[email protected]> wrote: > > > > > > > > > A correction. It is not "Servcie.onStart()" but > > "Service.onCreate()". My ServiceTestCase derived test case calls > > startService() which does not trigger Service.onStartCommand() but > > only Service.onCreate(). Both Service methods will be called when the > > service starts normally from the application. > > > 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

