English | Site Directory

Android - An Open Handset Alliance Project

android.app
public class

android.app.ProgressDialog

java.lang.Object
android.app.Dialog DialogInterface KeyEvent.Callback Window.Callback
android.app.ProgressDialog

A dialog showing a progress indicator and an optional text message or view. Only a text message or a view can be used at the same time.

The dialog can be made cancelable on back key press.

The progress range is 0..10000.

Summary

Constants inherited from interface android.content.DialogInterface
Fields inherited from class android.app.Dialog

Public Constructors

          ProgressDialog(Context context)
          ProgressDialog(Context context, int theme)

Public Methods

        void  dismiss()
Dismiss this dialog, removing it from the screen.
        void  onStart()
Called when the dialog is starting.
        void  setContentView(View contentView)
Set the screen content to an explicit view.
        void  setIndeterminate(boolean indeterminate)
        void  setMessage(CharSequence message)
        void  setProgress(int value)
        void  setTitle(CharSequence title)
Set the title text for this dialog's window.
      static  ProgressDialog  show(Context context, CharSequence title, CharSequence message)
      static  ProgressDialog  show(Context context, CharSequence title, CharSequence message, boolean indeterminate)
      static  ProgressDialog  show(Context context, CharSequence title, View contentView, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener)
      static  ProgressDialog  show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable)
      static  ProgressDialog  show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener)
      static  ProgressDialog  show(Context context, CharSequence title, View contentView)
      static  ProgressDialog  show(Context context, CharSequence title, View contentView, boolean indeterminate)
      static  ProgressDialog  show(Context context, CharSequence title, View contentView, boolean indeterminate, boolean cancelable)
Methods inherited from class android.app.Dialog
Methods inherited from class java.lang.Object
Methods inherited from interface android.content.DialogInterface
Methods inherited from interface android.view.KeyEvent.Callback
Methods inherited from interface android.view.Window.Callback

Details

Public Constructors

public ProgressDialog(Context context)

public ProgressDialog(Context context, int theme)

Public Methods

public void dismiss()

Dismiss this dialog, removing it from the screen. This method can be invoked safely from any thread.

public void onStart()

Called when the dialog is starting.

public void setContentView(View contentView)

Set the screen content to an explicit view. This view is placed directly into the screen's view hierarchy. It can itself be a complex view hierarhcy.

Parameters

contentView The desired content to display.

public void setIndeterminate(boolean indeterminate)

public void setMessage(CharSequence message)

public void setProgress(int value)

public void setTitle(CharSequence title)

Set the title text for this dialog's window.

Parameters

title The new text to display in the title.

public static ProgressDialog show(Context context, CharSequence title, CharSequence message)

public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate)

public static ProgressDialog show(Context context, CharSequence title, View contentView, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener)

public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable)

public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener)

public static ProgressDialog show(Context context, CharSequence title, View contentView)

public static ProgressDialog show(Context context, CharSequence title, View contentView, boolean indeterminate)

public static ProgressDialog show(Context context, CharSequence title, View contentView, boolean indeterminate, boolean cancelable)

Build m5-rc15g - 14 May 2008 12:50