Hello,
i'm trying to use your service in my android app. I followed your step-by-step guide (Put a Marker on the Map section), but when i launch the app nothing is shown: a totally black screen. In the log i can see:
"Request failed due to a permanent error:
MapboxAccountManager was not started correctly. Use MapboxAccountManager#start(Context, String) to initialise.
More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens."
and
"{beron.semiperdo}[HttpRequest]: Please contact MapQuest Developer Services to obtain a valid key.
{beron.semiperdo}[Setup]: loading style failed:
MapboxAccountManager was not started correctly. Use MapboxAccountManager#start(Context, String) to initialise.
More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens."
I don't understand what is the matter and why it is asking for mapbox (???) access token.
Thanks
app:mapquest_app_key="YOUR_MAPQUEST_KEY_HERE"
I put that line of code here:
<com.mapquest.mapping.maps.MapView
android:id="@+id/mapquestMapView"
app:mapquest_app_key="***"
android:layout_height="match_parent"
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
in the activity that are going to contain the map
MapQuestAccountManager.start(getApplicationContext());
?Mmm no! But.. where? The map is only in "MapActivity.java", where i have to put the key?
I have the same issue and if I want to setup the AccountManager it says, that "Cannot resolve symbol 'MapQuestAccountManager'" why is that?
I'm trying to import the following: "import com.mapquest.mapping.MapQuestAccountManager;"
I followed your instructions on this side: https://developer.mapquest.com/documentation/android-sdk/
1. Project build.gradle
2. Module:app build.gradle
3. (Shows up fine in the Preview)
So far everything compiles without any errors. But when I start my app it crashes with the mentioned message above. So I tried adding the import line as mentioned in my MainActivity. But that doesn't seem to work.
I'm using AndroidStudio 3.1.2 with Linux Mint x64.
Hi shoelerMQ,
Thank you for your answer, I'll try your solution.
It seems like i missunderstood the instructions on this page: https://developer.mapquest.com/documentation/nav-sdk/android/v3.3/
I thought it belongs inside the 'app' folder, inside my projekt and not next to it, the way it is on your image.
Best Regards
TimKE
When I move the file, I get the following error: /home/TimKe/AndroidStudioProjects/xxxxxx/app/mapquest.properties (No such file or directory)