delete shared preference data when i install same application means overriding application
<p>i use shared preference for saving data but when i install same application then my shared preference data not delete it remains as it is so how to delete shared preference data when i install same application without uninstall the application means just over write on the same application.  </p>

<pre><code>          SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        Editor  editor = settings.edit();
        editor.putString("MY_NAME", UserId);
         editor.putString("PASSWORD", password);
        editor.commit();
        setResult(RESULT_OK);
</code></pre>
