private static void startActivityEditWaypointInternal(final Context context, final Geocache cache, final int waypointId) {
        final Intent intent = new Intent(context, EditWaypointActivity.class)
                .putExtra(Intents.EXTRA_GEOCODE, cache.getGeocode())
                .putExtra(Intents.EXTRA_WAYPOINT_ID, waypointId);
        context.startActivity(intent);
    }
Save the current state of the calculator such that it can be restored after screen rotation (or similar)
main/src/main/java/cgeo/geocaching/EditWaypointActivity.java