title: Launch App via adb without knowing Activity name
body: <p>From the post <a href="https://stackoverflow.com/questions/13380590/is-it-possible-to-start-activity-through-adb-shell">Is it possible to start activity through adb shell?</a>, we can start an Android app via adb by</p>
  
  <pre><code>adb shell am start -n yourpackagename/.activityname
  </code></pre>
  
  <p>But is it possible to start an Android app via adb without knowing the Activity name? For example, by sending the <strong>android.intent.action.MAIN</strong> intent to a package? Maybe some command like this:</p>
  
  <pre><code>adb shell am start -a android.intent.action.MAIN -n packageName
  </code></pre>
  
  <p>Thanks!!</p>
  
  <p>-Cosmo</p>