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.
Why? Apps don't need to be signed to be installed via `adb`.
Felix
2010-08-03 19:06:35
+1
A:
- 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.
Felix
2010-08-03 19:11:59
+1
A:
@Felix applications are indeed signed using a debug key during development.
Ragunath Jawahar
2010-08-31 11:06:27
+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
2010-08-31 11:09:43