I have explained two ways of Shared Prefrences in android