开发者

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.


  1. On your device, go to Settings > Applications. Tick Unknown sources. Go to Development. Tick USB Debugging.
  2. Connect your device to your PC via USB cable.
  3. 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.
  4. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