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
Jaime_Barrachina
Posts: 21
Registered: ‎10-25-2012
My Device: Blackberry Playbook 2.0
Accepted Solution

Checking SDK version from code

Hello.

I have an app that needs to distinguish between the 2.1 and 10.0 SDK versions from the code. Is there a macro/define/function call that can tell me this?

 

thank you in advance,

Jaime

Please use plain text.
Contributor
Jaime_Barrachina
Posts: 21
Registered: ‎10-25-2012
My Device: Blackberry Playbook 2.0

?

Noone knows? I'd really appreciate it fi someone can share this.

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: ?

You're talking about pure ndk right ? i haven't found handy macro for this but using this http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_re... you can distinguish between os 2.x and os 10.x by using os version function.
Please use plain text.
Contributor
Jaime_Barrachina
Posts: 21
Registered: ‎10-25-2012
My Device: Blackberry Playbook 2.0

Re: ?

Thanks!
Please use plain text.