tags:

views:

41

answers:

4

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 application to someones htc device who is not near to me.

+1  A: 

Signing your applications

Jorgesys
Why? Apps don't need to be signed to be installed via `adb`.
Felix
+1  A: 
  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.

Felix
+1  A: 

@Felix applications are indeed signed using a debug key during development.

Ragunath Jawahar
+1,thanks for your answer,it's very old question...
MGSenthil
+1  A: 

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)

PHP_Jedi