'Can I serialize the paths drawn on canvas for redrawing the paths on relaunch of the application

I have an application which uses the canvas to draw the scribbling done by the user. I have serialised the paths in an external file and kept it in the sd card. when user again launches the application then on a click of (ReDraw) Button I want the saved paths to be redrawn on the canvas. I am not able to redraw the paths. I am retrieving the paths from the file as I debugged and checked the same. But I don't have any idea as why the paths are not getting redrawn. Kindly help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source