Android SDK change log from version 3.0.3 to version 3.1.0

Change Log

  • Networking within the SDK changed to use secure HTTPS requests instead of plain HTTP requests.
  • Many rendering crashes have been fixed.
  • Memory leak from MapRenderer has been removed.
  • A new API for setting the desired map version when initializing the SDK has been introduced.
  • The CCP locked heading after a long navigation has been fixed.
  • Added support for JPG format in WorldLayer functionality.
  • Attributions used by the SDK changed from TextView to ImageView and from "Powered by Skobbler" to "Powered by Telenav".
  • Map resources have been changed
    • World texture background image has been removed and replaced with new world layer L-2 (map256.png, map512.png, map1024.png have been removed from the style resource folders and from the style json files)
    • Now SKMaps.zip contains a folder called attributions in which Telenav attribution images are stored and also cert.pem which is the https certificate.

Package - com.skobbler.ngx

Class - com.skobbler.ngx.Config

Added Fields

String IS_PRODUCTION // SDK is used with testing/production links
String THIRD_PARTY_MAP_CHUNKS_URL // Third party map chuncks url

Class - com.skobbler.ngx.SKMaps

Added Methods

void disableAppSpecificRequestParameters() // Removes https extra parametres (osName, osVersion, appName, appVersion, uid)
void enableAppSpecificRequestParameters() // Enables https extra parametres (osName, osVersion, appName, appVersion, uid). By default they are appended
boolean isUseAppSpecificRequestParameters() // Queries if https requests contain extra parameters (osName, osVersion, appName, appVersion, uid)

Class - com.skobbler.ngx.SKMapsInitSettings

Added Methods

String getHttpsCertificateName() // Returns https certificate name.
int getRequestedMapVersion() // Get the specific map version requested to be used.
void setHttpsCertificateName(String) // Sets https certificate name.
void setRequestedMapVersion(int) // Set a specific map version an initialization. This should be called before initialization.

Package - com.skobbler.ngx.map

Class - com.skobbler.ngx.map.SKMapViewHolder

Removed Methods

void changeAttributionLabels(String) // Changes the attributions text view style.
float getAttributionsTextSize() // Returns the size in pixels attributions texts.
void hideScoutTextView() // Sets the Scout attribution text view visibility to gone.

Added Methods

float getAttributionsImageSize() // Returns the size in pixels attributions imageViews.
void showAttributions() // Sets the attribution text views visibility to visible.
void hideAllAttributions() // Sets the attribution image views (company and OSM) to gone. Call this from the UI thread
hideCompanyAttribution() // Sets the company attribution image view to gone. Call this from the UI thread
hideOSMAttribution() // Sets the OSM attribution image view to gone. Call this from the UI thread

Package - com.skobbler.ngx.map.worldlayer

Removed Interfaces

SKWorldLayerDownloadListener

Added Interfaces

SKWorldLayerListener

Changed Classes

SKWorldLayerManager
SKWorldLayerSettings

Class - com.skobbler.ngx.map.worldlayer.SKWorldLayerManager

Added Methods

String getCustomTileServerUrl() // Tile server URL
String getgeneratedurl() // This method is called from JNI to get the custom (generated) tile server url
void worldlayergenerateurl(String, int, int, int) // Callback for world layer download

Changed Methods

void addWorldLayer(SKWorldLayerSettings) // Change in signature from (SKWorldLayerSettings, boolean) to SKWorldLayerSettings. Adds a new world layer from a tile server @note if the uniqueName is already present on disk, then uses the data on disk
void setWorldLayerListener(SKWorldLayerListener) // Change in signature from SKWorldLayerDownloadListener to SKWorldLayerListener.	 

Class - com.skobbler.ngx.map.worldlayer.SKWorldLayerSettings

Removed Constructors

SKWorldLayerSettings(String, String, int, int, float, int, int, int)
SKWorldLayerSettings(String, String, String, int, int, float, int, int, int, int, int, int)

Added Constructors

SKWorldLayerSettings(
    String uniqueName, String tileServerURL, String dateSourceDir, int orderIDx,
    int cacheSize, float trasnparency, int zoomAdjust, int minZoomLevel, int maxZoomLevel,
    int maxCacheSizeOnDisk, int maxCacheTimeSpan, int maxSpanQueryInterval, String imageFileExtension,
    boolean useCustomUrl
)

