<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ChilisApps &#187; BB10</title>
	<atom:link href="https://www.chilisapps.com/blog/category/bb10/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.chilisapps.com</link>
	<description>Awesome Apps</description>
	<lastBuildDate>Wed, 12 Jul 2017 06:35:54 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Is my Android app running on a Playbook/BB10 device?</title>
		<link>https://www.chilisapps.com/blog/2012/09/04/is-my-android-app-running-on-a-playbookbb10-device/</link>
		<comments>https://www.chilisapps.com/blog/2012/09/04/is-my-android-app-running-on-a-playbookbb10-device/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 05:45:13 +0000</pubDate>
		<dc:creator><![CDATA[Ben]]></dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[BB10]]></category>
		<category><![CDATA[Dev]]></category>

		<guid isPermaLink="false">http://www.chilisapps.com/?p=451</guid>
		<description><![CDATA[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<p><a href="https://www.chilisapps.com/blog/2012/09/04/is-my-android-app-running-on-a-playbookbb10-device/">Continue Reading &#8594;</a></p>]]></description>
				<content:encoded><![CDATA[<p>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:</p>
<pre class="brush: java; title: ; notranslate">

System.getProperty(&quot;os.name&quot;).equals(&quot;qnx&quot;);

</pre>
<p>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.</p>
<pre class="brush: java; title: ; notranslate">
public class Consts
{
    public static boolean isPlaybook()
    {
        return System.getProperty(&quot;os.name&quot;).equals(&quot;qnx&quot;);
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.chilisapps.com/blog/2012/09/04/is-my-android-app-running-on-a-playbookbb10-device/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.chilisapps.com @ 2026-04-27 13:08:36 by W3 Total Cache -->