In my application i am implementing google plus login.After successful login every user enter a reference code.If a user uninstall the application after entering correct reference code,reference code for that user cannot be lost.That means that if user reinstall app again,then app shouldn't ask for the reference code.Please give me a way solve this problem.
Asked
Active
Viewed 3,871 times
3

Vivek Mishra
- 5,669
- 9
- 46
- 84

krishna
- 409
- 5
- 16
-
store data in database and put data base in sdcard... – Iamat8 Jan 19 '16 at 05:44
-
you can keep device information in the server like its id – Sree Jan 19 '16 at 05:45
-
use database and save that file into sdcard/external storage whenever user install the app again check that file – Madhur Jan 19 '16 at 05:45
-
1@Mohit what about if the user format the device and SD card ? – Sree Jan 19 '16 at 05:45
-
then as @Sree said you can put it on server and fetch with specific user id.. – Iamat8 Jan 19 '16 at 05:47
-
yes i am keeping data in server but how to check that data – krishna Jan 19 '16 at 05:49
-
@krishna can you rephrase your question to make more sense? – Calvin Jan 19 '16 at 06:10
-
1Does this answer your question? [How to store data that remains after uninstall](https://stackoverflow.com/questions/4022975/how-to-store-data-that-remains-after-uninstall) – Josh Correia Aug 26 '20 at 21:57
-
Does this answer your question? [Android Persist Data After Uninstall](https://stackoverflow.com/questions/19683614/android-persist-data-after-uninstall) – Ryan M Nov 11 '21 at 13:59