On Feb 12, 5:09 pm, Dianne Hackborn <hack...@android.com> wrote:
> 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.

Then how was it starting the service, binding it, and calling methods
on the service's interface if the constructor for Intent was somehow
mangling TestService.class?

TestService.class resolves directly to
com.android.TestService.TestService anyhow.

     Hans

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

Reply via email to