ChilisApps
Awesome Apps
  • Home
  • Blog
  • Apps
    • Math Attack
    • Android Clock Widget
    • Meme Maker
    • Sketchee Plus
    • Stock Wallpapers
    • Love Critters
    • Slice
    • Quick Connect
    • Word Hound
  • Contact
  • About Us
Select Page ...

Blog

Is my Android app running on a Playbook/BB10 device?

Ben September 4, 2012 Android, BB10, Dev 2 Comments

Recently we were testing one of our Android apps on a Playbook and the BB10 Dev Alpha. We realized there were a few features we wanted to customize on these devices without forking our code base. Luckily we found a simple solution to check which platform our app is running on. Since the Playbook and BB10 are both based on the QNX platform, so we can simply reference the os.name property as follows:

System.getProperty("os.name").equals("qnx");

There we go, we just need to add a static method to a utility class so we can easily check if our app is running on a QNX device.

public class Consts
{
    public static boolean isPlaybook()
    {
        return System.getProperty("os.name").equals("qnx");
    }
}
  • Tweet
  • Vote on HN
← The right way to launch other apps
RGBa colors in CSS →
Ben

I've been developing for over 8 years now and spend most of my time working on mobile applications. Mobile is my passion but I do end up working on various websites and custom application servers from time to time.

2 Responses to Is my Android app running on a Playbook/BB10 device?

  • Free Android ApkAndroid Free Applications
    9 / 4 / 2012

    I am extremely impressed with your writing skills as smartly as with the format on your blog. Is this a paid subject or did you customize it your self? Anyway stay up the nice quality writing, it is rare to peer a great blog like this one nowadays..

    Free Android ApkAndroid Free Applications 9 / 4 / 2012
    Reply
  • Amedar Consulting Group
    9 / 4 / 2012

    Good website! I really love how it is easy on my eyes and the data are well written. I am wondering how I might be notified whenever a new post has been made. I’ve subscribed to your RSS feed which must do the trick! Have a nice day!

    Amedar Consulting Group 9 / 4 / 2012
    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Recent Posts

    • CSS text-overflow issues on Android
    • RGBa colors in CSS
    • Is my Android app running on a Playbook/BB10 device?
    • The right way to launch other apps
    • Android Holo themes with backwards compatibility
  • Our Tweets!

    Follow @ChilisApps

          • Apps
          • Blog
          • About Us
          • Contact
          Copyright © 2012 BPC Technologies Inc. All Rights Reserved