......Look at the examples again. You should only add the keys the first time you open the wallet.....
Thank you after fighting for a whole night ,I fixed it.
BTW where are the examples(officially)?
bro , if u solved , why not post solution , i almost fight one whole night yesterday , finnaly guessed what's wrong and working now .
====>restoredWallet.saveToFile(file);
hope can help following guys . gaga