onActivityResult is never called in TabActivity

后端 未结 4 2137
谎友^
谎友^ 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:18

    Ok i got it, The main issue was that i called the activtiy from within the tab host. I called it from the Activity that contains the tabs (the one that extends TabActivity) and it works.

    So in brief, even though i'm using each tab as an activity,
    the one that should call the startActivityForResult is the main activity that extends TabActivity.

    Thank you all for your help

提交回复
热议问题