refactored code in TabViewActivity - OnLongTouchAdapter to lock screen