sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java
public static ProfileFragment createRemoteProfileFragment(String personIdentifer) {
        Bundle b = new Bundle();
        b.putInt(EXTRA_VIEW_MODE, Mode.REMOTE.ordinal());
        b.putString(EXTRA_PERSON_IDENTIFIER, personIdentifer);
        ProfileFragment fragment = new ProfileFragment();
        fragment.setArguments(b);
        return fragment;
    }
public static ProfileFragment createRemoteProfileFragment(String personIdentifer) {
        Bundle b = new Bundle();
        b.putInt(EXTRA_VIEW_MODE, Mode.REMOTE.ordinal());
        b.putString(EXTRA_PERSON_IDENTIFIER, personIdentifer);
        ProfileFragment fragment = new ProfileFragment();
        fragment.setArguments(b);
        return fragment;
    }
Creates a new instance of {@link ProfileFragment} to show the profile of
a remote user. The fragment will allow only to view the fields and not to
modify them.

@param personIdentifer - the identifier of the person whose profile to show
@return an instance of ProfileFragment