Hi. My apology for my imperfect English.

I'm trying to change the icons of the built-in applications.

I built the Launcher source obtained from the Android open source
project (ofcourse it doesn't work rightaway, need to make a lot of
modifications).



The list of built-in applications for Android 1.5 can be found in this
page:

http://developer.android.com/sdk/android-1.5.html



Now I can change these icons by comparing their name (eg. Alarm
Clock).

But this is a very bad solution. I don't know if it'll work with other
locales. Forexample, if the device is using Spanish locale, I don't
think the word "Alarm Clock" will work anymore.


So, topic.

Here's the code snippet found in LauncherModel.java where I can use my
own stupid method to alter the built-in apps icons.


//
for (int i = 0; i < count && !mStopped; i++) {
                    ResolveInfo info = apps.get(i);
                    ApplicationInfo application =
                            makeAndCacheApplicationInfo(manager,
appInfoCache, info);

// from here, this is what I don't want to do:
if(application.title.toString().equals("Alarm Clock"));
                    application.icon = context.getResources
().getDrawable(R.drawable.icon_custom);

Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to