如何在 savedInstancestate 和 resotreInstancestate 上处理 Customview?Customview 包含流式视频。一旦我进入下一个活动并进入上一个活动,流式视频将不可见。如何处理?
MjpegView container = (MjpegView)findViewById(R.id.video1_surface);
container.setSource(MjpegInputStream.read(Url));
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
}
谁能帮我。