FileDocCategorySizeDatePackage
RSTest_v14.javaAPI DocAndroid 5.1 API2632Thu Mar 12 22:22:54 GMT 2015com.android.rs.test_v14

RSTest_v14

public class RSTest_v14 extends android.app.Activity

Fields Summary
private static final String
LOG_TAG
private static final boolean
DEBUG
private static final boolean
LOG_ENABLED
private RSTestView
mView
Constructors Summary
Methods Summary
static voidlog(java.lang.String message)

        if (LOG_ENABLED) {
            Log.v(LOG_TAG, message);
        }
    
public voidonCreate(android.os.Bundle icicle)


    // get the current looper (from your Activity UI thread for instance

    
        
        super.onCreate(icicle);

        // Create our Preview view and set it as the content of our
        // Activity
        mView = new RSTestView(this);
        setContentView(mView);
    
protected voidonPause()

        // Ideally a game should implement onResume() and onPause()
        // to take appropriate action when the activity loses focus
        super.onPause();
        mView.pause();
    
protected voidonResume()

        // Ideally a game should implement onResume() and onPause()
        // to take appropriate action when the activity loses focus
        super.onResume();
        mView.resume();
    
protected voidonStop()

        // Actually kill the app if we are stopping. We don't want to
        // continue/resume this test ever. It should always start fresh.
        finish();
        super.onStop();