diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-04-24 20:08:52 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-05-18 21:56:43 +0200 |
commit | a0825983139c99a9799503cafdf0dd0e3ce54a2f (patch) | |
tree | b018b9f0c42add75593656f90648a319aa98a8db /main/src/cgeo/geocaching/Trackable.java | |
parent | 916992dc8398db364927a50a8ceb46f3053fce96 (diff) | |
download | cgeo-a0825983139c99a9799503cafdf0dd0e3ce54a2f.zip cgeo-a0825983139c99a9799503cafdf0dd0e3ce54a2f.tar.gz cgeo-a0825983139c99a9799503cafdf0dd0e3ce54a2f.tar.bz2 |
Implement Android Beam (NFC Sharing) for cgeo
To support direct opening of CGEO on the other device, introduce a distinction between getBrowserURL and getCgeoURL in providers.
Diffstat (limited to 'main/src/cgeo/geocaching/Trackable.java')
-rw-r--r-- | main/src/cgeo/geocaching/Trackable.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/Trackable.java b/main/src/cgeo/geocaching/Trackable.java index d532cda..0fe580f 100644 --- a/main/src/cgeo/geocaching/Trackable.java +++ b/main/src/cgeo/geocaching/Trackable.java @@ -38,8 +38,12 @@ public class Trackable implements ILogable { private List<LogEntry> logs = new ArrayList<LogEntry>(); private String trackingcode = null; - public String getUrl() { - return getConnector().getUrl(this); + public String getBrowserUrl() { + return getConnector().getBrowserUrl(this); + } + + public String getCgeoUrl() { + return getConnector().getCgeoUrl(this); } private TrackableConnector getConnector() { |