Following is the order of execution of my game which accesses Google Play services.
STEP1: Google Sign-In Screen with two available users is displayed. (USER1 and USER2)
STEP2: A user is selected and logged in successfully.
STEP3: The user plays the game. The "RESULTS" are stored locally with "Preference".
RESULTS include a)score
and b)highestAchievementToBeUnlocked
After a successful login, or on end of a game, the achievement details are read from the file and fed to the Google console.
I am okay with the above steps, but confused with the following situation.
a) The user Signed IN as "USER1", played the game,the achievement details are fed to Google services.
b) The user Signed OFF and logged in as "USER2" and started gaming, details are fed to Google services.
c) Repeated Step a)
Please guide me to decide the best way to handle the above situation. How can I program in such a way that I could allow "USER1" to continue gaming with his previous achievements even though "USER2" had made an intermediate gaming with his account?
Thanks In Advance !!