Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

restore application data programmatically

how can i restore application data programmatically from SDCard on rooted device???

i am worked on backup/restore applications and i did the following steps:

-Back Up case i copied data app from /data/data/PackageName/ to SDcard

then i removed the application and reinstall it

-Restore case i copied the same data app in backUp from SDcard to /data/data/PackageName/

but the application stopped when i start it?

sorry about my english

like image 719
Omar Abdan Avatar asked Nov 03 '22 15:11

Omar Abdan


1 Answers

If application stores data in SDCard then you must backup that data also.... the path of that data is "/mnt/sdcard/Android/data/Packagename/".

like image 106
Hardikgiri Goswami Avatar answered Nov 09 '22 14:11

Hardikgiri Goswami