title: Install and Run .apk on Android Emulator from Command Line
body: <p>I have to install and run an application from command line on android emulator.I have read android developer documentation for the same, and implemented as follows.</p>
  <p>To install apk on emulator : <code>adb -d emulator-5554 install path/to/my/app.apk</code></p>
  <p>this successfully installed the apk on the running virtual machine.I cant open the installed application, for that I have tried both the installation and running together by the command</p>
  <p><code>adb -d install path/to/your/app.apk</code> ,</p>
  <p>but this command shows an error &quot;</p>
  <blockquote>
  <p>error: device not found</p>
  <p>-waiting for device-</p>
  </blockquote>
  <p>I have tried the command after starting the emulator but it still diplays the sane error</p>