I'm testing a widget and I'd like to just install the new version without launching the main activity. Is this possible? Thanks
Asked
Active
Viewed 29 times
3 Answers
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
-
1The -r switch might be helpful to allow a reinstall of the apk. Else the command will fail if the app is already installed. – Matthias Wimmer Sep 21 '15 at 22:02
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