src/jpm/dg/MediaActivity.java
/**
	 * Displays a set of source media options for hiding and retrieval.
	 * @param source Denotes the activities request source.
	 * @param instruction The instruction message to display.
	 */
Displays a set of source media options for hiding and retrieval.
@param source Denotes the activities request source.
@param instruction The instruction message to display.
Displays a set of source media options for hiding and retrieval . @param source Denotes the activities request source . @param instruction The instruction message to display .
public void selectionOptions(final int source, String instruction) {
		final String[] items = new String[] { "Gallery", "Camera" };
		final Integer[] icons = new Integer[] { R.drawable.gallery,
				R.drawable.camera };
		Dialogs.showAdapterDialog(this, instruction, new ArrayAdapterWithIcon(
				this, items, icons), new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int item) {
				if (item == 0) {
					getImageFromGallery(source);
				} else {
					getImageFromCamera(source);
				}
			}
		});
	}
public void selectionOptions ( final int source , String instruction ) { final String [ ] items = new String [ ] { "Gallery" , "Camera" } ; final Integer [ ] icons = new Integer [ ] { R . drawable . gallery , R . drawable . camera } ; Dialogs . showAdapterDialog ( this , instruction , new ArrayAdapterWithIcon ( this , items , icons ) , new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int item ) { if ( item == 0 ) { getImageFromGallery ( source ) ; } else { getImageFromCamera ( source ) ; } } } ) ; }
Displays a set of source media options for hiding and retrieval.
Displays a set of source media options for hiding and retrieval .