ExampleApp/src/com/altinn/apps/fisher/ui/screen/BaseActivity.java
/**
	 * Dialog Display will be used from this method 
	 * This method will take care of displaying of a message
	 * if currently some dialog is active then first it remove the existing dialog then 
	 * it will display the desired dialog.
	 * @param id
	 */
Dialog Display will be used from this method
This method will take care of displaying of a message
if currently some dialog is active then first it remove the existing dialog then
it will display the desired dialog.
@param id
Dialog Display will be used from this method This method will take care of displaying of a message if currently some dialog is active then first it remove the existing dialog then it will display the desired dialog . @param id
@SuppressWarnings("deprecation")
	public void displayDialog(int id) {
		try {
			if (activeDialogId != -1) {
				hideDialog(activeDialogId);
				showDialog(id);
				activeDialogId = id;
			} else {
				showDialog(id);
				activeDialogId = id;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
@ SuppressWarnings ( "deprecation" ) public void displayDialog ( int id ) { try { if ( activeDialogId != - 1 ) { hideDialog ( activeDialogId ) ; showDialog ( id ) ; activeDialogId = id ; } else { showDialog ( id ) ; activeDialogId = id ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Dialog Display will be used from this method
 This method will take care of displaying of a message
 if currently some dialog is active then first it remove the existing dialog then
 it will display the desired dialog.
Dialog Display will be used from this method This method will take care of displaying of a message if currently some dialog is active then first it remove the existing dialog then it will display the desired dialog .