linphone-android/src/android/org/linphone/LinphoneGenericActivity.java
2017-04-05 11:40:22 +02:00

21 lines
577 B
Java

package org.linphone;
import android.app.Activity;
import android.os.Bundle;
public class LinphoneGenericActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*After a crash, Android restart the last Activity so we need to check
* if all dependencies are load
*/
if (!LinphoneManager.isInstanciated()) {
finish();
startActivity(getIntent().setClass(this, LinphoneLauncherActivity.class));
return;
}
}
}