views:

434

answers:

3

I uploaded my application to Market and then downloaded it to my phone. Now I'm unable to use debug keystore which is used by default by Eclipse ADT Plugin (Re-installation failed due to different application signatures) and when I'm trying to setup own keystore in Eclipse->Windows->Android->Build->CustomDebugKeystore, I'm unable to enter password or accept keystore and type password later.

Is there anything I can do or only way do debug app on device is to uninstall market version and deal with default debug keystore?

+1  A: 

You have to delete the market version before you can reinstall the debug version onto the device. Android keeps track of applications based on their package names so you can't have more than one installed w/ the same name at the same time. If you really wanted to keep both the market version and the version you're working on installed you'd have to change the package name of the new one, then change it back when you want to update it to the market.

fiXedd
or: compile release version and install it on device with ADB
tomash
additional info - **adb install -r <file>** forces reinstall of existing application, which can be used as simulation of upgrading app as in Android Market
tomash
Can't believe we can't set our own keystore for debugging. I guess we'll have to export to APK first every time after publishing to market :(
HXCaine
A: 

I am faced with the same issue. How do you test database upgrade if you have to uninstall the market version of your app ? Also the other suggestion by tomash did not work for me incase of upgrade since the adb install command says the app already exists.

Any thoughts... Thanks in advance

wysiwyg
Use command **adb install -r <file>** - the "-r" parameter means "reinstall" which is identical to Android Market update.
tomash
Thanks tomash, I will try this.
wysiwyg
A: 

Just realised this:

What if you made a copy of your keystore file, changed the password as in this thread to the default Android password 'android', then used that in Eclipse?

HXCaine
It is not enough, there are passwords for keystore and specific key, also key must be named "androiddebugkey". So there is no way to do it easily in Eclipse without modyfying ADT plugin.
tomash