API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.app.Dialog

Added interface android.view.View.OnCreateContextMenuListener.

Removed Methods
ViewInflate getViewInflate()  
void setCancelListener(OnCancelListener) Set a listener to be invoked when the dialog is canceled.
 

Added Methods
void closeOptionsMenu() @see Activity#closeOptionsMenu()
LayoutInflater getLayoutInflater()  
Activity getOwnerActivity() Returns the Activity that owns this Dialog.
int getVolumeControlStream() @see Activity#getVolumeControlStream()
void hide() Hide the dialog, but do not dismiss it.
boolean isShowing() @return Whether the dialog is currently showing.
boolean onContextItemSelected(MenuItem) @see Activity#onContextItemSelected(MenuItem)
void onContextMenuClosed(Menu) @see Activity#onContextMenuClosed(Menu)
void onCreate(Bundle) Similar to Activity.onCreate, you should initialized your dialog in this method, including calling .setContentView.
void onCreateContextMenu(ContextMenu, View, ContextMenuInfo) @see Activity#onCreateContextMenu(ContextMenu, View, ContextMenuInfo)
boolean onCreateOptionsMenu(Menu) It is usually safe to proxy this call to the owner activity's Activity.onCreateOptionsMenu(Menu) if the client desires the same menu for this Dialog.
boolean onMenuOpened(int, Menu) @see Activity#onMenuOpened(int, Menu)
boolean onOptionsItemSelected(MenuItem) @see Activity#onOptionsItemSelected(MenuItem)
void onOptionsMenuClosed(Menu) @see Activity#onOptionsMenuClosed(Menu)
boolean onPrepareOptionsMenu(Menu) It is usually safe to proxy this call to the owner activity's Activity.onPrepareOptionsMenu(Menu) if the client desires the same menu for this Dialog.
void onRestoreInstanceState(Bundle) Restore the state of the dialog from a previously saved bundle.
Bundle onSaveInstanceState() Saves the state of the dialog into a bundle.
void openContextMenu(View) @see Activity#openContextMenu(View)
void openOptionsMenu() @see Activity#openOptionsMenu()
void registerForContextMenu(View) @see Activity#registerForContextMenu(View)
void setCanceledOnTouchOutside(boolean) Sets whether this dialog is canceled when touched outside the window's bounds.
void setDismissMessage(Message) Set a message to be sent when the dialog is dismissed.
void setOnCancelListener(OnCancelListener) Set a listener to be invoked when the dialog is canceled.
void setOnDismissListener(OnDismissListener) Set a listener to be invoked when the dialog is dismissed.
void setOnKeyListener(OnKeyListener) Sets the callback that will be called if a key is dispatched to the dialog.
void setOwnerActivity(Activity) Sets the Activity that owns this dialog.
void setVolumeControlStream(int) By default, this will use the owner Activity's suggested stream type.
void unregisterForContextMenu(View) @see Activity#unregisterForContextMenu(View)
 

Changed Methods
boolean onMenuItemSelected(int, MenuItem) Change in signature from (int, Item) to (int, MenuItem).
@see Activity#onMenuItemSelected(int, MenuItem)
 

Removed Fields
Message mCancelMessage  
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff