On ios I use UIPasteBoard to store id of client which is generated first time user start app, the data stored in UIPasteBoard is there event when you remove and reinstall app. Is there storage with the same functionality on Android. Thanks
Asked
Active
Viewed 226 times
1
-
See Intent https://developer.android.com/training/sharing/index.html – Hugo Gresse Jan 20 '15 at 16:55
-
How you propose to implement functionality I`ve writed later with intents? Intent send data to another app or start another activity of the same one. I need ability to get data after the app was totaly removed and reinstalled! – FreTFuL Jan 21 '15 at 08:25
-
intent is used to start activity from same app or from other. You do not need to have the target application started. You can have an example with Tasker and Trigger : Trigger get Tasker task from Intent. So you can get and send data with Intent. See http://stackoverflow.com/a/20740062/1377145 – Hugo Gresse Jan 21 '15 at 08:49
-
It`s not the same functionality. I have a method in with by get I`m getting id I saved last time. how intent can help me? – FreTFuL Jan 21 '15 at 10:01
-
SharedPreferenses partialy solves the problem due to removing data when app is removed – FreTFuL Jan 21 '15 at 10:02
-
Ho, sorry the the misunderstanding, SharedPreferences is a partial solution, see http://blog.grapefruitopia.com/post/18755719222/backing-up-and-restoring-a-users for saving it to DataStorage. The best way should be to have an online database and syncing the data when user re-install the app – Hugo Gresse Jan 21 '15 at 10:12
-
To sync something you have to know some id key of this user. That`s why i`m looking for UIpasteBoard analog – FreTFuL Jan 21 '15 at 10:19
-
See this answer so http://stackoverflow.com/a/5626208/1377145 – Hugo Gresse Jan 21 '15 at 10:24