FileDocCategorySizeDatePackage
Fountain.javaAPI DocAndroid 5.1 API2521Thu Mar 12 22:22:44 GMT 2015com.example.android.rs.fountain

Fountain

public class Fountain extends android.app.Activity

Fields Summary
private static final String
LOG_TAG
private static final boolean
DEBUG
private static final boolean
LOG_ENABLED
private FountainView
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 FountainView(this);
        setContentView(mView);
    
protected voidonPause()

        Log.e("rs", "onPause");

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



        //Runtime.getRuntime().exit(0);
    
protected voidonResume()

        Log.e("rs", "onResume");

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