我用的是android4.2.1版本的。
我代码中有这几句的时候主界面出不来,就是一闪而过,注释掉界面能出来。是什么原因??
videoSurfaceView = (SurfaceView) findViewById(R.id.videoSurfaceView);
videoSurfaceHolder = videoSurfaceView.getHolder();
videoSurfaceHolder.addCallback(this);
videoSurfaceHolder.setFixedSize(176,144);
这是报错:
我代码中有这几句的时候主界面出不来,就是一闪而过,注释掉界面能出来。是什么原因??
videoSurfaceView = (SurfaceView) findViewById(R.id.videoSurfaceView);
videoSurfaceHolder = videoSurfaceView.getHolder();
videoSurfaceHolder.addCallback(this);
videoSurfaceHolder.setFixedSize(176,144);
这是报错:
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货