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

Android™ Development

Reply
Developer
Posts: 23
Registered: ‎12-05-2011
My Device: PlayBook
My Carrier: Wind

Determine Platform at Runtime

Does anyone know how to determine at runtime, what platform an app is running on?

 

The reason for this question is that I want to have separate AdMob keys for the native Android version and the PlayBook version of the app. I don't want to create yet another thing I need to keep manage, so if I can make this determination are runtime, a simple "if" or "switch" block will make it simple.

 

Michael

Developer
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700
My Carrier: Vodafone
Highlighted
Developer
Posts: 23
Registered: ‎12-05-2011
My Device: PlayBook
My Carrier: Wind

Re: Determine Platform at Runtime

Thanks for the quick response!

 

That did the trick.

 

Michael