<?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; chadtatro</title>
	<atom:link href="http://devblog.blackberry.com/author/ctetreault1980/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 13:34:11 +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; chadtatro</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>He Said: Chad on Leveraging the Power of Foursquare in BlackBerry 10</title>
		<link>http://devblog.blackberry.com/2013/05/he-said-chad-on-leveraging-the-power-of-foursquare-in-blackberry-10/</link>
		<comments>http://devblog.blackberry.com/2013/05/he-said-chad-on-leveraging-the-power-of-foursquare-in-blackberry-10/#comments</comments>
		<pubDate>Tue, 07 May 2013 18:14:10 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[BlackBerry Jam]]></category>
		<category><![CDATA[BlackBerry Live]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14931</guid>
		<description><![CDATA[I’m super excited to be presenting three sessions at BlackBerry Jam 2013 in Orlando next week! As a former 3rd party developer I’ve had the chance to attend several BlackBerry events over the past couple of years. Now that I’m working on the Developer Relations team I’ve got the opportunity to not only attend these [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14931&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://rimdevblog.files.wordpress.com/2013/05/chadchadchad.png"><img class="aligncenter size-full wp-image-14940" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/05/chadchadchad.png?w=500&#038;h=295" width="500" height="295" /></a></p>
<p>I’m super excited to be presenting three sessions at <a href="http://www.blackberryjamconference.com" target="_blank">BlackBerry Jam 2013</a> in Orlando next week! As a former 3<sup>rd</sup> party developer I’ve had the chance to attend several BlackBerry events over the past couple of years. Now that I’m working on the Developer Relations team I’ve got the opportunity to not only attend these awesome events, but also present some killer content to my developer friends!</p>
<p>Here’s what I’ll be doing next week:</p>
<p>Are you building an app which requires a solid database of venues, and an amazingly easy API to interact with? Myself, Erin Rahnenfuehrer, and Kyle Fowler of Foursquare will be presenting <a href="https://bblive.blackberryconferences.net/2013/connect/sessionDetail.ww?SESSION_ID=1760" target="_blank">JAM37</a>, “Building context-aware applications by leveraging the power of Foursquare APIs”.</p>
<p>Looking to make to most out of your app by connecting it with all the big name social networks like Foursquare, Twitter, Facebook, and LinkedIn? Again, myself, Erin Rahnenfuehrer, and Kyle Fowler will be presenting <a href="https://bblive.blackberryconferences.net/2013/connect/sessionDetail.ww?SESSION_ID=2718" target="_blank">JAM52</a>, “Get Social: Connecting your app to Facebook, Twitter, Foursquare, and more!”.</p>
<p>Are you trying to make the most out of your BlackBerry World app reports? Jerome Carty, the creator of Blaq, and I will present an in-depth look at how to measure the success of your app using BlackBerry World Reports, and enhancing them with Distimo Analytics.</p>
<p>Which sessions are you looking forward to the most?  Let me know on Twitter (@<a href="http://twitter.com/chadtatro" target="_blank">chadtatro</a>), and I’ll see you in Orlando!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14931/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14931&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/05/he-said-chad-on-leveraging-the-power-of-foursquare-in-blackberry-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/05/chadchadchad.png" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry 10 Web Development &#8211; Working With Photos and EXIF Data</title>
		<link>http://devblog.blackberry.com/2013/04/blackberry10-webdev-exif/</link>
		<comments>http://devblog.blackberry.com/2013/04/blackberry10-webdev-exif/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 16:56:27 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[chad]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14856</guid>
		<description><![CDATA[Working with user-generated photos can be a pretty daunting task at times for developers. There are so many variables that come in to play. What is the aspect ratio? Is it taken in landscape or portrait? What orientation is the photo saved in? Luckily I came across a great library to help you handle these [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14856&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Working with user-generated photos can be a pretty daunting task at times for developers. There are so many variables that come in to play.</p>
<p>What is the aspect ratio?</p>
<p>Is it taken in landscape or portrait?</p>
<p>What orientation is the photo saved in?</p>
<p>Luckily I came across a great library to help you handle these photos a lot easier. <a href="http://blog.nihilogic.dk/2008/05/reading-exif-data-with-javascript.html" target="_blank">JavaScript EXIF Reader</a> by Jacob Seidelin is an extremely powerful library, which lets you read the EXIF (Exchangeable Image File Format) from photos.</p>
<p><span id="more-14856"></span></p>
<p>So why is this important?  Well, as you may be aware of, photos taken on your BlackBerry 10 device are actually stored sideways.  How this affects you, as a developer, is that if you need to use that user-taken photo in your app it will appear sideways unless</p>
<p>So you’re thinking, that’s great, I’ll just rotate every photo and problem solved.  NO!</p>
<p><a href="http://rimdevblog.files.wordpress.com/2013/04/no.png"><img class="aligncenter size-full wp-image-14857" alt="no" src="http://rimdevblog.files.wordpress.com/2013/04/no.png?w=400&#038;h=400" width="400" height="400" /></a></p>
<p>Why not? Photos taken from the front, and rear cameras are both stored sideways, rear camera photos appear “right-side up” (with an EXIF.orientation value of 6) while photos from the front camera are store “left-side up” (EXIF.orientation 8).  As you can see, you need to be able to detect not only if a photo is stored sideways, but also which orientation it’s stored with so you can rotate it accordingly.</p>
<p>This is where the EXIF Reader library helps out.  By calling one method, you’re able to fetch not only the orientation data of a photo, but all of its EXIF data.  This could include  the photo’s dimensions, device make and model, or right down to very specific properties of the photo like what exposure was used, or whther the flash went off or not.</p>
<p><a href="http://rimdevblog.files.wordpress.com/2013/04/yes.png"><img class="aligncenter size-full wp-image-14858" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/04/yes.png?w=400&#038;h=400" width="400" height="400" /></a></p>
<p>I wrote a quick sample app which demonstrates how a developer would handle a photo taken from the camera within their application. When the user takes a photo the EXIF data is read, the photo’s orientation is determined, and the photo is rotated on a HTML5 Canvas so that it appears “top-side up”. The developer is then left with a handy Base64 string which can be saved, uploaded, etc.</p>
<p>Check out the <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/EXIF-Data-Reader" target="_blank">EXIF Data Reader sample</a> on our GitHub Repository.</p>
<p>If you find this sample useful, have any questions, or just want to keep up-to-date on the world of BlackBerry WebWorks and HTML5, <a href="http://twitter.com/chadtatro" target="_blank"><b>follow me on Twitter</b></a>!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14856/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14856&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/blackberry10-webdev-exif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/no.png" medium="image">
			<media:title type="html">no</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/yes.png" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Built For BlackBerry – WebWorks “Bootstrap” Sample v1 released!</title>
		<link>http://devblog.blackberry.com/2013/04/webworks-bootstrap-sample-v1/</link>
		<comments>http://devblog.blackberry.com/2013/04/webworks-bootstrap-sample-v1/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 20:00:27 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bbUI]]></category>
		<category><![CDATA[BFB]]></category>
		<category><![CDATA[Built for BlackBerry]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14809</guid>
		<description><![CDATA[Building great BlackBerry 10 WebWorks app just got easier! The other day I released a new sample app on our BlackBerry GitHub repository which gives you a push in the right direction to quickly build a “Built for BlackBerry” designated application. So what is a Built for BlackBerry app? In a nutshell, a BFB app [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14809&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Building great BlackBerry 10 WebWorks app just got easier! The other day I released a new sample app on our <a href="https://github.com/blackberry/BB10-WebWorks-Samples" target="_new">BlackBerry GitHub repository </a>which gives you a push in the right direction to quickly build a “Built for BlackBerry” designated application.</p>
<p>So what is a <a href="https://developer.blackberry.com/builtforblackberry/" target="_new">Built for BlackBerry</a> app? In a nutshell, a BFB app is an application which is designed from start-to-finish to be awesome in performance, looks, and functionality. Apps which apply for, and pass, the Built For BlackBerry program tell users that this app meets BlackBerry’s high standards for quality and performance.</p>
<p>My latest sample app was created to give you a head start in achieving the BFB designation, allowing you to focus more of your time on the functionality of your app, rather than the actual UI and setup. It’s simply a starting point/blank slate for you to work with and customize.</p>
<p><span id="more-14809"></span></p>
<p>I’ve incorporated all of the features we look for in a Built For BlackBerry app. Right out of the box you’ll have an application that meets the BlackBerry 10 UI guidelines, connects to BlackBerry Messenger and to the Share Framework. There are also several other features including: App Menu (swipe down), Toasts, Window Covers, and device specific Splash Screens. I’ve even included CSS media queries to show you how to style your app on a Z10 vs. Q10 with CSS!. This will allow you to quickly customize this “boiler-plate” to meet your own needs and focus on the content of your app rather than getting the “right” look.</p>
<p>Check-out the application <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Built-For-BlackBerry" target="_new">over at GitHub</a>.</p>
<p>If you find this sample useful, have any questions, or just want to keep up-to-date on the world of BlackBerry WebWorks and HTML5, <a href="https://twitter.com/chadtatro" target="_new">follow me on Twitter</a>!</p>
<p><img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/chad1.jpg?w=175" /> <img alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/04/chad2.jpg?w=175&#038;h=292" width="175" height="292" /> <img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/chad3.jpg?w=175" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14809/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14809&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/webworks-bootstrap-sample-v1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/chad1.jpg?w=175" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/chad2.jpg?w=175" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/chad3.jpg?w=175" medium="image" />
	</item>
		<item>
		<title>Integrating the new Foursquare SDK in to your BlackBerry WebWorks Apps</title>
		<link>http://devblog.blackberry.com/2013/02/foursquare-sdk-webworks/</link>
		<comments>http://devblog.blackberry.com/2013/02/foursquare-sdk-webworks/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 14:58:09 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Invoke Cards]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13721</guid>
		<description><![CDATA[The other day, Kyle from Foursquare announced a couple of new and exciting features for BlackBerry developers to make use of in their apps &#8211; Single Sign On and Place Picker cards. This is an absolutely stellar implementation of our Invocation Framework. To compliment his native sample app, I created a BlackBerry 10 WebWorks version. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13721&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The other day, <a href="http://twitter.com/kfow35">Kyle</a> from Foursquare <a href="http://engineering.foursquare.com/2013/01/31/native-app-integration-like-never-before-the-foursquare-for-blackberry-10-sdk/">announced</a> a couple of new and exciting features for BlackBerry developers to make use of in their apps &#8211; Single Sign On and Place Picker cards. This is an absolutely stellar implementation of our <a href="http://devblog.blackberry.com/2012/08/blackberry-10-invocation-framework">Invocation Framework</a>. To compliment his <a href="https://github.com/foursquare/foursquare-bb10-sdk">native sample app</a>, I created a BlackBerry 10 WebWorks version. Before you dive in to the code, let’s see what these new cards are all about, and more importantly, why you should be using them in your own applications.</p>
<p><span id="more-13721"></span></p>
<p><b>Single Sign On (SSO) Card</b></p>
<p><a href="http://rimdevblog.files.wordpress.com/2013/02/1.png"><img class="aligncenter" alt="1" src="http://rimdevblog.files.wordpress.com/2013/02/1.png?w=370&#038;h=615" width="370" height="615" /></a></p>
<p>The Foursquare Single Sign On card (SSO) makes it extremely UI-friendly for customers to authenticate, and authorize your app to connect with Foursquare. Before the SSO card was created it was up to the developer to open up a web-view, wait for the user to authenticate, close the web-view, and handle all the associated callbacks which would eventually return an OAuth token. It was both a lot of work to implement, and could be a very cryptic and confusing process. SSO eliminates the need for all of that jazz.</p>
<p>To authenticate a user with Foursquare and obtain an OAuth token (used to make authorized requests to their API) you simply invoke the SSO card, wait for the card to close, then grab the returned OAuth token. That’s it. Seriously.</p>
<p><b>Place Picker Card</b></p>
<p><a href="http://rimdevblog.files.wordpress.com/2013/02/2.png"><img class="aligncenter" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/02/2.png?w=370&#038;h=615" width="370" height="615" /></a></p>
<p>&nbsp;</p>
<p><a href="http://rimdevblog.files.wordpress.com/2013/02/1.png"> </a></p>
<p>The Place Picker card, as the name suggests, is a seamless way to prompt the user to select a near-by location, and instantly provides you, the developer, with a contextually aware application. Just like the SSO card, all of the legwork is handled by the Foursquare SDK. By simply invoking the card, and listening for the onChildCardClosed event, you’re able to handle the returned JSON object any way you see fit in your application.</p>
<p><b>The Sample App</b></p>
<p>Again, making use of these new features is incredibly easy. I created a small sample app to show you how to authorize your app with Foursquare via the SSO card, pick a near-by venue with the Place Picker card, and lastly check-in to the selected venue.</p>
<p>As always, the sample app is open sourced, well documented, and hosted on <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Foursquare-Cards">GitHub</a>. Head on over, and check it out!</p>
<p>If you find this sample useful, have any questions, or just want to keep up-to-date on the world of BlackBerry WebWorks and HTML5, <b>follow me on <a href="http://twitter.com/chadtatro">Twitter</a></b>!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13721/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13721/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13721&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/foursquare-sdk-webworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/1.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/2.png" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Touch Anywhere (on the screen) You Want With Hammer.js and BlackBerry 10 WebWorks</title>
		<link>http://devblog.blackberry.com/2013/02/hammer-js/</link>
		<comments>http://devblog.blackberry.com/2013/02/hammer-js/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 19:52:55 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[gestures]]></category>
		<category><![CDATA[Hammer.js]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Libraries]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13334</guid>
		<description><![CDATA[With the launch of BlackBerry 10 and all touch devices ready to rock and roll, you may be interested in adding touch or multi-touch gestures in to your BlackBerry WebWorks apps. I came across an amazing JavaScript library called Hammer.js which makes it super easy to incorporate gestures into your application with only a few [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13334&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>With the launch of <a href="http://global.blackberry.com/blackberry-10.html" target="_blank">BlackBerry 10</a> and all touch devices ready to rock and roll, you may be interested in adding touch or multi-touch gestures in to your <a href="developer.blackberry.com/html5" target="_blank">BlackBerry WebWorks</a> apps.</p>
<p>I came across an amazing JavaScript library called <a href="http://eightmedia.github.com/hammer.js/" target="_blank">Hammer.js</a> which makes it super easy to incorporate gestures into your application with only a few lines of code. The library is extremely lightweight, running ~2KB minified, and handles all of the legwork for you.</p>
<p>Hammer.js supports quite a few gestures too:</p>
<ul>
<li>Tap</li>
<li>Double Tap</li>
<li>Hold</li>
<li>Swipe</li>
<li>Drag</li>
<li>Transform (Pinching)</li>
</ul>
<p>Of course, what would touch events be without the actual Event data? When a user interacts with the screen, Hammer.js reports back to you with all of the information related to the touch. You can find out how long somebody touched the screen, where they touched, which direction they were swiping or dragging, the momentum of the swipe, and so on</p>
<p>So, why would you want use Hammer.js in your projects?</p>
<p><span id="more-13334"></span></p>
<h3><strong>It’s lightweight</strong></h3>
<p>Sure, there are other libraries out there that handle gestures, but it&#8217;s important to think about resources when creating mobile apps. Hammer.js runs about 2kb (minified) and leaves a very tiny footprint.</p>
<h3><strong>Simple to use</strong></h3>
<p>The syntax is incredibly easy to both use and understand. There&#8217;s even a jQuery plugin available if you&#8217;re like me and like to take shortcuts in your code.</p>
<h3><strong>Plays nice with others</strong></h3>
<p>Hammer.js works well alongside other libraries and frameworks. Whether you&#8217;re using jQuery, bbUI.js, Backbone.js, or others, you should have no worries that Hammer.js will interfere. It performs very well, and doesn&#8217;t get in the way.</p>
<h3><strong>Check out my sample app!</strong></h3>
<p>I worked very hard for what seemed like minutes, creating an awesome sample app to show how easy it is to use the Hammer.js library. Check it out in our <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/gestures" target="_new">GitHub repo</a> &#8211; there’s even a special appearance by the one-and-only <a href="http://twitter.com/jesseariss" target="_new">Jesse Ariss</a>!</p>
<p><img class="aligncenter size-full wp-image-13336" alt="" src="http://rimdevblog.files.wordpress.com/2013/01/hammerjs.jpg" /></p>
<p>If you have any questions, or comments, feel free to hit me up on Twitter. I like the attention. <strong><a href="http://twitter.com/chadtatro" target="_new">@chadtatro</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13334/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13334&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/hammer-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/01/hammerjs.jpg" medium="image" />
	</item>
		<item>
		<title>Over-sharing with Twitter and Facebook Cards</title>
		<link>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/</link>
		<comments>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 18:24:53 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Sharing]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13343</guid>
		<description><![CDATA[Let’s face it: YOU ARE AWESOME. You’re the most important person in your friends&#8217; and family members&#8217; lives. They’d be completely lost, wandering the streets like zombies, without knowing what you were up to 24/7 on Twitter and Facebook. Luckily for them, sharing content from your BlackBerry WebWorks app just got super easy. While browsing [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13343&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Let’s face it: <strong>YOU ARE AWESOME</strong>. You’re the most important person in your friends&#8217; and family members&#8217; lives. They’d be completely lost, wandering the streets like zombies, without knowing what you were up to 24/7 on Twitter and Facebook.</p>
<p>Luckily for them, sharing content from your BlackBerry WebWorks app just got super easy.</p>
<p>While browsing through our ever-growing catalogue of <a href="https://github.com/blackberry/BB10-WebWorks-Samples" target="_new">Sample Apps on GitHub</a>, I realized we were missing some crucial Invocation samples for Facebook and Twitter! “Blasphemy,” you say?! I agree, so here is some quick info about how you can share data to Facebook and Twitter from your app.</p>
<p><span id="more-13343"></span></p>
<p>With only a few lines of JavaScript, you can invoke these two lovely cards.</p>
<p><img class="aligncenter size-full wp-image-13345" alt="" src="http://rimdevblog.files.wordpress.com/2013/01/devblog-oversharing-january-28.jpg?w=579&#038;h=474" width="579" height="474" /></p>
<p>&#8230;and here’s the code:</p>
<pre>function invokeTwitter() {
    blackberry.invoke.invoke({
        target: "Twitter",
        action: "bb.action.SHARE",
        type: "text/plain",
        data: "In @chadtatro we trust."
    }, onSuccess, onError);
}
function invokeFacebook() {
    blackberry.invoke.invoke({
        target: "Facebook",
        action: "bb.action.SHARE",
        type: "text/plain",
        data: "I’m eating tacos with Alex."
    }, onSuccess, onError);
}</pre>
<p>All memes and jokes aside, the invocation framework is incredibly powerful. Integrating it in to your application is another simple way for you to provide that genuine BlackBerry 10 “look and feel” to your users.</p>
<p>For the full sample app, check out our <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/invoke/invoker" target="_new">GitHub repository</a>.</p>
<p>If you have any question, concerns, or just want to show your love, you can find me on Twitter at <strong>@chadtatro</strong>. (<a href="http://twitter.com/chadtatro" target="_new">http://twitter.com/chadtatro</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13343&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/01/devblog-oversharing-january-28.jpg" medium="image" />
	</item>
		<item>
		<title>Maps. They Don’t Love You Like I Love You.</title>
		<link>http://devblog.blackberry.com/2012/12/blackberry-webworks-maps/</link>
		<comments>http://devblog.blackberry.com/2012/12/blackberry-webworks-maps/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 15:17:42 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[Bing Maps]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Leaflet]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[OpenLayers]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12521</guid>
		<description><![CDATA[Forget everything you know about working with maps and BlackBerry WebWorks. Mapping just got real, real easy! We heard you ask for an easy way to integrate mapping services with your BlackBerry WebWorks applications, and today I’m happy to announce that on BlackBerry 10, the process has become much simpler. We&#8217;ve put together a straight-forward sample [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12521&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-12522" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/12/webworks-maps.jpg?w=600&#038;h=364" height="364" width="600" /></p>
<p>Forget everything you know about working with maps and BlackBerry WebWorks. Mapping just got real, real easy!</p>
<p>We heard you ask for an easy way to integrate mapping services with your BlackBerry WebWorks applications, and today I’m happy to announce that on BlackBerry 10, the process has become much simpler.</p>
<p>We&#8217;ve put together a straight-forward sample application that will show you how to integrate with a few of the services out there:  Google Maps, Bing, Leaflet, and OpenLayers.</p>
<p>If you&#8217;ve been following the progression of the BlackBerry WebWorks framework, you&#8217;ve probably noticed an awesome amount of transparency. Open web standards are lovingly embraced and adopted here at RIM. Even the framework itself is staged publicly on GitHub.  Continuing this theme of openness and following web standards, the maps samples we&#8217;ve released are not platform specific.  Whether you’re writing an exclusive BlackBerry app, or planning on targeting multiple platforms using Cordova (previously known as PhoneGap), these samples are most definitely for you!</p>
<p><span id="more-12521"></span></p>
<p>For each service, you’ll be able to learn how to:</p>
<p>-          Setup a mapping service to use to in your app</p>
<p>-          Find the users location with HTML5 Geolocation</p>
<p>-          Perform a search for nearby points of interest</p>
<p>-          Display push-pins on the map, showing the search results.</p>
<p>The goal of this sample is to show you how you can quickly integrate maps into your app and have it perform great in WebWorks for BlackBerry 10.</p>
<p>When it comes down to picking which service is right for your app, it’s completely up to you.  One of my teammates, Jim Ing, wrote a really in-depth article on maps, comparing services and much more.  I strongly recommend checking it out “<a href="http://devblog.blackberry.com/2012/05/lightweight-maps-for-mobile-part-1/" target="_blank">Lightweight Maps For Mobile</a>”.</p>
<p><b>Check out the sample, in action!</b></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/lSn3rex7PCI?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><b>Download the source code.</b></p>
<p>Ready to add some maps to your app? Download the source code from <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Maps" target="_blank">our GitHub repository</a>!</p>
<p><b>Calling all Native developers!</b></p>
<p>Have you been yearning to contribute to the BlackBerry 10 cause but weren’t sure how?  Why not take this WebWorks sample, and build a Native version?!  If you’re interested, get in touch with Shadid Haque (<a href="http://twitter.com/ShadidHaque" target="_blank">@ShadidHaque</a>) on Twitter.</p>
<p>If you&#8217;ve got a success story, have a question, or just want to chat about apps, hit me up on Twitter <a href="http://www.twitter.com/chadtatro" target="_blank">@chadtatro</a>!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12521/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12521&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/12/blackberry-webworks-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/12/webworks-maps.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Yes, yes, yes we do! We’ve got icons, how &#8217;bout you?!</title>
		<link>http://devblog.blackberry.com/2012/12/blackberry-10-icon-sets/</link>
		<comments>http://devblog.blackberry.com/2012/12/blackberry-10-icon-sets/#comments</comments>
		<pubDate>Mon, 03 Dec 2012 15:33:07 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12262</guid>
		<description><![CDATA[When I think of what makes an app great to me, there are a few key things that come to mind. Is it easy, and intuitive to use? Does it follow our BlackBerry UI Guidelines? Is it beautiful? If the answer to these questions is “YES!” then chances are I will love it. Before I [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12262&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When I think of what makes an app great to me, there are a few key things that come to mind. Is it easy, and intuitive to use? Does it follow our <a href="https://developer.blackberry.com/html5/documentation/ui_guidelines.html" target="_new">BlackBerry UI Guidelines</a>? Is it beautiful? If the answer to these questions is “YES!” then chances are I will love it.</p>
<p>Before I joined the Developer Relations team, I was a 3rd party developer with mblware and created the apps <a href="http://appworld.blackberry.com/webstore/content/65623" target="_new">LensBoost</a> and <a href="http://appworld.blackberry.com/webstore/content/91695" target="_new">Memegasm</a>. One of the difficulties I often ran into when creating an app was finding a high-quality set of icons I could use in my application. Sure, there are tons of amazing icon packs out there (some free, some premium) but while the icon packs I ran into looked great, they didn’t necessarily “work” in my app.</p>
<p>In my new role as an Application Development Consultant, part of my job is to create sample apps that showcase specific features, or APIs. I love working with the new BlackBerry 10 SDKs &#8211; it gives me a chance to not only learn about the new, and existing APIs, but also allows me to do what I love, develop apps. That being said, when I start writing my sample apps I still come across that old issue of finding icons that follow our UI Guidelines <i>and</i> “work” in my app!</p>
<p><span id="more-12262"></span></p>
<p>Finally, due to some incredible contributions from a couple of amazing developers, there is a solution. Thanks to efforts of <a href="http://myersdesign.com/resources/" target="_new">Liz Myers</a> and <a href="http://subway.pixle.pl/rim/" target="_new">Pixle</a>, we can all use high-quality icons that follow the proper UI Guidelines in our applications for BlackBerry 10! Let’s take a closer look at the sets:</p>
<p><img class="aligncenter size-full wp-image-12263" title="TITLE_IMAGE" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/11/dev-icons-1.jpg?w=600&#038;h=325" height="325" width="600" /></p>
<p><strong>BlackBerry 10 Assets</strong> by Liz Myers (<a href="http://myersdesign.com/resources/" target="_new">http://myersdesign.com/resources/</a>)<br />
<i>Licensed under CC-BY-3.0 (<a href="http://creativecommons.org/licenses/by/3.0/" target="_new">http://creativecommons.org/licenses/by/3.0/</a>)</i></p>
<p>This set contains 100 icons which are well suited for Context Menus, Tabs, and Action Bars, and come in both light and dark themes.</p>
<p><img class="aligncenter size-full wp-image-12264" title="" alt="" src="http://rimdevblog.files.wordpress.com/2012/11/dev-icons-2.jpg?w=600&#038;h=320" height="320" width="600" /></p>
<p><strong>Subway Icons for RIM</strong> by Pixle (<a href="http://subway.pixle.pl/rim/" target="_new">http://subway.pixle.pl/rim/</a>)<br />
<i>Licensed under CC-BY-3.0 (<a href="http://creativecommons.org/licenses/by/3.0/" target="_new">http://creativecommons.org/licenses/by/3.0/</a>)</i></p>
<p>This set of icons is a subset of Subway Icons (<a href="http://subway.pixle.pl" target="_new">http://subway.pixle.pl</a>) and contains 16 of some of the most common icons developers use in their apps. They come in three sizes: Small (61&#215;61), Medium (71&#215;71), and Large (81&#215;81).</p>
<p>If you find these icons as useful as I do, be sure to show your support and follow the creators on Twitter. I’m sure they’ll appreciate it!</p>
<p><i>Liz Myers <a href="http://twitter.com/LizMyers" target="_new">@LizMyers</a><br />
Pixle <a href="http://twitter.com/madebypixle" target="_new">@madebypixle</a></i></p>
<p>As always, if you have any questions, comments, or concerns, you can find me on Twitter (<a href="http://twitter.com/chadtatro" target="_new">@chadtatro</a>) or in our <a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev" target="_new">Developer Support Forums</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12262&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/12/blackberry-10-icon-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

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

		<media:content url="http://rimdevblog.files.wordpress.com/2012/11/dev-icons-2.jpg" medium="image" />
	</item>
		<item>
		<title>PhoneGap Rules Everything Around Me!</title>
		<link>http://devblog.blackberry.com/2012/11/phonegap-blackberry-10/</link>
		<comments>http://devblog.blackberry.com/2012/11/phonegap-blackberry-10/#comments</comments>
		<pubDate>Mon, 19 Nov 2012 16:37:17 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[blackberry webworks]]></category>
		<category><![CDATA[Cordova]]></category>
		<category><![CDATA[Cross Platform]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12136</guid>
		<description><![CDATA[I’m stoked to spread the word to all of our developers that as of version 2.2, you can now build apps with PhoneGap that target BlackBerry® 10! Our very own official Apache Cordova contributor Gord Tanner (@gordtanner) has been hard at work making sure you can build PhoneGap apps for BlackBerry 10 today. What’s got [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12136&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-12137" title="TITLE_IMAGE" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/11/phonegap-blackberry-10.jpg?w=550&#038;h=208" height="208" width="550" /></p>
<p>I’m stoked to spread the word to all of our developers that as of version 2.2, you can now build apps with PhoneGap that target BlackBerry® 10!</p>
<p>Our very own official Apache Cordova contributor Gord Tanner (<a href="http://twitter.com/gordtanner" target="_new">@gordtanner</a>) has been hard at work making sure you can build PhoneGap apps for BlackBerry 10 today. What’s got me really excited about this news is that even though BlackBerry 10 is still in beta, a quick test revealed more than half of the APIs are already supported. With monthly updates to PhoneGap being released, this means that developers can start working on their BlackBerry 10 apps right away, and have peace of mind knowing that more and more support will be available in each release.</p>
<h3><strong>What is PhoneGap, you say?</strong></h3>
<p>PhoneGap is an open source framework that allows developers to quickly build cross-platform apps using HTML5, JavaScript®, and CSS. PhoneGap is powered by <a href="http://www.cordova.io" target="_new">Cordova</a> and is compatible with BlackBerry® OS 5+, BlackBerry® PlayBook™ OS, and now BlackBerry 10!</p>
<h3><strong>Have a PhoneGap app created for another platform? We’ve got 10,000 reasons for you to port it over!</strong></h3>
<p>If you already have a PhoneGap app available on other platforms, why not take advantage of the recent BlackBerry 10 support? By porting your app over to BlackBerry 10, and registering for the <a href="https://developer.blackberry.com/builtforblackberry/commitment/" target="_new">10k Developer Commitment</a>, we’re guaranteeing you will make at least $10,000 in 12 months or we’ll pay the difference!</p>
<p><i>Note: Conditions apply. For complete details, visit the <a href="https://developer.blackberry.com/builtforblackberry/commitment/" target="_new">10k Developer Commitment webpage</a>.</i></p>
<p>So, are you ready? Get started in 3 steps:</p>
<p>1. Visit the new <a href="https://github.com/ctetreault/incubator-cordova-docs/blob/master/docs/en/edge/guide/getting-started/blackberry/index.md" target="_new">PhoneGap Getting Started Guide for BlackBerry</a>.<br />
2. Head over to the <a href="http://www.phonegap.com" target="_new">PhoneGap website</a> and download the SDK.<br />
3. Win!</p>
<p>If you’ve got a success story, have a question, or just want to chat about apps, hit me up on Twitter <a href="http://twitter.com/chadtatro" target="_new">@chadtatro</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12136&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/11/phonegap-blackberry-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/11/phonegap-blackberry-10.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>Say It Aint S’OAuth</title>
		<link>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/</link>
		<comments>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 14:10:55 +0000</pubDate>
		<dc:creator>chadtatro</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[oAuth]]></category>
		<category><![CDATA[oAuth 1.0]]></category>
		<category><![CDATA[oAuth 2.0]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=11582</guid>
		<description><![CDATA[In today’s world we’re constantly sharing information via status updates, blog posts, and even checking-in at venues. Connecting with services like foursquare and Twitter is a great way to leverage the popularity of the network within your application. So how do you actually go about integrating features from these services into your application?  First the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11582&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In today’s world we’re constantly sharing information via status updates, blog posts, and even checking-in at venues. Connecting with services like foursquare and Twitter is a great way to leverage the popularity of the network within your application.</p>
<p>So how do you actually go about integrating features from these services into your application?  First the needs to allow your application access to their profile, and this bring us to Open Authorization – better known as <a href="http://oauth.net/" target="_blank">OAuth</a>.</p>
<p>OAuth you say?!</p>
<p>OAuth is an open standard for authorization used by tons of popular services, foursquare, Twitter, and Tumblr, to name a few.  It allows applications to connect their users to these services without having to handle their username and password.</p>
<p>There are a couple versions of OAuth which we have created sample apps for.</p>
<p><span id="more-11582"></span></p>
<p><strong>OAuth 1</strong></p>
<p>Let’s be honest, OAuth 1 can be darn right nasty to work with out-of-the-box.  OAuth 1 and I are not really good friends, we’ve had many fights over the past year, and often I’ve been on the losing side.  In a nutshell, the way OAuth 1 works is by having an application perform a series of requests to a service, exchanging “tokens”, and ultimately granting the application access to the service on behalf of the user.  It requires several things to go just right, and if something doesn’t, access is denied.</p>
<p>Luckily there is a really awesome open-source JavaScript library written by Rob Griffiths (<a href="http://www.twitter.com/bytespider" target="_blank">@bytespider</a>) called <a href="https://github.com/bytespider/jsOAuth" target="_blank">jsOAuth</a>. JsOAuth takes the pain and extensive process of OAuth 1 away, and allows you to focus on connecting your app with a service such as Twitter rather than spend a ton of time working with the OAuth 1 protocol.</p>
<p><strong>OAuth 2</strong></p>
<p>While OAuth 1 is my adversary; OAuth 2 is my best friend.  This is the next evolution of the OAuth protocol and is used by services like foursquare, and Facebook.  OAuth 2 is much friendlier for developers to integrate into their apps, and provides much easier, and straight forward authorization “flows” to work with.  Though the standard is still evolving, it’s solid, and in contrast to OAuth 1, is amazingly easy to work with.</p>
<p><strong>The Sample Apps</strong></p>
<p style="text-align:center;"><a href="https://github.com/blackberry/BB10-WebWorks-Samples"><img class="aligncenter  wp-image-11584" title="oauth" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/10/oauth1.jpg?w=565&#038;h=364" height="364" width="565" /></a></p>
<p>Getting started with OAuth can be pretty intimidating to say the least.  As a former 3<sup>rd</sup> party developer, I’ve been there.  I’ve screamed at my console log, cried like a baby, and even begged the OAuth gods for it to “just work”.  Since joining the BlackBerry® Developer Relations team here at RIM®, I vowed to help make this process easier for fellow developers and I’m glad to finally say that we’ve released two sample apps on GitHub today to help guide you on your OAuth journey.</p>
<p>The first sample app shows how to integrate <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Twitter-OAuth-1" target="_blank">Twitter into your application by using the OAuth 1</a> protocol.  You’ll learn how to quickly and painlessly authenticate with Twitter, and post a Tweet to a user’s timeline by taking advantage of the jsOAuth library.</p>
<p>The second sample shows integration with <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Foursquare-OAuth-2" target="_blank">foursquare, and uses OAuth 2</a>.  It’ll show you how your application can authenticate a user with the service, search for near-by venues, and then check-in to a venue.</p>
<p>The third sample shows how to integrate <a href="https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/FaceBook-OAuth-2" target="_blank">Facebook and OAuth</a> 2 into your application.  You’ll learn how to authenticate a user with Facebook, and interact with their feed by posting, and reading content.</p>
<p>Each of these samples are completely Open Source, and available on GitHub.  If you find them useful, have any feedback, or need an extra helping hand along your way find me on the <a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev" target="_blank">BlackBerry Developer Support Forums</a> or Twitter <a href="http://www.twitter.com/chadtatro" target="_blank">@chadtatro</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/11582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/11582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11582&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/10/say-it-aint-soauth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0fb86e7b2b71616806266b535686102c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ctetreault1980</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/10/oauth1.jpg" medium="image">
			<media:title type="html">oauth</media:title>
		</media:content>
	</item>
	</channel>
</rss>
