I'm using this code ... hope it helps

PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commit();

On Apr 16, 11:09 am, Bonifaz <[email protected]> wrote:
> Does anyone know
> how to clear defaults of my own app by code.
>
> I know that a user can always go to Manage Applications, find my app
> and click the button there to clear previously assigned default
> actions. But for most users this isn't intuitive at all.
>
> I would like to offer my customers a solution to clear defaults within
> my own app if they don't like to use my app as a replacement for a
> specific action anymore.
>
> --
> 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 
> athttp://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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to