public static UserAccountFragment getUserAccountFragment(String type) { UserAccountFragment userAccountFragment = new UserAccountFragment(); Bundle bundle = new Bundle(); bundle.putString(STATUS_DASHBOARD, type); userAccountFragment.setArguments(bundle); return userAccountFragment; }