diff --git a/UNCCScavenger/AndroidManifest.xml b/UNCCScavenger/AndroidManifest.xml
index 21706c5..950652e 100644
--- a/UNCCScavenger/AndroidManifest.xml
+++ b/UNCCScavenger/AndroidManifest.xml
@@ -6,7 +6,8 @@
+ android:targetSdkVersion="19" />
+
getLocations() {
- return getAdapter().listLocations();
+ try {
+ // Inline AsyncTask
+ return new AsyncTask>() {
+ @Override
+ protected List doInBackground(Void... params) {
+ // Work happens here
+ return getAdapter().listLocations();
+ }
+ }.get();
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (ExecutionException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return null;
}
}