blob: 8e1e4cf723ac6cfc71273aa891077c5c52388527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package cgeo.geocaching.apps.cache.navi;
import cgeo.geocaching.CompassActivity;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.R;
import cgeo.geocaching.Waypoint;
import cgeo.geocaching.location.Geopoint;
import android.app.Activity;
class CompassApp extends AbstractPointNavigationApp {
CompassApp() {
super(getString(R.string.compass_title), R.id.cache_app_compass, null);
}
@Override
public boolean isInstalled() {
return true;
}
@Override
public void navigate(final Activity activity, final Geopoint coords) {
CompassActivity.startActivityPoint(activity, coords, getString(R.string.navigation_direct_navigation));
}
@Override
public void navigate(final Activity activity, final Waypoint waypoint) {
CompassActivity.startActivityWaypoint(activity, waypoint);
}
@Override
public void navigate(final Activity activity, final Geocache cache) {
CompassActivity.startActivityCache(activity, cache);
}
}
|