<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using HTC Diamond&#8217;s Accelerometer/Sensor SDK from Managed Code</title>
	<atom:link href="http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/</link>
	<description>Blogging about enterprise mobility, mobile devices, security, management and deployments.</description>
	<lastBuildDate>Sat, 19 Jun 2010 16:29:12 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: C# Development</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1923</link>
		<dc:creator>C# Development</dc:creator>
		<pubDate>Tue, 15 Jun 2010 10:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1923</guid>
		<description>The post is about HTC Diamond’s Accelerometer/Sensor SDK from Managed Code.When the device is face up on a flat surface, this method would return 0, 0, -9.8. The Z value of -9.8 would mean that the acceleration in the opposite direction of the orientation of the screen.</description>
		<content:encoded><![CDATA[<p>The post is about HTC Diamond’s Accelerometer/Sensor SDK from Managed Code.When the device is face up on a flat surface, this method would return 0, 0, -9.8. The Z value of -9.8 would mean that the acceleration in the opposite direction of the orientation of the screen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Jaquine J. Rasalan</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1913</link>
		<dc:creator>Bryan Jaquine J. Rasalan</dc:creator>
		<pubDate>Fri, 07 May 2010 03:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1913</guid>
		<description>I&#039;m in the midst of my OJT and our project concerns all about the gsensor. Me and my groupmates don&#039;t have a device,just the windows emulators. Is it possible to run the Teeter-esque type application with an emulator? 

I am hoping for your immediate reply because time for us is crucial. If you have any  recommendations for us, please...please include it in your reply. T.T</description>
		<content:encoded><![CDATA[<p>I&#8217;m in the midst of my OJT and our project concerns all about the gsensor. Me and my groupmates don&#8217;t have a device,just the windows emulators. Is it possible to run the Teeter-esque type application with an emulator? </p>
<p>I am hoping for your immediate reply because time for us is crucial. If you have any  recommendations for us, please&#8230;please include it in your reply. T.T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1899</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Sat, 13 Mar 2010 11:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1899</guid>
		<description>Can you give any information concerning the technial issues of the g-sensor?
- accuracy
- sampling rate
Is there a way to measure rotation about the vertical (gravitation) axes? e.g. using a compass or multiple g-sensors.
If yes we could use it as 6-dof sensor.

I consider to use it as an accelertion integrator (e.g. show the motion path of the phone). Applications would be:
- &quot;navigation&quot; without gps (tunnel etc.).
- distance measurement e.g. measure a room. startintegration at point-A, stop integration at point-B ==&gt; calculate distance</description>
		<content:encoded><![CDATA[<p>Can you give any information concerning the technial issues of the g-sensor?<br />
- accuracy<br />
- sampling rate<br />
Is there a way to measure rotation about the vertical (gravitation) axes? e.g. using a compass or multiple g-sensors.<br />
If yes we could use it as 6-dof sensor.</p>
<p>I consider to use it as an accelertion integrator (e.g. show the motion path of the phone). Applications would be:<br />
- &#8220;navigation&#8221; without gps (tunnel etc.).<br />
- distance measurement e.g. measure a room. startintegration at point-A, stop integration at point-B ==&gt; calculate distance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shinky77</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1892</link>
		<dc:creator>Shinky77</dc:creator>
		<pubDate>Thu, 11 Feb 2010 18:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1892</guid>
		<description>I spend more time with build application for HTC-Gensor and want to say thanks to autor. In my program I use HTCSensorGetDataOutput function from HTCSensorSDK.dll. I think this is best way came back real variable for aplication. Function return TiltX,Y,Z for all axes from -1000 to 1000.
Inclinometer77:
http://www.youtube.com/watch?v=0RXuzw6vMvo
or
http://www.handango.com/catalog/ProductDetails.jsp?storeId=2218&amp;productId=265715
http://mobil.pocketland.de/53736/Inclinometer77.html</description>
		<content:encoded><![CDATA[<p>I spend more time with build application for HTC-Gensor and want to say thanks to autor. In my program I use HTCSensorGetDataOutput function from HTCSensorSDK.dll. I think this is best way came back real variable for aplication. Function return TiltX,Y,Z for all axes from -1000 to 1000.<br />
Inclinometer77:<br />
<a href="http://www.youtube.com/watch?v=0RXuzw6vMvo" rel="nofollow">http://www.youtube.com/watch?v=0RXuzw6vMvo</a><br />
or<br />
<a href="http://www.handango.com/catalog/ProductDetails.jsp?storeId=2218&amp;productId=265715" rel="nofollow">http://www.handango.com/catalog/ProductDetails.jsp?storeId=2218&amp;productId=265715</a><br />
<a href="http://mobil.pocketland.de/53736/Inclinometer77.html" rel="nofollow">http://mobil.pocketland.de/53736/Inclinometer77.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ghk</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1888</link>
		<dc:creator>ghk</dc:creator>
		<pubDate>Tue, 02 Feb 2010 12:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1888</guid>
		<description>I cannot believe HTC is still not supporting g-sensor with HD2 and nothing changed with WM6.5..
I was thinking HD2 would be the real WM alternative to iphone.

I think I will just give up any hope for WM. This is just fooling people with g-sensor installed on their phones and not providing any applications, while iphone nicely works with g-sensor and have a LOT of applications.</description>
		<content:encoded><![CDATA[<p>I cannot believe HTC is still not supporting g-sensor with HD2 and nothing changed with WM6.5..<br />
I was thinking HD2 would be the real WM alternative to iphone.</p>
<p>I think I will just give up any hope for WM. This is just fooling people with g-sensor installed on their phones and not providing any applications, while iphone nicely works with g-sensor and have a LOT of applications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erric</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1875</link>
		<dc:creator>Erric</dc:creator>
		<pubDate>Wed, 30 Dec 2009 12:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1875</guid>
		<description>Hello.
I have one HTC-HD2.

My question:
How to make (choice in a list or other) so that all the applications of HTC HD2 can pass from the portrait mode to the landscape mode by simple rotation of phone (for example: particularly important function for the &quot;file explorer&quot; to improve the reading of it.
I address my best wishes for 2010 to you.
Erric</description>
		<content:encoded><![CDATA[<p>Hello.<br />
I have one HTC-HD2.</p>
<p>My question:<br />
How to make (choice in a list or other) so that all the applications of HTC HD2 can pass from the portrait mode to the landscape mode by simple rotation of phone (for example: particularly important function for the &#8220;file explorer&#8221; to improve the reading of it.<br />
I address my best wishes for 2010 to you.<br />
Erric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abaire</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1866</link>
		<dc:creator>abaire</dc:creator>
		<pubDate>Thu, 29 Oct 2009 21:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1866</guid>
		<description>Not sure if it&#039;s interesting to anybody or not, but through inspection using an HTC Touch Pro 2, I believe the &quot;Unknown2&quot; field in the HTC sensor data struct is an overall orientation indicator. I assume this is used to simplify the development of apps like the built in speakerphone that turns on when the device is placed face-down

  I&#039;ve only tested on a single device, so it&#039;d be interesting to see if it&#039;s consistent on all handsets, but these are the values I found:

With the phone standing up on the right edge of the screen (the side opposite the hardware volume buttons) - 0

With the phone standing up on the left edge of the screen (the side with the hardware volume buttons) - 1

With the phone standing up on the bottom edge of the screen (the side with the USB connector) - 2

With the phone standing up on the top edge of the screen (the side with the power button) - 3

With the phone lying down on its face - 4

With the phone lying down on its back (with the screen side up) - 5 

    typedef enum ORIENTATION {
      O_RIGHTEDGE = 0,
      O_LEFTEDGE = 1,
      O_VERTICAL_BOTTOMDOWN = 2,
      O_VERTICAL_TOPDOWN = 3,
      O_FLAT_FACEDOWN = 4,
      O_FLAT_FACEUP = 5
    } ORIENTATION;</description>
		<content:encoded><![CDATA[<p>Not sure if it&#8217;s interesting to anybody or not, but through inspection using an HTC Touch Pro 2, I believe the &#8220;Unknown2&#8243; field in the HTC sensor data struct is an overall orientation indicator. I assume this is used to simplify the development of apps like the built in speakerphone that turns on when the device is placed face-down</p>
<p>  I&#8217;ve only tested on a single device, so it&#8217;d be interesting to see if it&#8217;s consistent on all handsets, but these are the values I found:</p>
<p>With the phone standing up on the right edge of the screen (the side opposite the hardware volume buttons) &#8211; 0</p>
<p>With the phone standing up on the left edge of the screen (the side with the hardware volume buttons) &#8211; 1</p>
<p>With the phone standing up on the bottom edge of the screen (the side with the USB connector) &#8211; 2</p>
<p>With the phone standing up on the top edge of the screen (the side with the power button) &#8211; 3</p>
<p>With the phone lying down on its face &#8211; 4</p>
<p>With the phone lying down on its back (with the screen side up) &#8211; 5 </p>
<p>    typedef enum ORIENTATION {<br />
      O_RIGHTEDGE = 0,<br />
      O_LEFTEDGE = 1,<br />
      O_VERTICAL_BOTTOMDOWN = 2,<br />
      O_VERTICAL_TOPDOWN = 3,<br />
      O_FLAT_FACEDOWN = 4,<br />
      O_FLAT_FACEUP = 5<br />
    } ORIENTATION;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Etch-A-Sketch Emulator with the HTC Fuze Grav Sensor &#171; Cubicle Ninja</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1861</link>
		<dc:creator>Etch-A-Sketch Emulator with the HTC Fuze Grav Sensor &#171; Cubicle Ninja</dc:creator>
		<pubDate>Thu, 15 Oct 2009 23:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1861</guid>
		<description>[...] search for &#8220;htc fuze sensor api.&#8221; On the first patch of results I found a link to a blog post on Enterprise Mobile that appeared to be exactly what I needed (their information was greatly [...]</description>
		<content:encoded><![CDATA[<p>[...] search for &#8220;htc fuze sensor api.&#8221; On the first patch of results I found a link to a blog post on Enterprise Mobile that appeared to be exactly what I needed (their information was greatly [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esben</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1856</link>
		<dc:creator>Esben</dc:creator>
		<pubDate>Fri, 18 Sep 2009 07:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1856</guid>
		<description>You should be able to use the idea of this code. Unfortunetly i dont have the code lying around, but here is the idea.

Download the Sensor SDK sourcecode. If you open it, somwhere you will find where the author is hooking up to a event from the registry.

Search your registry after the event/key that changes when the keyboard slides. The write another dll in .NET where you hook up to this event in the registry and throw a new C# event. The you have a simple library that will thorw an event whenever the keyboard slides.

Background:
Nomatter if it is the accelerometer or the keyboard that slides, the OS (in this case Windows Mobile) will set a value in the registry. In your case probably either in the keyboard node or in the screen node. Find the value your self, im not sure where it is. (But its there..)

In c# its possible to access the registry and hook up to a key. Taht will kame .NET catch the event that the OS throws and make it possible to do what ever you want in C#.

And the Sensor SDK does exactly this. It works in two ways. 1: It polls the current oposition from the registry and then calculates the vector - forget about that part.
But the Orientation-property is calculated by hooking up to the landscape, faceup, facedown etc in Windows Mobile. And thats the idea you need to go for.

I strongly advise you (for good SW architecture sake) to put it in a assenbly and make that assembly throw an event. In taht way you can reuse the assembly in other projects AND maybe others can gain from you hard work.

Happy coding.
Feel free to get back to me.</description>
		<content:encoded><![CDATA[<p>You should be able to use the idea of this code. Unfortunetly i dont have the code lying around, but here is the idea.</p>
<p>Download the Sensor SDK sourcecode. If you open it, somwhere you will find where the author is hooking up to a event from the registry.</p>
<p>Search your registry after the event/key that changes when the keyboard slides. The write another dll in .NET where you hook up to this event in the registry and throw a new C# event. The you have a simple library that will thorw an event whenever the keyboard slides.</p>
<p>Background:<br />
Nomatter if it is the accelerometer or the keyboard that slides, the OS (in this case Windows Mobile) will set a value in the registry. In your case probably either in the keyboard node or in the screen node. Find the value your self, im not sure where it is. (But its there..)</p>
<p>In c# its possible to access the registry and hook up to a key. Taht will kame .NET catch the event that the OS throws and make it possible to do what ever you want in C#.</p>
<p>And the Sensor SDK does exactly this. It works in two ways. 1: It polls the current oposition from the registry and then calculates the vector &#8211; forget about that part.<br />
But the Orientation-property is calculated by hooking up to the landscape, faceup, facedown etc in Windows Mobile. And thats the idea you need to go for.</p>
<p>I strongly advise you (for good SW architecture sake) to put it in a assenbly and make that assembly throw an event. In taht way you can reuse the assembly in other projects AND maybe others can gain from you hard work.</p>
<p>Happy coding.<br />
Feel free to get back to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van der Merwe</title>
		<link>http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/comment-page-1/#comment-1855</link>
		<dc:creator>Johan van der Merwe</dc:creator>
		<pubDate>Thu, 17 Sep 2009 07:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.enterprisemobile.com/?p=24#comment-1855</guid>
		<description>Great piece of code. I know this post probably isnt the right one to ask, but I&#039;m currently using a htc Tytn II, which does not have a tilt sensor. I suppose the only way to determine whether the screen has changed is to monitor the slide event of the keyboard, but I dont know what Im doing wrong, because I cant find anything substantial on the web on how to do it in code. Any suggestions or URL&#039;s would be appreciated.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Great piece of code. I know this post probably isnt the right one to ask, but I&#8217;m currently using a htc Tytn II, which does not have a tilt sensor. I suppose the only way to determine whether the screen has changed is to monitor the slide event of the keyboard, but I dont know what Im doing wrong, because I cant find anything substantial on the web on how to do it in code. Any suggestions or URL&#8217;s would be appreciated.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
