title: Get the Main Package Name of an .apk File
body: <p>I have to launch an application on android emulator using command line.for that I have knew that there is a method by adb command;</p>
  
  <pre><code>adb shell am start -a android.intent.action.MAIN -n com.example.myApplication
  </code></pre>
  
  <p>but I have to find the application package name before executing this command, so anybody help me to find the package name, or any alternate solution for running apk on emulator</p>