Exception in BlackBerry Maps demo

Hello, I'm testing BlackBerry Maps demo in the Simulator "BOLD", but when I run the "View Route" option a Null pointer exception that happens...  Someone at - it the same?

Probably, you could give a try on 4.6.0.12. tbilisoft also tried and confirmed it works on this version of the JDE.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Maps Z10

    Cards work fine, except that the screen is empty. Occurs with Blackberry Maps and BeMaps Pro. So useless for navigation.

    Mine stays on then anyway using cards, I don't know why yours is not. This is why it is not a parameter.

  • DETECT if BlackBerry Maps is installed

    Hello world:

    I extend the MapField class in my application and I need to detect if BlackBerry Maps is installed on the device. I was under the impression that it was distributed with OS4.5 or newer. However, it seems that some network providers that withdrawing from the device. Accordingly, I have users to get a "Eception exception: LBS map API is not installed ' when installing the OTA.

    Any help would be greatly appreciated.

    Try this:

    CodeModuleManager.getModuleHandle ("net_rim_bb_lbs")

    If the return is< 1,="" then="" it="" is="" not="">

  • BlackBerry Maps - unable to calculate route

    Hello

    I have an application which, at the click of the button, called the Blackberry maps with a rental document to get directions using latitude and longitude, here is the example it does

    Location myLocation = myLocationProvider.getLocation (120);
    Latitude = myLocation.getQualifiedCoordinates () .getLatitude ();
    Longitude = myLocation.getQualifiedCoordinates () .getLongitude ();

    int iLatitude = (int)(latitude*100000);
    int iLongitude = (int)(longitude*100000);
    Log.info ("latitude:" + iLatitude);
    Log.info ("longitude:" + iLongitude);

    String document = ""+ "
    ""+
    ""+
    "
    "  ;
                      
                                  
    String document1 = ""+ "
    //      ""+
    //       ""+
    //         "
    ";

    Log.info ("document:" + document);
                        
    Invoke.invokeApplication (Invoke.APP_TYPE_MAPS, new MapsArguments
    (MapsArguments.ARG_LOCATION_DOCUMENT, document) ;

    This code example gives me "unable to calculate the route. But when I use the string document1 (provided in Blackberry maps reference), it works fine. The iLatitude and the ilongitude come to simulate location GPS optionally simulate in the Simulator. I use BB JDE 5.0.0 and Blackberry 9700 Simulator.

    Below the log where you can see the values of iLatitude and iLongitude and localization of debugging is created:

    There an IllegalArgumentException, which I think is the problem because it does not come when I use the other location document1.

    MISVt = 1, h = 336bis, id = d15a33128dfbb5d9
    VM:LNTDa = validation, t = 1, p = TestClient
    latitude: 5182134
    Longitude:-128848
    Document:
    From net_rim_bb_lbs
    Net_rim_bb_lbs (251) started
    Net_rim_bb_lbs (251) foreground
    Background switch detected for TestClient (248) that does NOT have the tunnels open - defocus is NOT called
    Switch detected in the foreground for net_rim_bb_lbs (251) that does NOT have the open tunnels - focus NOT called
    FocusHistory: Lost Focus; App TestClient. Component com.sybase.uep.bobclient.controls.Button
    VMISVt = 0, h = 336bis, id = d15a33128dfbb5d9
    VM:LNTDa = validation, t = 0, p = net_rim_bb_lbs
    VMISVt = 1, h = 336bis, id = d15a33128dfbb5d9
    VM:LNTDa = validation, t = 1, p = net_rim_bb_lbs
    FocusHistory: Acquired Focus; App net_rim_bb_lbs; Component net.rim.device.apps.internal.lbs.MapScreen
    FocusHistory: Lost Focus; App net_rim_bb_lbs; Component net.rim.device.apps.internal.lbs.MapScreen
    FocusHistory: Acquired Focus; App net_rim_bb_lbs; Component net.rim.device.api.ui.container.DialogFieldManager$ FocusNullField
    Directions.getDirections () sends a request to the server
    RequestThread$ 1: wire Req: try Conn: url =http://routes.blackberry.com/route2/;deviceside=false; ConnectionUID = S 00005, attempt #= 1, type = 4 trans
    RequestThread$ 1: connection failed - url =http://routes.blackberry.com/route2/;deviceside=false; ConnectionUID = S 00005, attemptNumber = 1, transport type = 4, exception = insufficient coverage
    FocusHistory: Lost Focus; App net_rim_bb_lbs; Component net.rim.device.api.ui.container.DialogFieldManager$ FocusNullField
    $ 1 RequestThread: Req thread: conn attempt: url =http://routes.blackberry.com/route2/;interface=wifi, attempt #= 1, type = 6 trans
    RequestThread$ 1: connection failed - url =http://routes.blackberry.com/route2/;interface=wifi, attemptNumber = 1, transport type = 6, exception = insufficient coverage
    $ 1 RequestThread: Req thread: conn attempt: url =http://routes.blackberry.com/route2/;deviceside=true, attempt #= 1, type = 1 trans
    The addition of process = net_rim_bb_lbs (251) table
    Addition of the tunnel id = 1mode = FG to process = net_rim_bb_lbs (251)
    RequestThread$ 1: request thread: conn attempt succeeded: url =http://routes.blackberry.com/route2/;deviceside=true, attempt #= 1, type = 1 trans
    RequestThread: ServerExchange wire: using url and the type of connection 1 = [http://routes.blackberry.com/route2/;deviceside=true]
    Error: DirectionsRequest: error when converting byte array data stream input: java.lang.IllegalArgumentException: Directionsrequest::readResponse(): read length not valid the server response packet. Length of the package = 0
    Error: Directions: Directions request error: 1, URL: http://routes.blackberry.com/route2/, request:

    Please can someone help me with this error...

    Thank you

    Blanchard

    Hello

    My problem solved. The thing was to test my application, I used values of Latitude and longitude of a card (on the internet) and the values that I picked up were probably not really accurate, reason for which he was not able to calculate the route. Then my web service has begun to send me good lat and long values based on geolocation, it started working. There is nothing wrong with my code, it was test values I was providing were not as accurate as they should have been.

    Thank you

    Blanchard

  • Questions of Smartphones blackBerry AppWorld and Blackberry Maps

    Hey

    I'm with t-mobile, I just removed sim to my storm, where everything worked and placed in my new curve, everything seems fine except the following.

    (1) cannot access appworld:-improve your service to a plan that includes browsing and discover the blah blah blah...

    (2) blackBerry Maps:-from the open sound:-a network error has occurred, check your server settings.

    I connected via wifi and have a good GPRS signal, empty cache browser, removed and reinstalled. repushed service books, remove the battery.

    Anyone have any ideas?  the above all works when I put it in my borrowed Storm.

    Thank you

    OK its now fixed... strange strange question.

    I decided to add my email on my phone also works well.

    soon, I interpreted an enterprise activation everything has started working

    Strange but true.

    Thank you

  • My BB CUrve 9320 blackBerry smartphones are not supported Blackberry Map (GPS)

    Why I can't open Map (GPS) Blackberry in my BB Curve 9320?

    kyachinumog wrote:

    Yes, I'm the India... n its Airtel India... so can I know when people India get service map BB... why the r negleted India?

    Hi kyachinumog

    No, I'm sorry but you are wrong! RIM has never neglected the India or any country in Asia, infact they do much more for us than America or Europe. Regarding the support for BlackBerry Maps questions have been raised regularly. As she opened a Forums I don't want to explain all the facts, but some of our Government policies restricting these Services in India and a few country neighbors. I hope you understand.

    Prince

    ____________________________________________________________________________

    Click 'Like' If you want to thank someone.

    If problem resolves mark message (s) as a 'Solution', so that others can use.

  • Possible to send location for BlackBerry maps using the cards: / / URI?

    I was wondering, since we can launch BlackBerry maps maps: / / is there a way that we could send a location for maps of the URL?

    As maps://Kingston-Upon-Hull

    You can use ' geo:,' uri without the ' / /'.

    For example, this url should get you close to where I live:
    Geo:46.29, - 72.66

  • Z10 blackBerry how do you remove BlackBerry Maps of the Z10

    Maps does not work so I would remove and reinstall from BlackBerry World.

    How do you remove BlackBerry Maps of the Z10?

    Try this

    http://supportforums.BlackBerry.com/T5/General-BlackBerry-10-Smartphone/how-to-reload-your-Blackberr...

  • BlackBerry Blackberry Maps Z10 does not not on Telus

    BlackBerry Maps were not loading for me since yesterday at 19:00.  I rebooted my phone, took in the SIM without success.  The map loads and get my position, but the entire map is just a blank white screen.

    A friend in one of the BBM groups in that I am is also having the same problem with a Z10 on Telus.  It is in Calgary, I'm in Toronto.  Internet and everything works.  Third-party applications that use the API of the card still work perfectly.

    I'm on Telus with an OS Z10 10.1.0.4181

    I use the Blackberry Maps 10.1.0.810 version

    There work.  had clear the history:

    1. open maps

    2. pull on the adjustment of the top menu (sliding down the top and press settings)

    3 clear history

    4. all clear

    5 cards close and restart maps

    Don't know why it would have created a problem although...

  • Display the current location on Blackberry Maps

    Hi all

    I have an application that displays a number of places on a map. I have create a situation with all the included sites document and then call blackberry maps. This all works fine, but I can't work on how to show the current location of the user and the sites that I spent in.

    Ideally, I would like to the user's location to display a small blue mark (like it on google maps) and sites to display as normal red pawns. Is this possible?

    Otherwise, I thought to put the current location in the rental document (which I did successfully for more information getRoute) but how then the user distinguished between their situation and sites? Is it possible to create custom pins?

    MapField gives you the opportunity to paint your own markers. I suggest that you look on this.

  • Z10 BlackBerry Z10 STL100-1 update blackBerry than BlackBerry Maps 10.1.0.805 install failed

    Device: BlackBerry Z10
    Model: STL100-1
    Software version: 10.1.0.273
    OS version: 10.1.0.1720
    Carrier: Beeline KZ
    Country: Kazakhstan

    1. Update for BlackBerry Maps downloaded but not installed. What can be the problem?

    2. the maps are not available for the Kazakhstan now. When do you intend to run this country's support?

    Thanks to you all. In update 10.1.0.808 has solved the problem

  • BlackBerry Maps or Google Maps

    Hello.

    I'm integrating maps in my application. Nothing GPS using this time just a map showing a location. The location only info I have is an address string that I will be back from a web service call, in other cases, we can access the latitude and longitude, but for now I have only the address string.

    With Google Maps, I know it's too easy because I can just manipulate the URL a bit with my address string and it seems to works of 80 to 90% of the time. But I leaned in BlackBerry maps, as our BlackBerry users are probably already very familiar with BB maps, I would use if possible.

    Can I enter an address string and have BB maps to show me the location? I looked at the MapFieldDemo, the cards look rather bland and it seems I have to program the real movement of the cursor in detail. Is there a simple way to display a map?

    Should I use BB Maps or Google Maps? And anyone know any good examples?

    Thank you.

    How about using google maps api for geocoding. It converts the address in latitiude, pair of longitude. and then you can open that in blackberry maps

  • BlackBerry Maps vs Google Maps

    Hi, I'm developing an app for the Blackberry Curve 8520. The application must be able to pick up the location of the user and view the nearest locations on a map. The user can then select which store that they would like to visit and the application displays the route of their current location.

    I read a little the advantages and disadvantages for Blackberry and Google maps and not sure as for the one to use.

    Google Maps is supported on the Blackberry Curve? And if I use it in my application it requires the user to also download Google Maps before using the app? If I had to use Blackberry maps rather it will have the ability to establish a route to the destination?

    Any thoughts on this topic would be welcome.

    the google maps app is available for the device, Yes.

    but it does not offer an API. There are workaround solutions such as calling it with a document lbs, but nothing official or sufficient for more complex operations.

    BlackBerry maps can draw a route to the destination. Note that some advanced features are only available to certain OS levels upward (but unless you have a very old curve which is not a problem).

    I would say blackberry maps, the built-in API makes it much easier to use and they have come a long way since their first release.

    I use google maps personally most of the time, but not for development.

  • Reg; Invoking in blackberry maps

    Hello

    In my application I want to call cards, for that I have use mapview and everything is fine.but unfortunately I heard that blackberry maps is supported only in some countries...

    in my application, I want to show the County such as the India, Afghanistan etc... those who are not supported by blackberry maps...

    so please someone suggest me how can I get these countries also if I select it in of my very urgent application.it to me pls give answer me as soon as possible...

    I use jde 4.7 for my application...

    Here is the sample code snippet that works very well for me.

    Using this code, you can display unique location on the map.

    class GoogleSingleLocation_Scr extends MainScreen {
     public GoogleSingleLocation_Scr() {
     }
     protected void makeMenu(Menu menu, int instance) {
      super.makeMenu(menu, instance);
      menu.add(mInvokeGMaps);
     }
     MenuItem mInvokeGMaps = new MenuItem("Run GMaps", 0, 0) {
      public void run() {
       GMLocation location
        = new GMLocation(51.507778, -0.128056, "London");
       invokeGMaps(location);
      };
     };
     public void invokeGMaps(GMLocation l) {
      int mh = CodeModuleManager.getModuleHandle("GoogleMaps");
      if (mh == 0) {
       try {
        throw new ApplicationManagerException(
          "GoogleMaps isn't installed");
       } catch (ApplicationManagerException e) {
        System.out.println(e.getMessage());
       }
      }
      URLEncodedPostData uepd = new URLEncodedPostData(null, false);
      uepd.append("action", "LOCN");
      uepd.append("a", "@latlon:" + l.getLatitude()
       + "," + l.getLongitude());
      uepd.append("title", l.getName());
      uepd.append("description", l.getDescription());
      String[] args = { "http://gmm/x?" + uepd.toString() };
      ApplicationDescriptor ad = CodeModuleManager
        .getApplicationDescriptors(mh)[0];
      ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
      try {
       ApplicationManager.getApplicationManager()
         .runApplication(ad2, true);
      } catch (ApplicationManagerException e) {
       System.out.println(e.getMessage());
      }
     }
    }
    

    Suppose if you display several location on google maps, you need to prepare a KML file and make it available on the public server what google map can be accessed

    Some links to URLS that might be useful for you.

    http://code.Google.com/intl/en/APIs/maps/documentation/mapsdata/developers_guide_java.html#audience

    http://StackOverflow.com/questions/3301378/Google-maps-apidynamic-plot-multiple-locations-via-URL-sh...

  • Clickable PINS in BlackBerry map / Google Map in BlackBerry

    Dear all,

    Can I make clickable PINS on the map of the BlackBerry / Google Map in BlackBerry to call specific screen or call dialogue

    the 5.0 OS and more.

    Thank you.

    In OS 6.0, you have the optin to using a RuchMapField.

    Before that, there are possibilities, ranging from what you will find in the following links, but I suspect it's a lot of work.

    http://supportforums.BlackBerry.com/T5/Java-development/clickable-pin-points-on-a-map/m-p/452540#M89...

    http://StackOverflow.com/questions/10930115/how-to-draw-clickable-pin-point-on-BlackBerry-map

    http://StackOverflow.com/questions/10636855/BlackBerry-map-with-user-defined-images-as-pin-and-click...

Maybe you are looking for

  • Mac is too slow, Mail is blocked and will not open!

    Hello Two problems in one - slow Mac and the Mail app crashing! I am running OS X El Capitan 10.11.6. Since the last few days my Mac slowed considerably and takes a long time to start, search, and perform several tasks. Everything freezes and the sma

  • HP 5742: Problem with the new printer 5740

    Printer will not recognize Photo tray when the touch screen works, even if the photo paper is inserted. No print of the main paper tray.

  • c ++ equivalent code starts a QML?

    I've been watching this blog here: http://bbcascadescode.Tumblr.com/post/38998702671/invoke-share-for-BB10 But I don't really know QML so I'm having a time difficult conversion to C++ code cascades.  Can someone with this? This is the part that is st

  • My left are corrupted by windows 7

    After installing windows 7, I lost all my leave and all the files on my second hard drive. I tried Seagate and several other software programs and all I get is junk back. He sees the 2nd disc as a disc with no leave and it asks me to format it. What

  • CSV

    I have the select query. The result of this query contains 95 000 records.I need the coil of the output of a select query in the .csv file My query is will be my .csv will have all 95 k records?