OMNIA Application Developmentwith Samsung mobile SDK v2.2.0<br />Samsung mobile Innovator Stars<br />Sheon Shin<br />email...
Windows XP SP2 / Windows Vista<br />Active Sync 4.5( XP ), WM Device Center(Vista)<br />http://www.microsoft.com/windowsmo...
Windows Mobile 6 SDK Refresh <br />http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d4809...
Agenda<br />Samsung Windows Mobile SDK #1<br />Samsung Windows Mobile SDK #2<br />.NET Wrapper Class<br />Samsung APIs<br ...
Samsung Mobile Innovator(SMI)<br />Mobile Communications Lab, Samsung Electronics<br />Web Site: http://innovator.samsungm...
Support DevicesandAPI<br />Samsung Windows Mobile SDK -2<br /><ul><li>APIs
(Accelerometer)
(Haptic Feedback)
(Orientation)
(LightSensor)
Dual Camera / Flash
Optical mouse(M490/495)
LEDSensor</li></ul>M490/495<br />I900<br />OMNIA<br />…<br /><ul><li>AdditionalAPI(SDK 2.x, WM 6.5)
Compass (3DOrientation)
(proximity)</li></ul>I8000<br />M710/715<br />M8400<br />…<br />
Install<br />Setup file: Samsung Windows Mobile SDK 1.2.1 Installer.msi<br />Setup folder: C:Program FilesSamsung Windows ...
Upcoming SlideShare
Loading in …5
×

Omnia App With Samsung Sdk

4,673 views

Published on

Omnia development with Samsung mobile sdk

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,673
On SlideShare
0
From Embeds
0
Number of Embeds
384
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Omnia App With Samsung Sdk

  1. 1. OMNIA Application Developmentwith Samsung mobile SDK v2.2.0<br />Samsung mobile Innovator Stars<br />Sheon Shin<br />email: bokdabal@hotmail.com<br />blog: http://sheon.tistory.com<br />twitter: http://twitter.com/hyongasheon<br />
  2. 2. Windows XP SP2 / Windows Vista<br />Active Sync 4.5( XP ), WM Device Center(Vista)<br />http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/activesync-download.mspx<br />http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/device-center-download.mspx<br />Visual Studio 2005 standard/2008 professional<br />http://www.microsoft.com/downloads/details.aspx?FamilyID=83c3a1ec-ed72-4a79-8961-25635db0192b&DisplayLang=ko<br />Environment - #1<br />
  3. 3. Windows Mobile 6 SDK Refresh <br />http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&DisplayLang=en<br />Samsung Device(Omnia, Omnia2)<br />Basics of .NET Compact Framework(c#)<br />Environment -2<br />
  4. 4. Agenda<br />Samsung Windows Mobile SDK #1<br />Samsung Windows Mobile SDK #2<br />.NET Wrapper Class<br />Samsung APIs<br />(Accelerometer API)<br />(Orientation API) <br />Runtime Library <br />Resource<br />Summary<br />
  5. 5. Samsung Mobile Innovator(SMI)<br />Mobile Communications Lab, Samsung Electronics<br />Web Site: http://innovator.samsungmobile.com<br />SDK for Windows mobile 1.2.1(WM 6.1)<br />http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=2&cntsId=4980<br />SDK for Windows mobile 2.2.0(WM 6.5)<br />http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=2&cntsId=5365<br />Samsung Windows Mobile SDK -2<br />
  6. 6. Support DevicesandAPI<br />Samsung Windows Mobile SDK -2<br /><ul><li>APIs
  7. 7. (Accelerometer)
  8. 8. (Haptic Feedback)
  9. 9. (Orientation)
  10. 10. (LightSensor)
  11. 11. Dual Camera / Flash
  12. 12. Optical mouse(M490/495)
  13. 13. LEDSensor</li></ul>M490/495<br />I900<br />OMNIA<br />…<br /><ul><li>AdditionalAPI(SDK 2.x, WM 6.5)
  14. 14. Compass (3DOrientation)
  15. 15. (proximity)</li></ul>I8000<br />M710/715<br />M8400<br />…<br />
  16. 16. Install<br />Setup file: Samsung Windows Mobile SDK 1.2.1 Installer.msi<br />Setup folder: C:Program FilesSamsung Windows Mobile SDK <br />files :<br />/doc : APIs Documents and guide<br />/inc : APIs Headers <br />/lib : Static Library files(SamsungMobileSDK_1.lib)<br />/redist : Samsung SDK runtime librarys(DLL cab file)<br />/Samples : 샘플 코드<br />.NET CF( C# )<br />/redist/smi_wm_pro_sdk_redist_1_2_1.cab<br />.NET Wrapper class<br />Install Samsung SDK<br />
  17. 17. .NET Wrapper(Platform Invoke)?<br />Class for using C API Managed code(.NET) <br />Using the DLLImport Attribute<br />http://msdn.microsoft.com/en-us/library/aa984739(VS.71).aspx<br /> public const string DLLName= &quot;SamsungMobileSDK_1.dll&quot;;<br /> [DllImport(DLLName, EntryPoint = &quot;SmiGetSdkVersion&quot;)]<br /> private static extern IntPtrSmiGetSdkVersion(refSdkVersion version);<br />IntPtr v = SmiGetSdkVersion(ref version);<br />Wrapper Class<br />Accelerometer, Orientation, Haptic<br />.NET Wrapper Class<br />
  18. 18. Accelerometer(=GSeneor=MotionSensor)<br />Return 3-axis Vector value<br />X: FLOAT -2 ~2<br />Y: FLOAT -2 ~2<br />Z: FLOAT -2 ~2<br />Get a value: JUST 1 row!<br />(Accelerometer API)<br />//Declare vector<br />Accelerometer.Vector _gVector = new Accelerometer.Vector();<br />// Get Accelerometer result.<br />if (Accelerometer.GetVector(ref _gVector)!= SmiResultCode.Success) return;<br />
  19. 19. Get continious value?<br />(Accelerometer API)<br /> // Get a device<br />Accelerometer.Capabilities cap = new Accelerometer.Capabilities();<br />Accelerometer.GetCapabilities(ref cap);<br />//add handler with 2000ms<br />Accelerometer.RegisterHandler(2000, GetAccHandler);<br />//release handler<br />Accelerometer.UnregisterHandler();<br />//callback<br /> void GetAccHandler(Accelerometer.Vectorg_Vector) {<br /> .... <br /> }<br />
  20. 20. (Orientation API) <br />Orientation: <br />SmiOrientation<br />SMI_ORIENTATION_FACE_UP <br />SMI_ORIENTATION_FACE_DOWN<br />(in 10’ degrees)<br />SMI_ORIENTATION_LANDSCAPE <br />SMI_ORIENTATION_REVERSE_LANDSCAPE <br />SMI_ORIENTATION_PORTRAIT <br />SMI_ORIENTATION_REVERSE_PORTRAIT <br />In 30~150’ degrees<br />Not applied with Face up/Down event<br />SMI_ORIENTATION_REVERSE_PORTRAIT <br />
  21. 21. (Orientation API) <br />Get orientation value: JUST 1 row!<br />Monitoring appinted orientation?<br />Monitoring all orientation<br />// return Orientation status<br />if (AccOrientation.GetState(ref state)!= SmiResultCode.Success) return;<br />// add ‘Do Action’ Handler for FACE_UP event<br />AccOrientation.RegisterHandler(SMI_ORIENTATION_FACE_UP, DoActionOrientation);<br />// Add handler<br />AccOrientation.RegisterOnChangeHandler(DoActionOrientation);<br />
  22. 22. App. + redist CAB file<br />Runtime library<br />/SDK/redist/smi_wm_pro_sdk_redist_1_2_1.cab<br />How can I distribute with multi cab files?<br />‘Multicabinstall’ sample project in WM6 SDK<br />/WM6SDK/Samples/Common/CPP/Win32/multicabinstall<br />Distribute Runtime Library<br />
  23. 23. Getting Started with Building Windows Mobile Solutions with Visual Studio and Windows Mobile 6 SDK <br />http://msdn.microsoft.com/en-us/library/dd721907.aspx<br />Windows mobile developer center<br />http://msdn.microsoft.com/ko-kr/windowsmobile/default(en-us).aspx<br />InnoLab : Samsung mobileSDK Samples http://innovator.samsungmobile.com/bbs/innovlab/list.do?platformId=2&categoryId=302<br />Lab.dev : remote test for samsung devices<br />http://innovator.samsungmobile.com/bbs/lab/view.do?platformId=2<br />Resources<br />http://sheon.tistory.comor samsung mobile innovator stars board.<br />Resource<br />
  24. 24. Getting Started with Building Windows Mobile Solutions with Visual Studio and Windows Mobile 6 SDK <br />http://msdn.microsoft.com/en-us/library/dd721907.aspx<br />Windows mobile developer center<br />http://msdn.microsoft.com/ko-kr/windowsmobile/default(en-us).aspx<br />InnoLab : Samsung mobile SDK samples<br />http://innovator.samsungmobile.com/bbs/innovlab/list.do?platformId=2&categoryId=302<br />Additional lecture<br />
  25. 25. Thank you!<br />Be happy with Samsung mobile SDK!<br />

×