Fixed super.oncreate() not called

This commit is contained in:
Guillaume Beraudo 2010-11-12 14:13:35 +01:00
parent 88efcbf6eb
commit c77cf319ad
2 changed files with 1 additions and 7 deletions

View file

@ -316,13 +316,6 @@ public class LinphoneService extends Service implements LinphoneCoreListener {
throw new LinphoneConfigException(getString(R.string.wrong_settings),e);
}
boolean isVideoEnabled = mPref.getBoolean(getString(R.string.pref_video_enable_key),false);
if (isVideoEnabled) {
try {
System.loadLibrary("msandroiddisplay");
} catch (Throwable e) {
Log.e(TAG, "cannot load video plugin", e);
}
}
mLinphoneCore.enableVideo(isVideoEnabled, isVideoEnabled);
//1 read proxy config from preferences
String lUserName = mPref.getString(getString(R.string.pref_username_key), null);

View file

@ -28,6 +28,7 @@ public class VideoCallActivity extends Activity {
SurfaceView mVideoView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.videocall);
mVideoView = (SurfaceView) findViewById(R.id.video_surface);
LinphoneService.instance().getLinphoneCore().setVideoWindow((Object) mVideoView) ;