FileDocCategorySizeDatePackage
ClearTop.javaAPI DocAndroid 5.1 API1680Thu Mar 12 22:22:12 GMT 2015android.app.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();