Code example for ActionMode

Methods: setTitle

	// from ActionMode.Callback 
	public boolean onCreateActionMode(ActionMode mode, Menu menu) 
		Log.d("ScheduleFragment.onCreateActionMode", "creating an action mode");
		mode.setTitle("Make a Reservation");
		return true; 
	// from ActionMode.Callback 
	public void onDestroyActionMode(ActionMode mode) 
		currentPosition = -1; 
		String message =;
		if (!message.isEmpty())
			Context context = getActivity();
			Toast toast = Toast.makeText(context, message, Toast.LENGTH_SHORT);;
Connect your IDE to all the code out there  Get Codota for Java