title: Launch Activity from another Application Android
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application">Android Launch an application from another application</a>  </p>
  </blockquote>
  
  
  
  <p>I am having a problem and it is the following one:</p>
  
  <p>I have two applications, and I want to launch one of the activities from one app by the other one......I am gonna give an example:</p>
  
  <p>first app package: </p>
  
  <blockquote>
    <p>"es.wul4.android.app1"</p>
  </blockquote>
  
  <p>second app package: </p>
  
  <blockquote>
    <p>"es.wul4.android.app2"</p>
  </blockquote>
  
  <p>What I want is to launch the activity whose class is called <code>"Identificar"</code> from the app1</p>
  
  <p>This activity is NOT the main one. I tried by doind that:</p>
  
  <pre><code>Intent intent = getPackageManager().getLaunchIntentForPackage("es.wul4.app2.Identificar");
  startActivity(intent);
  </code></pre>
  
  <p>But what i get doing that is nothing, it tells me that the app doesn´t exists.</p>
  
  <p>If i try doing that:</p>
  
  <pre><code>getPackageManager().getLaunchIntentForPackage("es.wul4.app2");
  startActivity(intent);
  </code></pre>
  
  <p>And it launch one activity, but the main one........</p>
  
  <p>How can I launch this particular Activity inside the package "es.wul4.app2.Identificar"??</p>
  
  <p>Thank u very much.</p>