private void hideMainLayoutAndToast(String text){
  mMainLayout.setVisibility(View.GONE);
  mProgressTextView.setVisibility(View.VISIBLE);
  mProgressTextView.setText(text);
}

private void hideMainLayoutAndToast ( String text ) { mMainLayout . setVisibility ( View . GONE ) ; mProgressTextView . setVisibility ( View . VISIBLE ) ; mProgressTextView . setText ( text ) ; }
hide the main layout and display a toast .
