HERE Android SDK Developer's Guide

Error

The enumeration Error is a member of com.here.android.mpa.common.OnEngineInitListener.

Enumeration Summary

public static final enumeration OnEngineInitListener.Error

extends java.lang.Enum, java.lang.Object

Represents values describing initialization errors.

[For complete information, see the section Enumeration Details]

See also:

onEngineInitializationCompleted(Error)

Enum Constant Summary

Table 1. Enum Constants in Error
Fields

public static final Error NONE

Initialization completed successfully

public static final Error USAGE_EXPIRED

Initialization failed as the SDK is expired

public static final Error MODEL_NOT_SUPPORTED

Initialization failed as the device's model is not supported by the SDK

public static final Error DEVICE_NOT_SUPPORTED

Initialization failed as the device is not supported by the SDK

public static final Error UNKNOWN

Initialization failed for unknown reasons

public static final Error MISSING_APP_CREDENTIAL

Initialization failed due to missing App ID and App Code.

public static final Error BUSY

Initialization cannot be completed as the system is currently busy.

public static final Error FILE_RW_ERROR

Unable to write to or read from disk cache.

public static final Error MISSING_PERMISSION

One of the permissions required to run the SDK is missing.

public static final Error MISSING_SERVICE

MapService cannot not be found

public static final Error WRONG_SERVICE_INTENT_NAME

Wrong service intent name for MapsEngine with isolated cache

public static final Error MISSING_LIBRARIES

Missing native libraries or missing dependent java libraries which cause native libraries to not load.

public static final Error OPERATION_NOT_ALLOWED

The required permission to initialize component is missing or the license key provided is invalid.

Method Summary

Table 2. Methods in Error
Methods

public String getDetails ()

public String getStackTrace ()

public Throwable getThrowable ()

public static Error valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static OnEngineInitListener.Error[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Represents values describing initialization errors.

See also:

onEngineInitializationCompleted(Error)

Enum Constant Details

public static final Error NONE

Initialization completed successfully

public static final Error USAGE_EXPIRED

Initialization failed as the SDK is expired

public static final Error MODEL_NOT_SUPPORTED

Initialization failed as the device's model is not supported by the SDK

public static final Error DEVICE_NOT_SUPPORTED

Initialization failed as the device is not supported by the SDK

public static final Error UNKNOWN

Initialization failed for unknown reasons

public static final Error MISSING_APP_CREDENTIAL

Initialization failed due to missing App ID and App Code. Please make sure the following lines are added to AndroidManifest.xml (Replace with your own app_id and app_code pair) <meta-data android:name="com.here.android.maps.appid" android:value="APPID" /> <meta-data android:name="com.here.android.maps.apptoken" android:value="APPCODE" />

public static final Error BUSY

Initialization cannot be completed as the system is currently busy. User should check again later.

public static final Error FILE_RW_ERROR

Unable to write to or read from disk cache.

public static final Error MISSING_PERMISSION

One of the permissions required to run the SDK is missing. This refers to android application permission.

public static final Error MISSING_SERVICE

MapService cannot not be found

public static final Error WRONG_SERVICE_INTENT_NAME

Wrong service intent name for MapsEngine with isolated cache

public static final Error MISSING_LIBRARIES

Missing native libraries or missing dependent java libraries which cause native libraries to not load.

public static final Error OPERATION_NOT_ALLOWED

The required permission to initialize component is missing or the license key provided is invalid. This refers to the permission to be supplied for the entry com.here.android.maps.license.key in the AndroidManifest.xml.

Method Details

public String getDetails ()

Returns:

More details about the error and tips for the possible solution.

public String getStackTrace ()

Returns:

Stack trace of the associated Throwable object, useful for troubleshooting.

public Throwable getThrowable ()

Returns:

Throwable associated with the error.

public static Error valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static OnEngineInitListener.Error[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.