On Thu, May 3, 2012 at 11:53 AM, sushma reddy
<[email protected]>wrote:

> I want to start an activity which is in different package from the
> current package.........
>
> I am getting errors..........can u please tell me   how to achieve
> this functionality??????
>


Sure I can. Use the code as follows:

                    Intent i = new Intent();

                    PackageManager manager = getPackageManager();

                    i =
manager.getLaunchIntentForPackage("package_name_to_switch");

                    startActivity(i);

Above code is exactly what you want.

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