예제 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.outputui);

    // 2 parameters were passed to this activity, retrieve those here
    Intent intent = getIntent();
    String searchResult = intent.getStringExtra(BlueMobileApp._SEARCH_RESULT_MSG);
    String seeds = intent.getStringExtra(BlueMobileApp._KEYWORD_MSG);

    Log.i("Response in output", searchResult);

    try {
      matchResponse = MatchResponse.formatResponse(searchResult, seeds);
    } catch (JSONException e) {
      e.printStackTrace();
    }

    expListViewTips = (ExpandableListView) findViewById(R.id.lv_Tips);

    expListViewTips.setVisibility(View.VISIBLE);
    showTips();
  }
예제 #2
0
  private ArrayList<QuestionAnswer> GetTipsResults() {

    ArrayList<QuestionAnswer> results = matchResponse.getQAList();
    return results;
  }