Hi
I have implemented code to start android built in applications like email
application
see the following code
  PackageManager appInfo = context.getPackageManager();
    List<PackageInfo> plist=appInfo.getInstalledPackages(0);
          for(int i=0;i<plist.size();i++)
        {
            PackageInfo l1=plist.get(i);

                  if(l1.packageName.equals("com.android.email"))
                    {

                Intent s;
                try {
                    s =
appInfo.getLaunchIntentForPackage(l1.packageName);//This will lanuch the
activity of the perticular package
                     s.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                     startActivity(s);

                } catch (NameNotFoundException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }


                    }
        }


It is working fine .It starting the main activity
But my requirement is this email app is having several activites if i want
to start a perticular one
how can i do it
Please any one can help me

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