// @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case LIST_FORM: if (resultCode == RESULT_OK) { Bundle extras = data.getExtras(); String filename = extras.getString(FormList.FILE_NAME); String filepath = extras.getString(FormList.FILE_PATH); Intent i = new Intent(getApplicationContext(), ParsingXML.class); i.putExtra(ParsingXML.FILE_NAME, filepath); startActivityForResult(i, PARSING_XML); } else { Utilities.showToast( getApplicationContext(), "Actividad NO devuelve correctamente", Toast.LENGTH_SHORT); } break; case QUESTION_FORM: if (resultCode == RESULT_OK) { Utilities.showToast( getApplicationContext(), "Actividad devuelve correctamente", Toast.LENGTH_SHORT); } else { Utilities.showToast( getApplicationContext(), "Actividad NO devuelve correctamente", Toast.LENGTH_SHORT); } break; case PARSING_XML: break; } }
public void formsSenderButtonOnClickHandler(View target) { Utilities.showToast(this, "Merry XMas!!", Toast.LENGTH_LONG); }