Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //Usage example.
  2. //used in https://play.google.com/store/apps/developer?id=PAKAL+In+Android     
  3.         function backupDatabase(){
  4.             var d   = new LocalBackup();
  5.  
  6.             d.run({
  7.                 packageName : "org.mypackage.example",
  8.                 backupName : "mypath/myfile.ext"
  9.                 });
  10.  
  11.         }
  12.         function restoreDatabase(filename){
  13.             var d   = new LocalBackup();
  14.             d.restore({
  15.                 packageName : "org.mypackage.example",
  16.                 backupName : "mypath/myfile.ext"
  17.                 });
  18.         }