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);
}

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 ) ; }
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 .
