@@ -0,0 +1,987 @@
+package com.catchoom.examples.glass;%0A%0Aimport java.util.ArrayList;%0A%0Aimport android.app.Activity;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0A%0Aimport com.catchoom.api.CatchoomSearchResponseItem;%0Aimport com.google.android.glass.app.Card;%0A%0Apublic class ResultActivity extends Activity%7B%0A%09%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09%0A%09%09Bundle extras= getIntent().getExtras();%0A%09%09ArrayList%3CCatchoomSearchResponseItem%3E results= extras.getParcelableArrayList(%22results%22);%0A%09%09%0A%09%09//In this example we just consider the best match.%0A%09%09//Note that the API can return more than one match, and they are sorted by the confidence score.%0A%09%09CatchoomSearchResponseItem bestMatch= results.get(0);%0A%09%09%0A%09%09//Create a card with the content of the matched image.%0A%09%09Card card = new Card(this);%0A%09%09card.setText(bestMatch.getItemName());%0A%09%09card.setFootnote(bestMatch.getItemId());%0A%0A%09%09View cardView = card.getView();%0A%09%09setContentView(cardView);%0A%09%09%0A%09%7D%0A%7D%0A

Add activity that shows the results