while testing, if i load a new version of my application onto my phone, the icon shown in the launcher isn开发者_C百科't refreshed. is there any way to tell the launcher to reload its icons?
go into "Settings -> Applications -> Manage Applications", on the nexus one at least, you have to go into the menu and "Filter" and then change to "All". the htc evo 4g defaulted to "All". Then select "Launcher" (at least if you're on stock android) and "click" the "Force stop" button. the launcher then automatically restarts when you go back to the home screen. functional brute force approach.
From the adb tool (command line) you can try: adb uninstall com.example.package
and then load it onto your phone again.
the easy answer is... in your project, select your drawable folder, hit F5 to refresh all the drawables, then send a new build to the phone.
if it doesnt work the first time, change some code to let it know it needs to rebuild some stuff, then send it to the emulator again.
精彩评论