1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    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
     



    1. Download the Forums for Android™ app!


      Download

       
  2. meskiukas

    meskiukas Newbie

    Does it work better if you use android.intent.action.MAIN? VIEW is usually used to view a data URI.
     
Loading...

Share This Page

Loading...