Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intel XDK

Intel XDK

Presentation of the XDK, used to create hybrid mobile apps.

Olivier Gonthier

January 21, 2014
Tweet

More Decks by Olivier Gonthier

Other Decks in Programming

Transcript

  1. About Me About Me Gonthier Olivier ( Gonthier Olivier (

    ) ) @rolios @rolios Freelance polyglot developer Editor InfoQ France Work at Orange-Vallée on Libon
  2. Why HTML5 on Mobile? Why HTML5 on Mobile? Common base

    to all mobile OS Possibility to deploy one app on multiple OS Large community But... HTML5 Spec not final (but almost) Different support on various OS Hard to get same performances as native apps
  3. XDK IS... XDK IS... A set of Tools Code Editor

    Assets manager App designer Emulator Debugger Packager
  4. XDK is... XDK is... Supporting many services! Dropbox, Youtube, Flickr...

    Twitter, Facebook, Github... AppMobi (push, ad, ...)
  5. XDK IS... XDK IS... A convenient way to build Apps

    iOs Android Android Crosswalk Windows phone 8 Tizen Amazon Nook Windows 8 Chrome Facebook Firefox Generic WebApp
  6. XDK IS... XDK IS... Based on well-known tools Brackets (Editor)

    Ripple (Emulator) Chrome debug tools (Debug console) Cordova (Native Wrapper/Packager)
  7. XDK Tools XDK Tools Editor Code and file path Completion

    Quick documentation Integration of JSLint You can also use your own editor!
  8. XDK Tools XDK Tools Assets manager Manage your game assets

    (import, arrange, search) Many formats supported (plist, gif, etc.) View animations Expand animations Find more here
  9. XDK Tools XDK Tools Integrate services directly, bind events Choose

    services you want to use Select part of the payload that interest you Bind data with a MVC framework AngularJS Backbone
  10. XDK Tools XDK Tools Design your interfaces Handle media-queries easily

    Provides lot of widgets, layouts etc. Customize your navigation bars Themes
  11. XDK Tools XDK Tools Emulate, debug and profile You can

    deploy on device also Debugging/profiling remotely Emulation mock Geolocation Network/data Accelerometer DOM events <3 Chrome debug tools
  12. XDK Tools XDK Tools Building At this step you configure

    your app Icon Permissions Target OS versions Title Package name ... Note: After a build you automatically receive a mail with a link to download your app
  13. XDK Tools XDK Tools Use App Preview Upload code in

    cloud Test on your device from cloud Run demos
  14. XDK APIs XDK APIs XDK itself 1. Add <script src="intelxdk.js"

    /> 2. Wait for intel.xdk.device.ready 3. Have fun with object intel.xdk
  15. XDK APIs XDK APIs XDK itself This Javascript Api cover

    lot of stuff: Accelerometer Cache Camera Canvas Geolocation Contacts Player OAuth ... Check documentation
  16. XDK APIs XDK APIs XDK itself Let's take a photo

    for example! intel.xdk.camera.takePicture(50,false,"jpg"); document.addEventListener("intel.xdk.camera.picture.add", function(e){ var imgUrl = intel.xdk.camera.getPictureURL(e.filename); document.getElementById('picturePlace').url = imgUrl; }); Take a look at to understand parameters method documentation
  17. XDK APIs XDK APIs App Framework Query Selector and UI

    Widgets Similar (but different) to jQuery Nice to get quickly basic interfaces Interface designer really help us Open-source!
  18. XDK APIs XDK APIs App Framework Use $ to make

    selection queries (Just like jQuery) $("#myButton").click(myFunction); $(document.body).append($("<div>")); $([1,2,3]).each(multiplyFunction); Use $.ui to interacts with UI $.ui.showBackButton = false; $.ui.loadContent("#mySecondPage", false, false, "pop"); $.ui.toggleSideMenu(); $.ui.useOsThemes = false; Check documentation
  19. Crosswalk Crosswalk Embedded Runtime for Android 4+ Better performances, more

    APIs! WebGL, WebRTC! Perfect for games, and Open-Source
  20. Crosswalk Crosswalk Usage Well, nothing complicated: 1. Use html5 standard

    objects in your code 2. Choose "Crosswalk" when building
  21. Want to start now? Want to start now? , it's

    free! Download xdk Then create a project: Select "Start With App Designer" to use UI Framework supported Or take a look at Demos!
  22. Bonus Bonus XDK IoT version let you build IoT objects!

    https://software.intel.com/en-us/html5/xdk-iot