git-svn-id: https://zxing.googlecode.com/svn/trunk@812 59b500cc-1b3d-0410-9834-0bbf25fbcc57

This commit is contained in:
srowen 2009-01-03 14:25:49 +00:00
parent 3fc5820213
commit 0e253bbad1
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ public final class AddressBookResultHandler extends ResultHandler {
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMdd"); private static final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMdd");
private final boolean[] mFields; private final boolean[] mFields;
private final int mButtonCount; private int mButtonCount;
// This takes all the work out of figuring out which buttons/actions should be in which // This takes all the work out of figuring out which buttons/actions should be in which
// positions, based on which fields are present in this barcode. // positions, based on which fields are present in this barcode.

View file

@ -242,7 +242,7 @@ public abstract class ResultHandler {
launchIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=" + Uri.encode(query)))); launchIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=" + Uri.encode(query))));
} }
public final void getDirections(float latitude, float longitude) { public final void getDirections(double latitude, double longitude) {
launchIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google." + launchIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google." +
LocaleManager.getCountryTLD() + "/maps?f=d&daddr=" + latitude + ',' + longitude))); LocaleManager.getCountryTLD() + "/maps?f=d&daddr=" + latitude + ',' + longitude)));
} }