Android Refresh activity when returns to it

后端 未结 7 1961
Happy的楠姐
Happy的楠姐 2021-02-07 10:41

I need a little help with refreshing one of my activities in my application. I\'m using tab host activity and connecting to web service and downloading some data from one of my

7条回答
  •  逝去的感伤
    2021-02-07 11:24

    If you start your second activity with the method startActivityForResult, when you return to the first activity, onActivityResult of the first activity will be called.

    If you override it, you can refresh your activity from there.

    See more information here and here

提交回复
热议问题