0

My apk is already installed in Emulator. I want to launch it again through command rather than opening a menu in Emulator. How to do this?

Siva Bala
  • 55
  • 7
  • try (emulator -avd Nexus_6_API_22) -- (Nexus_6_API_22) is the name of your VM but use underscore for the space. You may need to change directory to the android toos folder – Tasos Jan 22 '16 at 09:15

2 Answers2

1

Simply run

adb shell am start -n com.package.name/com.package.name.ActivityName

in your command prompt.

The question is already answered in this post.

Community
  • 1
  • 1
Marco Rehmer
  • 1,033
  • 2
  • 12
  • 32
1

adb shell am start -n declared.manifest.package/real.activiy.package.MyActivity

See : http://developer.android.com/tools/help/shell.html for more details and options

JHelp
  • 21
  • 4