title: Android - Starting an application from an ApplicationInfo instance
body: <p>If I have an ApplicationInfo instance of a particular app, how can I make an Intent to launch the app?</p>
  
  <p>I tried</p>
  
  <pre><code>Intent intent = new Intent(ApplicationInfoInstance.packageName);
  </code></pre>
  
  <p>but it gives an exception. The app is installed so the exception is not due to that.</p>
  
  <p>I think I need to use</p>
  
  <pre><code>setClassName (String packageName, String className);
  </code></pre>
  
  <p>Could someone direct me to obtain these two values?
  Because most of my apps returns <strong>NULL</strong> for <code>ApplicationInfoInstance.className;</code></p>
  
  <p>Thank you.</p>