[android] #4078 Gave help directly in logcat instead of refering to install.md

This commit is contained in:
Cameron Mace
2016-03-01 11:23:16 -06:00
committed by Tobrun
parent e9b7cd724f
commit 6a31aa2910
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ import com.mapbox.mapboxsdk.maps.MapView;
public class InvalidAccessTokenException extends RuntimeException {
public InvalidAccessTokenException() {
super("Using MapView requires setting a valid access token. See the INSTALL.md");
super("\nUsing MapView requires setting a valid access token. Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one.\n Lastly, follow the steps in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens in order to include the access token in your app.");
}
}

View File

@@ -12,7 +12,7 @@ import com.mapbox.mapboxsdk.maps.MapView;
public class TelemetryServiceNotConfiguredException extends RuntimeException {
public TelemetryServiceNotConfiguredException() {
super("Using Mapbox Android SDK requires configuring TelemetryService. See the INSTALL.md");
super("\nUsing Mapbox Android SDK requires configuring TelemetryService. This only requires two steps:\n 1. Include the WAKE_LOCK permission within your applications AndroidManifest.xml\n 2. Add the \"com.mapbox.mapboxsdk.telemetry.TelemetryService\" service in your applications AndroidManifest.xml\n For more help, visit https://www.mapbox.com/android-sdk/");
}
}