Configures the Intent to return to CommCare the features.

parent a0078ce9
...@@ -5,6 +5,8 @@ import android.app.ProgressDialog; ...@@ -5,6 +5,8 @@ import android.app.ProgressDialog;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import com.aluxoft.earrecognition.activities.SelectUserActivity;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import bolts.Continuation; import bolts.Continuation;
...@@ -34,8 +36,13 @@ public class IntentTransferingFeatures extends Activity { ...@@ -34,8 +36,13 @@ public class IntentTransferingFeatures extends Activity {
}).continueWith(new Continuation<Object, Object>() { }).continueWith(new Continuation<Object, Object>() {
@Override @Override
public Object then(Task<Object> task) throws Exception { public Object then(Task<Object> task) throws Exception {
Intent returningIntent = new Intent(getIntent()); Intent returningIntent = new Intent(getIntent());
returningIntent.putExtra("odk_intent_data", "The feature data should be here."); returningIntent.putExtra(
"odk_intent_data",
//"Hello World"
SelectUserActivity.currentSerializedEar
);
IntentTransferingFeatures.this.setResult(Activity.RESULT_OK, returningIntent); IntentTransferingFeatures.this.setResult(Activity.RESULT_OK, returningIntent);
finish(); finish();
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment