October 2018
Intermediate to advanced
464 pages
15h 17m
English
Besides the result code, onActivityResults() also includes a Request Code. Are you wondering where that came from? It is simply the integer value that was passed with the startActivityForResult() call, which takes this form:
startActivityForResult(Intent intent, int requestCode);
We didn't check the request code because we knew we had only one result to handle, but in non-trivial applications with several activities, this value can be used to identify which Activity is returning a result.