steps to install new android application onto new htc device
I need to install an android application running in my local machine on to my new android htc handset, how to do this,and i also need to give this applicatio开发者_如何学运维n to someones htc device who is not near to me.
- On your device, go to
Settings > Applications
. TickUnknown sources
. Go toDevelopment
. TickUSB Debugging
. - Connect your device to your PC via USB cable.
- If using Eclipse, when running your application you should get a dialog asking you which device to use where you'll be able to select your phone.
- If not using Eclipse, build your app to an APK file (it mustn't be signed) and run
adb -d install /path/to/myApp.apk
in a terminal or command line
Send the .apk
and these instructions to your friend.
Another easy way to do this, without an USB cable. Upload your .apk to somewhere on the internet, and make your friend visit the link with his browser.
Ex. http://mydomain.com/apk/myappk.apk
He will automatically download the app and be promptet for install.
He needs to enable application from unknown sources. It does not need to be signed. (step1 from Felix)
@Felix applications are indeed signed using a debug key during development.
精彩评论