android onActivityResult and onCreate

793 Views Asked by At

I want to know whether onCreate always run at first ?

Because in my app, I must set some values in onCreate at first then use them in onActivityResult.

1

There are 1 best solutions below

0
On

onCreate will always run at some point, but not always immediately before onActivityResult. If the activity has not been destroyed, then onCreate will not be called again before onActivityResult. According to the documentation this method is called just before onResume.