Android getting RESULT_CANCELED when I specifically add RESULT_OK

前端 未结 3 1183
醉梦人生
醉梦人生 2020-12-18 19:22

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

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 19:52

    Use this

      Intent returnIntent = new Intent();
      setResult(RESULT_OK,returnIntent); 
    

    instead of

    setResult(RESULT_OK);
    

    only

提交回复
热议问题