Added Methods

String getImageFileExtension()
String getRequestParameters()
boolean isUseCustomUrl()
void setImageFileExtension(String)
void setRequestParameters(String)
void setUseCustomUrl(boolean) // Used to set if the default tileServerUrl should be used (false), or a custom one with specific imageFileExtensions and requestParameters (true) 

Package - com.skobbler.ngx.map.navigation

Class - com.skobbler.ngx.navigation.SKNavigationManager

Changed Methods

void unblockAllRoads(boolean) // Change in signature from void to boolean. Navigation mode: Unblocks all previously blocked roads and causes a rerouting if reroute is true.

Package - com.skobbler.ngx.routing

Class - com.skobbler.ngx.routing.SKRouteManager

Added Methods

List<SKCoordinate> getRouteAsGPSTurningPoints() // Gets the route turning points as GPS coordinates - of the current route.
List<SKCoordinate> getRouteAsMercatorTurningPoints() // Gets the route turning points as Mercator coordinates - of the current route.
List<SKCoordinate> getRouteByUniqueIdAsGPSTurningPoints(int) // Gets the route turning points as GPS coordinates - of the route identified by its unique Id.
List<SKCoordinate> getRouteByUniqueIdAsMercatorTurningPoints(int) // Gets the route turning points as Mercator coordinates - of the route identified by its unique Id.

Changed Methods

void calculateRoute(final SKRouteSettings route, final boolean useDynamicRoutingProfiles) // Change in signature from SKRouteSettings to (SKRouteSettings, boolean). Calculates a route and displays it on the map if useDynamicRoutingProfiles is set to false. If it is set to true then a rerouting is performed and this rerouting adapts to a routing profile change.
boolean createRouteFromTrackElement(SKTrackElement trackElement, SKRouteMode routeMode, boolean downloadRouteCorridor, boolean countryCodes, boolean extendedPoints, boolean turningPoints) // Change in signature from (SKTrackElement, SKRouteMode, boolean, boolean, boolean) to (SKTrackElement, SKRouteMode, boolean, boolean, boolean, boolean). Starts a route calculation based on the provided track element

Class - com.skobbler.ngx.routing.ViaPointInfo

Changed Methods

int getDistanceToViaPoint() // @return the distanceToDestination
void setDistanceToViaPoint(int) // @param distanceToDestination the distanceToDestination to set

Package - com.skobbler.ngx.search

Class - com.skobbler.ngx.search.SKSearchListener

Changed Methods

void onReceivedSearchResults(final List<SKSearchResult> results, boolean succeded); // Change in signature from List<SKSearchResult> results to (List<SKSearchResult> results, boolean succeded).

Package - com.skobbler.ngx.trail

Class - com.skobbler.ngx.trail.SKTrailManager

Added Methods

boolean getShowTrailStatus()

Class - com.skobbler.ngx.trail.SKTrailSettings

Added Methods

boolean isTrailPoints()
void setTrailPoints(boolean)

Changed Methods

boolean isPedestrianTrailEnabled() // Returns whether the trail is a pedestrian trail

Package - com.skobbler.ngx.versioning

Class - com.skobbler.ngx.versioning.SKVersionInformation

Changed Constructors

SKVersionInformation(
int versionNumber, int minRevisionNumber, int thirdPartyVersionNumber, String torURL,
String routerService, String routerVersion, String nameBrowserService, String nameBrowserVersion, String thirdPartyTorURL
)	
// Change in type from (int, int, String, String, String, String, String) to (int, int, int, String, String, String, String, String, String).
// If there are no thirdPartyVersionNumber and thirdPartyTorURL used then any value can be inserted for the corresponding parameters.

Class - com.skobbler.ngx.versioning.SKVersioningManager

Added Methods

int getRequestedMapVersion() // Get the specific map version requested to be used.
void setRequestedMapVersion(int) // Set a specific map version an initialisation. This should be called before initialisation.

Class com.skobbler.ngx.versioning.SKLibraryVersionManager

Added Methods

String getEnvironment() // Returns the environment on which the SDK is running.
String getLibraryType() // Returns the SDK version.
String getMapVersionFileName() // Returns the name of the SDK version file name used.
String getSDKVersion() // Returns the SDK version.
String isTrafficUsed() // Returns SDK traffic status