To Achieve This the problem is this :
How can we differentiate, if we are installing app,
first time on 1st device or first time on second device.
so for that we have to use a unique key for app to run
on each different device.
So that before saving shared pref,
we can validate the unique key for that device.
Now Question is that how user will get the unique key? So lets assume application vendor will provide key for each device. but for that, app should have some algorithm to validate the key provided by us.
But Unfortunately, If vendor provide the key, user can use that key to install on another device also.
SO The Final Solution is before first run app Must register device on Some Web Service for Activation.