Solve problem with eac gui binding
package org.openecard.android.lib.activities;
+import android.content.Context;
import android.content.Intent;
import android.net.Uri;
-import org.openecard.android.lib.async.tasks.WaitForEacGuiTask;
import org.openecard.android.lib.async.tasks.BindingTaskResult;
import org.openecard.android.lib.async.tasks.WaitForCardRecognizedTask;
import org.openecard.android.lib.ex.BindingTaskStillRunning;
@@ -34,6 +34,7 @@ import org.openecard.android.lib.intent.binding.IntentBinding;
import org.openecard.android.lib.services.EacServiceConnection;
import org.openecard.android.lib.services.ServiceConnectionResponseHandler;
import org.openecard.gui.android.eac.EacGui;
+import org.openecard.gui.android.eac.EacGuiService;
/**
@@ -97,6 +98,11 @@ public abstract class EacActivity extends NfcActivity implements BindingTaskResu
return mEacGuiConnection.getEacGui();
}
+ public synchronized void bindEacGui() {
+ EacServiceConnection con = getServiceConnection();
+ bindService(new Intent(getApplicationContext(), EacGuiService.class), con, Context.BIND_AUTO_CREATE);
+ }
+
public synchronized EacServiceConnection getServiceConnection() {
return mEacGuiConnection;
}
