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

Java Development

Reply
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

CompassApp in 9900 simulator crashes?

[ Edited ]

When I try to open the Compass app in the 9900 simulator (in the Application folder), I get an uncaught java.lang.IllegalStateException. Anyone else experiencing this?

Has anyone been able to get the sample code for the CompassField from here:

http://docs.blackberry.com/en/developers/deliverables/29185/Adding_a_compass_overlay_to_an_app_15933...

to work?

 

TIA

B

 

[Edit] It seems that the CompassOverlay is not rendering...? From the stack trace:

[   178.125] IllegalStateException
[   178.125] No detail message
[   178.125] net_rim_bb_compassOverlay(4DCF4BDD)
[   178.125]  CompassOverlay
[   178.125]  render
[   178.125]  0x65C
[   178.125] net_rim_bb_compassOverlay(4DCF4BDD)
[   178.125]  CompassField
[   178.132]  render
[   178.132]  0xEE
[   178.132] net_rim_cldc-9(4DCF483D)
[   178.132]  GLField$EGLFieldImpl
[   178.132]  render
[   178.132]  0x3A75

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock
Developer
Posts: 107
Registered: ‎05-26-2011
My Device: Torch
My Carrier: Mobilink

Re: CompassApp in 9900 simulator crashes?

I am getting the same error while running the app ...

did u get rid of this error ?

Highlighted
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

Re: CompassApp in 9900 simulator crashes?

No, unfortunately. We ended up reusing and adapting our pre-OS7 code to get our Compass app working with the new magnetometer instead of using the compass overlay in the new API.

B

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock