<?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>distriqt // labs</title>
	<atom:link href="http://labs.distriqt.com/feed" rel="self" type="application/rss+xml" />
	<link>http://labs.distriqt.com</link>
	<description>flash platform &#38; digital development australia</description>
	<lastBuildDate>Fri, 27 Jan 2012 00:24:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Launching Multiple Instances of Eclipse</title>
		<link>http://labs.distriqt.com/post/844</link>
		<comments>http://labs.distriqt.com/post/844#comments</comments>
		<pubDate>Fri, 27 Jan 2012 00:24:57 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=844</guid>
		<description><![CDATA[I've been a fan of Eclipse for a long time now, even before FDT and Flash Builder were built around it. The use of workspaces, once you get your head around them, is powerful for focusing your head on the work at hand, keeping all associated projects within the one space. However there are times [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F844"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F844&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I've been a fan of Eclipse for a long time now, even before FDT and Flash Builder were built around it. The use of workspaces, once you get your head around them, is powerful for focusing your head on the work at hand, keeping all associated projects within the one space.</p>
<p>However there are times when I wish I was able to have multiple workspaces open. And too the rescue comes the command line.<br />
<span id="more-844"></span></p>
<pre>[Path/To/Eclipse]/eclipse -data [Your/Workspace/Dir] &
</pre>
<p><br/><br />
I've wrapped this up into a little bash script to start eclipse from either the current directory or using the specified directory as the workspace:</p>
<pre class="bash"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#!/bin/sh</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> -n <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting eclipse: WORKSPACE: &quot;</span> $<span style="color: #000000;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	/Applications/eclipse/eclipse  -data $<span style="color: #000000;">1</span> &amp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting eclipse: WORKSPACE: &quot;</span> `<span style="color: #7a0874; font-weight: bold;">pwd</span>`</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	/Applications/eclipse/eclipse  -data `<span style="color: #7a0874; font-weight: bold;">pwd</span>` &amp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">fi</span></div></li></ol></pre>
<p><br/></p>
<p>On OSX it's better to use the open command, like:</p>
<pre class="bash"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#!/bin/sh</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> -n <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting eclipse: WORKSPACE: &quot;</span> $<span style="color: #000000;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	open -n /Applications/eclipse/Eclipse.app --args  -data $<span style="color: #000000;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting eclipse: WORKSPACE: &quot;</span> `<span style="color: #7a0874; font-weight: bold;">pwd</span>`</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	open -n /Applications/eclipse/Eclipse.app --args  -data `<span style="color: #7a0874; font-weight: bold;">pwd</span>`</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">fi</span></div></li></ol></pre>
<p><br/><br />
This will work equally as well with the Flash Builder application, just replace the Eclipse.app with the path to Flash Builder.</p>
<p>Happy workspacing!</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/844"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/844/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HEARTweb Sync Application</title>
		<link>http://labs.distriqt.com/post/773</link>
		<comments>http://labs.distriqt.com/post/773#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:00:47 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[livecycle]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=773</guid>
		<description><![CDATA[Last year we developed an application for the University of Melbourne, Ultrasound Education Group, Heartweb. The application is a file browsing, support and synchronisation utility for students enrolled in the Ultrasound Education Group's courses. The group had a large amount of course material that traditionally was distributed on media (such as DVDs) to the students. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F773"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F773&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Last year we developed an application for the University of Melbourne, Ultrasound Education Group, <a href="http://www.heartweb.com/">Heartweb</a>. The application is a file browsing, support and synchronisation utility for students enrolled in the Ultrasound Education Group's courses.</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-browse1.png" rel="shadowbox[sbpost-773];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-browse1-600x414.png" alt="" title="heartweb-browse" width="600" height="414" class="alignnone size-medium wp-image-832" /></a></p>
<p>The group had a large amount of course material that traditionally was distributed on media (such as DVDs) to the students. The material was all being protected via Livecycle PDF security policy but they requested a simpler method of distributing and updating the materials.<br />
<span id="more-773"></span></p>
<p>Users' of the application log in and then are presented with a list of material that their policy allows them access to. The content was all moved to the Livecycle server and access was only available through custom developed secure API. </p>
<p>The application allows the user to select material for synchronisation keeping a directory, or individual files, "up-to-date" with the most recent updates to course material. As they browse through the material, files can be viewed or located on the local machine in the default system viewers or in the application where applicable.</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-browse1.png" rel="shadowbox[sbpost-773];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-browse1-600x414.png" alt="" title="heartweb-browse" width="600" height="414" class="alignnone size-medium wp-image-832" /></a></p>
<p>Additionally links and other information can be passed to the students via the application allowing the course organisers to supply the students with important information through a single application portal.</p>
<p>A web browsing function was included so they could display content from the Heartweb website directly in the application. We used the StageWebView class functionality to achieve this end.</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-support.png" rel="shadowbox[sbpost-773];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-support-600x360.png" alt="" title="heartweb-support" width="600" height="360" class="alignnone size-medium wp-image-825" /></a></p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-payment.png" rel="shadowbox[sbpost-773];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/heartweb-payment-600x359.png" alt="" title="heartweb-payment" width="600" height="359" class="alignnone size-medium wp-image-826" /></a></p>
<p>The application is written completely in Adobe AIR, allowing us to deploy across the multiple different platforms that the students used. We used the built in application updating techniques to provide application updates to the students. </p>
<p>Unfortunately, unless you want to sign up to the Heartweb course to get access to the materials, the application is unavailable, but it was a great experience in integrating file synchronisation with a secure document-based internet distribution process.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/773"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/773/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Native Extensions: A Simple Guide</title>
		<link>http://labs.distriqt.com/post/815</link>
		<comments>http://labs.distriqt.com/post/815#comments</comments>
		<pubDate>Tue, 17 Jan 2012 10:30:19 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[ane]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash-builder]]></category>
		<category><![CDATA[native-extension]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=815</guid>
		<description><![CDATA[We've been doing a lot with Native Extensions for AIR lately, both in Android and iOS, and I just wanted to put together a quick "how to" on using other people's Actionscript Native Extensions (ANE) in Flash Builder 4.6. I'm going to assume you already understand the process of developing and deploying mobile applications using [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F815"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F815&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We've been doing a lot with Native Extensions for AIR lately, both in Android and iOS, and I just wanted to put together a quick "how to" on using other people's Actionscript Native Extensions (ANE) in Flash Builder 4.6.</p>
<p>I'm going to assume you already understand the process of developing and deploying mobile applications using AIR.</p>
<p>The process is quite simple, you'll need the supplied ANE for the extension. In your mobile project you want to add it into, open up the project properties (Right click / Properties) and find the "Actionscript Build Path" (or "Flex Build Path" if it's a Flex project).</p>
<p>You'll see a tab up the top labeled "Native Extensions" in which you can "Add ANE...". Click on this and select the ANE extension file. Once it's added in, you can expand out the details of the extension to see the target platforms supported by the extension. Below I'm showing the details on our Android Camera Extension. </p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/ane-build-path1.png" rel="shadowbox[sbpost-815];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/ane-build-path1-548x450.png" alt="" title="ane-build-path" width="548" height="450" class="alignnone size-medium wp-image-818" /></a><br />
<span id="more-815"></span><br />
The extension is now included in your project, however before you leave here I suggest you go to the "Build Packaging" for the platforms you are deploying and check the extension is going to be packaged (and available) with them.</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/ane-build-packaging.png" rel="shadowbox[sbpost-815];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/ane-build-packaging-592x450.png" alt="" title="ane-build-packaging" width="592" height="450" class="alignnone size-medium wp-image-819" /></a> </p>
<p>You should now be able to return to your code and use the functionality and classes supplied in the extension, hopefully you've been supplied with documentation or example usage of the extension!</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/815"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/815/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schools Disaster Mapper</title>
		<link>http://labs.distriqt.com/post/767</link>
		<comments>http://labs.distriqt.com/post/767#comments</comments>
		<pubDate>Tue, 10 Jan 2012 23:27:41 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[google-maps]]></category>
		<category><![CDATA[kml]]></category>
		<category><![CDATA[mashups]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=767</guid>
		<description><![CDATA[The Disaster Mapper - An interactive Resource for Schools is a project for the Attorney-General's Department, Australian Emergency Management Institute. The aim of the project was to provide an educational resource aimed at school students for investigating Australian natural disasters throughout history. It was developed in 2009 but has just been released to the public. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F767"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F767&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The Disaster Mapper - An interactive Resource for Schools is a project for the Attorney-General's Department, Australian Emergency Management Institute. The aim of the project was to provide an educational resource aimed at school students for investigating Australian natural disasters throughout history.</p>
<p>It was developed in 2009 but has just been released to the public.</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_3.png" rel="shadowbox[sbpost-767];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_3-600x444.png" alt="" title="agd_disastermapper_screen_3" width="600" height="444" class="size-medium wp-image-777" /></a><br />
<span id="more-767"></span></p>
<p>This project made use of the latest Flash technologies with the Google Maps API to provide an interactive map where users could navigate and search disaster information by time, location, disaster types and keywords.</p>
<p>The application uses a very simple series of navigational elements. A series of large buttons allows the user to select the disaster categories of interest and a timeline allows the user to limit the time period displayed. The disasters matching these two filters are then displayed on the map along with overview information of the selected disaster categories in the information panels on the left.</p>
<p>Media associated with each disaster (including images, flv, youtube, viemo, mp3 and other media types) can be viewed either in quick view in the information panels or in the detail overlay.</p>
<p>The system also supported and included additional data such as population, temperature, rainfall and specific high-risk disaster areas which could be overlaid on the map.</p>
<p>The result is a very easy-to-use, interesting website and something suitable for the target audience of school students.</p>

<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_1.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_1'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_1-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_1" title="agd_disastermapper_screen_1" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_2.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_2'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_2-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_2" title="agd_disastermapper_screen_2" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_3.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_3'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_3-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_3" title="agd_disastermapper_screen_3" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_4.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_4'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_4-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_4" title="agd_disastermapper_screen_4" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_5.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_5'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_5-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_5" title="agd_disastermapper_screen_5" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_6.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_6'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_6-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_6" title="agd_disastermapper_screen_6" /></a>
<a href='http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_7.png' rel='shadowbox[sbalbum-767];player=img;' title='agd_disastermapper_screen_7'><img width="150" height="150" src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_7-150x150.png" class="attachment-thumbnail" alt="agd_disastermapper_screen_7" title="agd_disastermapper_screen_7" /></a>

<p>Making use of some extra available time, distriqt also developed an additional component for the CMS which allowed an administrator to directly edit overlay data on top of a Google Map, using a standard data format (KML). This allowed the client to create more meaningful and suitable overlay information for the website such as risk areas, temperature, population and rainfall data.</p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2012/01/agd_disastermapper_screen_7-541x450.png" alt="" title="agd_disastermapper_screen_7" width="541" height="450" class="size-medium wp-image-793" /></p>
<p>The project was delivered on-time and on-budget, and has been well-received by the client, schools, and educators - all feedback has been very positive.</p>
<p>See the site <a href='http://disastermapper.ema.edu.au/' target='_blank'>here</a>.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/767"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/767/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holden &#8220;Barina Beats&#8221; Game</title>
		<link>http://labs.distriqt.com/post/732</link>
		<comments>http://labs.distriqt.com/post/732#comments</comments>
		<pubDate>Mon, 19 Dec 2011 02:59:33 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[robotlegs]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=732</guid>
		<description><![CDATA[Holden's latest promotion for their Barina includes a game that we developed for ThinkNimble and McCann Melbourne. The game is a Guitar Hero style game, where icons move along the road and the player has to hit the matching key as the icon moves over the hit area. "The aim of the game is to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F732"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F732&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/barinabeats-2.png" rel="shadowbox[sbpost-732];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/barinabeats-2-150x150.png" alt="" title="barinabeats-2" width="150" height="150" class="alignleft size-thumbnail wp-image-756" /></a></p>
<p>Holden's latest promotion for their Barina includes a game that we developed for ThinkNimble and McCann Melbourne.</p>
<p>The game is a Guitar Hero style game, where icons move along the road and the player has to hit the matching key as the icon moves over the hit area.</p>
<p>"The aim of the game is to beat the street and score as many points possible by hitting colourful icons as they race down the street! There are eight stages that get more challenging as you play. The prize? Whoever has the highest eligible score at the end of the competition period will win an all-new Holden Barina."</p>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/barinabeats-4.png" rel="shadowbox[sbpost-732];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/barinabeats-4-600x438.png" alt="" title="barinabeats-4" width="600" height="438" class="aligncenter size-medium wp-image-753" /></a><br />
<span id="more-732"></span></p>
<p>It was created as a Facebook application to tap into the popularity of the growing social gaming market and to promote the features of the all-new Holden Barina. The game features music and sound effects from the radio adverts and TVC. </p>
<p>The competition is running until the end of February 2012. <a href="https://www.facebook.com/HoldenSmallCarCollection">Play the game here</a></p>
<p><iframe width="600" height="340" src="http://www.youtube.com/embed/pkeXLLwGkTI?rel=0" frameborder="0" allowfullscreen></iframe></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/732"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/732/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marija Ivkovic Portfolio Application</title>
		<link>http://labs.distriqt.com/post/696</link>
		<comments>http://labs.distriqt.com/post/696#comments</comments>
		<pubDate>Fri, 16 Dec 2011 02:25:57 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[AppStore]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile application]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=696</guid>
		<description><![CDATA[We've been so busy over the last few months that we haven't had a chance to update any information on what we've been doing. So here's the first in a series of updates. One of our clients Marija Ivkovic, an amazing photographer, whose site I did a while ago. In order to show to power [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F696"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F696&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We've been so busy over the last few months that we haven't had a chance to update any information on what we've been doing.</p>
<p>So here's the first in a series of updates.</p>
<p>One of our clients <a href="http://www.marijaivkovic.com">Marija Ivkovic</a>, an amazing photographer, whose site I did a while ago. In order to show to power of Flash we decided to turn her site into a mobile application, by taking the exact same code base from the site and applying a few small tweaks.</p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/marija-ivkovic-app-icon.png" alt="" title="marija-ivkovic-app-icon" width="175" height="175" class="alignleft size-full wp-image-712" /></p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/marija-ivkovic-app-screenshot.jpeg" alt="" title="marija-ivkovic-app-screenshot" width="320" height="480" class="aligncenter size-full wp-image-713" /></p>
<p>The end result was actually quite surprising for a direct port of a website. We obviously added some touch and swipe based interactions, removed the "mouse over" interactions and added in a nifty little database cache process to cache images for offline access, but overall the code base remained relatively unchanged.</p>
<p>We were very excited to be able to supply this as an option for development. Creating an interactive web and mobile application has never been easier or more powerful.</p>
<p>It's available for free for iPhone, iPod Touch and iPad in the App Store.</p>
<p><a href="http://itunes.apple.com/us/app/marija-ivkovic-portfolio/id459956316"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/12/app-store-badge-580x189.png" alt="Available on the App Store" title="Available on the App Store" width="184" height="60" /></a></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/696"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/696/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN global-ignores</title>
		<link>http://labs.distriqt.com/post/701</link>
		<comments>http://labs.distriqt.com/post/701#comments</comments>
		<pubDate>Thu, 15 Dec 2011 05:59:38 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[vcs]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=701</guid>
		<description><![CDATA[Well if you use OSX or any program that produces metadata files on your file-system, it can become a nightmare trying to sort through the files you need to check in to svn... However! Once you discover there is a little hidden global ignore feature in svn, all the horror goes away. On OSX the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F701"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F701&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Well if you use OSX or any program that produces metadata files on your file-system, it can become a nightmare trying to sort through the files you need to check in to svn... However! Once you discover there is a little hidden global ignore feature in svn, all the horror goes away.</p>
<p>On OSX the file of concern is located :</p>
<p><code>~/.subversion/config</code></p>
<p>Linux (sometimes) :</p>
<p><code>/etc/subversion/config</code></p>
<p>Windows... No idea sorry, depends on your client, though apparently TortoiseSVN has it as an option...</p>
<p>To add a file or folder to the list just open up that file and find the "global-ignores" option. It's just a space separated list of potential file or folder names that you want to ignore.</p>
<p>Mine now looks like this:</p>
<p><code>global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo _notes .DS_Store .#* .AppleDouble *:2e_* ._*</code></p>
<p>Have fun with a cleaner svn... </p>
<hr/>
More information on the config options:<br />
<a href="http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2">Subversion Manual: Config</a></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/701"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/701/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash on the Beach 2011</title>
		<link>http://labs.distriqt.com/post/675</link>
		<comments>http://labs.distriqt.com/post/675#comments</comments>
		<pubDate>Tue, 18 Oct 2011 07:03:59 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=675</guid>
		<description><![CDATA[So I know this was a few weeks ago now, but I took a few weeks off afterwards to travel around Europe and now that I'm back I thought I'd put together a few little thoughts on the week. As an Australian it's a long journey to Brighton, UK, and one that even with my [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F675"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F675&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/10/fotb-brighton-pier.jpg" alt="" title="FOTB Brighton Pier" width="580" height="228" class="aligncenter size-full wp-image-682" /></p>
<p>So I know this was a few weeks ago now, but I took a few weeks off afterwards to travel around Europe and now that I'm back I thought I'd put together a few little thoughts on the week.</p>
<p>As an Australian it's a long journey to Brighton, UK, and one that even with my passion for Flash could not be solely made for a 3 day conference. So with luck a few friends and I packed up and went off for a month to travel around France and Spain and I managed to work in the trip to Brighton for a few days. </p>
<p><span id="more-675"></span>The trip there was fraught with danger, so much so that my laptop had packed it in by the time I got to Brighton. A brand new MacBook Air mind you. I arrived late afternoon into Brighton and of course my first destination was the Apple store, can't survive a conference without a laptop. Thankfully it was a quick fix and I was in and out within 30 minutes. They were actually really helpful and even gave me a UK power adapter so I didn't have to use the converter I've had for years. </p>
<p>So I was back on track and went off to the Dome for registration.  </p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/10/fotb-registration-pass.jpg" alt="" title="FOTB Registration" width="580" height="470" class="aligncenter size-full wp-image-678" /></p>
<p>The first day was lots of fun. <a href="http://twitter.com/#!/stray_and_ruby" target="_blank">Stray's</a> talk about the brain was compelling, I went in expecting an update on my favourite framework, Robotlegs and walked away with a lesson in brain science. She had us playing memory games and doing basic maths and, Stray, I've since become a Pomodoro timer addict as well! <img src='http://labs.distriqt.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Rob Bateman talked on Away3D and the integration with Stage3D. Eugene showed us some really amazing image pattern matching techniques that he's working on, using Alchemy and Apparat.</p>
<p>The day finished off with Jon Burgerman showing us how he ended up where he is, an artist with a fun, creative illustration style and interactive passion. A interesting trip along through the life of an illustrator. Even managed to score myself a little sticker of one of his characters. </p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/10/fotb-jon-burgerman-sticker.jpg" alt="" title="Jon Burgerman Sticker" width="580" height="295" class="aligncenter size-full wp-image-679" /></p>
<p>The evening I met up with Neil who I worked with at <a href="http://studiomoso.com.au" target="_blank">Studio Moso</a> in Melbourne and we went out for a few drinks. He's now working at <a href="http://stinkdigital.com/" target="_blank">Stink Digital</a> in London and was great to meet some of the cool flash devs from there: Ian, Phil and Thomas. </p>
<p>But the highlight of the evening had to be meeting the Robotlegs creator, <a href="http://shaun.boyblack.co.za/blog/" target="_blank">Shaun Smith</a> (<a href="http://twitter.com/#!/darscan" target="_blank">twitter</a>). I fear I probably acted a little star struck and came across like an adoring idiot but I hope he understood. It had been a big day of meeting people who from Australia seem far distant and almost imaginary, but they are all real and down to earth people!</p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/10/fotb-brighton-streetart.jpg" alt="" title="FOTB Brighton Street Art" width="580" height="533" class="aligncenter size-full wp-image-680" /></p>
<p>Day 2 started off a little slow (mainly because of the beer from the previous evening). I took my time getting to the conference so I could wander the streets of Brighton and discover some of the much talked about street art. </p>
<p>Seb-lee's presentation soon kicked my brain into gear. (Or perhaps it was all that coffee. They were giving it away for free!!)  He showed us a really clever way of using the audience's mobile devices, controlled by a server to create a display, each device displaying a colour at a particular time. The thing I found really interesting was his idea to locate each device in the room. He sent each device an id and got the device to transmit it by flashing the screen colour (sort of like morse code) Then using a camera he analysed the camera feed for each id and attached it to the identified location. Such a great solution to what may have initially seemed a very complex problem. </p>
<p>Mike Chambers followed up with a break down of the <a href="http://theexpressiveweb.com" target="_blank">expressive web</a>, a site set up by Adobe to show the potential of HTML5 and CSS3.</p>
<p>More talks, before the evening finished in the required amount of one pound beers, i.e. lots.</p>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/10/fotb-adventures-man-cave.jpg" alt="" title="FOTB Man Cave" width="580" height="365" class="aligncenter size-full wp-image-681" /></p>
<p>Day 3, more coffee, more talks, I'm being brief on the talks as I think I got more out of the conference lunch breaks and evenings than the actual talks. One I would like to mention from the last day however is one by Jared Ficklin, "Visions from the man cave". This guy was great, showing off what fun can be had with a few pieces of electronics and a great idea. From the toilets that showed not only whether the toilet was occupied but if the occupant was sitting or standing, to large scale interactive music bit sampler, and of course, playing with smoke and fire!</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/6WcwkzWPZH0" frameborder="0"></iframe></p>
<p>So as the conference came to an end, and after a few of the Stink Digital boys and me had a huge buffet dinner, it was time for me to leave Brighton. </p>
<p>The conference was an amazing experience, something that we just don't have in Australia, and I don't think would work even if you managed to pull together the speaker list and venue locally. The amazing thing about this conference was the people that attend. The development community in close proximity, from London, France, Germany, Netherlands, and even Russia. It really is just mind blowing the number of highly qualified developers over there.</p>
<p>And as I say that I think about our local community and love that it is so small. We don't need a big conference to get together, just the pub on a Friday night. Either way, I've come back inspired, excited and full of ideas for the year to come.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/675"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/675/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>David Hicks Website</title>
		<link>http://labs.distriqt.com/post/665</link>
		<comments>http://labs.distriqt.com/post/665#comments</comments>
		<pubDate>Sun, 07 Aug 2011 04:22:57 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=665</guid>
		<description><![CDATA[We've just pushed a new site live for the interior designer, David Hicks. The site is a simple gallery style site using jQuery and smarty templates. David has had a Flash site for a long time but recent trends has made him request a new simplified html version of his site, and to reflect his [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F665"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F665&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/08/screenshot-davidhicks-version2.jpg" rel="shadowbox[sbpost-665];player=img;"><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/08/screenshot-davidhicks-version2-580x401.jpg" alt="" title="screenshot-davidhicks-version2" width="580" height="401" class="aligncenter size-medium wp-image-666" /></a></p>
<p>We've just pushed a new site live for the interior designer, David Hicks. The site is a simple gallery style site using jQuery and smarty templates. </p>
<p>David has had a Flash site for a long time but recent trends has made him request a new simplified html version of his site, and to reflect his new branding. </p>
<p>See the new site at <a href="http://www.davidhicks.com" target="_blank">davidhicks.com</a>.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/665"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/665/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Android Notification Example</title>
		<link>http://labs.distriqt.com/post/648</link>
		<comments>http://labs.distriqt.com/post/648#comments</comments>
		<pubDate>Wed, 20 Jul 2011 06:42:25 +0000</pubDate>
		<dc:creator>Michael Archbold</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://labs.distriqt.com/?p=648</guid>
		<description><![CDATA[So we all know and love our Android notification bar. So I just wanted to post a quick example application to show how easy it is to display a local notification. The process runs something like this: retrieve a reference to the NotificationManager create a Notification notify the manager of the notification you've created The [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F648"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.distriqt.com%2Fpost%2F648&amp;source=distriqt&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d2c0f1a5509cd228ab0be545d628ad7a&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://labs.distriqt.com/wordpress/wp-content/uploads/2011/07/notification_helloworld.jpg" alt="" title="notification_helloworld" width="580" height="292" class="aligncenter size-full wp-image-661" /></p>
<p>So we all know and love our Android notification bar. So I just wanted to post a quick example application to show how easy it is to display a local notification.</p>
<p>The process runs something like this:</p>
<ul>
<li>retrieve a reference to the NotificationManager</li>
<li>create a Notification</li>
<li>notify the manager of the notification you've created</li>
</ul>
<p><span id="more-648"></span></p>
<p>The Notification class, at it's simplest consists of an image icon and 3 pieces of text, one for the ticker, one as the title and the last as the content text.</p>
<pre class="java"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">package</span> com.<span style="color: #006600;">distriqt</span>.<span style="color: #006600;">mobile</span>.<span style="color: #006600;">experiments</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.Activity;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.Notification;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.NotificationManager;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.PendingIntent;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.content.Context;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.content.Intent;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.os.Bundle;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> NotificationExperimentActivity <span style="color: #000000; font-weight: bold;">extends</span> Activity</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #993333;">int</span> HELLO_ID = <span style="color: #cc66cc;">1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    @Override</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> onCreate<span style="color: #66cc66;">&#40;</span>Bundle savedInstanceState<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006600;">onCreate</span><span style="color: #66cc66;">&#40;</span>savedInstanceState<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        setContentView<span style="color: #66cc66;">&#40;</span>R.<span style="color: #006600;">layout</span>.<span style="color: #006600;">main</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #808080; font-style: italic;">//</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//  Look up the notification manager server</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        NotificationManager nm =</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">          <span style="color: #66cc66;">&#40;</span>NotificationManager<span style="color: #66cc66;">&#41;</span> getSystemService<span style="color: #66cc66;">&#40;</span>NOTIFICATION_SERVICE<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #808080; font-style: italic;">//</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #808080; font-style: italic;">//  Create your notification</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #993333;">int</span> icon = R.<span style="color: #006600;">drawable</span>.<span style="color: #006600;">icon</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        CharSequence tickerText = <span style="color: #ff0000;">&quot;Hello&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #993333;">long</span> when = <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">System</span></a>.<span style="color: #006600;">currentTimeMillis</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        Notification notification =</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #000000; font-weight: bold;">new</span> Notification<span style="color: #66cc66;">&#40;</span> icon, tickerText, when<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AContext+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Context</span></a> context = getApplicationContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        CharSequence contentTitle = <span style="color: #ff0000;">&quot;My notification&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        CharSequence contentText = <span style="color: #ff0000;">&quot;Hello World!&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        Intent notificationIntent =</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #000000; font-weight: bold;">new</span> Intent<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, NotificationExperimentIntent.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        PendingIntent contentIntent =</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            PendingIntent.<span style="color: #006600;">getActivity</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #cc66cc;">0</span>, notificationIntent, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        notification.<span style="color: #006600;">setLatestEventInfo</span><span style="color: #66cc66;">&#40;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            context,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            contentTitle,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            contentText,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            contentIntent<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #808080; font-style: italic;">//</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #808080; font-style: italic;">//  Send the notification</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        nm.<span style="color: #006600;">notify</span><span style="color: #66cc66;">&#40;</span> HELLO_ID, notification <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>The Android developer documentation goes through all of this in detail <a href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html">here</a>.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://labs.distriqt.com/post/648"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://labs.distriqt.com/post/648/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

