How to get a Longtitude and Latitude of mobile?

I want to get the device latitude and longtitude. I used the location api to get the latitude and longtitude the problem now, I am facing is I could not able to call the method getLocation() inside the button click event. It is throwing error like to call the thread event getLocation() method. Can someone tell me how to solve this problem.

start a thread to get the location. do things when you get it.

Tags: BlackBerry Developers

Similar Questions

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

  • How to get the second and third weekend of every month over a period of time?

    Hello

    No idea how to get the second and third weekend of every month on a given period without use of CLAUSE?

    Thanks in advance.

    Try it below,

    SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 1

    WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 6

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 1

    END as second_weekendday,

    BOX WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7

    WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 7

    END AS third_weekendday

    FROM (SELECT SYSDATE startdate,

    SYSDATE + 300 enddate

    THE DOUBLE)

    CONNECT BY LEVEL<=>

  • How can Hello I get my Facebook and photos of mobile on my I pad

    How can Hello I get my Facebook and photos of mobile on my I pad

    For Facebook, you will need to download the photos to your device first and then upload them to Revel.  You can download on Facebook of Revel directly on an iPad or an iPhone.

    You can load to Revel your laptop via a browser using adoberevel.com.

    See this FAQ for more information:

    FAQ: File Basics: how to download, download, share, move and delete files to Revel?

    (includes links and directions for change, download, download, delete, share, move and create)

    http://forums.Adobe.com/message/5106054#5106054

    Guinot

  • How to get the phone and messages back in my dock apps? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    How can I get the phone and messages apps in my dock? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    Try

    Settings > general > reset > reset home screen presentation.

    Note: All other applications will be organised by alphabetical order.

  • How to get the .rbf and .through files?

    Hello I am currently working on the project, which provides for automatic deployment and launch programs everchanging.

    Ev3 are scattered in different schools. I wrote a simple script that can download a file and then send it to ev3 via wifi.

    But I'm currently stuck on how to get .rbf and Labview .through files.
    I know that I can deploy .vi using the target to ev3 and then upload these files to the PC, but I can't add script.
    Is it possible to compile .vi to the file?

    Sorry, try this

  • How to get the scanning and fax utilities works from 2840 printer. Print function works from pc

    I changed my google chrome browser and I finally got my confiquered pc and printer. He is an all-in-one 2840 color laser jet. How do I get the scan and fax utilities to perform?

    It is useful to include the manufacturer and model number.

    What version of Windows you have, including the service pack?

    How the device is connected to your computer (USB, Ethernet, other)?

    Have you installed the software that came with your HP Color LaserJet 2840 AiO printer?

    If not, why?  If you did, what error messages you are seeing?  Please report messages completely, without paraphrasing.

    Start here: HP Color LaserJet 2820 and 2840 AiO products Series - first installation and install

  • somehow my video call won't show an avatar that moves with me. How to get down there and put my face on screen so I can chat?

    one day I was sleeping me with my live avatar and somehow I got it on the screen whenever I try to talk someone. I can see them in the window, but they consider me an avatar to move my lips and the head. How to get back to where it shows me when I chat on cam?

    Hello


    What application are you using?
    If you use Windows Live Messenger I suggest you to ask your question on the forum below.
    http://windowslivehelp.com/product.aspx?ProductID=2
  • How to get Wifi wifi and name device MAC address?

    Hi all

    How to get name and wifi device MAC programtically wifi peripheral addess?

    file Pro

    LIBS += -lbb
    

    applicationui.cpp

    #include 
    
        bb::PpsObject myPpsObject("/pps/services/wifi/status_public");
        myPpsObject.open(bb::PpsOpenMode::Subscribe);
    
        bool ok;
        QVariantMap wholePps = bb::PpsObject::decode(myPpsObject.read(), &ok);
    
        if (ok) {
            QVariantMap status_public = wholePps["@status_public"].toMap();
            QVariantMap wifi_connection_state = status_public["wifi_connection_state"].toMap();
            QString bssid = wifi_connection_state["bssid"].toString();
            QString ssid = wifi_connection_state["ssid"].toString();
            qDebug() << "MAC Address:" << bssid;
            qDebug() << "SSID:" << ssid;
        }
    
  • How to get the number and the name of the contacts selector

    Hi all

    I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.

    There are attributes that I can put like contactId.value () to retrieve or there is another way?

    Thanks in advance.

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
                                }
                            }
                        ]
    
                    }
    
                    Label {
                        id: result
                        text: "You chose contact: "
                    }
    

    Hello

    You can get the contact name and phone number as this,

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
    // call a cpp method to get the details
    
    app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
    

    the CPP code:

    void ContactDetails(ContactId id)
    {
    Contact contact_info = m_contactService->contactDetails(id);
    
        QString firstName = contact_info.firstName();
        QString lastname = contact_info.lastName();
            QList phoneno_list = contact_info.phoneNumbers();
    
        QStringList no_s;
    
        foreach(ContactAttribute attr, phoneno_list)
        {
            no_s << attr.value();
        }
    }
    

    You can get details like this.

    Kind regards

    Naresh Kodumuri.

  • How to get the height and width of the screen of the blackberry device?

    Can someone tellme how to get details of the screen of the blackberry device?

    Display.getWidth () and Display.getHeight ().  If this isn't what you want, let us know.

  • How to get a clean and green Win8 facility

    Hey everybody.   Just bought a laptop Inspiron 15, 7000 series, computer laptop i7. It of a bit muddy, so please be gentle :)   I bought the full Version from Newegg 8.1 window to use on an old MacBook Pro.  Did not work very well with Bootcamp/VM.  So I got the Dell.

    1. I really HATE all the bloatware and want to do a new installation.

    2. I want the new installation on a disk SSD 256 newly purchased.  The swap of the disks was pretty easy.

    3. I have NOT activated Windows 8 on the original Dell drive.

    4. I enabled Windows 8 on the key that I received from Newegg on my MBP, but as wiped out the drive and sold the old MBP.

    5. I created a bootable USB drive to attempt to use the license that I purchased from Newegg.  If I can still.

    6 can't get Dell to read the USB key, even though I went into the BIOS to change the boot priority but I could have missed a setting?

    What are my best options / and how to get a facility clean and green on the new SSD 256 Win8?  I can live with the loss of the license from Newegg provided if I have to.  I just want a clean and green on the SSD.

    Thank you!!!

    Update: thank you!  Everything seemed to work very well.  It turns out that there are corrutped files on the flash bootable drive. Such things usually happen to me.  Another fact.  Installation went painless and Windows has accepted the key.  Now I have clean and green on the SSD.  FAST!

  • How to get the name and number of the procedure parameter list or a function?

    I stated the procedure described in the package

    If I want to get the number and the name of the parameter list, so how do I it

    I don't have I her name with the package.

    create or replace package demoApp is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2);

    end demoApp;

    create or replace package demoApp body is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2) IS

    EmpID number;

    BEGIN

    Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;

    INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20001,' insert the problem ' |) SQLERRM);

    END;

    end demoApp;

    -----------------

    I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "

    Select *.

    of all_arguments

    where package_name = 'DEMOAPP.

    and object_name = 'INSERT_DATA.

  • How to get paragraphStyle, characterStyle and reange of it?

    HII,

    I'm trying to get the information from paragraph and character style applied to my story.

    Now I have 2 main problems...

    (1) how to get paragraphStyle and characterStyle information...? right now I use IStyleNameTable to get the styleUID using GetNumStyles() and GetNthStyle (i).

    And use this UID to create IStyleInfo. After obtaining IStyleInfo, I ' maccess its properties but is giving me either default values or NULL values. What am I doing wrong?

    (2) and also I need a range of texts on which these styles are applied.  How can I get characterStyleRange and paragraphStyleRange?

    Please... help me on this...

    See source/sdksamples/codesnippets/SnpManipulateTextStyle.cpp.

  • How to get the LOGO and company name in the theme of the 4 apex

    Hello

    I use the theme 4 for apex 4.0.2.
    I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.
    How to get the two logo and the name of the company?

    Thanks for your help.

    Kind regards
    Sébastien Pallav.

    Pushpesh Pallav says:
    Hello

    I use the theme 4 for apex 4.0.2.
    I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.

    The word is spelled 'then', not 'den '.

    How to get the two logo and the name of the company?

    Select the text, and include HTML, making reference to the image in the text:

    
    

    The image src URI used depends on the location of the image, which you have failed to specify.

Maybe you are looking for

  • Several series on a single chart

    Hello Just a quick question. I use a Source voltage meter that spits out a 2 data tables, after what he did to his measure. I then draw the berries against each other using a graph XY Express. I put the code in a loop so that it makes multiple steps

  • keep a selected chart

    I have a file which is of 32 columns and I need to treat some one way columns and other columns in other words and then print to a file. The data for each column are also displayed on individual graphics. My problem is that I can only do a routine to

  • Disconnect from xbox remote computer

    I disconnected my xbox to my computer but my xbox remote still controls my computer, how do I disconnect the remote control?

  • Family safety on Windows 7 has completely stopped working, even if she pretends to be on

    Help, please!  The Windows Live Family Safety filter worked well on two of my computers for a few months.  All of a sudden it does not filter anything, well that Family Safety site shows that the filter is activated and the work for each account.  I

  • WebWorks doubt

    Hello I'm new to the Blackberry development. I need to develop an application using jquerymobile (webworks). In my application, I need to constantly update the map using gps although exits app., it is therefore possible to run the application in the