Skip to content

Instantly share code, notes, and snippets.

@sanrodari
Created February 25, 2013 15:41
Show Gist options
  • Save sanrodari/5030683 to your computer and use it in GitHub Desktop.
Save sanrodari/5030683 to your computer and use it in GitHub Desktop.

Una posible correción hubiera sido:

EditText emailAddress = (EditText) findViewById(R.id.email_address);
EditText emailSubject = (EditText) findViewById(R.id.email_subject);
EditText emailText = (EditText) findViewById(R.id.email_text);

// Si no le llega nada de información entonces no se ejecutan estas líneas.
if(getIntent().getExtras() != null) {
  emailAddress.setText(getIntent().getExtras().getString("Address"));
  emailSubject.setText(getIntent().getExtras().getString("Subject"));
  emailText.setText(getIntent().getExtras().getString("Text"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment