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
Tags: BlackBerry Developers
Similar Questions
-
Invoke Blackberry Maps using the location document
Greeting, developers...
I use call blackberry maps in my application using document location...
I put 3 rental, my location, Room A and room B
example:
but my problem is
1. how the development of the cards to my location (the first location)
2. how to make the maps zoom? I use lbs document as above, but there is no zoom at all in blackberry maps...Any solution?
ThanxVisit this link for more details on the books and the location tags.
But to my knowledge, I Don t think centeralized zoom is not possible in this method of calling cards.
There are many ways by which you can invoke the card / use mapField in your application. You must choose the right pair that meets your needs.
-
Doubt about the appeal of Blackberry Maps
Hello.
I'm developing an application that uses Invoke to call the Blackberry Maps appwhile by the way some places defined by the user.
My question is this, citing Blackberry Maps will cause my original application of 'freeze' until I close BB Maps, or it will not interfere and my application will run in the background while I use BB maps?
Thanks in advance.
Your application will be in the background and will no longer receive events from the user interface, but you can always perform a treatment from other threads.
-
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
-
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
-
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.
-
Device: BlackBerry Z10
Model: STL100-1
Software version: 10.1.0.273
OS version: 10.1.0.1720
Carrier: Beeline KZ
Country: Kazakhstan1. 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
-
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.
-
Invoke the BlackBerry World to classify my app
Is it possible to invoke the BlackBerry World to allows users to give my app a rating using an InvokeActionItem?
Hi macaronlover,
Order this link which describes how to call BlackBerry app World: http://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/blackberry _...
-
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
-
Invoke the BlackBerry App World de Page Web/App.
In the BlackBerry 10 Dev Alpha, it is easy to invoke the BlackBerry App World using the direct link of the browser or the app like this:
appworld://vendorpage/7765 (the number's provider ID)
or
appworld://content/19996436 (the number is the ID of your application)
My question is... What happened to invoke App World and page then provider of BlackBerry PlayBook? I used 'appworld://vendorpage/7765' and it does not work on the PlayBook. I tried using "appworld://search/zanuzawa" (zanuzawa is my name of the seller) but he said 'no result '.
Any suggestion? Thanks before.
My bad:
-
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.
Maybe you are looking for
-
I want to know if I can trasfer a free application from one apple ID to another apple ID?
Initially, for a few months, I've used apple ID. brother after that, I created my own code from apple. now every time I take a backup in my laptop it never back up the applications and associated data to the ID of my brother now I plan to buy a new i
-
Portege R100 - how to create a bootable SD card?
Hello I'm trying to update my BIOS of v1.40 to v1.60. I don't have an external floppy drive, or a CD-Rom. I downloaded both versions of the bios upgrade. The version of windows does not install, coming up with an error of not being able to run in V86
-
When I click on the address bar I get loud click and cannot enter a letter by pressing the button for 3 or 4 seconds. Any help, please?
-
Hi, I have a Dell Studio 1737 laptop and has also its terrible when I play a cd or mp3. Also, it is not a strong output.
-
Windows Movie Maker Codec error?
Hellorecently, I switched from windows xp to windows vista. I got nothing else problems with windows movie maker now. I downloaded 3 different clips from my digital camera to edit, and I get this message. "The C:\Users\Public\Pictures\Kodak Pictures\