<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; extensions</title>
	<atom:link href="http://devblog.blackberry.com/tag/extensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Fri, 17 May 2013 17:47:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; extensions</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>Prevent Sleep for WebWorks Apps</title>
		<link>http://devblog.blackberry.com/2013/03/stop-sleep-webworks-apps/</link>
		<comments>http://devblog.blackberry.com/2013/03/stop-sleep-webworks-apps/#comments</comments>
		<pubDate>Mon, 04 Mar 2013 16:25:34 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14048</guid>
		<description><![CDATA[(Photo credit to Alan L, and his cat) When your content is so riveting that your users can’t take their eyes off the screen, the last thing you want is the screen dimming and breaking that immersion. Thankfully, BlackBerry 10 offers a simple API to keep the screen from dimming, which conveniently handles things like [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14048&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/03/cateyes.jpg?w=400" /></p>
<p style="text-align:center;">(Photo credit to <a href="http://www.flickr.com/people/35188692@N00/" target="_new">Alan L</a>, and his cat)</p>
<p>When your content is so riveting that your users can’t take their eyes off the screen, the last thing you want is the screen dimming and breaking that immersion. Thankfully, BlackBerry 10 offers a simple API to keep the screen from dimming, which conveniently handles things like the user putting the application in the background. Just a few weeks ago, I wrapped up this simple API in a <a href="https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/PreventSleep" target="_new">WebWorks Extension</a> using our new <a href="https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/Template" target="_new">Extension Template</a>. I’ve already heard from a few happy developers who have included it in their apps, but there are plenty of use cases, so I figured it would be good to share with the wider developer community. Just remember to use this one properly – turn it on only when displaying content where the user is going to be viewing the screen but not interacting with it. Your users will thank you for being able to see your content, and also for not keeping the screen on when it’s not necessary.</p>
<p>Here’s a quick look at what it’s like to integrate the API.</p>
<p>Add the feature to your config.xml:</p>
<pre>&lt;feature id="community.preventsleep" required="true" version="1.0.0.0" /&gt;</pre>
<p>And call these methods to interact with it:</p>
<pre>var setting = true; // boolean
var result = community.preventsleep.setPreventSleep(setting);
// Result is a string value for debugging

var currentSetting = community.preventsleep.isSleepPrevented;
// boolean value for the state of the screen</pre>
<p>Thanks for checking it out and if you’ve got any issues, please post them on <a href="https://github.com/blackberry/WebWorks-Community-APIs/issues?state=open" target="_new">GitHub</a>. Now your slideshow app of animated cat gifs can be realized in all its deserving glory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14048/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14048&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/03/stop-sleep-webworks-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/03/cateyes.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>Sublime BlackBerry 10 WebWorks Development</title>
		<link>http://devblog.blackberry.com/2013/02/sublime-blackberry-10-webworks-development/</link>
		<comments>http://devblog.blackberry.com/2013/02/sublime-blackberry-10-webworks-development/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 19:28:00 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13978</guid>
		<description><![CDATA[At the risk of broaching a topic that is potentially more volatile than politics, religion, or semi-colons in JavaScript, let’s talk a little bit about development environments for BlackBerry 10 WebWorks. Now, while I’m going to talk about one development environment in particular in this blog post, one of the great things about BlackBerry 10 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13978&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>At the risk of broaching a topic that is potentially more volatile than politics, religion, or semi-colons in JavaScript, let’s talk a little bit about development environments for <a href="http://developer.blackberry.com/html5/">BlackBerry 10 WebWorks</a>. Now, while I’m going to talk about one development environment in particular in this blog post, one of the great things about BlackBerry 10 WebWorks development is that you can use any tool you want.</p>
<p>What I’d like to present is one option and some suggestions for being productive in it, but I’d very much like to hear from you through the comments or email what you use, and if you are interested I’d like to collaborate on a blog post about using your favourite IDE and how to get the most out of it. My goal is to make developing BlackBerry 10 HTML5 apps as easy as this:</p>
<div id="attachment_13981" class="wp-caption aligncenter" style="width: 610px"><a href="http://rimdevblog.files.wordpress.com/2013/02/cat.jpg"><img class="size-full wp-image-13981" alt="Image credit Janet Morrell - http://www.flickr.com/people/89509548@N00/" src="http://rimdevblog.files.wordpress.com/2013/02/cat-e1362065328678.jpg?w=600&#038;h=418" width="600" height="418" /></a><p class="wp-caption-text">Image credit Janet Morrell &#8211; <a href="http://www.flickr.com/people/89509548@N00/" target="_blank">http://www.flickr.com/people/89509548@N00/</a></p></div>
<p>The editor that I want to talk about today is called <a href="http://www.sublimetext.com/2">Sublime</a>. You can evaluate it for free, it’s fully cross platform, and even has portable versions so you can keep it on a USB key. There are plenty of cool features and I could never cover them all, but the first thing you want to do is install the <a href="http://wbond.net/sublime_packages/package_control">package control plugin</a>, and then all the other packages are just keystrokes away: Ctrl-Shift-P and choose “Package Control: Install Package”.</p>
<p>Some recommended packages to get you started are as follows:</p>
<ul>
<li>SublimeLinter</li>
<li>All Autocomplete</li>
<li>Markdown Preview</li>
<li>Color Schemes by carlcalderon (Stereokai is my choice)</li>
</ul>
<p>One of my favourite capabilities of Sublime is its Build System integration. I put together a video showing how to setup our BlackBerry 10 WebWorks <a href="http://devblog.blackberry.com/2012/11/webworks-ant-build-script/">Ant Build Script</a> with Sublime, so you can see how easy it is:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/89bOz3w_z5E?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>See, that wasn’t so bad. There’s really no need for the pitchforks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13978/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13978&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/sublime-blackberry-10-webworks-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/cat-e1362065328678.jpg" medium="image">
			<media:title type="html">Image credit Janet Morrell - http://www.flickr.com/people/89509548@N00/</media:title>
		</media:content>
	</item>
		<item>
		<title>Down the Rabbit Hole: Extensions for BlackBerry WebWorks</title>
		<link>http://devblog.blackberry.com/2013/02/extensions-for-blackberry-webworks/</link>
		<comments>http://devblog.blackberry.com/2013/02/extensions-for-blackberry-webworks/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 14:07:43 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13798</guid>
		<description><![CDATA[In the interest of full disclosure, I admit that the BlackBerry 10 WebWorks extensions scared me a little when I first looked at them. It’s been a long time since I really wrote C++ code. We won’t dwell on how long it’s been, but let’s say it’s been long enough. And, when I looked at [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13798&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/02/webworkspic1.jpg?w=450" /></p>
<p>In the interest of full disclosure, I admit that the BlackBerry 10 WebWorks extensions scared me a little when I first looked at them. It’s been a long time since I really wrote C++ code. We won’t dwell on how long it’s been, but let’s say it’s been long enough. And, when I looked at the memory sample, it didn’t get me to the point of being really confident in how to approach extensions. Though we called it a template, it was more accurately a small example. That said, the potential of extensions, and the cool native APIs that we could be accessing in WebWorks apps kept me thinking about ways to get better at them, and make it easier. Now, after consulting with the experts in the WebWorks team, and studying the source of many core extensions, I’m quite happy to say that we have a <a href="https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/Template" target="_new">new template for WebWorks Extensions</a>.</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/02/webworkspic3.jpg?w=180" /> <img alt="" src="http://rimdevblog.files.wordpress.com/2013/02/webworkspic2.jpg?w=400" /></p>
<p>Now the template is designed as a real starting point for creating extensions, with examples for all the most common ways that the JavaScript layer needs to talk to the native layer. We haven&#8217;t changed the fact that you will be writing C, C++, or Qt code on the other end, but we have made it much easier to get right to that code instead of learning about what&#8217;s in the middle. Here’s what the template provides:</p>
<ul>
<li>Synchronous and Asynchronous method templates</li>
<li>Sending and receiving text and numeric values</li>
<li>Sending and receiving JSON values</li>
<li>Starting and stopping native threads</li>
<li>Receiving ongoing callback events from native</li>
<li>Defining a custom property in the extension</li>
<li>Ant Build Script for packaging and installation in the WebWorks SDK</li>
</ul>
<p>The results from the developers who have used the new template are superb &#8211; not only do we have some <a href="https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/Template" target="_new">new extensions being built</a> and contributed, but developers have confidence in what they need to do and the possibilities unlocked are immediately visible in their faces when they get coding. And, when you can focus on the code, it turns out that native code isn&#8217;t so bad after all: The rabbit hole turns out to be an underground railway with free WiFi. So, give it a shot and let’s create some cool extensions for BlackBerry 10 WebWorks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13798/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13798/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13798&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/extensions-for-blackberry-webworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/webworkspic1.jpg?w=450" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/webworkspic3.jpg?w=180" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/webworkspic2.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>Building Enyo Applications with BlackBerry WebWorks</title>
		<link>http://devblog.blackberry.com/2012/06/building-enyo-applications-with-blackberry-webworks/</link>
		<comments>http://devblog.blackberry.com/2012/06/building-enyo-applications-with-blackberry-webworks/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 14:24:07 +0000</pubDate>
		<dc:creator>Tim W.</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[blackberry webworks]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Enyo]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=9566</guid>
		<description><![CDATA[Find out how to get started building Enyo applications with BlackBerry WebWorks.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9566&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter size-full wp-image-9569" src="http://rimdevblog.files.wordpress.com/2012/05/enyo-1.jpg?w=550&#038;h=322" alt="TITLE_IMAGE" width="550" height="322" /></p>
<p>When we first released our porting guide for webOS developers, it was admittedly more focused on migrating from Enyo to standard HTML5. However, since both Enyo 1.0 and 2.0 are open source and run on the BlackBerry® WebKit Browser, it’s actually even easier to get Enyo applications running on the BlackBerry platform, and we’ll be updating our guide in the next couple weeks as well. All you need to get started is available right now though, so let’s take a look.</p>
<p><span id="more-9566"></span></p>
<p>Enyo 1.0 comes directly from the webOS platform and is designed specifically for that OS, but its main requirement is WebKit, so it’s possible to make it work with BlackBerry 6 OS and up, including the BlackBerry PlayBook™ tablet and BlackBerry 10. At approximately 7MB, Enyo 1.0 is pretty large, and this can be a problem on our OS 6 and BlackBerry 7 OS phones as it’s approaching the size limit for an application install on those phones. However, that’s not an issue on the BlackBerry PlayBook tablet and BlackBerry 10. View this sample on <a href="https://github.com/blackberry" target="_new">Github</a> to see how to create a BlackBerry® WebWorks™ config.xml for the <a href="https://github.com/timwindsor/EnyoJS-on-BlackBerry/tree/master/Enyo-1.0-StyleMatters" target="_new">Enyo Style Matters sample</a>.</p>
<p><img class="aligncenter size-full wp-image-9568" title="" src="http://rimdevblog.files.wordpress.com/2012/05/enyo-2.jpg?w=550&#038;h=322" alt="" width="550" height="322" /></p>
<p>Enyo 2.0 is a new framework based on the ideas behind Enyo 1.0, but now built with cross-platform and mobile targets in mind first. It’s light-weight, highly extensible, and works great on BlackBerry. See this sample on Github for the <a href="https://github.com/timwindsor/EnyoJS-on-BlackBerry/tree/master/Enyo-2.0-OnyxSampler" target="_new">Enyo Onyx Sampler</a> as a BlackBerry WebWorks application.</p>
<p><img class="aligncenter size-full wp-image-9567" title="" src="http://rimdevblog.files.wordpress.com/2012/05/enyo-3.jpg?w=550&#038;h=322" alt="" width="550" height="322" /></p>
<p>Besides running Enyo itself, it’s quite easy to integrate BlackBerry WebWorks extensions into Enyo Applications for native capabilities. The <a href="https://github.com/timwindsor/EnyoJS-on-BlackBerry/tree/master/Enyo-2.0-WebWorksExtensions" target="_new">final sample on Github</a> shows how to use BlackBerry WebWorks APIs to capture Application information, show Battery status, track device motion, and interact with the native file system.</p>
<p>If you have an Enyo application and you are looking for a profitable market place, the <a href="http://appworld.blackberry.com" target="_new">BlackBerry App World™</a> storefront should be top of your list. Enyo based applications are <a href="http://crackberry.com/portability-its-best-see-why-readontouch-pro-must-have-blackberry-playbook" target="_new">well received</a> and <a href="https://bdsc.webapps.blackberry.com/devzone/appworld" target="_new">BlackBerry App World</a> is a marketplace where developers do well, with 13% making more than $100,000. I’d love to hear from you if you have any questions and to take a look at your applications. Drop me a line at twindsor at rim dot com, or <a href="http://twitter.com/timothywindsor" target="_new">@timothywindsor</a> on Twitter.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/9566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/9566/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9566&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/06/building-enyo-applications-with-blackberry-webworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4af90af66399bef37f445ec81aba64a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">timwin1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/enyo-1.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/enyo-2.jpg" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/enyo-3.jpg" medium="image" />
	</item>
	</channel>
</rss>
