FileDocCategorySizeDatePackage
DialogActivity.javaAPI DocAndroid 1.5 API1884Wed May 06 22:41:08 BST 2009com.example.android.apis.app

DialogActivity

public class DialogActivity extends android.app.Activity

Dialog Activity

This demonstrates the how to write an activity that looks like a pop-up dialog.

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)
Initialization of the Activity after it is first created. Must at least call {@link android.app.Activity#setContentView setContentView()} to describe what is to be displayed in the screen.

        // Be sure to call the super class.
        super.onCreate(savedInstanceState);
        
        requestWindowFeature(Window.FEATURE_LEFT_ICON);
        
        // See assets/res/any/layout/dialog_activity.xml for this
        // view layout definition, which is being set here as
        // the content of our screen.
        setContentView(R.layout.dialog_activity);
        
        getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, 
                android.R.drawable.ic_dialog_alert);