On Thu, May 3, 2012 at 1:41 PM, Narendra Singh Rathore < [email protected]> wrote:
> > > 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. > > > Hiiiiiiiii, if i use the above code,where i need to pass the nextActivty's .class file? we usually write *Intent i=new Intent(this,Nextactivity.class);* please clarify that................ -- 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

