onActivityResult is never called in TabActivity

后端 未结 4 2090
谎友^
谎友^ 2021-01-21 17:39

I know there are tons of the same questions, but still OnActivityResult is not being called.

This is my code

Activity A:

        Intent i = new          


        
4条回答
  •  醉梦人生
    2021-01-21 18:03

    Try adding an intent to the result, this code works for me:

    Intent in = new Intent(); 
    setResult(101, in);
    finish();
    

提交回复
热议问题