Invoke a activity of installed app from another application


Last Updated:

  1. Bharanicharan

    Bharanicharan New Member This Topic's Starter

    Joined:
    Aug 3, 2010
    Messages:
    1
    Likes Received:
    0
    Hi All,

    AM in the proecess of invoking an activity of an installed application from my application.

    I have added reqiured intent with package name and class name
    Intent intent = newIntent();
    intent.setComponent(new ComponentName("package name","Activity")); intent.setAction("android.intent.action.VIEW");
    startActivity(intent);

    But am getting permission denial error.

    Any thought on this will be of great help to me!

    Thanks
     

    Advertisement
  2. meskiukas

    meskiukas Member

    Joined:
    Aug 20, 2010
    Messages:
    13
    Likes Received:
    1
    Does it work better if you use android.intent.action.MAIN? VIEW is usually used to view a data URI.
     

Share This Page

Loading...