I have an app which is already in play store. and I'm working on an update right now. suppose my current app version is 1.0.4, and I'm releasing 1.0.5. so for the next updation from 1.0.4 I have to clear the preference. that is if user has already 1.0.5 version and for future update suppose 1.0.6 the preference should not clear. is there any way to do this ?
Precisely, I have to clear preferences first update after 1.0.4
any help will be appreciated
EDIT
Actually there is an BroadcastReceiver with intent filter
<action android:name="android.intent.action.PACKAGE_REPLACED" />
if I get previous version inside onReceiver of this broad cast I can easily clear preference.