The startactivityforresult () method was used in a recent App , and there were some problems with it, such as when I Activity A calls the method to jump in activity b , and if a series of actions are completed in b
jump to A Span class= "token MD md-em md-close" > , A in Onactivityresult () , but if the user cancels the operation, such as pressing the back key in B, it will cause a situation where Activity B end, Activity A also
< Span class= "token MD md-em Md-start" >< Span class= "token MD md-em md-close" > End, this is obviously not what we want.
solution: Span class= "token P" > at A in Onactivityresult ()
Super. Onactivityresult (Requestcode, ResultCode, data);
this way, when the user clicks the back button in activity B , activity Ais not ended.
PS: Oneself is more careless, in order to avoid missing train, has developed an application, has the need friend to try. Train Ticket Reminder Assistant
Use the Startactivityforresult () method in Android development to jump from activity A to activity B occurs when B exits with a resolution that also exits at the same time