diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-03-06 15:11:31 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-03-06 15:11:31 +0000 |
commit | 4a45362d8823a84cf9c3c805c006331303a0da33 (patch) | |
tree | daf44d72c5a39a057955e71fecfe576361e0a623 /src/net/cbaines/suma | |
parent | a722eac92e7154563bd144ad91b092d23dae8f2a (diff) | |
download | southamptonuniversitymap-4a45362d8823a84cf9c3c805c006331303a0da33.tar southamptonuniversitymap-4a45362d8823a84cf9c3c805c006331303a0da33.tar.gz |
Bumped android:minSdkVersion to 8, as implementing search stuff.dev-search
Diffstat (limited to 'src/net/cbaines/suma')
-rw-r--r-- | src/net/cbaines/suma/Bus.java | 3 | ||||
-rw-r--r-- | src/net/cbaines/suma/MapActivity.java | 2 | ||||
-rw-r--r-- | src/net/cbaines/suma/SearchActivity.java (renamed from src/net/cbaines/suma/FindActivity.java) | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/net/cbaines/suma/Bus.java b/src/net/cbaines/suma/Bus.java index 34e20a6..9894e6b 100644 --- a/src/net/cbaines/suma/Bus.java +++ b/src/net/cbaines/suma/Bus.java @@ -35,6 +35,9 @@ public class Bus { final static String ROUTE_FIELD_NAME = "route"; final static String DIRECTION_FIELD_NAME = "direction"; + @DatabaseField(generatedId = true) + int gid; + /** * The identification number of the bus. */ diff --git a/src/net/cbaines/suma/MapActivity.java b/src/net/cbaines/suma/MapActivity.java index 6c4664e..e966b57 100644 --- a/src/net/cbaines/suma/MapActivity.java +++ b/src/net/cbaines/suma/MapActivity.java @@ -326,7 +326,7 @@ public class MapActivity extends ToastHelperActivity implements MapViewConstants @Override public boolean onSearchRequested() { Bundle appData = new Bundle(); - appData.putInt(FindActivity.ORIGIN, FindActivity.MAP_ACTIVITY); + appData.putInt(SearchActivity.ORIGIN, SearchActivity.MAP_ACTIVITY); startSearch(null, false, appData, false); return true; } diff --git a/src/net/cbaines/suma/FindActivity.java b/src/net/cbaines/suma/SearchActivity.java index 5a07807..f7f5e55 100644 --- a/src/net/cbaines/suma/FindActivity.java +++ b/src/net/cbaines/suma/SearchActivity.java @@ -53,7 +53,7 @@ import com.j256.ormlite.dao.Dao; import com.j256.ormlite.stmt.PreparedQuery; import com.j256.ormlite.stmt.QueryBuilder; -public class FindActivity extends OrmLiteBaseActivity<DatabaseHelper> implements Runnable, TextWatcher, +public class SearchActivity extends OrmLiteBaseActivity<DatabaseHelper> implements Runnable, TextWatcher, OnItemClickListener, LocationListener, OnItemLongClickListener { final static String TAG = "FindActivity"; |