super.onCreate(savedInstanceState); FrameLayout content = new FrameLayout(this); mTextureView = new TextureView(this); mTextureView.setSurfaceTextureListener(this); mTextureView.setOpaque(false); content.addView(mTextureView, new FrameLayout.LayoutParams(500, 500, Gravity.CENTER)); setContentView(content);
mThread = new RenderingThread(mTextureView); mThread.start();
if (mThread != null) mThread.stopRendering(); return true;
// Ignored