Hi Dianne et al,

Can any one help me on this??

regards,
Manju

On Thu, Feb 18, 2010 at 10:34 PM, Manjunatha M <[email protected]> wrote:

> Hi,
>
> To hide my activity from the list in "Select wallpaper from"
> I have actually written a BroadcastReceiver which on boot completed, does
> the following.
>
>
> @Override
> public void onReceive(Context context, Intent intent) {
>
>     ComponentName componentName = new ComponentName(
>                                 "com.android.manju",
>                                 "com.android.manju.MyActivity.class");
>
>     int component_state = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
>
>     if (toEnable) {
>         component_state = PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
>
>     } else {
>         component_state = PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
>     }
>
>     if (context.getPackageManager().getComponentEnabledSetting(
>                                 componentName) == component_state)
>         return;
>
>     PackageManager pm = context.getPackageManager();
>
>     pm.setComponentEnabledSetting(componentName, component_state,
>                                 PackageManager.DONT_KILL_APP);
> }
>
>
> Though the activity is disabled, I could still see my activity in the
> "Select wallpaper from" menu..
>
> Please help on this..
>
>
> On Sun, Feb 14, 2010 at 1:30 AM, Dianne Hackborn <[email protected]>wrote:
>
>> Use PackageManager.setComponentEnabledSetting() to disable that activity
>> when you don't want it displayed.
>>
>>
>> On Sat, Feb 13, 2010 at 1:44 AM, Manjunatha M <[email protected]> wrote:
>>
>>> yes.. I want that to be configurable. sometimes to show and sometimes not
>>> to show in the list of "select wallpaper from"
>>>
>>>
>>> On Sat, Feb 13, 2010 at 12:07 PM, venkat ranjit <[email protected]>wrote:
>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hi manjuntha  ur question  is not clear , tell me clearly,  in my
>>>> understanding u  want shortcut of ur activity (custom activity).  in
>>>> wallpaper ,  i want clarity k....
>>>>
>>>>
>>>> Regards,
>>>> Ranjit....
>>>>
>>>> On Sat, Feb 13, 2010 at 10:03 AM, Manjunatha M <[email protected]>wrote:
>>>>
>>>>> Hi Folks,
>>>>>
>>>>> I want to show my Activity in
>>>>> HomeScreen->Menu Press->Wallpapers.
>>>>>
>>>>> This should be dynamic, so that, for some check this should show, and
>>>>> otherwise it should not show.
>>>>>
>>>>> Could anyone please help on this??
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Manjunatha
>>>>>
>>>>> --
>>>>> 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]<android-developers%[email protected]>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>>
>>>>  --
>>>> 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]<android-developers%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Manjunatha
>>>
>>> --
>>> 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]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> 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]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards,
> Manjunatha
>



-- 
Regards,
Manjunatha

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