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
- Permalink
- Jinan
- 30 Jun 2009 5:01 PM
- Comments (1)
July 18th, 2010 at 6:06 am
Good information. Nowadays I just got a Samsung Omnia SCH-i910 from the mail from ebay, and it presently seems that it is at stock settings for your Verizon Network. I program to make use of this mobile phone on Metro PCS. I also wish to place Windows Mobile 6.5 on here, but I’m not confident which purchase I need to do this in. Need to I carry it to Metro PCS as is and have it activated, after which it afterwards flash the ROM with 6.five? Or really should I modify the ROM primary and then carry it to Metro PCS? I’ve been looking close to and I’m unable to get the solution to this.