Home > Mobile > Between the Activity in the Android by value
Between the Activity in the Android by value
Time:10-02
If A interface to the B interface and pass the value received, I also want to have A value of the interface to the C and D interface but don't jump to page should to do, the search on the net are jump by value, it's no use ah
CodePudding user response:
Can be broadcast or broadcast,
CodePudding user response:
Demand is not very understand, C and D haven't open (i.e., also did not create an instance object) requires the value to preach in the past?
CodePudding user response:
EventBus
CodePudding user response:
If the interface is C and D in the stack, so long to use ordinary radio or EventBus ordinary events can, if it's not in the stack, it will need to use the sticky broadcast or EventBus viscous events
CodePudding user response:
You this needs no practical significance,
To the two did not open the activity by value is impossible,
May your business needs is not suitable for such value,
You can put the value stored in one place, and so on need to use the value activity starts, in the oncreate method to obtain the value of the file
CodePudding user response:
Ditto C D within the stack, EventBus by value, not in the stack, C, D in A need to use the value of the saved to the SharedPreferences or file, C, D to use value/update the UI