I replied to this in the other thread, but if you want to explicitly reference a component from one package that is in another, you need to explicitly build the ComponentName of both the package and class name of the target. The shorthand new Intent(this, ...) creates ComponentName objects whose package is your own -- it is only for references components in your own package.
On Thu, Feb 12, 2009 at 12:37 PM, Hans <hkess...@gmail.com> wrote: > > It turns out that you can avoid using the service reference in your > client manifest if you declare what I presume is a global name in your > service's manifest and simply refer to this name in your client code. > > This is what I added to my service's manifest: > > <action android:name="com.android.TestService.TEST_SERVICE" /> > > Then I could delete the <service/> entry in my client's manifest. > > I still can't get my service to trigger callbacks on the service's > main UI thread. > > Weirdly enough, I have found that the thread pool thread ID will > differ, on occasion (of course) when a client calls in to register > their callback, but each of the thread pool's thread can broadcast on > the RemoteCallbackList's items while the main thread cannot... > Crazy... > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---