id u try doing this remove all SharedPreferences.Editor.clear() followed by a commit()
also removing the package can also b an option On Fri, Sep 7, 2012 at 4:31 PM, Abhishek Kumar Gupta <[email protected]>wrote: > I want to remove(clear) the sharedpreferences of one application from > other application. I have tried the following code in the other application > to remove preferences of application having package > "com.android.blesettings": > > Context context = getActivity().createPackageContext( > "com.android.blesettings", 0); > SharedPreferences mSettings = > mSettingsContext.getSharedPreferences( > "profile_preference", MODE_WORLD_READABLE); > SharedPreferences.Editor mSettingsEditor = > mBLESettings.edit(); > mSettingsEditor.remove("proximity_settings"); > mSettingsEditor.commit(); > > I am able to remove(clear) the value of the sharedpreference of > application(that I have observed by looking the "profile_settings" file) > but it is taking value(previously saved) from the *.bak* file of the > sharedpreferences. > > How to resolve this issue? Any help or guidance will be well appreciated. > > -- > 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 -- live and let LIVE!!! -- 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

