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

<channel>
	<title>Stephen&#039;s Thoughts &#187; JNI</title>
	<atom:link href="http://www.stephendowney.net/blog/category/jni/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stephendowney.net/blog</link>
	<description>Java &#38; Android Developer &#124; Dublin Ireland</description>
	<lastBuildDate>Mon, 19 Dec 2011 19:33:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>See the accelerometer in action on the N95</title>
		<link>http://www.stephendowney.net/blog/2007/11/01/see-the-accelerometer-in-action-on-the-n95/</link>
		<comments>http://www.stephendowney.net/blog/2007/11/01/see-the-accelerometer-in-action-on-the-n95/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 21:27:30 +0000</pubDate>
		<dc:creator>Stephen Downey</dc:creator>
				<category><![CDATA[Accelerometer]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JNI]]></category>
		<category><![CDATA[N95]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[rotateme]]></category>

		<guid isPermaLink="false">http://www.stephendowney.net/blog/2007/11/01/see-the-accelerometer-in-action-on-the-n95/</guid>
		<description><![CDATA[Just found out something cool about the N95; it turns out that it has a Accelerometer (Level Sensor). It is used by the camera in the phone to rotate pictures taken in portrait mode. It makes you wonder why Nokia did not use this to give an auto rotate to the phones screen, similar to [...]]]></description>
			<content:encoded><![CDATA[<p>Just found out something cool about the N95; it turns out that it has a <a target=blank href="http://en.wikipedia.org/wiki/Accelerometer">Accelerometer </a>(Level Sensor).  It is used by the camera in the phone to rotate pictures taken in portrait mode.  It makes you wonder why Nokia did not use this to give an auto rotate to the phones screen, similar to the feature available on the IPhone?   It looks like there is someone <a href="http://n95blog.com/cool-app-rotateme-on-the-nokia-n95/" target=_blank>developing this</a> for the phone at the moment.  It is called rotateme and should be out later this month.  Check out the <a target=_blank href="http://www.bysamir.fr/rotateme/">developers site</a> for more information.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-6681085387246782";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-11-05: N95GPSBlog
google_ad_channel = "4874000422";
//-->
</script><br />
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<a href="http://research.nokia.com/projects/activity_monitor">Nokia have released</a> a demo application to show the accelerometer in action.  Its a pretty simple application but it shows the power of what can be done.  At first I didn&#8217;t believe it was possible but check out this video below to see it in action.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/xRRsgu64F6Y&#038;rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/xRRsgu64F6Y&#038;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>They have also released the source code for the game so you can see how it is done.  The game uses the <a href="http://research.nokia.com/files/N95_RD_Accelerometer.zip" target=_blank>N95 RD Accelerometer Plug-in package </a>to hook into the accelerometer on the N95.  According to the <a href="http://research.nokia.com/projects/activity_monitor" target=_blank>research group</a> that developed the this:</p>
<blockquote><p>In a later N95 firmware release you should be able to access the raw accelerometer data by using the official sensor plug-in downloadable from Forum Nokia (<a target=_blank href="http://www.forum.nokia.com/info/sw.nokia.com/id/4284ae69-d37a-4319-bdf0-d4acdab39700/Sensor_plugin_S60_3rd_ed.html">Sensor Plug-in for 60 3rd Edition</a>).</p></blockquote>
<p> I can think of lots of game applications that could use this that I would love to write.   Unfortunately my C++ skills are very limited.  I wonder if I could hook into it from a JAVA app using <a target=_blank href="http://java.sun.com/j2se/1.4.2/docs/guide/jni/">JNI</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stephendowney.net/blog/2007/11/01/see-the-accelerometer-in-action-on-the-n95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

