khalildakar93 / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

new MapQuestRoadManager returns null #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow the Steps in OSMBonusPack -> Tutorial_1 -> 2. Playing with the 
RoadManager
2. Get the API Key of your mapquest account and enter it in "RoadManager 
roadManager = new MapQuestRoadManager("_YOUR MAPQUEST API KEY_")"
3. Try to get the mStatus of your road, for example with "Toast.makeText(this, 
road.mStatus, Toast.LENGTH_SHORT).show()"

What is the expected output? What do you see instead?

I tried out the Tutorial_1 until point 2, because I never got any road 
displayed in my app. So I thought it would be nice to get a errorcode why there 
is no road shown. Subsequently I noticed a NullPointerException at road.mStatus 
(because "Road road = roadManager.getRoad(wegpunkte)" is null). Is it possible, 
that there is an issue with MapQuestRoadManager? Or did I forget something? I 
will attach some Screenshots

What version of the products are you using (Android SDK, osmdroid,
OSMBonusPack)?

Android SDK = 18
osmdroid = 4.2
OSMBonusPack = 4.8

Please provide any additional information below.

Original issue reported on code.google.com by JackBaue...@gmail.com on 24 Aug 2014 at 5:07

Attachments:

GoogleCodeExporter commented 8 years ago
First of all, target an SDK earlier than 3.0 (see Important note about network 
calls at https://code.google.com/p/osmbonuspack/wiki/Tutorial_0). 

If the issue persists, please provide your logcat stacktrace. 

Original comment by mathieu....@gmail.com on 24 Aug 2014 at 8:13

GoogleCodeExporter commented 8 years ago
All right, very stupid mistake. With Android 10 the road is displayed. But this 
is not a solution for my app. After the tutorial I will check the OSMNavigator 
source code for async tasks.

Thanks so far!

Original comment by JackBaue...@gmail.com on 24 Aug 2014 at 9:40

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 25 Aug 2014 at 7:08