FileDocCategorySizeDatePackage
ClearTop.javaAPI DocAndroid 1.5 API1691Wed May 06 22:42:02 BST 2009com.android.unit_tests.activity

ClearTop

public class ClearTop extends android.app.Activity

Fields Summary
public static final String
WAIT_CLEAR_TASK
Constructors Summary
public ClearTop()

    
      
    
Methods Summary
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        //Log.i("foo", "Creating: " + this);
        Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK)
                .setClass(this, LocalScreen.class);
        startActivity(intent);
    
public voidonNewIntent(android.content.Intent intent)

        //Log.i("foo", "New intent in " + this + ": " + intent);
        if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
            setResult(RESULT_OK);
        } else {
            setResult(RESULT_CANCELED, new Intent().setAction(
                    "New intent received " + intent + ", expecting action "
                    + TestedScreen.CLEAR_TASK));
        }
        finish();