@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(); } }
@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"); }
/** 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(""); }