loading data in splashscreen and saving in onDestory method of the activities