Rev 2 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package com.gebauz.pingK;
import android.app.Activity;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
public class GameActivity
extends Activity
{
/** Called when the activity is first created. */
@
Override
public void onCreate
(Bundle savedInstanceState
) {
super.
onCreate(savedInstanceState
);
getWindow
().
setFormat(PixelFormat.
TRANSLUCENT);
getWindow
().
setWindowAnimations(0);
requestWindowFeature
(Window.
FEATURE_NO_TITLE);
getWindow
().
setFlags(WindowManager.
LayoutParams.
FLAG_FULLSCREEN, WindowManager.
LayoutParams.
FLAG_FULLSCREEN);
// mGameView = new GameView(this, );
setContentView
(R.
layout.
main);
// addContentView(mGameView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
}
protected void onResume
() {
super.
onResume();
}
protected void onPause
() {
super.
onPause();
GameView view =
(GameView
)findViewById
(R.
id.
gameview);
view.
onPause();
}
}