0

I'm testing a widget and I'd like to just install the new version without launching the main activity. Is this possible? Thanks

JB0x2D1
  • 838
  • 8
  • 20

3 Answers3

2

You will need to use the command line to achieve this. Use adb install path/your_application.apk. This will just install the app on your virtual device.
http://developer.android.com/tools/help/adb.html

LeChiffre
  • 596
  • 5
  • 7
1

I don't think its possible, because as after the application is installed in your virtual device, the onCreate method immediately starts your application depending on the main_activity . Well, i think there might be some setup to disable the onCreate method from starting once the app is installed.

james jelo4kul
  • 839
  • 4
  • 17
1

just an addition- you can either install using command line or you can just build your apk using build and push it to your avd.

You can have a look at these two pages. first- Second- I hope it would help you.

Community
  • 1
  • 1
RajSharma
  • 1,941
  • 3
  • 21
  • 34