title: How can I launch Instagram app on button click Android Studio
body: <p>I just want to open Instagram application on button click (if installed) on minimum API 16.</p>
  
  <p>What I am trying is:</p>
  
  <pre><code>Intent likeIng = new Intent(Intent.ACTION_VIEW);
  
  likeIng.setPackage("com.instagram.android");
  
  try {
      startActivity(likeIng);
  } catch (ActivityNotFoundException e) {
  
      Toast.makeText(this,"Instagram Not Installed!",Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>But when running on a phone where Instagram is installed, it's not launching it.</p>