This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

0.4 release

  • Loading branch information...
Marcel Bokhorst
Marcel Bokhorst committed Feb 11, 2012
1 parent 70b1439 commit 2b07ac3cd67e561a699a17618cc2cd681c108b6f
View
@@ -3,5 +3,6 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="output" path="bin"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
View
@@ -1,2 +1,3 @@
bin/
gen/
+.settings
View
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="biz.bokhorst" android:versionCode="3" android:versionName="0.3">
+ package="biz.bokhorst" android:versionCode="4" android:versionName="0.4">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-sdk android:minSdkVersion="7" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
View
@@ -70,6 +70,10 @@ Other application options:
* Min. accuracy: tracking will stop after this accuracy has been reached (default 20 meters)
* Geocode count: the number of addresses to show when reverse geocoding (default 5 addresses)
+Changelog
+---------
+See [here](http://wordpress.org/extend/plugins/backpacktrack-for-android/changelog/ "changelog")
+
Frequently Asked Questions
--------------------------
@@ -79,7 +83,7 @@ Read [here](http://blog.bokhorst.biz/5283/computers-en-internet/backpacktrack-fo
**Where can I download the Android application?**
-This is the [direct download link](https://github.com/downloads/M66B/BackPackTrack/BackPackTrack.apk "BackPackTrack for Android") to the latest version
+This is the [direct download link](https://github.com/downloads/M66B/BackPackTrack/BackPackTrack.0.4.apk "BackPackTrack for Android") to the latest version
on the [github project page](https://github.com/M66B/BackPackTrack "Android application").
**Why does the time of the locations differ from the clock time?**
View
@@ -1,36 +0,0 @@
--optimizationpasses 5
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class * extends android.app.backup.BackupAgentHelper
--keep public class * extends android.preference.Preference
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native <methods>;
-}
-
--keepclasseswithmembernames class * {
- public <init>(android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembernames class * {
- public <init>(android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
@@ -4,7 +4,7 @@
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
@@ -1,22 +1,23 @@
package biz.bokhorst;
/*
- Copyright 2011 Marcel Bokhorst
+ Copyright 2011, 2012 Marcel Bokhorst
+ All Rights Reserved
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
import java.util.List;
@@ -72,17 +73,21 @@ public void onCreate(Bundle savedInstanceState) {
debug = isDebugBuild();
} catch (Exception e) {
}
- String apikey = debug ? getString(R.string.mvApikeyDebug) : getString(R.string.mvApikeyRelease);
+ String apikey = debug ? getString(R.string.mvApikeyDebug)
+ : getString(R.string.mvApikeyRelease);
// Create map view
mapView = new MapView(this, apikey);
mapView.setClickable(true);
- MapView.LayoutParams mvlp = new MapView.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
- ViewGroup.LayoutParams.FILL_PARENT, 0, 0, MapView.LayoutParams.CENTER);
+ MapView.LayoutParams mvlp = new MapView.LayoutParams(
+ ViewGroup.LayoutParams.FILL_PARENT,
+ ViewGroup.LayoutParams.FILL_PARENT, 0, 0,
+ MapView.LayoutParams.CENTER);
mapView.setLayoutParams(mvlp);
// Create layout
- RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,
+ RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
+ RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.FILL_PARENT);
RelativeLayout rl = new RelativeLayout(this);
rl.setLayoutParams(lp);
@@ -103,7 +108,8 @@ public void onCreate(Bundle savedInstanceState) {
// Get map bounds
double minLat = Double.MAX_VALUE, maxLat = Double.MIN_VALUE;
double minLon = Double.MAX_VALUE, maxLon = Double.MIN_VALUE;
- String trackName = preferences.getString(Preferences.PREF_TRACKNAME, Preferences.PREF_TRACKNAME_DEFAULT);
+ String trackName = preferences.getString(Preferences.PREF_TRACKNAME,
+ Preferences.PREF_TRACKNAME_DEFAULT);
Cursor c = databaseHelper.getPointList(trackName, true);
c.moveToNext();
while (!c.isAfterLast()) {
@@ -128,7 +134,8 @@ public void onCreate(Bundle savedInstanceState) {
GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lon * 1E6));
MapController mc = mapView.getController();
mc.setCenter(p);
- mc.zoomToSpan((int) ((maxLat - minLat) * 1E6), (int) ((maxLon - minLon) * 1E6));
+ mc.zoomToSpan((int) ((maxLat - minLat) * 1E6),
+ (int) ((maxLon - minLon) * 1E6));
}
// Apply overlay
@@ -188,24 +195,30 @@ public boolean onOptionsItemSelected(MenuItem item) {
class MapOverlay extends com.google.android.maps.Overlay {
@Override
- public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) {
+ public boolean draw(Canvas canvas, MapView mapView, boolean shadow,
+ long when) {
super.draw(canvas, mapView, shadow);
// Get current tags
- String trackName = preferences.getString(Preferences.PREF_TRACKNAME, Preferences.PREF_TRACKNAME_DEFAULT);
+ String trackName = preferences.getString(
+ Preferences.PREF_TRACKNAME,
+ Preferences.PREF_TRACKNAME_DEFAULT);
// Draw waypoints
Cursor cTP = databaseHelper.getPointList(trackName, true);
cTP.moveToNext();
while (!cTP.isAfterLast()) {
- GeoPoint p = new GeoPoint((int) (cTP.getDouble(cTP.getColumnIndex("LATITUDE")) * 1E6), (int) (cTP
- .getDouble(cTP.getColumnIndex("LONGITUDE")) * 1E6));
+ GeoPoint p = new GeoPoint(
+ (int) (cTP.getDouble(cTP.getColumnIndex("LATITUDE")) * 1E6),
+ (int) (cTP.getDouble(cTP.getColumnIndex("LONGITUDE")) * 1E6));
Point screenPts = new Point();
mapView.getProjection().toPixels(p, screenPts);
- Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.marker);
- canvas.drawBitmap(bmp, screenPts.x, screenPts.y - bmp.getHeight(), null);
+ Bitmap bmp = BitmapFactory.decodeResource(getResources(),
+ R.drawable.marker);
+ canvas.drawBitmap(bmp, screenPts.x,
+ screenPts.y - bmp.getHeight(), null);
cTP.moveToNext();
}
cTP.close();
@@ -223,8 +236,9 @@ public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) {
Cursor cWpt = databaseHelper.getPointList(trackName, false);
cWpt.moveToNext();
while (!cWpt.isAfterLast()) {
- GeoPoint p = new GeoPoint((int) (cWpt.getDouble(cWpt.getColumnIndex("LATITUDE")) * 1E6), (int) (cWpt
- .getDouble(cWpt.getColumnIndex("LONGITUDE")) * 1E6));
+ GeoPoint p = new GeoPoint(
+ (int) (cWpt.getDouble(cWpt.getColumnIndex("LATITUDE")) * 1E6),
+ (int) (cWpt.getDouble(cWpt.getColumnIndex("LONGITUDE")) * 1E6));
if (prev != null) {
Point p1 = new Point();
Point p2 = new Point();
Oops, something went wrong.

0 comments on commit 2b07ac3

Please sign in to comment.