android - Activity.setResult(int) and Activity lifecycle -


does activity keep result after activity.setresult(int) invoked , device rotated before pressing button (activity recreated)?

it seems activity not restore kind of information. if case, should restore result using bundle , invoke setresult again?

in word, yes. result isn't returned until call finish(). setresult() presumes activity setting result (call activity b) started call startactivityforresult() activity (call activity a). presumption activity b finish, resulting in automatic return activity b.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -