Omnia App With Samsung Sdk
Upcoming SlideShare
Loading in...5
×
 

Omnia App With Samsung Sdk

on

  • 6,749 views

Omnia development with Samsung mobile sdk

Omnia development with Samsung mobile sdk

Statistics

Views

Total Views
6,749
Views on SlideShare
6,368
Embed Views
381

Actions

Likes
0
Downloads
23
Comments
0

5 Embeds 381

http://innovator.samsungmobile.com 334
http://www.slideshare.net 35
http://org-innovator.samsungmobile.com 5
http://translate.googleusercontent.com 4
http://innovator.samsungmobile.co.kr 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Omnia App With Samsung Sdk Omnia App With Samsung Sdk Presentation Transcript

    • OMNIA Application Developmentwith Samsung mobile SDK v2.2.0
      Samsung mobile Innovator Stars
      Sheon Shin
      email: bokdabal@hotmail.com
      blog: http://sheon.tistory.com
      twitter: http://twitter.com/hyongasheon
    • Windows XP SP2 / Windows Vista
      Active Sync 4.5( XP ), WM Device Center(Vista)
      http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/activesync-download.mspx
      http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/device-center-download.mspx
      Visual Studio 2005 standard/2008 professional
      http://www.microsoft.com/downloads/details.aspx?FamilyID=83c3a1ec-ed72-4a79-8961-25635db0192b&DisplayLang=ko
      Environment - #1
    • Windows Mobile 6 SDK Refresh
      http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&DisplayLang=en
      Samsung Device(Omnia, Omnia2)
      Basics of .NET Compact Framework(c#)
      Environment -2
    • Agenda
      Samsung Windows Mobile SDK #1
      Samsung Windows Mobile SDK #2
      .NET Wrapper Class
      Samsung APIs
      (Accelerometer API)
      (Orientation API)
      Runtime Library
      Resource
      Summary
    • Samsung Mobile Innovator(SMI)
      Mobile Communications Lab, Samsung Electronics
      Web Site: http://innovator.samsungmobile.com
      SDK for Windows mobile 1.2.1(WM 6.1)
      http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=2&cntsId=4980
      SDK for Windows mobile 2.2.0(WM 6.5)
      http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=2&cntsId=5365
      Samsung Windows Mobile SDK -2
    • Support DevicesandAPI
      Samsung Windows Mobile SDK -2
      • APIs
      • (Accelerometer)
      • (Haptic Feedback)
      • (Orientation)
      • (LightSensor)
      • Dual Camera / Flash
      • Optical mouse(M490/495)
      • LEDSensor
      M490/495
      I900
      OMNIA

      • AdditionalAPI(SDK 2.x, WM 6.5)
      • Compass (3DOrientation)
      • (proximity)
      I8000
      M710/715
      M8400

    • Install
      Setup file: Samsung Windows Mobile SDK 1.2.1 Installer.msi
      Setup folder: C:Program FilesSamsung Windows Mobile SDK
      files :
      /doc : APIs Documents and guide
      /inc : APIs Headers
      /lib : Static Library files(SamsungMobileSDK_1.lib)
      /redist : Samsung SDK runtime librarys(DLL cab file)
      /Samples : 샘플 코드
      .NET CF( C# )
      /redist/smi_wm_pro_sdk_redist_1_2_1.cab
      .NET Wrapper class
      Install Samsung SDK
    • .NET Wrapper(Platform Invoke)?
      Class for using C API Managed code(.NET)
      Using the DLLImport Attribute
      http://msdn.microsoft.com/en-us/library/aa984739(VS.71).aspx
      public const string DLLName= "SamsungMobileSDK_1.dll";
      [DllImport(DLLName, EntryPoint = "SmiGetSdkVersion")]
      private static extern IntPtrSmiGetSdkVersion(refSdkVersion version);
      IntPtr v = SmiGetSdkVersion(ref version);
      Wrapper Class
      Accelerometer, Orientation, Haptic
      .NET Wrapper Class
    • Accelerometer(=GSeneor=MotionSensor)
      Return 3-axis Vector value
      X: FLOAT -2 ~2
      Y: FLOAT -2 ~2
      Z: FLOAT -2 ~2
      Get a value: JUST 1 row!
      (Accelerometer API)
      //Declare vector
      Accelerometer.Vector _gVector = new Accelerometer.Vector();
      // Get Accelerometer result.
      if (Accelerometer.GetVector(ref _gVector)!= SmiResultCode.Success) return;
    • Get continious value?
      (Accelerometer API)
      // Get a device
      Accelerometer.Capabilities cap = new Accelerometer.Capabilities();
      Accelerometer.GetCapabilities(ref cap);
      //add handler with 2000ms
      Accelerometer.RegisterHandler(2000, GetAccHandler);
      //release handler
      Accelerometer.UnregisterHandler();
      //callback
      void GetAccHandler(Accelerometer.Vectorg_Vector) {
      ....
      }
    • (Orientation API)
      Orientation:
      SmiOrientation
      SMI_ORIENTATION_FACE_UP
      SMI_ORIENTATION_FACE_DOWN
      (in 10’ degrees)
      SMI_ORIENTATION_LANDSCAPE
      SMI_ORIENTATION_REVERSE_LANDSCAPE
      SMI_ORIENTATION_PORTRAIT
      SMI_ORIENTATION_REVERSE_PORTRAIT
      In 30~150’ degrees
      Not applied with Face up/Down event
      SMI_ORIENTATION_REVERSE_PORTRAIT
    • (Orientation API)
      Get orientation value: JUST 1 row!
      Monitoring appinted orientation?
      Monitoring all orientation
      // return Orientation status
      if (AccOrientation.GetState(ref state)!= SmiResultCode.Success) return;
      // add ‘Do Action’ Handler for FACE_UP event
      AccOrientation.RegisterHandler(SMI_ORIENTATION_FACE_UP, DoActionOrientation);
      // Add handler
      AccOrientation.RegisterOnChangeHandler(DoActionOrientation);
    • App. + redist CAB file
      Runtime library
      /SDK/redist/smi_wm_pro_sdk_redist_1_2_1.cab
      How can I distribute with multi cab files?
      ‘Multicabinstall’ sample project in WM6 SDK
      /WM6SDK/Samples/Common/CPP/Win32/multicabinstall
      Distribute Runtime Library
    • Getting Started with Building Windows Mobile Solutions with Visual Studio and Windows Mobile 6 SDK
      http://msdn.microsoft.com/en-us/library/dd721907.aspx
      Windows mobile developer center
      http://msdn.microsoft.com/ko-kr/windowsmobile/default(en-us).aspx
      InnoLab : Samsung mobileSDK Samples http://innovator.samsungmobile.com/bbs/innovlab/list.do?platformId=2&categoryId=302
      Lab.dev : remote test for samsung devices
      http://innovator.samsungmobile.com/bbs/lab/view.do?platformId=2
      Resources
      http://sheon.tistory.comor samsung mobile innovator stars board.
      Resource
    • Getting Started with Building Windows Mobile Solutions with Visual Studio and Windows Mobile 6 SDK
      http://msdn.microsoft.com/en-us/library/dd721907.aspx
      Windows mobile developer center
      http://msdn.microsoft.com/ko-kr/windowsmobile/default(en-us).aspx
      InnoLab : Samsung mobile SDK samples
      http://innovator.samsungmobile.com/bbs/innovlab/list.do?platformId=2&categoryId=302
      Additional lecture
    • Thank you!
      Be happy with Samsung mobile SDK!