@Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mInputBar.onSaveInstanceState(outState);
   try {
     JSONObject jsonObject = mInputBar.getPostDraft(mEditContent.toString());
     outState.putString("PostDraft", jsonObject.toString());
   } catch (JSONException e) {
     e.printStackTrace();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Пример #2
0
 @Override
 public void afterTextChanged(Editable s) {
   mClearAddress.setVisibility(
       mAutoCompleteTextView.toString().length() > 0 ? View.VISIBLE : View.GONE);
   mClearTitle.setVisibility(mTitle.toString().length() > 0 ? View.VISIBLE : View.GONE);
 }
  public void invite(View v) {

    EditText phonenumber = (EditText) this.findViewById(R.id.phonenumber);
    SmsManagerWrapper.sendTextMessage(
        phonenumber.toString(), "Someone wants you to join MobileMoneyApp");
  }
Пример #4
0
 /** Checks to see if any of the EditTexts have empty fields */
 private boolean hasEmptyFields() {
   return usernameEditText.toString().matches("")
       || passwordEditText.toString().matches("")
       || serverHostEditText.toString().matches("")
       || serverPortEditText.toString().matches("");
 }