Code example for AlertDialog.Builder

Methods: setView

1
		seekBar.setOnSeekBarChangeListener(this);
		layout.addView(seekBar);
 
		updateText(); 
 
		builder.setView(layout);
	} 
 
	/** 
	 * Format seconds into a human-readable time description. 
	 * 
	 * @param value The time, in seconds. 
	 * @return A human-readable string, such as "1 hour, 21 minutes" 
	 */ 
	private String formatTime(int value)
	{ 
		Resources res = getContext().getResources();
		StringBuilder text = new StringBuilder();
		if (value >= 3600) {
			int hours = value / 3600;
Connect your IDE to all the code out there  Get Codota for Java