FileDocCategorySizeDatePackage
ConfirmationActivity.javaAPI DocAndroid 5.1 API980Thu Mar 12 22:22:44 GMT 2015com.android.statusbartest

ConfirmationActivity

public class ConfirmationActivity extends android.app.Activity

Fields Summary
public static final String
EXTRA_TITLE
public static final String
EXTRA_TEXT
Constructors Summary
Methods Summary
private java.lang.StringgetTextExtra(java.lang.String extra, java.lang.String def)

        final String text = getIntent().getStringExtra(extra);
        if (text == null) {
            return def;
        } else {
            return text;
        }
    
public voidonResume()


    
       
        super.onResume();
        setContentView(R.layout.confirmation_activity);
        setTitle(getTextExtra(EXTRA_TITLE, "Title"));
        ((TextView)findViewById(R.id.text)).setText(getTextExtra(EXTRA_TEXT, "text"));
        findViewById(R.id.ok).setOnClickListener(new View.OnClickListener() {
                public void onClick(View v) {
                    finish();
                }
            });