1. Download our Official Android App: Forums for Android!

Apps Invoke a activity of installed app from another application

Discussion in 'Android Development' started by Bharanicharan, Aug 3, 2010.

  1. Bharanicharan

    Bharanicharan Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 3, 2010

    Aug 3, 2010
    1
    0
    5
    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 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    13
    Joined:
    Aug 20, 2010

    Aug 20, 2010
    13
    1
    36
    Programmer
    Sweden
    Does it work better if you use android.intent.action.MAIN? VIEW is usually used to view a data URI.
     

Share This Page

Loading...