I'm new to android & eclipse. I have modified a small app by changing 2 of the icons among other things. When i test the app using emulators all works as expected. But, when i load the .apk file to an actual device, I get the old version of the app (old icons). How can i get the .apk file to use the current icons & code?
+7
A:
How did you load the apk to your device? Using the console with adb make sure you have the reinstall option set. Otherwise check if eclipse told you, it has reinstalled the app (check the console in eclipse). Last thing to try: remove the old version on your device and install it again.
WarrenFaith
2010-09-01 14:27:15
+1. It happened to me in the past. Removing the app from the device will make it work correctly.
Macarse
2010-09-01 14:32:46
2010-09-01 20:32:30
You can install the project with eclipse. Just right click on your project -> Run as -> Android Application -> Choose your connected device or emulator
WarrenFaith
2010-09-02 08:31:49
A:
Besides the above answer you can also try to do this: right click on your project in eclipse and goto android tools -> fix project properties.
M not very sure but tis might help.
vaibhav
2010-09-01 14:33:31
A:
Most probably your device and your emulator are using different pixel densities (dpi), you replaced only one set and that's why old ones are taken. You can:
- Check resources in
drawable-{l|m|h}dpi
folders and change them all - Use same pixel density for emulator and device
dtmilano
2010-09-02 02:33:52