Add memory space check routine before saving web storage data
[Title] Add memory space check routine before saving web storage data
[Issue#] N_SE-51170
[Problem] Add time and Add custom Workout delete automatically when reopen the sample ExercisePlanner
[Cause] If phone memory reach low memory, web application cannot save any data and doesn't throuw any error
[Solution] Add memory space before saving web storage data and throw QUATA_EXCEEDED_ERR if there is not enough memory in Phone
Change-Id: Ib93534fe56f48dce0df26c4d25c173dd62c1f53a