Sorry, there is currently no way to change the label dynamically.

On Thu, Aug 27, 2009 at 11:06 AM, Taísa Cristina <[email protected]>wrote:

>
> Hi all,
>
> I have a Service which enables/disables an application launcher
> activity as follows. Can I change the application label from my code,
> while enabling the application launcher?
>
> "
> ComponentName cName = new ComponentName("my.package.name",
> "my.launcher.activity");
> int state = install ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED
>                : PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
> try {
>        pm.setComponentEnabledSetting(cName, state,
> PackageManager.DONT_KILL_APP);
> } catch (Exception e) {
>        Log.d("TAG", "Could not change my app state");
> }
> "
>
> Thanks,
> Taísa
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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