This is my problem, I have the main view which only shows one button, pressing this button another view is shown. This view has only another button, when this button is push
Use this
Intent returnIntent = new Intent(); setResult(RESULT_OK,returnIntent);
instead of
setResult(RESULT_OK);
only