Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/DialogueBoxNativeInterface.java
/**
     * Display the systems dialog 
     * 
     * @author Ian Copland
     * 
     * @param ID that is returned in pressed delegate 
     * @param Title text
     * @param Message text
     * @param Confirm text
     */
Display the systems dialog

@author Ian Copland

@param ID that is returned in pressed delegate
@param Title text
@param Message text
@param Confirm text
Display the systems dialog @author Ian Copland @param ID that is returned in pressed delegate @param Title text @param Message text @param Confirm text
public void showSystemDialogue(final int in_dialogID, final String in_title, final String in_message, final String in_confirm)		
    {
    	final DialogueBoxNativeInterface dialogueBoxNativeInterface = this;
    	CSApplication.get().scheduleUIThreadTask(new Runnable() 
        {
        	public void run()
        	{
        		new AlertDialog.Builder(CSApplication.get().getActivityContext())
        		.setIcon(android.R.drawable.ic_dialog_alert)
        		.setTitle(in_title)
        		.setMessage(in_message)
        		.setPositiveButton(in_confirm, new DialogInterface.OnClickListener() 
        		{
        			@Override public void onClick(DialogInterface dialog, int which) 
        			{
        				dialogueBoxNativeInterface.onDialogueConfirmPressed(in_dialogID);
        			}
        		})
        		.show();
        	}
        });
    }
public void showSystemDialogue ( final int in_dialogID , final String in_title , final String in_message , final String in_confirm ) { final DialogueBoxNativeInterface dialogueBoxNativeInterface = this ; CSApplication . get ( ) . scheduleUIThreadTask ( new Runnable ( ) { public void run ( ) { new AlertDialog . Builder ( CSApplication . get ( ) . getActivityContext ( ) ) . setIcon ( android . R . drawable . ic_dialog_alert ) . setTitle ( in_title ) . setMessage ( in_message ) . setPositiveButton ( in_confirm , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { dialogueBoxNativeInterface . onDialogueConfirmPressed ( in_dialogID ) ; } } ) . show ( ) ; } } ) ; }
Display the systems dialog
Display the systems dialog