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
Contributor
darkstorm1308
Posts: 12
Registered: ‎06-01-2011
My Device: Blackberry Tourch

Cascades and geolocation events

Hi all,

 

I was wondering if anyone has some advice on registering for geolocation events under cascades.  So far I have created a separate thread which registers for geolocation events but the thread never seems to receive any.  I have initialised bps on the thread, and check for events passing in -1 into bps_get_event() to wait for events. From testing it appears no events are received because the thread never returns from bps_get_event.

 

I have tested the same code on the ndk for PlayBook and it works as expected, so I can only assume that I am missing something here.

 

Any help would be appreciated.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Cascades and geolocation events

I'm thinking the GPS subsystem has changed in the Alpha in some fashion. See my post here http://forums.crackberry.com/showthread.php?p=7379453#post7379453

(Posted to crackberry since I thought it might be hardware-related, and they've got a BB10 Dev Alpha forum set up whereas here we have forums coupled to each SDK.)

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
darkstorm1308
Posts: 12
Registered: ‎06-01-2011
My Device: Blackberry Tourch

Re: Cascades and geolocation events

Thanks for the reply peter.

 

I have tried the ndk geolocation sample and that runs ok on the alpha device.  I must admit I'm finding it a bit confusing especially since I have not used qt before.  Hopefully there will be some documentation soon on how to access device features.

 

I feel a bit frustrated since I could use the device features on the PB but had no GUI and on BB10 I have a GUI but am finding it hard to access the device features lol

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Cascades and geolocation events

I've built the Geolocation sample with the new beta NDK as well, and it runs fine here also. @lewellyn had similar success, but said when he built the same code using the NDK 2.0 it gave no results. I guess that means *something* changed, but I don't know what yet.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.