Android Launcher Icons for PhoneGap not changing
I've had the hardest time changing launcher icons for my Android
application built with PhoneGap. I would change the icons in the
res/drawable-hdpi, res/drawable-ldpi, and res/drawable-mdpi, folders in
Eclipse, compile my app so that it launched on the phone, and the icon
just would not change. It had worked before, I had a custom icon in
there, I just couldn't get it to change again.
So I would just leave the new icon there and give up on it for a while.
Then, seemingly for no reason, the icon would eventually update at some
point, event though I hadn't touched it. Couldn't figure it out for a
long time.
Finally, it occurred to me that the icon must be cached somehow. I
tried clearing the application's cache on the phone, but that didn't
work. Then I tried cleaning my application in Eclipse, and that worked.
Just go to Project... / Clean and select your project (or Clean all
projects), then next time you compile the app to install on phone, it
should be there.
(By the way, for a while I thought maybe I got the size wrong so I was looking for a sizing table.
This is a good page with information on Android icons, but not related to PhoneGap)
Hiç yorum yok :
Yorum Gönder