I\'m getting a very weird error. I have 2 activities. On both I\'m getting the SharedPreferences using MODE_PRIVATE (if it matters) by sp = g
SharedPreferences
MODE_PRIVATE
sp = g
This is the common mistake which everyone will make with the key , I guess IntroActivity.SHOW_INTRO="xyz_key" if , You use the same "xyz_key" for another Constant this error will occur so the value of key should be unique.. Happy coding :)