1

how to set the value of sharedPreferences in other activity?

view story
linux-howto

http://stackoverflow.com – I have two activities in my app. First activity SplashScreen and other SplashActivity. I have sharedPreferences in SplashScreen but i want to set value of this true in SplashActivity. I think If it is possible to create a method in SplashActivity which run only once i.e this method compare the boolean value of SplashScreen (like this is false at start). After first run its set to true forever and this method is skipped. I've tried a lot to do this but not successful. SplashScreen- public class SplashScreen extends Activity { /** Called when the activity is first created. */ TimerTa (HowTos)