You can hard code package and class name in the Intent. From the docs:public
Intent(Context<file:///C:/Software/android/docs/reference/android/content/Context.html>
 packageContext,
Class<file:///C:/Software/android/docs/reference/java/lang/Class.html><?>
cls)Create an intent for a specific component. All other fields (action,
data, type, class) are null, though they can be modified later with explicit
calls. This provides a convenient way to create an intent that is intended
to execute a hard-coded class name, rather than relying on the system to
find an appropriate class for you; see
setComponent(ComponentName)<file:///C:/Software/android/docs/reference/android/content/Intent.html#setComponent(android.content.ComponentName)>
for
more information on the repercussions of this.

HTH
Ludwig

2009/2/11 Joanna <chaerim10...@gmail.com>

>
> All,
>
> How to make the intent only launch one activity when more than one
> activity are matched?
>
> That means:
>
> the Implicit Intents have not specified a component; instead, they
> must include enough information for the system to determine which of
> the available components is best to run for that intent
>
> If the available componets is not only one, but we can NOT change
> others' code and interface, just want to the intent only launch our
> application? how to do?
>
> Thanks
>
> >
>

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