write size of tab in TabViews to sdcard only onBackPressed