private void switchTo(UUID uuid) { Profile p = mProfileManager.getProfile(uuid); if (p != null) { mProfileManager.setActiveProfile(uuid); Toast.makeText( this, String.format(getResources().getString(R.string.profile_selected), p.getName()), Toast.LENGTH_LONG) .show(); NFCProfileUtils.vibrate(this); } }