Cross-platform SDK and HTML5 tools for mobile app development
X
 

What's New in MoSync SDK 2.6

Please note: MoSync 2.7 is available http://www.mosync.com/#features.

The 2.6 Pyramid release introduces many new device APIs, new libraries for Facebook and NativeUI, and many new application examples. We also now support native emulators and application profiling in the IDE.

 

Release Highlights

On iPhone (iOS) and Android:

  • Widget API enhancements — many new NativeUI widgets, enhancements to existing widgets, support for native fonts and custom font loading (requires native emulators).
  • NativeUI Library — classes and functions for high-level NativeUI control (requires native emulators).
  • Sensor API — control a device's accelerometer, magnetic field, orientation, gyroscope, and proximity sensors.
  • Camera API — advanced control of the device's cameras, embedding previews in your application, zooming, etc.
  • OpenGL ES API — access to the devices graphics hardware through OpenGL ES 2.0 (requires native emulators).
  • Facebook Library — classes and functions for logging on to Facebook, retrieving information, making posts, creating albums, creating check-ins and events, and a whole lot more.
  • PIM API — add to, read from, modify, and delete contacts in a device's address book.
  • Device Fonts API — new syscalls and constants for discovering a device's fonts and loading them for text drawing and Native UI Widgets.

In the IDE:

Other:

Important Changes Since MoSync 2.5

The maLogWrite syscall, and also the lprintfln/printf functions, only print to the device console when the application is built in Debug mode. For example, if you use lprintfln to output log messages to the logcat console on Android, the application must be built in Debug mode for the output to appear. No output is shown in Release mode.

New Library Classes and Functions

On iPhone (iOS) and Android:

  • NativeUI Library — classes and functions for high-level NativeUI control. This high-level wrapper API supports all available widgets and is easy to update as new widgets are added. It provides support for specific widget functionalities : properties and events.

On all platforms:

  • GLMoblet— a Moblet that creates a fullscreen OpenGL ES application.
  • Facebook Library — classes and functions for interfacing with Facebook.

New APIs

On iPhone (iOS) and Android:

  • Camera API — new syscalls, constants, and properties for advanced camera control.
  • Device Fonts API — new syscalls and constants for discovering a device's fonts and loading them for text drawing and Native UI Widgets.
  • Sensor API — new syscalls, constants, properties, and event types for controling a devices sensors.
  • OpenGL ES 2.0 API — new syscalls and constants for advanced graphics hardware control.
  • PIM API — new syscalls and constants for contact management in address books.

Updated APIs

On iPhone (iOS) and Android:

  • Widget APIenhancements:
    • New widgets: progress bar, activity indicator, slider, date picker, time picker, number picker, video view, image browser, toggle button.
    • Improved widgets: check box, navigation bar colour, widget gradient, label max lines, web view scroll bars, edit box and button events.
    • Native font support: san-serif, serif, monospace, normal, bold, italic, custom font loading.

New Syscalls

On iPhone (iOS) and Android:

  • All OpenGL|ES 2.0 functions (see OpenGL ES 2.0 Reference Pages) are implemented as syscalls, e.g. glEnable, glShaderSource.
  • maCameraStart — start a camera
  • maCameraStop — stop a camera
  • maCameraSnapshot — take a picture
  • maCameraSelect — select a camera
  • maCameraNumber — find out how many cameras teh device supports
  • maCameraSetPreview — embed in your application a camera preview (via NativeUI)
  • maCamerSetProperty — zoom in/out, turn on flash, focus mode, image format
  • maCameraGetProperty — get a current camera setting.
  • maSensorStart — enable a sensor, set time intervals
  • maSensorStop — disable a sensor
  • maImagePickerOpen — display dialog enabling user to scroll through images and pick one.

New syscalls are documented in the reference documentation included in the package. Documentation for the OpenGL ES 1.1 and 2.0 syscalls can be found in the Open GL Reference Pages.

Updated Syscalls

On Android:

  • maOpenGLInitFullscreen— now implemented on Android
  • maOpenGLCloseFullscreen— now implemented on Android

New Event Types

  • MAW_EVENT_* — many new event types for NativeUI widgets.
  • MAW_VIDEO_VIEW_STATE_* — new event types for video play status.
  • EVENT_TYPE_SENSOR — event sent by a sensor; the struct includes the sensor type and sensor values.

All new event types are documented in the reference documentation included in the package.

New IDE Features and Tools

New Example Applications

On iPhone (iOS) and Android:

  • SensorTest — an application which checks which sensors (accelerometer, gyroscope, etc) the device has and shows their current readings.
  • AccelerometerOpenGL — an application that graphically displays the device's orientation using OpenGL.
  • FacebookDemo — an application for iOS and Android devices, showing how to interface with Facebook. Uses NativeUI.
  • CameraDemo — an application for iOS and Android devices, showing how to control a device's camera.
  • GLMoblet_OpenGLES1— an application in the OpenGLES folder, showing how to use OpenGL ES 1.1 in applications for iOS and Android devices.
  • GLMoblet_OpenGLES2 — an application in the OpenGLES folder, showing how to use OpenGL ES 2.0 in applications for iOS and Android devices.
  • WikiSearchNativeUI — an application that uses Native UI to text search Wikipedia, based on user input and selected categories.
  • VideoNativeUIExample — an application that shows how to use the NativeUI wrapper API video widget to embed video in your application.
  • PIMDemo — an application demonstrating how to add a new contact to an address book and how to read contacts from address book.
  • DeviceFonts — an application demonstrating how to count, load, and manage device fonts for text drawing.
  • DeviceFontsNativeUI — a new example demonstrating how to count, load, and manage a device fonts for your Native UI applications.

Documentation for all examples is available at http://www.mosync.com/content/demo-examples.

Updated Example Applications

On iPhone (iOS) and Android:

  • NativeUIDemo - updated to make use of the new NativeUI library.

New User Guides and Tutorials

All documentation is available online at http://www.mosync.com/documentation.

Known Issues with MoSync 2.6