Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
gongzhenhua
Posts: 3
Registered: ‎05-31-2012
My Device: Playbook
Accepted Solution

how to use bb::device::Gravity properly

I would like get gravity information on BB10 platform. I included <bb/device/Gravity>, and I claim using namespace bb:device;

 

when I declare

Gravity* mGravity = new Gravity();

 

it returns a compile error that undefined reference to 'bb::device::Gravity::Gravity()'.

 

Is anyone can tell me how to fix this? Many thanks!

 

Zhenhua

 

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: how to use bb::device::Gravity properly

Reproduced.

 

Bug reported: BBTEN-39

 

Stuart

New Contributor
gongzhenhua
Posts: 3
Registered: ‎05-31-2012
My Device: Playbook

Re: how to use bb::device::Gravity properly

Can I download the newer version or I have to wait a bit more time? Thanks!

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: how to use bb::device::Gravity properly

Sorry if I was unclear.

I just created a bug report in the bug reporting system.

It looks like you'll have to wait a bit.

New Contributor
gongzhenhua
Posts: 3
Registered: ‎05-31-2012
My Device: Playbook

Re: how to use bb::device::Gravity properly

Thanks for your reply. The problem solved since I need to add -bbSensors.so to the lib and recompile. I appreciate your help! BTW, can I get Wifi information using Cascades? I browsed the API classes, but I did not find a function that can get wifi information.

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: how to use bb::device::Gravity properly

[ Edited ]

Sorry for not realizing that.  I should have checked the other sensors; I thought the library was already built into the build.  Thanks for letting me know.

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: how to use bb::device::Gravity properly

About wifi: everything available now should be documented, and everything documented should be available now.

New Contributor
gord888
Posts: 8
Registered: ‎11-26-2010
My Device: Not Specified

Re: how to use bb::device::Gravity properly

I don't suppose you can explain how you did that?