Exemplo n.º 1
0
 private boolean validateInputValue() {
   if (TextUtils.isEmpty(getText(mPhoneNoEdit))) {
     App.showShortToast(getString(R.string.info_please_input_phone_no));
     return false;
   }
   if (!StringUtil.validatePhoneNo(mPhoneNoEdit)) {
     App.showShortToast(getString(R.string.info_phone_invalidate));
     return false;
   }
   if (TextUtils.isEmpty(getText(mPasswordEdit))) {
     App.showShortToast(getString(R.string.info_please_input_pwd));
     return false;
   }
   return true;
 }
Exemplo n.º 2
0
 public void doPhoneCall(final String mobile) {
   if (!TelephonyUtil.isSIMCardEnable(getActivity())) {
     App.showShortToast(getString(R.string.info_unfind_sim_card));
     return;
   }
   TelephonyUtil.phoneCall(getActivity(), mobile);
   releaseHandleBtnlock();
 }