カメラのプレビューを表示したり、ビデオを再生したりするための TextureView を持つ 2 つのフラグメントがあります。
しばらくアプリを使用して画面を操作した後、logcat にこのエラーが表示されます
OpenGLRenderer﹕ GL_INVALID_OPERATION
フラグメントからすべてを解放すると、すべてのメンバーが null に設定されます。
@Override
public void onDestroyView() {
Logg.DEBUG(TAG, "onDestroyView");
super.onDestroyView();
if (mMediaPlayer != null) {
mMediaPlayer.stop();
mMediaPlayer.release();
mMediaPlayer = null;
}
nextButton = null;
pauseButton = null;
backButton = null;
playButton = null;
frontTextView = null;
backTextView = null;
surface = null;
videoView = null;
}
そして、私は全体のビューが奇妙になるのを見ます...
私は何が欠けていますか?