5

I've been trying to install Vending.apk into my emulator w/o success. It says it already exists and fails to replace it when I use adb install -r. The icon does not show up on the screen so I can't tap it to launch the Google Play marketplace.

Therefore, I thought I could run it from my PC (MacOSX) using adb like this:

adb shell am start -a android.intent.action.MAIN -n com.android.vending/.Vending

I constructed the above from examples that work in this article: How to run (not only install) an android application using .apk file?

And I unzipped the AndroidManifest.xml file using info from this method to see if I could discover the activity name, but no luck:

aapt dump xmltree <apk-file> AndroidManifest.xml

I guess I need to know the exact command to execute the vending apk because I can't seem to find the correct Activity class. adb shell am start keeps giving me error type 3, Activity class does not exist.

Thanks

Community
  • 1
  • 1
John Klein
  • 130
  • 2
  • 6
  • @mcruiseon, he is not asking about that, I believe. He is asking about how to *run* the *Android Market/Play app*. – davidcesarino Jul 10 '12 at 16:23
  • @DavidCesarino, you are correct. I am asking specifically about running the Android Market/Play app, and what Activity Class I would need to specify to the "am start" shell command. – John Klein Jul 10 '12 at 16:30
  • It's easier to find in the Internet the articles about how to install Google MarketPlace on the emulator. Do you need this? – Yury Jul 10 '12 at 18:24

1 Answers1

11

You can try this:

adb shell am start -n com.android.vending/com.google.android.finsky.activities.MainActivity
BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
rav_kr
  • 434
  • 8
  • 16