question: public static void startUploadActivityForResult ( Activity activity , Account account , int requestCode ) { Intent action = new Intent ( activity , UploadFilesActivity . class ) ; action . putExtra ( EXTRA_ACCOUNT , ( account ) ) ; activity . startActivityForResult ( action , requestCode ) ; }
target:  Helper to launch the UploadFilesActivity for which you would like a result when it finished. Your onActivityResult() method will be called with the given requestCode.