onActivityResult not getting called from other app

I want to start one app from other app and return the result back to calling application.

I've used following code to start activity of other application from fragment.

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra(Constants.KEY_SHOULD_DISPLAY_IMPORT_PROFILE_POPUP, true);
intent.setComponent(new ComponentName(oldAppPackageName, "com.activities.MainActivity"));
startActivityForResult(intent, IMPORT_PROFILE_PERMISSION);

and used following code in fragment to set result

        Bundle bundle = new Bundle();
        bundle.putSerializable(Constants.KEY_USER_PROFILE, AccountManager.getInstance().getUserProfile());
        bundle.putBoolean(Constants.KEY_IS_FROM_OLD_APP, true)

        Intent intent = new Intent();
        intent.putExtra(Constants.KEY_USER_PROFILE_OBJECT, bundle);
        getActivity().setResult(IMPORT_PROFILE_PERMISSION, intent);
        getActivity().finish();

But onActivityResult() method is not getting called.

Any help would be appreciated.