aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-02-02 10:40:47 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-02-02 10:40:47 +0000
commit08f3ae85b14a11c3010a94b584fcb6eef9350943 (patch)
tree11cce7558d52cd601929f50d476a3a9c5eb9c0fd
parent6072de8f4a9ec4df586ede7f41e0ac97f075c385 (diff)
downloadsouthamptonuniversitymap-08f3ae85b14a11c3010a94b584fcb6eef9350943.tar
southamptonuniversitymap-08f3ae85b14a11c3010a94b584fcb6eef9350943.tar.gz
More changes, not sure what.
-rw-r--r--AndroidManifest.xml1
-rw-r--r--project.properties2
-rw-r--r--src/net/cbaines/suma/DataHandler.java2
-rw-r--r--src/net/cbaines/suma/SouthamptonUniversityMapActivity.java6
4 files changed, 6 insertions, 5 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bc4a89b..653da30 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -5,7 +5,6 @@
android:versionName="0.2.2 (alpha)" >
<uses-sdk android:minSdkVersion="7" />
- <uses-sdk android:targetSdkVersion="10" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
diff --git a/project.properties b/project.properties
index f049142..5a70945 100644
--- a/project.properties
+++ b/project.properties
@@ -8,4 +8,4 @@
# project structure.
# Project target.
-target=android-10
+target=android-7
diff --git a/src/net/cbaines/suma/DataHandler.java b/src/net/cbaines/suma/DataHandler.java
index f6263da..f564d19 100644
--- a/src/net/cbaines/suma/DataHandler.java
+++ b/src/net/cbaines/suma/DataHandler.java
@@ -81,7 +81,7 @@ public class DataHandler extends DefaultHandler {
@Override
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("trkpt")) {
- Log.v("DataHandler", "Adding point to route overlay " + atts.getValue("lat") + " " + atts.getValue("lon"));
+ // Log.v("DataHandler", "Adding point to route overlay " + atts.getValue("lat") + " " + atts.getValue("lon"));
_data.addPoint(Util.csLatLongToGeoPoint(atts.getValue("lat"), atts.getValue("lon")));
}
}
diff --git a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
index 927f41e..52b3e1f 100644
--- a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
+++ b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
@@ -138,8 +138,10 @@ public class SouthamptonUniversityMapActivity extends OrmLiteBaseActivity<Databa
pastOverlays = (HashMap<String, Overlay>) getLastNonConfigurationInstance();
// SensorManager mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); This code in the following constructor causes problems in
- // some emulators, disable there sensors to fix.
+ // some emulators, disable sensors to fix.
+ Log.i(TAG, "Starting creating myLocationOverlay");
myLocationOverlay = new MyLocationOverlay(instance, mapView);
+ Log.i(TAG, "Finished creating myLocationOverlay");
while (databaseThread.isAlive()) {
Thread.yield();
@@ -241,7 +243,7 @@ public class SouthamptonUniversityMapActivity extends OrmLiteBaseActivity<Databa
// of your application so we are gonna be able to overwrite that database with our database.
Log.i(TAG, "GetReadableDatabase");
helper.getWritableDatabase().close();
-
+
helper.copyDataBase();
Log.i(TAG, "Out of copy database");
} catch (IOException ioe) {