English | Site Directory

Android - An Open Handset Alliance Project

android.content
public static interface

android.content.DialogInterface.OnClickListener

android.content.DialogInterface.OnClickListener

Interface used to allow the creator of a dialog to run some code when the dialog is canceled.

Summary

Public Methods

        void  onClick(DialogInterface dialog, int which)
This method will be invoked when a button in the dialog is clicked.

Details

Public Methods

public void onClick(DialogInterface dialog, int which)

This method will be invoked when a button in the dialog is clicked.

Parameters

dialog The dialog that was cancelled will be passed into the method.
which The button that was clicked, i.e. BUTTON1 or BUTTON2 or the position of the item clicked.
Build m5-rc15g - 14 May 2008 12:50