FileDocCategorySizeDatePackage
ClassZeroActivity.javaAPI DocAndroid 1.5 API1932Wed May 06 22:42:46 BST 2009com.android.mms.ui

ClassZeroActivity

public class ClassZeroActivity extends android.app.Activity
Display a class-zero SMS message to the user. Wait for the user to dismiss it.

Fields Summary
private final android.content.DialogInterface.OnClickListener
mOkListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setBackgroundDrawableResource(
                R.drawable.class_zero_background);

        CharSequence messageChars =  getIntent().getCharSequenceExtra(
                SmsReceiverService.CLASS_ZERO_BODY_KEY);

        new AlertDialog.Builder(this)
                .setMessage(messageChars)
                .setPositiveButton(android.R.string.ok, mOkListener)
                .setCancelable(false)
                .show();