You mean launch another application?

You can set the package name and class name of the activity you want to
start like this:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName(packageName, className);

An example for the package and class name might be:
packageName = "com.android.alarmclock";
className = "com.android.alarmclock.AlarmClock";

This intent would be used then to start the stock android clock (if it's
present on the device).



On Sat, Jul 3, 2010 at 11:12 AM, CMF <[email protected]> wrote:

> HI, I want to open other apk from my activity. is there any way
> similar to new Intent(...)?
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

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