How to use correctly the bb::device:Gravity

I would like to get information of gravity on the BB10 platform. I have included , and I claim that using namespace bb:device;

When I declare

Gravity * mGravity = new Gravity();

It returns a compiler error that references to 'bb::device::Gravity::Gravity()' the undefined.

Can someone tell me how to solve this problem? Thank you very much!

Zhenhua

Thanks for your reply. The problem is solved since I must add - bbSensors.so to the lib and recompile. I appreciate your help! BTW, can I Wifi using waterfalls information? I went through the API classes, but I have not found a function that can get information of wifi.

Tags: BlackBerry Developers

Similar Questions

  • How to use correctly the GetProjectPath (and other A_UTF16Char)?

    Hello

    I'm trying to get the current path of project store in the variable wstring and convert later to A_Char show on reportinfo.

    Following code works correctly on Windows 7 64-bit path and the project appears with the ReportInfo dialog, but on Mac OS x 10.6.8 projectPathW.length () is always zero even when no projects are open. And ReportInfo shows always the empty string.

    AEGP_ProjectH project;

    AEGP_MemHandle pathH;

    Suites. ProjSuite5()-> AEGP_GetProjectByIndex (0, & project);

    If {(project)

    ERR = suites. ProjSuite5()-> AEGP_GetProjectPath (project & pathH);

    If (! err)

    {

    A_UTF16Char * pathText;

    ERR = suites. MemorySuite1()-> AEGP_LockMemHandle (pathH, (void *) & pathText);

    If (! err)

    {

    wstring projectPathW ((wchar_t*) pathText);

    If (projectPathW.length () == 0)

    {

    Suites. UtilitySuite3()-> AEGP_ReportInfo (S_my_id, "empty string");

    }

    on the other

    {

    char * fileName = (char *) malloc (AEGP_MAX_PATH_SIZE);

    wcstombs (fileName, projectPathW.c_str (), AEGP_MAX_PATH_SIZE);

    Suites. UtilitySuite3()-> AEGP_ReportInfo (S_my_id, fileName);

    Free (fileName);

    }

    }

    Suites. MemorySuite1()-> AEGP_UnlockMemHandle (pathH);

    ERR (suites. MemorySuite1()-> AEGP_FreeMemHandle (pathH));

    }

    }

    I arrive a little late on this one... but it is worth noting that wchar_t is 16-bit Windows, but 32-bit on Mac OS.  So A_UTF16Char and wchar_t are not interchangeable on MacOS.  Look for the example code copyConvertStringLiteralIntoUTF16() in the SDK for an example of not-so-nice how to handle this.

  • How to use correctly the toolbar?

    I just added the nodes of toolbar items:

    toolBar.getItems().addAll(label1, colorPicker1, label2, colorPicker2, label3, colorPicker3, label4, colorPicker4);
    

    When I chose the colorPicker, it can work normally. However, when I specify a default of the toolbar width, the overflow button and then I selected the colorPicker component in the list of the overflow button, nothing answers!

    Can someone explain this for me? Thank you.

    I filed https://javafx-jira.kenai.com/browse/RT-32433

  • I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    How to use several devices iPhone, iPad or iPod with a computer

    Using more an iDevice on the same computer

    This mainly applies to couples who add another device and don't want their electronic mail, messages, etc. being duplicated on both devices. To start reading: How to use several iPhone, iPad or iPod devices with one computer. You must create a login separate Apple and password for anyone who will use the new iDevice. See Apple - my Apple ID and frequently asked questions about the Apple ID. The easiest way is to do it on the computer using iTunes: iTunes - how to set up an Apple ID iTunes.

    On the computer, create a new user account for the person with the new iDevice. This is the user account always uses this person. He or she will no longer use the other user account. This way the person will have a separate iTunes library. Note When finished, do not 'share' apps under a single Apple ID. Each of you must buy your own applications under your own Apple ID. When you decide to divide like this you will have to buy new applications they want to use.

    First, transfer the new devices to a new account as well as all your data.  Save pictures of flow picture you want to keep for your camera (unless they are already in the camera roll) by opening your Photos app, tap Albums icon at the bottom. Now press the album My Photo Stream; Press Select; tap the photo you want to select. tap the share (box with the face up arrow) in the lower left corner icon; in the film, and then click Save.

    If you synchronize notes with iCloud, you want to keep, you must open each of your notes and email it to yourself. Later, you can copy and paste the text into the new notes created in your new account.

    Tap Settings > iCloud > remove account (removes it only from this device, not iCloud; the person who maintains the current account is not affected) provide the password to disable find my phone and choose to keep on my iDevice when prompted.  Sign in with another Apple ID to create your new account. Choose merge to download your data.

    Once you are on separate accounts, you can each go to icloud.com and remove data from the other person to your account.

    The above was created by the user randers4. Changes were made to improve the readability and the syntax.

  • How do I correct the name of the child on the account

    Summary of the issue
    Other issues of Windows Live family safety

    What version of Windows Live Family Safety do you use?
    Version 2011 (15.4.3538.513)
    Choose your operating system version:
    Windows XP SP2

    Additional details
    I entered my name instead of my child on the account by mistake.
    How can I correct the name of the account of parental controls for my child?
    When I change the login of the child, it I cannot change the name.
    And connected as a parent, I can change the other detailsof its profile, but not its name.
    Thank you.

    Hello

    I understand the situation. If you entered by mistake the bad name of your child's account, you can change it by accesing the access to his account via https://account.live.com.

    A after logging in using the account of the child find name under account information , and then click Edit on the right side.
    Enter the name, then click on record.

    If you need assistance, do not hesitate to answer on this post.

    Best regards

    Eugene R.

  • How can I correct the problem on the computer fan noise laptop vaio sony SA

    How can I correct the problem on the computer fan noise laptop vaio sony SA

    Hi Davidra,

    Download and install if no update is available about the issue using exactly the model of your computer, here: http://esupport.sony.com/US/p/select-system.pl?DIRECTOR=DRIVER

    Try the steps here:

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/34181

    If the problem persists, contact Sony Service support here: http://esupport.sony.com/US/p/service.pl

    Note: If my post answered your question, please mark it as an "accepted Solution".

  • How can I correct the CSRSS process. EXE virus

    How can I correct the CSRSS process. Virus EXE with win 7 I have tried a number of fixers and notthing worked

    How can I correct the CSRSS process. Virus EXE with win 7 I have tried a number of fixers and notthing worked

    http://www.Google.co.UK/search?q=Csrss.exe+virus+with+in+win+7&RLS=com.Microsoft: en - gb:IE - SearchBox & ie = UTF-8 & oe = UTF-8 & sourceid = ie7 & rlz = 1I7GGLT_en & redir_esc = & ei = NqXJTOqvNZbKjAfrov3tDw

    some ideas here.

  • How to use / on the url of my Web site?

    I want to know how to use / on the url of my Web site?

    The slash can be used in domain names, if that's what you're asking. It is used to separate folders in your paths of structure and the files of the site.

    Perhaps if this is not answering your question can you provide an example of what you're trying to do?

  • Liquid markup - how to use (for the rest of us)?

    I read a lot of things in the developer section BC liquid. Clearly for the programmers out there, it's like plain English what she gets. However, for the rest of us, designers and our customers, there are large gaps in the way it is presented. It assumes that we have a basic understanding of the functions on the server side and on the side of customer calls. I would say it seems intense collaboration between the province of British Colombia and the "expert" group of advisers in the liquid application with BC is ahead of the rest of the customers of BC scratching their heads.

    What seems to be missing is the step by step guides that BC developed for its previous syntax, with examples for each module, even examples of HTML work. And does not suggest that it subscribes to a course of Liquid by a third party. BC made the changes, and I'm expecting BC to provide the best documentation, guides, and tutorials.

    For example, after reading and re-reading the liquid documentation BC (for developers) I googled liquid to see if anyone had made any sense it to '' the rest of us. '' I came across a tutorial (Infinite business catalyst product detail Layouts |) Joe Watkins | Adobe Business Catalyst tutorials - tips & tricks) which explained mustache (a solution javascript much debated and turned in derision by some people in this forum; although debate reads like a pretty eyes and devoid of logic for "the rest of us"). Now before you say that moustache is not the same thing, etc. client-side's point was that it was EASY to understand. BC seems to have forgotten the "rest of us" in his excitement.

    BC seems to have become more complex than ever, creating a wide gap between those who are experienced programmers and customers who wanted a simple CMS to manage their Web site. I am sure that liquid offers brilliant functional solutions, but it can be difficult to access without understanding how to use it.

    However, attractive interface and functionality of Squarespace we makes you wonder what is happening on Earth at BC. You can all you like to argue about the technology behind Squarespace, but it totally works on BC in the way in which it is marketed, presented and used by the very market that BC is intended.

    I hope that BC, with the release of liquid, at least with a "how to use (for the rest of us).

    I can't help to wonder if the redevelopment of Colombia-British got hijacked by the developers, when he should have been hijacked by marketing initially.

    Hey Simon,

    Its a templating language and the programming language basic, must never anything the customer needs to see, touch or concern. We have been running the stuff of bedbugs in brass on the liquid for a few months and I know the sandpile a running as well things - I think that say there are a lot of people happy and I have not seen a case of head scratching total with everyone. Some people of course, but you must also be aware that liquid is not final, it isn't here for all sites and developers forum is above all the work to ensure that it has the features he needs, his work at 100% and ready for prime time. With this documentation is largely up to date in many areas and guides etc will.

    You have all these:

    Developers

    And the ready reference information and existing code snippets in - the Developer Reference

    But like I said, its not direct things yet if are still ongoing, evolving and updated.

    In terms of saying moustache - it is pretty much the same language in many ways - much the creation of models of language are.

    In terms of BC - they tried the simple way, they went with Muse, they did more with the ice, the more simple things - BC has not progressed and lost big BC partners etc. Dreamweaver saw what he removed from the main application and so on. BC needs to move forward and this is the real way forward, must pick up digital agencies, many sites of coherent long-term based on the platform so that it can develop. Of course, Squarespace has a nice interface in version 7, but have you used? VERY limiting, your will not build sites Web tailored to your customers that meet the needs of their online business can grow.

    But yes, what your ask Simon, is already past and you have to remember the liquid is NOT yet final.

  • How to use all the internal speakers and headphones?

    Hello, I am using the internal speaker and the headphones together...
    I have a HP Pavilion dv9695el laptop running windows vista ultimate 64 bit and my sound card is a Realtek ALC268 (I have updated drivers). Card his has three exits: 3, 5 mm jacks on the front panel internal and two speakers (maybe a fourth to QuickDock?).
    If I connect the headphones, internal speakers automatically turn off. I want to use them together and I don't know how to do this.
    Also from "control panel"-> "audio options", it is impossible to pass because there is only a generic element "speakers", so I'm not able to use third-party programs such as "Vista Audio Changer" or nobodies.

    I asked some forums and people told me that it is a hardware limitation... I'm pretty sure this isn't because I also installed Linux Ubuntu (@64 bit) and use it, it is possible to bring together audio of the two devices.

    Please help me, I'm puzzled :(

    Microsoft Windows allows only one audio output at the same time. Therefore, choose internal speakers or external output. I have the same situation with my HP dv7 laptop. With the help of Ubuntu (unix), I am able to drive together the two audio outputs.

  • How can I correct the error that my XML page cannot be displayed?

    When I run the Microsoft Fix it Center each item comes up with the same answer that I can't watch my XML input using XSL style sheet and to correct the error. How can I fix the error?

    Hello

    ·         Who solve this are you referring to and why do you run the hotfix on the system?

    ·         Outside this Web site you are able to view websites without any problems?

    ·         What browser are you using and what version?

    The error means that web browser is unable to display information from a database file (XML) using the rules defined for the display of information (XSL). Rules XSL on the site you access may be unavailable, corrupted, or currently modified and made available later.

    If it is not then your site, I suggest to try after a while and check if you are able to view the Web site. If this is your site then, I suggest you check the code you have created and then try to view the Web site.

    If you use internet explore, then I suggest you to reset Internet explorer and see if the problem is resolved. Follow the steps mentioned in the article below.

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    I suggest you return the item mentioned below.

    Error message "Cannot display the Page XML" when you open an XML file as an attachment in an e-mail message

    http://support.Microsoft.com/kb/303487

  • How can I change the audio device automatically between exits?

    Original title: Dual monitor mode

    I am currently running Windows 7 Home Premium 64-bit with Media Center and my hardware is Inter Core 2 Quad with NVIDIA GEFORCE 9800GT and an integrated Hauppauge WinTV HVR-1800 ATSC/QAM.

    I have two DVI-HDMI, one output to my monitor 24 "HD and one for my 42 '' HDTV and computer speaker are connected to the SPEAKER OUT behind the computer.

    The problem is when I look at Internet TV through my computer on my HDTV, I need everytimes switch my Default Sound Source of speakers to the HDMI OUTPUT in my-> hardware & sound control panel and market back when I want to use my computer.

    Someone knows how to fix this?

    Hello, DuFF1

    You can have only one default device.

    It is not possible to put two devices by default, nor is it possible to configure the output in default Media Center device. You can try searching for additional Media Center change the audio device by default or continue editing the device default manually before watching TV on the Internet.

    You can leave your comments on the following link:http://mymfe.microsoft.com/Windows%207/Feedback.aspx?formID=195

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How do I configure the bluetooth device

    Original title: pls help bluetooth & windows XP

    so brought of speakers of wi - fi creative d80 to my pc. I tried to activate bluetooth in downloading drivers. is it true that you can not bluetooth windows xp?

    Hello

    Thanks for posting in Microsoft Community

    I appreciate that you try to configure the Bluetooth device in Windows XP.

    I will definitely help you with this.

    Please follow the steps in the link.

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883259?WA=wsignin1.0

  • Hi__I have acer extansa laptop 5635. I installed Windows 7 in there. I am facing problem on bluetooth device drivers. How do I get the bluetooth device driver.

    every time I help out to fix this problem, it search for it and then he said: this bluetooth device driver is not installed. Install the last jerking for the device.

    After that, I click option

    apply this hotfix

    then he begins to search for, but after a few seconds it gives an error that

    device not found driver.

    Please help me solve this problem. I will be thankful to you.

    Hi Fadi,

    If Windows is unable to install the drivers automatically, then you will need to visit the Bluetooth device manufacturer site download and install the drivers manually.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    Looking for drivers

    http://Windows.Microsoft.com/en-us/Windows-Vista/finding-drivers-what-to-do-when-your-hardware-wont-work-with-Windows-Vista

    Set up a Bluetooth compatible device

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I correct the wrong drive letter in the Collections only - no files?

    I moved my Lightroom Catalog from another computer. All my files are correct, but my Collections records point to a drive letter does not exist, and I get the error that there are duplicates.

    How can I fix the drive letter in the Collections only? Find all missing Photos does not work because it applies only to folders and files have the correct drive letter.

    Charles

    I think the best thing to do is to copy the old catalog of the any file to the new computer and place it in its own nine empty folder. Then change in Windows, the drive letters E on the new computer becomes G (as it was on the old computer). Then double-click the Lightroom from the old computer catalog to open it, and everything should be good.

Maybe you are looking for