<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>Share The Bytes</title>
	<atom:link href="http://sharethebytes.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharethebytes.com</link>
	<description>Welcome to the site where we share the code so you don&#039;t have to worry!</description>
	<lastBuildDate>Thu, 21 Feb 2013 06:34:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
<!-- podcast_generator="Blubrry PowerPress/4.0.4" -->
	<itunes:summary>The show discussing tips and tricks we&#039;ve learned in the world of computing and coding.</itunes:summary>
	<itunes:author>Share The Bytes</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.sharethebytes.com/Graphics/LogoSmallSquare.png" />
	<itunes:owner>
		<itunes:name>Share The Bytes</itunes:name>
		<itunes:email>ilynn@sharethebytes.com</itunes:email>
	</itunes:owner>
	<managingEditor>ilynn@sharethebytes.com (Share The Bytes)</managingEditor>
	<copyright>2010 Share The Bytes</copyright>
	<itunes:subtitle>Welcome to the site where we share what we know so you don&#039;t have to worry!</itunes:subtitle>
	<itunes:keywords>share,bytes,sharethebytes,Linux,computers,open,source,Mac,Windows,coding,android</itunes:keywords>
	<image>
		<title>Share The Bytes</title>
		<url>http://sharethebytes.com/wp-content/uploads/2010/11/LogoSmallSquare.png</url>
		<link>http://sharethebytes.com</link>
	</image>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
	</itunes:category>
	<itunes:category text="Education" />
		<item>
		<title>Episode 10 &#8211; Women of Ubuntu</title>
		<link>http://sharethebytes.com/shows/episode10-women-of-ubuntu/</link>
		<comments>http://sharethebytes.com/shows/episode10-women-of-ubuntu/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 06:34:11 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[DVLug]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Women]]></category>
		<category><![CDATA[Women of Ubuntu]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=695</guid>
		<description><![CDATA[In this episode, the folks at DVLug talk with special guest Elizabeth Krumbach about her role in promoting women in the open source world.]]></description>
			<content:encoded><![CDATA[<p>In this episode, the folks at DVLug talk with special guest Elizabeth Krumbach about her role in promoting women in the open source world. Listen to our podcast to hear about the Women of Ubuntu and much much more!<br />
</h3>
<p><strong>Hosts:</strong><br />
Ian Lynn<br />
Grant Bowman<br />
Bethany Doolin</p>
<p><strong>Special Guest:</strong><br />
Elizabeth Krumbach</p>
<p><strong>Check out these sites from our discussion!</strong><br />
<a href="http://wiki.ubuntu-women.org/" title="Women of Ubuntu" target="_blank">Women of Ubuntu</a><br />
<a href="http://www.linuxchix.org/" title="LinuxChix" target="_blank">LinuxChix.org</a><br />
<a href="http://www.phillychix.org/" title="Philly Chix" target="_blank"">Philly Chix</a> &#8211; Philadelphia Area LinuxChix Chapter<br />
<a href="http://www.debian.org/women/" title="The Debian Women Project" target="_blank">The Debian Women Project</a></p>
<p>Discover more about DVLug and the topics we cover at <a title="DVLug.org" href="http://www.dvlug.org" target="_blank">DVlug.org</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode10-women-of-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep10_Women_of_Ubuntu.mp3" length="17401856" type="audio/mpeg" />
			<itunes:keywords>DVLug,Linux,open source,Women,Women of Ubuntu</itunes:keywords>
	<itunes:subtitle>In this episode, the folks at DVLug talk with special guest Elizabeth Krumbach about her role in promoting women in the open source world.</itunes:subtitle>
		<itunes:summary>In this episode, the folks at DVLug talk with special guest Elizabeth Krumbach about her role in promoting women in the open source world.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>31:34</itunes:duration>
	</item>
		<item>
		<title>Episode 9 &#8211; Free the Node</title>
		<link>http://sharethebytes.com/shows/episode-9-free-the-node/</link>
		<comments>http://sharethebytes.com/shows/episode-9-free-the-node/#comments</comments>
		<pubDate>Sat, 02 Feb 2013 03:56:48 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[DVLug]]></category>
		<category><![CDATA[Freenode]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Pidgin]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=688</guid>
		<description><![CDATA[In this episode, the folks at DVLug talk about the Freenode IRC network and much much more!]]></description>
			<content:encoded><![CDATA[<p>In this episode, the folks at DVLug talk about the Freenode IRC network and much much more!<br />
</h3>
<p><strong>Hosts:</strong><br />
Ian Lynn<br />
Grant Bowman<br />
Bethany Doolin</p>
<p><strong>Check out these sites from our discussion!</strong><br />
<a href="http://www.freenode.net/" title="Freenode" target="_blank">Freenode.net</a><br />
<a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat" title="IRC Wikipedia" target="_blank">IRC</a> from Wikiepedia<br />
<a href="http://www.pidgin.im/" title="Pidgin" target="_blank">Pidgin</a> &#8211; The universal chat client</p>
<p>Discover more about DVLug and the topics we cover at <a title="DVLug.org" href="http://www.dvlug.org" target="_blank">DVlug.org</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-9-free-the-node/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep9_Free_the_Node.mp3" length="12976128" type="audio/mpeg" />
			<itunes:keywords>community,DVLug,Freenode,IRC,Pidgin</itunes:keywords>
	<itunes:subtitle>In this episode, the folks at DVLug talk about the Freenode IRC network and much much more!</itunes:subtitle>
		<itunes:summary>In this episode, the folks at DVLug talk about the Freenode IRC network and much much more!</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>23:42</itunes:duration>
	</item>
		<item>
		<title>Episode 8 &#8211; Linus? Mark? No, it&#8217;s Jono!</title>
		<link>http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/</link>
		<comments>http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/#comments</comments>
		<pubDate>Wed, 19 Sep 2012 03:38:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[DVLug]]></category>
		<category><![CDATA[Jokosher]]></category>
		<category><![CDATA[Jono Bacon]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Severed Fifth]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=601</guid>
		<description><![CDATA[The folks at dvlug interview the one and only Jono Bacon, the author of "The Art of Community" and Ubuntu community manager. We talk about Jono's book, his experience with community management, Jokosher, and much much more.]]></description>
			<content:encoded><![CDATA[<p>The folks at dvlug interview the one and only Jono Bacon, the author of &#8220;The Art of Community&#8221; and Ubuntu community manager. We talk about Jono&#8217;s book, his experience with community management, Jokosher, and much much more.<br />
</p>
<div class="advanced_wp_columns_wrapper null" style="margin: 0px; padding: 0px; width: 600px;">
<div class="advanced_wp_column null" style="float: left; margin: 0px; padding: 0px; width: 200px;"><strong>Hosts:</strong><br />
Grant Bowman<br />
Bethany Doolin<br />
Ian Lynn</div>
<div class="advanced_wp_column null" style="float: left; margin: 0px; padding: 0px; width: 300px;"><strong>Special Guests:</strong><br />
Jono Bacon (aka not the real Mark Shuttleworth)<br />
Mark Terranova<br />
Robert Wall</div>
<div style="clear: both;"><img style="border: none;" src="http://sharethebytes.com/wp-content/plugins/advanced-wp-columns/images/1x1-pixel.png" alt="" border="0" /></div>
</div>
<p><strong>Check out Jono&#8217;s projects and these sites we talk about in the interview!</strong><br />
Jono&#8217;s creative commons band, <a title="Severed Fifth" href="http://www.severedfifth.com/" target="_blank">Severed Fifth</a>.<br />
&#8220;<a title="The Art of Community" href="http://www.artofcommunityonline.org/" target="_blank">The Art of Community</a>&#8221;<br />
The excellect podcast recording tool for Linux, <a title="Jokosher" href="http://www.jokosher.org/" target="_blank">Jokosher</a>!<br />
<a title="jonobacon@home" href="http://www.jonobacon.org/" target="_blank">JonoBacon@home</a> where you can go beyond the podcats and discover more about Jono&#8217;s creative projects.</p>
<p>Visit the website of <a title="Mark Terranova" href="http://markterranova.org/" target="_blank">Mark Terranova</a>, our very own Fedora ambassador and photographer.</p>
<p>Don&#8217;t forget the home of <a title="dvlug.org" href="http://www.dvlug.org" target="_blank">dvlug.org</a>, where you can find all of us the 2nd and 4th Friday of every month @ Cafe LaScala in downtown Walnut Creek, CA.</p>

<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/book_cover_small/' title='The Art of Community'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Book_Cover_Small-150x150.jpg" class="attachment-thumbnail" alt="The Art of Community" title="The Art of Community" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/signature/' title='Jono&#039;s Autograph'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Signature-150x150.jpg" class="attachment-thumbnail" alt="Jono&#039;s Autograph" title="Jono&#039;s Autograph" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/jono_beth_grant-2/' title='Jono_Beth_Grant'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Jono_Beth_Grant-150x150.jpg" class="attachment-thumbnail" alt="Jono Bethany and Grant" title="Jono_Beth_Grant" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/robert_mark-2/' title='Robert and Mark'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Robert_Mark-150x150.jpg" class="attachment-thumbnail" alt="Robert and Mark" title="Robert and Mark" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/grant_ian-2/' title='Grant_Ian'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Grant_Ian-150x150.jpg" class="attachment-thumbnail" alt="Grant and Ian" title="Grant_Ian" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/jono_beth-2/' title='Jono_Beth'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Jono_Beth-150x150.jpg" class="attachment-thumbnail" alt="Jono and Bethany" title="Jono_Beth" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/robert-2/' title='Robert'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Robert-150x150.jpg" class="attachment-thumbnail" alt="Robert" title="Robert" /></a>
<a href='http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/attachment/grant-2/' title='Grant'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2012/09/Grant-150x150.jpg" class="attachment-thumbnail" alt="Grant" title="Grant" /></a>

]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-8-linus-mark-no-jono/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep8_Linus_Mark_No_its_Jono.mp3" length="27200505" type="audio/mpeg" />
			<itunes:keywords>community,creative commons,DVLug,Jokosher,Jono Bacon,Linux,open source,Severed Fifth</itunes:keywords>
	<itunes:subtitle>The folks at dvlug interview the one and only Jono Bacon, the author of &quot;The Art of Community&quot; and Ubuntu community manager. We talk about Jono&#039;s book, his experience with community management, Jokosher, and much much more.</itunes:subtitle>
		<itunes:summary>The folks at dvlug interview the one and only Jono Bacon, the author of &quot;The Art of Community&quot; and Ubuntu community manager. We talk about Jono&#039;s book, his experience with community management, Jokosher, and much much more.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>51:09</itunes:duration>
	</item>
		<item>
		<title>Episode 7 &#8211; Who Wants PI</title>
		<link>http://sharethebytes.com/shows/episode-7-who-wants-pi/</link>
		<comments>http://sharethebytes.com/shows/episode-7-who-wants-pi/#comments</comments>
		<pubDate>Tue, 07 Aug 2012 06:41:58 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[DVLug]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[micro computing]]></category>
		<category><![CDATA[MK802]]></category>
		<category><![CDATA[PI]]></category>
		<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[Raspberry PI]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=573</guid>
		<description><![CDATA[In this episode, the folks at DVLug talk about the Raspberry PI micro computer and much much more!]]></description>
			<content:encoded><![CDATA[<p>In this episode, the folks at DVLug talk about the Raspberry PI micro computer and much much more!<br />
</h3>
<p><strong>Hosts:</strong><br />
Ian Lynn<br />
Grant Bowman<br />
Bethany Doolin</p>
<p><strong>Special Guest:</strong><br />
Jeff Strnad</p>
<p><strong>Check out these sites from our discussion!</strong><br />
The <a href="http://www.raspberrypi.org/" title="Raspberry PI" target="_blank">Raspberry PI</a><br />
The <a href="http://www.rikomagic.co.uk/" title="MK802" target="_blank">MK802</a> from Rikomagic<br />
<a href="http://partimus.org/" title="Partimus" target="_blank">Partimus</a> &#8211; We Share<br />
<a href="http://www.grantbow.com/command_line.html" title="Learning The Command Line" target="_blank">Learning the Command Line</a> @ GrantBow.com</p>
<p>Discover more about DVLug and the topics we cover at <a title="DVLug.org" href="http://www.dvlug.org" target="_blank">DVlug.org</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-7-who-wants-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep7_Who_Wants_PI.mp3" length="19005440" type="audio/mpeg" />
			<itunes:keywords>DVLug,Linux,micro computing,MK802,PI,Raspberry,Raspberry PI</itunes:keywords>
	<itunes:subtitle>In this episode, the folks at DVLug talk about the Raspberry PI micro computer and much much more!</itunes:subtitle>
		<itunes:summary>In this episode, the folks at DVLug talk about the Raspberry PI micro computer and much much more!</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>20:10</itunes:duration>
	</item>
		<item>
		<title>Episode 6 &#8211; Questions About Open Source</title>
		<link>http://sharethebytes.com/shows/episode-6-questions-about-open-source-2/</link>
		<comments>http://sharethebytes.com/shows/episode-6-questions-about-open-source-2/#comments</comments>
		<pubDate>Sun, 08 Jul 2012 18:39:44 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[BerkeleyLug]]></category>
		<category><![CDATA[DVLug]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=556</guid>
		<description><![CDATA[The folks at DVLug join Share The Bytes for their very first podcast. We talk about open source, what it is, where its going and begin the discussion for what it means to trust the world of open source technology.]]></description>
			<content:encoded><![CDATA[<p>The folks at DVLug join Share The Bytes for their very first podcast. We talk about open source, what it is, where its going and begin the discussion for what it means to trust the world of open source technology.</p>

<p>&nbsp;</p>
<p>Discover more about DVLug and the topics we cover at <a title="DVLug.org" href="http://www.dvlug.org" target="_blank">DVlug.org</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-6-questions-about-open-source-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep6_Questions_About_Open_Source.mp3" length="27533312" type="audio/mpeg" />
			<itunes:keywords>BerkeleyLug,DVLug,Linux</itunes:keywords>
	<itunes:subtitle>The folks at DVLug join Share The Bytes for their very first podcast. We talk about open source, what it is, where its going and begin the discussion for what it means to trust the world of open source technology.</itunes:subtitle>
		<itunes:summary>The folks at DVLug join Share The Bytes for their very first podcast. We talk about open source, what it is, where its going and begin the discussion for what it means to trust the world of open source technology.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>30:11</itunes:duration>
	</item>
		<item>
		<title>Episode 5 &#8211; IDE Ideas</title>
		<link>http://sharethebytes.com/shows/episode-5-ide-ideas/</link>
		<comments>http://sharethebytes.com/shows/episode-5-ide-ideas/#comments</comments>
		<pubDate>Tue, 17 May 2011 03:00:55 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=541</guid>
		<description><![CDATA[Ian and Cori are back talking about their favorite software development tools, pros and cons of each, and their pick of the show. Also see what happens when Cori's roommate walks in during the recording.]]></description>
			<content:encoded><![CDATA[<p>Ian and Cori are back talking about their favorite software development tools, pros and cons of each, and their pick of the show. Also see what happens when Cori&#8217;s roommate walks in during the recording.</p>
<h2><strong>Part 1</strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/RrGJYjFvoNo?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://www.youtube.com/v/RrGJYjFvoNo?fs=1&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>
<h2><strong>Part 2</strong><strong> </strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/FvLtqBzBZ_k?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://www.youtube.com/v/FvLtqBzBZ_k?fs=1&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;<br />
&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-5-ide-ideas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep5_IDE_Ideas.mp3" length="33549670" type="audio/mpeg" />
			<itunes:keywords>Android,eclipse,Java,Linux,windows</itunes:keywords>
	<itunes:subtitle>Ian and Cori are back talking about their favorite software development tools, pros and cons of each, and their pick of the show. Also see what happens when Cori&#039;s roommate walks in during the recording.</itunes:subtitle>
		<itunes:summary>Ian and Cori are back talking about their favorite software development tools, pros and cons of each, and their pick of the show. Also see what happens when Cori&#039;s roommate walks in during the recording.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>23:18</itunes:duration>
	</item>
		<item>
		<title>NOOKcolor + STB = HowTo Root</title>
		<link>http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/</link>
		<comments>http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 02:13:04 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NOOK]]></category>
		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=382</guid>
		<description><![CDATA[Despite owning two android phones, a Nexus One and a Droid Incredible, I felt that my Android life was incomplete without a tablet. To fill this void, I purchased a <a title="NOOKcolor" href="http://www.barnesandnoble.com/nookcolor/index.asp" target="_blank">NOOKcolor</a> from Barnes and Nobles with the intent to root it and release its full potential. In this post, I discuss all of my steps that made my NOOKcolor a functional Android tablet.]]></description>
			<content:encoded><![CDATA[
<a href='http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/attachment/nookroot/' title='NookRoot'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/NookRoot-150x150.png" class="attachment-thumbnail" alt="NookRoot" title="NookRoot" /></a>
<a href='http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/attachment/angrybirds/' title='AngryBirds'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/AngryBirds-150x150.png" class="attachment-thumbnail" alt="AngryBirds" title="AngryBirds" /></a>
<a href='http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/attachment/market/' title='market'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/market-150x150.png" class="attachment-thumbnail" alt="market" title="market" /></a>

<p>Despite owning two android phones, a Nexus One and a Droid Incredible, I felt that my Android life was incomplete without a tablet. To fill this void, I purchased a <a title="NOOKcolor" href="http://www.barnesandnoble.com/nookcolor/index.asp" target="_blank">NOOKcolor</a> from Barnes and Nobles with the intent to root it and release its full potential. There is a large community on the net that makes rooting the NOOKcolor a relatively easy process as long as your willing to scour the internet for information and do the necessary research. In this post, I decided to collate everything I found to make rooting the NOOKcolor even easier. Below are links and detailed walkthroughs of the tools and processes you&#8217;ll need to root your NOOK and the steps afterward to create a full functioning Android tablet.</p>
<h3 style="text-align: center;"><strong>Important Notes Before Starting</strong></h3>
<p style="text-align: center;"><strong><span style="color: #ff0000;">Remember:</span> Rooting your NOOKcolor carries the <span style="text-decoration: underline;">RISK</span> of damaging your device and voiding your warranty. Please proceed only after reading all of the instructions first and then feeling comfortable with the steps.</strong></p>
<p style="text-align: center;"><strong>Share The Bytes, myself, or any affiliated parties may not be held liable for any damage caused to your device or any loss of warranty if you choose to continue.</strong></p>
<p style="text-align: center;"><strong><span style="color: #ff0000;">Proceed at your own risk!</span><br />
</strong></p>
<div id="extraspace">
Be forewarned that I used Linux to root my NOOK, thus my instructions follow that operating system. If you are using Windows or Mac, fear not as the links I give also include instructions for the other OS&#8217;s or can be easily translated to the platform you are working with.
</div>
<h1>Tools</h1>
<ul {margin-bottom: 1em;}>
<li>NOOKcolor</li>
<li>Micro SD card 128Mb or greater</li>
<li><a title="ADB" href="http://developer.android.com/guide/developing/tools/adb.html" target="_blank">Android Debug Bridge</a> (aka adb)
<ul>
<li>This tool is part of Google&#8217;s Android sdk.</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<h1>The Rooting Process</h1>
<p><a title="NookColor Rooting" href="http://nookdevs.com/NookColor_Rooting" target="_blank">nookdevs.com</a> gives a very complete walkthrough with how to root your NOOKcolor. Use their instructions to first prepare your NOOK, load the new firmware onto the SD card, and then install the rooted software. Below are my notes that will hopefully make things a little clearer.</p>
<ol>
<li>Complete the Barnes and Nobles registration process to create a NOOK account. You do not need to enter any credit card information. Just create an account with a password. This is to allow you to still use the NOOK as an e-reader with Barnes and Nobles books.</li>
<li>Verify your firmware version and choose the correct autonooter program. Instructions on nookdevs show you how to upgrade your device firmware version before rooting.</li>
<li>I choose to use the auto nooter 2.12.25 software to root my Nook. Make sure you unzip the file before writing it to the SD card.</li>
<li>Be patient when activating the root. It&#8217;s okay to run autonooter multiple times if you think you made a mistake. When finished, remove the SD card from your NOOK.</li>
<li>After rooting, follow the follow-up instructions.</li>
<li>Do not worry to much about setting up Soft-keys according to the instructions. Just make sure that Soft-keys is an option when pressing the physical NOOK home button at the bottom of the device. I will talk in more detail about Soft-keys later on.</li>
<li>Pay particular attention to the <em>Enable Market</em> instructions. I became easily confused in this section and had to repeat these steps several times.</li>
<li>I detail my experience with re-enabling YouTube if you have any problems following the nookdev instructions.</li>
<li>Apps can be accessed from the Extras Menu in the pop-up tool bar.</li>
</ol>
<p>&nbsp;</p>
<h1>Launcher Screen</h1>
<p>Once the NOOK is rooted, you will probably want to change the default launcher screen so that you can add icons to the screen as well as enable extra functionality. Go to the android market and first install <a title="Home Switcher" href="http://market.android.com/details?id=ymst.android.homeswitcher" target="_blank">Home Switcher</a>. This app will allow you to choose temporarily or permanently which launcher is loaded when you press the physical NOOK button or the Soft-keys Home button. Next install a launcher window of your choice. Below are a few examples.</p>
<div id="listspace">
<ul>
<li><a title="ADW.Launcher" href="http://market.android.com/details?id=org.adw.launcher" target="_blank">ADW.Launcher</a></li>
<li><a title="Go Launcher EX" href="http://market.android.com/details?id=com.gau.go.launcherex" target="_blank">Go Launcher EX</a></li>
<li><a title="LauncherPro" href="http://market.android.com/details?id=com.fede.launcher" target="_blank">LauncherPro</a></li>
<li><a title="Zeam Launcher" href="http://market.android.com/details?id=org.zeam" target="_blank">Zeam Launcher</a></li>
</ul>
</div>
<p>The default toolbar at the bottom of the screen will be present regardless of which launcher you choose. The good news is that the Back and Menu button will now be persistent. Along with the physical Home button, you will no longer need to run the Soft-keys app at all times.</p>
<p>&nbsp;</p>
<h1>ADB Access</h1>
<p>Since the NOOKcolor is such a new device, the Android Debug Bridge(adb) may not recognize the device when it is plugged into your computer. ADB is useful if you wish to install/uninstall apps without using the market or if you need to make adjustments to the device directly, such as improving battery life. You will need the latest version of the <a title="Android SDK" href="http://developer.android.com/sdk/index.html" target="_blank">Android sdk</a>. If you have previously downloaded and installed the Android sdk, you will need to update it to the latest version.</p>
<p><strong><code>&lt;sdk Directory&gt;/tools/android update sdk<br />
&lt;sdk Directory&gt;/tools/android update adb</code></strong></p>
<p>In the latest sdk, adb has been moved to the <strong><code>&lt;sdk Directory&gt;/platform-tools/</code></strong> directory.</p>
<p>The next step is to add the NOOKcolor usb device ID to your machine and/or install the proper drivers to your computer depending which operating system you are using. The nookdevs website contains a <a title="USB ADB" href="http://nookdevs.com/NookColor_USB_ADB" target="_blank">posting</a> on how to do this for each type of OS.</p>
<p>In Linux, with your device plugged into your computer, execute the following command to see a list of currently connected usb devices.</p>
<p><strong><code>lsusb</code></strong></p>
<p>Your NOOKcolor device ID will be 0&#215;2080. Once this device ID is added to your home directory, the NOOKcolor will be visible to adb. To add the device ID, execute the following command.</p>
<p><strong><code>sudo sh -c "mkdir -p ~/.android; echo 0x2080 &gt; ~/.android/adb_usb.ini; &lt;sdk Directory&gt;/platform-tools/adb kill-server; &lt;sdk Directory&gt;/platform-tools/adb devices"</code></strong></p>
<h2>Troubleshooting</h2>
<p>To verify that the usb driver was successfully installed, execute the following.</p>
<p><strong><code>&lt;sdk Directory&gt;/platform-tools/adb devices</code></strong></p>
<p>With luck you should see your device now when you run <strong><code>adb devices</code></strong>. If you see a series of question marks, then the adb server was not properly started. To restart the adb server, execute the following. Make sure that when you start the server, you are executing it with sudo and/or root access.</p>
<p><strong><code>sudo &lt;sdk Directory&gt;/platform-tools/adb kill-server<br />
sudo &lt;sdk Directory&gt;/platform-tools/adb start-server</code></strong></p>
<p>&nbsp;</p>
<h1>Battery Life</h1>
<p>One of the big selling points of the NOOKcolor is it&#8217;s long battery life. Oddly, the Cell Phone Standby service is still active in the stock NOOK firmware and is one of the biggest battery drainers. Just take a look at the battery usage list and you will see Cell Phone Standby at or near the top of the list. Fortunately this service can be easily disabled using adb. Follow the instructions written by xboxexpert in his <a title="Remove Cell Phone Standby" href="http://forum.xda-developers.com/showthread.php?t=888216" target="_blank">post</a> on the <a title="xdadevelopers" href="http://www.xda-developers.com/" target="_blank">xdadevlopers</a> forums.</p>
<p>Soft-keys also sits at the top of the battery usage list. If you have a new launcher installed, you will usually have a persistent toolbar with the Back and Menu buttons available all the time and thus no longer need the Soft-keys app. All you need is a task killer app to shut down any programs that hide the toolbar and prevent using the Back button. These programs are few and far between, so it&#8217;s safe to uninstall the Soft-keys app.</p>
<p>&nbsp;</p>
<h1>YouTube</h1>
<p>As noted by the nookdevs team, YouTube will no longer work after rooting. This is caused by some issue with being logged into your YouTube account. It is necessary to remove the login information from YouTube. nookdevs suggest using Titanium Backup to remove all YouTube user data. Other people have said that clearing out YouTube data through Android&#8217;s Settings-&gt;Applications tools work as well. Neither solution worked for me, so I was forced to uninstall YouTube and then reinstall it. To uninstall and reinstall YouTube, use the following instructions.</p>
<div id="listspace">
<ol>
<li>Follow the uninstall directions on the <a title="NOOKcolor Rooting" href="http://nookdevs.com/NookColor_Rooting" target="_blank">nookdevs.com</a> website, under <strong>&#8220;If YouTube fails to start&#8221;</strong></li>
<li>Download the YouTube apk from <a title="YouTube apk" href="http://forum.xda-developers.com/showthread.php?t=867207" target="_blank">here</a>.</li>
<li>Use adb to install the file, or copy the apk to you NOOK and install manually using a file manager.</li>
</ol>
</div>
<p>&nbsp;</p>
<h1>Android Market</h1>
<p>When browsing apps on the android market, you will need to rotate the NOOKcolor to landscape in order to see all the available apps in the scroll list. This is a bug in Android Market since it was designed for smaller screens. The scroll list only shows the first ten apps and won&#8217;t expand unless it detects the screen edge. Portrait mode is too big for ten items to reach the bottom, thus requiring you to rotate the NOOK to landscape.</p>
<p>&nbsp;</p>
<h1>Live Wallpapers</h1>
<p>I&#8217;m happy to say that live wallpapers work very well on the NOOKcolor. The stock live wallpapers are not included with the stock NOOK firmware despite showing up as choices in the Live Wallpaper menu list. If you want to use the stock live wallpapers, you will have to search for their apk&#8217;s and install them manually. Otherwise all live wallpapers available on the Android Market are good to use. You will need to use an alternative launcher screen other than the default NOOKcolor launcher in order to access and use live wallpapers.</p>
<p>&nbsp;</p>
<h1>Useful Apps</h1>
<p>Below are apps that I have downloaded and used to improve the functionality of the NOOKcolor.</p>
<div id="listspace">
<ol>
<li><a title="ES File Explorer" href="https://market.android.com/details?id=com.estrongs.android.pop&amp;feature=search_result" target="_blank">ES File Explorer</a>
<ul>
<li>Very good file manager. Also provides an application manager.</li>
</ul>
</li>
<li><a title="ES Task Manager" href="https://market.android.com/details?id=com.estrongs.android.taskmanager&amp;feature=search_result" target="_blank">ES Task Manager</a>
<ul>
<li>Provides a widget to show how many services are currently running. Also allows you to kill all running services with just a tap. Add services to the exclusion list that you want to remain running, such as live wallpapers.</li>
</ul>
</li>
<li><a title="File Expert" href="https://market.android.com/details?id=xcxin.filexpert&amp;feature=search_result" target="_blank">File Expert</a>
<ul>
<li>A very good file manager. Allows you to connect to network drives. Has a built in gallery function to view pictures. Much better than the stock gallery app.</li>
</ul>
</li>
<li><a title="Battery Status" href="https://market.android.com/details?id=com.sunshine.batterstatus&amp;feature=search_result" target="_blank">Battery Status</a>
<ul>
<li>Provides an excellent widget to show current battery levels.</li>
</ul>
</li>
</ol>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/tutorials/nookcolor-stb-howto-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Episode 4 &#8211; This is Android</title>
		<link>http://sharethebytes.com/shows/episode-4-this-is-android/</link>
		<comments>http://sharethebytes.com/shows/episode-4-this-is-android/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 20:03:37 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=350</guid>
		<description><![CDATA[Our guest Jack, talks about his Android apps SquirrelCam, Droidian eMusic, and arXiv droid. How he got started, the pitfalls along the way, and a few tips and tricks for those who want to start programming in Android.]]></description>
			<content:encoded><![CDATA[<p>Our guest Jack, talks about his Android apps SquirrelCam, Droidian eMusic, and arXiv droid. How he got started, the pitfalls along the way, and a few tips and tricks for those who want to start programming in Android.</p>
<h2><strong>Part 1</strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/OYUPtuw6c58?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/OYUPtuw6c58?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>
<h2><strong>Part 2</strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/DNzsjSIAri0?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/DNzsjSIAri0?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>

<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/squirrelcam/' title='SquirrelCam'><img width="48" height="48" src="http://sharethebytes.com/wp-content/uploads/2011/01/SquirrelCam.png" class="attachment-thumbnail" alt="SquirrelCam" title="SquirrelCam" /></a>
<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/drodian-emusic/' title='Drodian-eMusic'><img width="48" height="48" src="http://sharethebytes.com/wp-content/uploads/2011/01/Drodian-eMusic.png" class="attachment-thumbnail" alt="Drodian eMusic" title="Drodian-eMusic" /></a>
<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/arxiv/' title='arXiv'><img width="48" height="48" src="http://sharethebytes.com/wp-content/uploads/2011/01/arXiv.png" class="attachment-thumbnail" alt="arXiv droid" title="arXiv" /></a>
<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/squirrelcam_qr/' title='SquirrelCam QR'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/SquirrelCam_QR-150x150.png" class="attachment-thumbnail" alt="SquirrelCam QR" title="SquirrelCam QR" /></a>
<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/drodian-emusic_qr/' title='Drodian-eMusic QR'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/Drodian-eMusic_QR-150x150.png" class="attachment-thumbnail" alt="Drodian eMusic QR" title="Drodian-eMusic QR" /></a>
<a href='http://sharethebytes.com/shows/episode-4-this-is-android/attachment/arxiv_qr/' title='arXiv droid QR'><img width="150" height="150" src="http://sharethebytes.com/wp-content/uploads/2011/01/arXiv_QR-150x150.png" class="attachment-thumbnail" alt="arXiv droid QR" title="arXiv droid QR" /></a>

<p>&nbsp;<br />
&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-4-this-is-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Ep4_This_is_Android.mp3" length="22544384" type="audio/mpeg" />
			<itunes:keywords>Android,Linux</itunes:keywords>
	<itunes:subtitle>Our guest Jack, talks about his Android apps SquirrelCam, Droidian eMusic, and arXiv droid. How he got started, the pitfalls along the way, and a few tips and tricks for those who want to start programming in Android.</itunes:subtitle>
		<itunes:summary>Our guest Jack, talks about his Android apps SquirrelCam, Droidian eMusic, and arXiv droid. How he got started, the pitfalls along the way, and a few tips and tricks for those who want to start programming in Android.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>15:39</itunes:duration>
	</item>
		<item>
		<title>Episode 3 &#8211; Working Together</title>
		<link>http://sharethebytes.com/shows/episode-3-working-together/</link>
		<comments>http://sharethebytes.com/shows/episode-3-working-together/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 04:58:30 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Shows]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=339</guid>
		<description><![CDATA[Wondering if Linux and Windows can work together? Watch this episode of Share the Bytes to find out how easy it is. Cori talks about Samba and Ian gives a quick overview of Windows and Linux filesystems.]]></description>
			<content:encoded><![CDATA[<h2><strong>Part 1</strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Now337cXQ5E?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/Now337cXQ5E?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>
<h2><strong>Part 2</strong></h2>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/svWqx8C1wnM?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/svWqx8C1wnM?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/shows/episode-3-working-together/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.sharethebytes.com/Podcasts/STB_Episode_3_Working_Together.mp3" length="30162944" type="audio/mpeg" />
		<itunes:subtitle>Wondering if Linux and Windows can work together? Watch this episode of Share the Bytes to find out how easy it is. Cori talks about Samba and Ian gives a quick overview of Windows and Linux filesystems.</itunes:subtitle>
		<itunes:summary>Wondering if Linux and Windows can work together? Watch this episode of Share the Bytes to find out how easy it is. Cori talks about Samba and Ian gives a quick overview of Windows and Linux filesystems.</itunes:summary>
		<itunes:author>Share The Bytes</itunes:author>
		<itunes:explicit>no</itunes:explicit>
		<itunes:duration>20:56</itunes:duration>
	</item>
		<item>
		<title>Linksys RC Truck + Android Intro</title>
		<link>http://sharethebytes.com/projects/linksys-rc-truck-android-intro/</link>
		<comments>http://sharethebytes.com/projects/linksys-rc-truck-android-intro/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 20:57:10 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://sharethebytes.com/?p=219</guid>
		<description><![CDATA[Hey all! I want to introduce a project I&#8217;ve been working on for controlling a 1/10th scale remote control truck with an Android mobile phone. This is just a quick introduction to the project. I will have detailed steps and code once I get everything up and running, so please hang in there and check ...]]></description>
			<content:encoded><![CDATA[<p>Hey all!</p>
<p>I want to introduce a project I&#8217;ve been working on for controlling a 1/10th scale remote control truck with an Android mobile phone. This is just a quick introduction to the project. I will have detailed steps and code once I get everything up and running, so please hang in there and check back soon.</p>
<p><a href="http://sharethebytes.com/wp-content/uploads/2010/12/DSCF6230-e1291522760458.jpg"><img class="alignright size-thumbnail wp-image-237" title="orientation" src="http://sharethebytes.com/wp-content/uploads/2010/12/DSCF6230-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://sharethebytes.com/wp-content/uploads/2010/12/Image008-e1291522780722.jpeg"><img class="alignright size-thumbnail wp-image-230" title="Image008" src="http://sharethebytes.com/wp-content/uploads/2010/12/Image008-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>I first got the idea for this project when I stumbled upon <a title="JBProjects.net" href="http://www.jbprojects.net/" target="_blank">JBProjects.net</a>. This is a great website, created by <em>Jonathan Bennett</em>, an electrical engineering student with a passion for robotics and other cool stuff. I highly recommend checking out his web site. Jonathan built a wifi RC truck using a Linksys WRT54GL router and a few other off the shelf components. The Linksys router is such a cool piece of hardware, that I decided to get one in order to build a similar truck to Jonathan&#8217;s. The big difference between our two trucks is the control scheme. I am using an Android phone to drive and steer the truck, while Jonathan used a VB6 app he wrote running on a laptop.</p>
<p>&nbsp;</p>
<h1><strong>The Equipment</strong></h1>
<ol>
<li>(1) <a title="Traxxas Stampede" href="http://www.traxxas.com/products/models/electric/3605stampede" target="_blank">Traxxas Stampede XL-5</a></li>
<li>(1) <a title="Linksys WRT54GL" href="http://homestore.cisco.com/en-us/routers/Linksys-WRT54GL-Wireless-G-Router-Front-Page_stcVVproductId53934619VVcatId552009VVviewprod.htm" target="_blank">Linksys WRT54GL </a>wireless Router</li>
<li>(1) <a title="Parallax" href="http://www.parallax.com/" target="_blank">Basic Stamp 2</a> Microcontroller</li>
<li>(2) 5000mAh batteries</li>
<li>(1) <a title="Nexus One" href="http://www.google.com/phone/detail/nexus-one" target="_blank">Nexus One</a> Android phone</li>
<li>(1) 12VDC Fixed-Voltage regulator <a title="12VDC regulator" href="http://www.datasheetcatalog.org/datasheets/150/44435_DS.pdf">7812</a></li>
<li>Misc hardware to hold everything together</li>
</ol>
<p>&nbsp;</p>
<h1><strong>Construction</strong></h1>
<p>The truck is almost complete. I still need to mount the second battery and the Linksys router. The Basic Stamp has been secured to the truck platform. Since it&#8217;s a bare PCB board, I placed risers below the board in order for it to sit flush with the platform. The platform is an 8&#215;12&#8243; 3mm <a title="Sintra Solarboitics.com" href="http://solarbotics.com/products/sin3mm/" target="_blank">sintra</a> sheet from <a title="Solarbotics.com" href="http://Solarbotics.com" target="_blank">Solarbotics.com</a>. It&#8217;s rigid, but very easy to machine.</p>
<p><a href="http://sharethebytes.com/wp-content/uploads/2010/12/Image004.jpg"><img class="size-thumbnail wp-image-285 alignleft" title="Image004" src="http://sharethebytes.com/wp-content/uploads/2010/12/Image004-150x150.jpg" alt="Basic Stamp Mount" width="150" height="150" /></a><a href="http://sharethebytes.com/wp-content/uploads/2010/12/FirstBuild.jpg"><img class="size-thumbnail wp-image-303 alignleft" title="FirstBuild" src="http://sharethebytes.com/wp-content/uploads/2010/12/FirstBuild-150x150.jpg" alt="First Build" width="150" height="150" /></a></p>
<p>Since both the hardware I had chosen and my execution design wasn&#8217;t going to be circuit for circuit or code for code to the original wifi truck, I had to ensure that all of the hardware would work together. Specifically, I had to figure out if the Basic Stamp could send compatible signals to the RC truck&#8217;s electronic speed controller(ESC) and steering servo. To do this, I removed the housing around the truck&#8217;s RC receiver, where the ESC and steering servo connected to, and recorded the signals received from the RC transmitter. I used a digital multimeter connected to a computer to measure and record both the pulse width and duty cycle of the signal. With this information and a little trial and error, I was able to control the speed of the motor and the direction of the steering servo.</p>
<p>Below is some test code I wrote for the Basic Stamp to verify that I could control the speed and direction of the motor.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://sharethebytes.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=219&amp;download=SpeedTest.bs2">SpeedTest.bs2</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2193"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code" id="p219code3"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">' {$STAMP BS2}
</span><span style="color: #008000;">' {$PBASIC 2.5}
</span><span style="color: #008000;">' {$PORT COM1}
</span>
counter VAR Word
TX CON 0
interval CON 1000
&nbsp;
<span style="color: #008000;">'Motor Brake
</span><span style="color: #000080;">FOR</span> counter = 1 <span style="color: #000080;">TO</span> interval
PULSOUT TX, 680
PAUSE 17
<span style="color: #000080;">NEXT</span>
&nbsp;
<span style="color: #008000;">'Motor Full Speed Forward
</span><span style="color: #000080;">FOR</span> counter = 1 <span style="color: #000080;">TO</span> interval
PULSOUT TX, 930
PAUSE 17
<span style="color: #000080;">NEXT</span>
&nbsp;
<span style="color: #008000;">'Motor Brake
</span><span style="color: #000080;">FOR</span> counter = 1 <span style="color: #000080;">TO</span> interval
PULSOUT TX, 680
PAUSE 17
<span style="color: #000080;">NEXT</span>
&nbsp;
<span style="color: #008000;">'Motor Full Speed Reverse
</span><span style="color: #000080;">FOR</span> counter = 1 <span style="color: #000080;">TO</span> interval
PULSOUT TX, 425
PAUSE 17
<span style="color: #000080;">NEXT</span>
&nbsp;
<span style="color: #008000;">'Motor Brake
</span><span style="color: #000080;">FOR</span> counter = 1 <span style="color: #000080;">TO</span> interval
PULSOUT TX, 680
PAUSE 17
<span style="color: #000080;">NEXT</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<h1><strong>Programming</strong></h1>
<p>This is definitely the most difficult part of the  whole project. There are three major hardware components, each requiring their own specific program, all using different code languages. The Android phone uses Java, the Linksys router runs C, and the Basic Stamp uses PBasic. </p>
<h3><strong>Linksys Router</strong></h3>
<p>I have to again give a big thanks to Jonathan. I used his <a href="http://www.jbprojects.net/projects/wifirobot/package/carserver/src/carserver.c" target="_blank">carserver.c</a> code that runs on the Linksys router. This piece of code receives the telemetry from the control device, Android phone, and then relays it to the Basic Stamp. I&#8217;ve made a few modifications to Jonathan&#8217;s code to fit my needs. I&#8217;m also running the openWRT Kamikaze 7.09 firmware on my router instead of WhiteRussian. This required me to compile a new binary for the router, different to the one Jonathan uses. I followed a <a title="openWRT Howto Compile" href="http://gargoyle-router.com/old-openwrt-coding.html" target="_blank">howto document</a>, written by Eric Bishop, to compile the carserver code for my router.</p>
<h3><strong>Android Phone</strong></h3>
<p>The Android code is very simple right now. I&#8217;ve created a deadman button, so that data will only be sent to the router when the button is depressed. As soon as the user lets go of the button, data will no longer be transmitted to the router. When pressed, the program reads the orientation sensor and sends the pitch and roll data to the Linksys router.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://sharethebytes.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=219&amp;download=STBTilt.java">STBTilt.java</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2194"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
</pre></td><td class="code" id="p219code4"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.sharethebytes.STBTilt</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.content.Context</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.View</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.Window</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.WindowManager</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.MotionEvent</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.graphics.PixelFormat</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.TextView</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Button</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.hardware.Sensor</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.hardware.SensorManager</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.hardware.SensorEvent</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.hardware.SensorEventListener</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.hardware.GeomagneticField</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.util.Log</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.lang.String</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span> <span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.*</span> <span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.InetAddress</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.NetworkInterface</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.lang.Thread</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.lang.Exception</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.lang.Character.UnicodeBlock</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> STBTilt <span style="color: #000000; font-weight: bold;">extends</span> Activity
<span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">double</span> PI <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3.14159265358979323</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> TextView Azimuth<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> TextView Pitch<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> TextView Roll<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abutton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Button</span></a> Run<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">double</span> orientArray<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">double</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">double</span> kFilter <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> Sensor sensor<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> SensorManager sm<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aoutputstream+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">OutputStream</span></a> out<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asocket+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Socket</span></a> s <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> myName<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/** Called when the activity is first created. */</span>
@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
getWindow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setFormat</span><span style="color: #009900;">&#40;</span>PixelFormat.<span style="color: #006633;">TRANSLUCENT</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
requestWindowFeature<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Awindow+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Window</span></a>.<span style="color: #006633;">FEATURE_NO_TITLE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
getWindow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setFlags</span><span style="color: #009900;">&#40;</span>WindowManager.<span style="color: #006633;">LayoutParams</span>.<span style="color: #006633;">FLAG_FULLSCREEN</span>,WindowManager.<span style="color: #006633;">LayoutParams</span>.<span style="color: #006633;">FLAG_FULLSCREEN</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Azimuth <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">azimuth</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Pitch <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">pitch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Roll <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">roll</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Azimuth.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Pitch.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Roll.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
Run <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abutton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Button</span></a><span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">run</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Run.<span style="color: #006633;">setOnTouchListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aview+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">View</span></a>.<span style="color: #006633;">OnTouchListener</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> onTouch<span style="color: #009900;">&#40;</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aview+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">View</span></a> yourButton , MotionEvent theMotion <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">switch</span> <span style="color: #009900;">&#40;</span> theMotion.<span style="color: #006633;">getAction</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">case</span> MotionEvent.<span style="color: #006633;">ACTION_DOWN</span><span style="color: #339933;">:</span>
Sensor accelerometer <span style="color: #339933;">=</span> sm.<span style="color: #006633;">getDefaultSensor</span><span style="color: #009900;">&#40;</span>Sensor.<span style="color: #006633;">TYPE_ACCELEROMETER</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Sensor magnetometer <span style="color: #339933;">=</span> sm.<span style="color: #006633;">getDefaultSensor</span><span style="color: #009900;">&#40;</span>Sensor.<span style="color: #006633;">TYPE_MAGNETIC_FIELD</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Register your SensorListener</span>
sm.<span style="color: #006633;">registerListener</span><span style="color: #009900;">&#40;</span>sensorEventListener, accelerometer, SensorManager.<span style="color: #006633;">SENSOR_DELAY_GAME</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sm.<span style="color: #006633;">registerListener</span><span style="color: #009900;">&#40;</span>sensorEventListener, magnetometer, SensorManager.<span style="color: #006633;">SENSOR_DELAY_GAME</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//myName = NetworkInterface.getName();</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Net&quot;</span>,<span style="color: #0000ff;">&quot;***Network Interface: &quot;</span> <span style="color: #339933;">+</span> myName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">case</span> MotionEvent.<span style="color: #006633;">ACTION_UP</span><span style="color: #339933;">:</span>
sm.<span style="color: #006633;">unregisterListener</span><span style="color: #009900;">&#40;</span>sensorEventListener<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>s <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
s.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
s<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">IOException</span></a> ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Socket&quot;</span>,<span style="color: #0000ff;">&quot;***Socket Close Error &quot;</span> <span style="color: #339933;">+</span> ex.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
sm <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>SensorManager<span style="color: #009900;">&#41;</span> getSystemService<span style="color: #009900;">&#40;</span>SENSOR_SERVICE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
* The listener that listen to events from the orientation listener
*/</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> SensorEventListener sensorEventListener <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SensorEventListener<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> mGravity<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> mGeomagnetic<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onAccuracyChanged<span style="color: #009900;">&#40;</span>Sensor sensor, <span style="color: #000066; font-weight: bold;">int</span> accuracy<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onSensorChanged<span style="color: #009900;">&#40;</span>SensorEvent event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>event.<span style="color: #006633;">sensor</span>.<span style="color: #006633;">getType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> Sensor.<span style="color: #006633;">TYPE_ACCELEROMETER</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
mGravity <span style="color: #339933;">=</span> event.<span style="color: #006633;">values</span>.<span style="color: #006633;">clone</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Accel&quot;</span>,<span style="color: #0000ff;">&quot;***X: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>mGravity<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Accel&quot;</span>,<span style="color: #0000ff;">&quot;***Y: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>mGravity<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Accel&quot;</span>,<span style="color: #0000ff;">&quot;***Z: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>mGravity<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>event.<span style="color: #006633;">sensor</span>.<span style="color: #006633;">getType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> Sensor.<span style="color: #006633;">TYPE_MAGNETIC_FIELD</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
mGeomagnetic <span style="color: #339933;">=</span> event.<span style="color: #006633;">values</span>.<span style="color: #006633;">clone</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Magnetic&quot;</span>,<span style="color: #0000ff;">&quot;***Compass 1: &quot;</span> <span style="color: #339933;">+</span> mGeomagnetic<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Magnetic&quot;</span>,<span style="color: #0000ff;">&quot;***Compass 2: &quot;</span> <span style="color: #339933;">+</span> mGeomagnetic<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Magnetic&quot;</span>,<span style="color: #0000ff;">&quot;***Compass 3: &quot;</span> <span style="color: #339933;">+</span> mGeomagnetic<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>mGravity <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> mGeomagnetic <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> R <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> I <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">boolean</span> success <span style="color: #339933;">=</span> SensorManager.<span style="color: #006633;">getRotationMatrix</span><span style="color: #009900;">&#40;</span>R,I, mGravity, mGeomagnetic<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>success<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">float</span> orientation<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">float</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
SensorManager.<span style="color: #006633;">getOrientation</span><span style="color: #009900;">&#40;</span>R,orientation<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Use a basic low-pass filter to only keep the gravity in the accelerometer values</span>
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> orientation<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">180</span><span style="color: #339933;">/</span>PI <span style="color: #339933;">*</span> kFilter <span style="color: #339933;">+</span> orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1.0</span> <span style="color: #339933;">-</span> kFilter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> orientation<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">180</span><span style="color: #339933;">/</span>PI <span style="color: #339933;">*</span> kFilter <span style="color: #339933;">+</span> orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1.0</span> <span style="color: #339933;">-</span> kFilter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> orientation<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">180</span><span style="color: #339933;">/</span>PI <span style="color: #339933;">*</span> kFilter <span style="color: #339933;">+</span> orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1.0</span> <span style="color: #339933;">-</span> kFilter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
Azimuth.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Azimuth: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Pitch.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Pitch: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Roll.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Roll: &quot;</span> <span style="color: #339933;">+</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>s<span style="color: #339933;">!=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> message <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">+</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">+</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">round</span><span style="color: #009900;">&#40;</span>orientArray<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
sendMessage<span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> sendMessage<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> message<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> b <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
b<span style="color: #339933;">=</span>message.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UnicodeLittleUnMarked&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">write</span><span style="color: #009900;">&#40;</span>b,<span style="color: #cc66cc;">0</span>,b.<span style="color: #006633;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//Integer size= b.length;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Log.d(&quot;Socket&quot;,&quot;***&quot; + size.toString());</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">IOException</span></a> ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Socket&quot;</span>,<span style="color: #0000ff;">&quot;***Socket Send Error &quot;</span> <span style="color: #339933;">+</span> ex.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onDestroy<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onDestroy</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Destroy&quot;</span>,<span style="color: #0000ff;">&quot;***Destroying***&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sm.<span style="color: #006633;">unregisterListener</span><span style="color: #009900;">&#40;</span>sensorEventListener<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
finish<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onPause<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onPause</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Pause&quot;</span>,<span style="color: #0000ff;">&quot;***Pausing***&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sm.<span style="color: #006633;">unregisterListener</span><span style="color: #009900;">&#40;</span>sensorEventListener<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>s <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
s.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
s<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">IOException</span></a> ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Socket&quot;</span>,<span style="color: #0000ff;">&quot;***Socket Close Error &quot;</span> <span style="color: #339933;">+</span> ex.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
finish<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onResume<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onResume</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Resume&quot;</span>,<span style="color: #0000ff;">&quot;***Resuming***&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>That&#8217;s it for now. Come back soon and I will have all the steps and all the code that will get this truck moving.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharethebytes.com/projects/linksys-rc-truck-android-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
