Hello,
i know it should be impossible, but maybe under tests its a different
thing.
The test is a functional test, which involves other system components
such as BroadcastReceiver and Activities. It is SDK 1.6.

I start the service within a ServiceTestCase without injecting custom
context or application.

During the test another android component starts (as intended) the
same service again with Context.startService(Intent bar).
Instead of calling onStart in the existing Service, a new Instance of
the Service is created.
The logs report via "this", that two different service objects are
running in parallel.

How can I test the behavior of a service that is started multiple
times with different intents?

-- 
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

Reply via email to