From 05cf6078188c4710ce308c9b8e37190eff8961a7 Mon Sep 17 00:00:00 2001 From: bspeice Date: Wed, 4 Dec 2013 11:22:49 -0500 Subject: [PATCH] Add the RSVP search activity --- src/com/uncc/gameday/activities/Search.java | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/com/uncc/gameday/activities/Search.java diff --git a/src/com/uncc/gameday/activities/Search.java b/src/com/uncc/gameday/activities/Search.java new file mode 100644 index 0000000..0dfeb0f --- /dev/null +++ b/src/com/uncc/gameday/activities/Search.java @@ -0,0 +1,37 @@ +package com.uncc.gameday.activities; + +import java.util.List; + +import android.content.Context; +import android.os.Bundle; + +import com.uncc.gameday.R; +import com.uncc.gameday.registration.Attendee; +import com.uncc.gameday.registration.RegistrationClient; + +public class Search extends MenuActivity { + + List rsvpList; + boolean listFetched = false; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_search_rsvp); + new fetchAttendeesThread(this).start(); + } + + private class fetchAttendeesThread extends Thread { + Context c; + public fetchAttendeesThread(Context c) { + this.c = c; + } + + public void run() { + RegistrationClient client = new RegistrationClient(this.c); + rsvpList = client.listAttendees(); + listFetched = true; + } + } + +}