Samsung Mobile SDKFiled Under: Programming
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.
In order to use these files, you will need to download the Samsung Mobile SDK from http://innovator.samsungmobile.com/
Here is an example on how to use the code:
Dim AccVec As New SamsungMobileSdk.Accelerometer.Vector()
Dim Accelerometer As New SamsungMobileSdk.Accelerometer If Accelerometer.GetVector(AccVec) = SamsungMobileSdk.SmiResultCode.Success Then
Dim x,y,z as integer
x = AccVec.x
y = AccVec.y
z = AccVec.z
end if
Tags: .NET, Mobile, Omnia, Samsung, SDK, VB.NET
- Read More
- Jinan
- 30 Jun 2009 5:01 PM
- Comments (2)