Question to find the coordinates of an address

I worked on an internal BlackBerry application to see the map of the site of the Agency on the States. I use Eclipse Plugin and BB JDE 4.7.0 with the BB 9530 Simulator. My question is how to locate a given address GPS coordinates. I tried both approaches, and all were unsuccessful.

My first approach is to use the API of BB net.rim.device.api.lbs.Locator to get the coordinates of an address. But the Landmark returned by the Locator had a length zero (no found the coordinates). What I have to install any application of location map BB on the Simulator? The Simulator has the pre-installed BB card application. Given the coordinates of an address, the invocation of the MapView also gave me internal error. Here are the code snippets used in the application:

AddressInfo addressInfo = new AddressInfo();
addressInfo.setField (AddressInfo.STREET, empDetInfo.getStreet ());
addressInfo.setField (AddressInfo.CITY, empDetInfo.getCity ());
addressInfo.setField (AddressInfo.STATE, empDetInfo.getState ());
addressInfo.setField (AddressInfo.POSTAL_CODE, empDetInfo.getZip ());
addressInfo.setField (AddressInfo.COUNTRY, empDetInfo.getCountry ());
Coordinated coordinated new = startCoords (Constants.LATITUDE_STARTCOORDS, Constants.LONGITUDE_STARTCOORDS, 0);
Historic landmark [] = Locator.geocode (addressInfo, startCoords);

MapView mapView = new MapView();
mapView.setLatitude (lat);
mapView.setLongitude (lon);
mapView.setZoom (10);
Invoke.invokeApplication (Invoke.APP_TYPE_MAPS, new MapsArguments (mapView));

The second approach is to use the Google Geocoding V2 Web Service to locate contact information and start Google Maps using the details. By giving the fixed coordinates, the application can display the right card for them. But the problem is that the application got constantly bad request "400" State Code returned by the Web Service of Google, even if I can get good state code (200) with the data of contact details by gluing directly the same URL in the Internet Explorer browser query string. I also tested the application at home and could not get back the Google Web Service in good condition code if the PC was not connected to the corporate network. But if the PC is plugged into the network, the application always to return 400. I have no idea what would cause this issue.

If anyone had a similar experience and work around, please make me light.

Thank you in advance!
yc6963

I think that Google Maps uses a direct TCP connection.  When you use the simulator of BlackBerry smartphone that this type of connection is from the Simulator itself, which connects directly to the destination server (without using the simulator of MDS - CS).

Since you have a proxy in your workplace, it is likely that the connection is blocked.  Unfortunately there is no way to configure the simulator of smartphone BlackBerry Connect via a proxy at this time.

BlackBerry Maps (and MapField) works in version 4.7 of the BlackBerry JDE, however you may run into problems due to the power of Attorney in your environment.

Tags: BlackBerry Developers

