Geeks With Blogs
Prabhu Kumar a tech twaddler.. July 2010 Entries
HTC HD2, Accelerometer and Windows Phone 7

This post shows how to read the accelerometer data from HTC HD2 and use this on the Windows Phone 7 emulator.

Posted On Saturday, July 31, 2010 1:36 AM

Shake detection on HTC HD2
In the previous post I mentioned that the acceleration vector or the force vector can be used to detect gestures like shake. Here is a crude implementation of shake detection, private const double SHAKE_THRESHOLD = 5.0f; private bool IsShakeDetected(HTCSensorData sensorData) { bool isShake = false; double x = (double)sensorData.tiltX / 1000; double y = (double)sensorData.tiltY / 1000; double z = (double)sensorData.tiltZ / 1000; double forceSqrd = x * x + y * y + z * z; System.Console.WriteLine("F... ......

Posted On Saturday, July 24, 2010 5:53 PM

HTC HD2 and the Accelerometer
A couple of weeks ago I went out and bought myself a HTC HD2. Yes, the 4.3inch monster running windows mobile, probably the best windows mobile device ever; this one running Windows Mobile 6.5. Did you just wince in pain on hearing windows mobile? Well, if it makes you feel any better let me assure you that I’ll buy a Windows Phone 7 device as soon as one is available in market. Ok? I haven’t tweaked around with it too much yet but this week I had some time to look into the accelerometer. The Accelerometer ......

Posted On Thursday, July 15, 2010 12:27 AM

Windows Phone 7 Developer Tools Beta now available
Microsoft released yesterday the beta version of the Windows Phone 7 development tools, which was up until now in CTP. You can download it from here. It installs Visual Studio 2010 Express, Silverlight and XNA 4.0 for Windows Phone 7, Windows Phone 7 emulator and Expression Blend 4 beta. Yep, Expression Blend now installs with the beta version and you don’t have to install it separately which is nice. The beta version breaks some of the namespaces and classes from the previous April refresh CTP release. ......

Posted On Tuesday, July 13, 2010 2:21 PM

Copyright © TechTwaddle | Powered by: GeeksWithBlogs.net