<?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>The Realm of Jinan &#187; Mobile</title>
	<atom:link href="http://www.jinanrealm.com/tag/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jinanrealm.com</link>
	<description></description>
	<lastBuildDate>Sat, 08 May 2010 05:24:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Samsung Mobile SDK</title>
		<link>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/</link>
		<comments>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 23:01:44 +0000</pubDate>
		<dc:creator>Jinan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Omnia]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.jinanrealm.com/?p=181</guid>
		<description><![CDATA[I recently got a Samsung Omnia phone and I love this thing.  Then I decided to play around with .NET programming for windows mobile and decided to write a small alarm app using the accelerometer.  The problem was, there was hardly any code about using the accelerometer.  That is until I stumbled upon the SDK [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a Samsung Omnia phone and I love this thing.  Then I decided to play around with .NET programming for windows mobile and decided to write a small alarm app using the accelerometer.  The problem was, there was hardly any code about using the accelerometer.  That is until I stumbled upon the SDK for Samsung Mobile Phones.  The one catch was, it is written in C++, with DLL wrappers written in C#, no VB.  So I took the C# wrapper code and converted it over to VB.NET and included it in my application.</p>
<p><a href="http://www.jinanrealm.com/wp-content/uploads/2009/06/shared.vb">shared.vb</a><br />
<a href="http://www.jinanrealm.com/wp-content/uploads/2009/06/acceleromoter.vb">acceleromoter.vb</a></p>
<p>In order to use these files, you will need to download the Samsung Mobile SDK from <a href="http://innovator.samsungmobile.com/">http://innovator.samsungmobile.com/</a></p>
<p>Here is an example on how to use the code:</p>
<div><code><br />
        Dim AccVec As New SamsungMobileSdk.Accelerometer.Vector()<br />
        Dim Accelerometer As New SamsungMobileSdk.Accelerometer</code></div>
<p><code>        If Accelerometer.GetVector(AccVec) = SamsungMobileSdk.SmiResultCode.Success Then<br />
                Dim x,y,z as integer<br />
                x = AccVec.x<br />
                y = AccVec.y<br />
                z = AccVec.z<br />
        end if</p>
<p> </p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
