[android-developers] Re: Clear defaults programmatically

2010-05-28 Thread Bonifaz
Is it even possible? No one knows this? I suppose many users don't know how to do this on their phones, because it is rather complicated to understand for non programmers. I want to give my users the option to clear defaults of my app, within my app. But how do I do this? On Apr 19, 3:01 am,

[android-developers] Re: Clear defaults programmatically

2010-05-28 Thread Bonifaz
Thanks TreKing, this is exactly what I meant. And thank you for your tip. I already have a description of how to do this manually, but never thought about opening the manage application activity. If there is no other way I will head for your proposed work around. On May 28, 8:37 pm, TreKing

[android-developers] Re: Clear defaults programmatically

2010-04-18 Thread Menion
I'm using this code ... hope it helps PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commit(); On Apr 16, 11:09 am, Bonifaz bonifaz.kaufm...@gmail.com wrote: Does anyone know how to clear defaults of my own app by code. I know that a user can always go to Manage

[android-developers] Re: Clear defaults programmatically

2010-04-18 Thread Bonifaz
This clears the preferences, but not the default flag set by a user when a Intent Chooser is shown to him/her. Am I right? How can I get back the Intent Chooser Dialog when a user previously set my app as default. I know you can go to Manage Applications and click clear defaults but how do I do