Similar Questions

  • I can't find the coordinates of the webcam to put a shortcut on my desktop

    I can't find the coordinates of the webcam to put a shortcut on my desktop

    I can't find the coordinates of the webcam to put a shortcut on my desktop

    You can find it in Program Files?

    Start > computer > right click on C: (or your system drive) > Program Files...
    Find the name of your webcam. Mine is ArcSoft > ArcSoft opened and I find uWebcam.exe > right click, click on send to > desktop (create shortcut). For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • find the printer by ip address

    I have a new time capsule 3 TB to replace my old 1 TB time capsule.  I mounted my new time capsule and everything seems to work, but I can not scan from my printer.  I have a Lexmark X 544 printer.  How we scan is to type the ip address of the printer in firefox and it would bring the scanning through the browser application.  When I get the ip of the printer on firefox with our new TC it does not find it.  I have the printer connected directly to the new TC with an ethernet cable.  I reconnected it my old TC to see if I could find the ip address, and the scanner it works fine.  The new TC print, but will not find the investigation period.  Anyone know why I can't find the IP through firefox with the new TC?  Thank you!

    I also wanted to add that the printer prints through the new TC, but it is extremely slow!  A word with 4 letters on her doc takes about 3 minutes to print.  Former TC would print much faster!  Thanks again!

  • How to find the coordinates of the screen control clicks?

    I would like to find the screen coordinates of the place a click / tap event occurs. So, for example, if a button is clicked, is it possible to find the x / place on screen? Or at least the command position?

    It seems to be difficult scpecially if the controls are in a ListView. The onClicked: event there is no provided location information. And if I try to join a TapHandler to the ListView it seems fire on areas non-zero.

    You can use the onTouch() signal to get the coordinates compared to itself or on the window...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__visualnode.html#function-TOU...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__touchevent.html

  • Looking for perl script find the coordinates of the VM

    Hi all

    I am looking for a perl script (e.g. - vminfo.pl) to find the VM details including the ESX Server that works of VM. If I have a script I can use VIPerlToolkit utilities to ' run the script from any of the machines Linux... can someone please help me with script

    Concerning

    Lucette

    Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo that provides both the host ESX (i) the virtual machine is hosted on as well as the cluster vCenter.

  • Query to find the coordinates of employee salary

    Hello

    Could someone help write the query to find the salary of the employee details.

    Thanks in advance.

    This should help you get started:

    SELECT papf.full_name
    papf.email_address
    ppp.proposed_salary_n salary
    OF per_pay_proposals ppp
    per_all_assignments_f ADP
    per_all_people_f women's wear
    WHERE ppp.assignment_id = paaf.assignment_id
    AND paaf.assignment_type = 'E '.
    AND paaf.primary_flag = 'Y '.
    AND paaf.person_id = papf.person_id
    AND nvl (papf.current_employee_flag, 'n') = 'Y '.
    AND trunc (sysdate) BETWEEN
    PPP.change_date AND ppp.date_to
    AND trunc (sysdate) BETWEEN
    PAAF.effective_start_date AND paaf.effective_end_date
    AND trunc (sysdate) BETWEEN
    PAPF.effective_start_date AND papf.effective_end_date;

  • How to find the coordinates of the HBA in the ESX service console

    Hello

    We would like to know the following details of HBA on the ESX Server. Help, please.

    • Manufacturer of HBA

    • HBA model

    • Description of HBA

    • Version of the HBA driver

    • HBA Firmware Version

    • WWN

    • WWP

    ESX 3.0.1 version specific.

    You can find in/proc/scsi /.

    the wwn you can get with VI Client in Configuration > storage

    Identify a HBA firmware

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1002413

    If you have found this information useful, please consider awarding points to 'Correct' or 'Useful'*.

  • HOW TO FIND THE COORDINATES OF PAY WITH THE HELP OF THE QUERY

    Hi all,

    I have to write a query to search the base, da, perpay paid to an employee for a month(ex:may)

    for this query the tables I have to bind and use.

    PLEASE REPLY IMMEDIATELY URGENT

    Hello
    Use the join on tables table Pay_run_results, pay_assignment_actions, pay_payroll_actions, pay_element_types_f, pay_input_values_f.

    RK

  • Adding HP ePrint home and Biz iPhone app - mal printer cannot find the email address of the printer

    I'm trying to connect my HP Photosmart c6380 to my iPhone. I have already downloaded the app and my printer is connected to my wireless network, as is my iPhone, but I can't add my printer to the app.

    When I go to 'Manage ePrinters' and try to add a printer with the + button I see 3 choices:

    Add x to list: "no available ePrinters.

    Manually add: I can't find the printer even email address using the instructions available on the ePrint centre.

    Add the WiFi network: my printer is not shown in this list, so it does not support Autodiscover.

    So I guess that if I could just find email address of my printer that would connect to my iPhone for wireless printing, but I can't for the life of me find.

    Any help is greatly appreciated.

    Thank you.

    Hello amybett,

    I have bad news and good news. The bad news is that your printer is not Airprint/ePrint capable. However, the good news is that with the HP ePrint capable home and Biz iPhone app, it didn't need to be Airprint/Eprint, as it is connected to the same network as your phone.

    Here are the steps that you want to print something:

    1. installation of the application by filling in the electronic registration and entering the code (which I believe you have).

    2. Select the item you want to print by using the menu in the application (Photo Albums, files saved, Web browser, etc.).

    3. Once you select the item, you should see article and a big button "Print" under him.

    4. If the printer you want to print to is not listed above the 'Print' button, select the icon on the right (key/computer), and then select the printer you want to use (and other parameters).

    5. press the button 'Back' at the top left, then tap "Done" (blue top-right button) and then press the 'Print' button to print your article.

    Let me know if you still have problems after following the guide above.

  • How can I find the question that I dropped off the 9.11.13 and the response that I received on my hotmail to Kim?

    Hello

    I guess that everything that you people are as stupid as me, so I need help.

    Saturday, I tabled a question about Live Mail, do not sync with my 2 Hotmail accounts.  I received a reply from Kim through my email account, and after following that advice should meet him which I did by hitting his email response.  Now, I get an email saying that my answer was available.  So I thought that maybe if I found my question, his answer would be to this topic, in the "community" section where I placed my initial question and I could hit answer here.  There is no section for Windows Live Mail in the Community Forum if I select Windows 7 Email and communications as my topic, as it was the closest I could get.  How I'd like a tab or a box that says "see your question and the responses, it has generated."

    I know it's a stupid question, but when you get past 70 things aren't as obvious apparently.

    Can someone help me?

    Alison

    You cannot respond to a notification by e-mail. Return to the forums and click the name Alison n (2) at the top of any page of your profile and look at My Questions to find the wire.

  • Find the name of host or IP address of the Workstation client of Virtual Office

    Hello

    I want to find the name or IP address of the workstation of the user within the virtual desktop OS.  Both are Windows XP.  The reason is that I want to run a logon script to run an application on the virtual desktop that establishes a network connection on the user's desktop.  For example:

    (1) user establishes a connection from their local workstation (IP: 10.1.1.25) to a virtual office

    (2) the command runs on the virtual desktop that retrieves the name of the host or IP of the virtualdesktop (10.1.1.25)

    (3) another command is running on the virtual desktop, which establishes a local network on the virtual desktop to workstation(IP:10.1.1.25) connection of the user

    (4) users and I are happy because it's all automatic

    Anyone have any ideas?

    Thank you!

    KO

    Hello

    There are several ways to do what you want. The easiest way is to use the local environment variable %CLIENTNAME%.

    Go in the virtual desktop from the command line, type: echo %CLIENTNAME%

    Now you should see the name where the client connects from the client.

    What you have to do is to write a script that gets the variable ping, of the environment, the name and read the answer which is the IP address.

    You can use the VB script that or a command script.

    Thank you

    Chris

  • Mark answers it when you find the answer

    From time to time after I posted a question I find the answer on my own. In this forum, like too many others, there is no way to mark my own question as answered. Suggestions in addition to create another account.

    Just do what I did. I had a big problem that I have resolved, and in the response where I said I solved it myself, I ended up saying "I guess this question will remain unanswered until a mod sees it and marks it as the answer" and my answer has been marked as the answer after a little bit.

    So just add something like "could a mod please mark this as the answer, as I am unable to do so.

  • Find the minimum date on multiple columns

    Hello

    I have two questions to find the minimum date on several columns:
    1. need a select query that should JOIN two tables and return any information (CASSEDTL) table with minimum date out of DATEISSUED, DATEPLACED, DATEENTERED and STATDATE.
    2. need of an update query that should update all cases in the CASEDTL table with the minimum date of DATEISSUED, DATEPLACED, DATEENTERED and STATDATE.

    The DDL:
    CREATE TABLE CASEMSTR 
    (   CASENBR     NUMBER,
        DATEISSUED  DATE,
        DATEPLACED  DATE,
        DATEENTERED DATE);
        
    CREATE TABLE CASEDTL 
    (   CASENBR     NUMBER,
        STATDATE    DATE,
        RCVDATE    DATE,
        MODDATE     DATE);
        
    INSERT INTO CASEMSTR VALUES (1, '1 JUL 2007', '1 JUL 2007', '12 JUL 2007');
    INSERT INTO CASEMSTR VALUES (2, '1 JAN 2008', '1 JAN 2008', '21 JAN 2008');
    INSERT INTO CASEMSTR VALUES (3, NULL, NULL, '3 DEC 2008');
    INSERT INTO CASEMSTR VALUES (4, '31 MAR 2009', NULL, '6 APR 2009');
    INSERT INTO CASEMSTR VALUES (5, NULL, '22 MAR 2009', '6 APR 2009');    
    INSERT INTO CASEMSTR VALUES (6, NULL, NULL, '16 JUL 2009');
    INSERT INTO CASEMSTR VALUES (7, '1 DEC 2008', '7 DEC 2008', '26 DEC 2008');
    INSERT INTO CASEMSTR VALUES (8, NULL, NULL, '17 MAY 2009');
    
    INSERT INTO CASEDTL VALUES (1, '25 JUN 2007', NULL, '2 AUG 2009');
    INSERT INTO CASEDTL VALUES (2, '1 JAN 2008', NULL, '2 AUG 2009');
    INSERT INTO CASEDTL VALUES (3, '11 NOV 2008', NULL, '2 AUG 2009');
    INSERT INTO CASEDTL VALUES (4, '31 MAR 2009', NULL, '2 AUG 2009');
    INSERT INTO CASEDTL VALUES (5, '19 JUL 2009', NULL, '2 AUG 2009');    
    INSERT INTO CASEDTL VALUES (6, '13 JUN 2009', NULL, '16 JUL 2009');
    INSERT INTO CASEDTL VALUES (7, '7 DEC 2008', NULL, '16 JUL 2009');
    INSERT INTO CASEDTL VALUES (8, '14 MAY 2009', NULL, '16 JUL 2009');
    COMMIT;
    The initial query I have is
    SELECT CD.CASENBR, CM.DATEISSUED, CM.DATEPLACED, CM.DATEENTERED, CD.STATDATE, CD.RCVDATE, NULL "NEW RCV DT" 
    FROM CASEDTL CD
        INNER JOIN CASEMSTR CM
            ON CD.CASENBR = CM.CASENBR;
    Need to know what is the best way to complete the new Date of RRS? Receive a new date should be the minimum date of DATEISSUED, DATEPLACED, DATEENTERED and STATDATE. And also how do I write an update statement unique to upade date of receipt in the detail table?

    Any help would be appreciated! Thanks in advance!

    Where is the function LESS? Refer to manual SQL.

    HTH - Mark D Powell.

    put1 > desc multdate
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     COL1                                               DATE
     COL2                                               DATE
     COL3                                               DATE
    
    put1 > select * from multdate;
    11-AUG-09 10-AUG-09 01-AUG-09
    
    put1 > select least(col1, col2, col3) from multdate;
    01-AUG-09
    

    Published by: MarkDPowell on August 11, 2009 15:53 added example

  • Try to find the question I posted, click on my contrubtions & he says I posted without question.

    Try to find the question I posted, click my contributions & he says I posted without question.

    I posted a few questions and I can not find them or that the answers.
    Clicking on the e-mail link to verify my email address. So I think I did it right. I just want to know the right way to ask a question and get the answer. This is the 1st time I'am using this forum (this system).

    FireFox froze up on me during my session, but I think I already posted my question, but maybe something got screwed up.
    

    I also pointed out to one of my own post (to give more information). But there is one more. I can't find ether of them now.

    See [920351/questions/920351]

  • not able to find the cRIO in maximum DHCP address lease ok.

    Hello I have a cRIO OR installed for the first time that I have a question, adding to the measurement and automation Express (MAX)

    I did the following:

    -i held the reset for 5 seconds button.

    -i got a tripple blink

    -check that a DHCP lease was obtained by the RIO. (192.168.11.9/subnet 255.255.255.0)

    -Pressed on the ' network devices NIDAQ find - ' nothing was found

    -Manually entered the address above - nothing was found

    My configuration:

    x86PC, Win7 32 bit, wireless network adapter (wired disabled) in the network mentioned above, the firewall off

    LAN cable to a router/switch (BUFFALO WHR-G125) cRIO9075

    Could you please give me some advice on the next few steps, I could take to connect?

    Happy holidays

    Ivan

    Hi all

    I found the cause of the issue, it is a bad combination of (old) driver NI DAQ and my camera.

    I checked the compatibility of the driver and the device and discovered that I have a different driver from the old series of boards that for the University, we bought and missed me the cd drivers (who disappeared

    I downloaded the new driver NIDAQ1400f1 (or something like that).

    Now it's working.

    Thank you all for your answers.

    @Valkoa: thanks for the reply unfortunately the camera isn't apperaing anywhere despite his success my router of a lease

Maybe you are looking for

  • Your system does not meet the requirements to run Firefox.

    I had xp computer 32 pack 3 do not know much about computers only what I readI got ff 37.0.1, when I click on Firefox tells me that it is up-to-dateWhen I check on Plugins and see if I need to update I get this msg for a long time, I don't know what

  • Should what cable I use to connect a hdmi monitor to a macbook pro?

    I want to connect a 2011 macbook pro to a lg 22m47vq monitor. Have the choice of hdmi or dvi - d, but what cable do you advise me to connect to the macbook pro? Thank you

  • Can I connect a switch to my Airport Express 1st gen?

    Hi Experts, I was wondering if I'll be able to connect a switch 8 ports to the ethernet port on my AirPort Express? My current setup is the D-Link router/Modem > airport Time Capsule AirPort Express So I've matched the AirPort Express to the Capsule

  • HP Officejet Pro 8630 - work of borderless printing produces blank pages

    Hello- On my HP Officejet Pro 8630, when I start a print job and select ' without borders on "print 3 or more copies, the first 2 pages of the print job, and then a blank page prints, followed by a good impression, followed with a blank page, etc. un

  • Can't see the evidence/preview mode develop

    I selects the picture in library mode, then click on develop, but the evidence/preview is just a blue screen. I can't see the photo in the browser window. What should I do? I selected view Magnifier and tried various other things without success. Tha