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

Cameras, Capture

Overviews

  • The Wormhole JavaScript Library

    This overview of the MoSync Wormhole JavaScript Library gives you access from an HTML5 application to native user interface components as well as cameras, compasses, files storage, push notifications, sensors, and a whole lot more.

IDE User Guides

  • Setting Application Permissions

    Some mobile devices (particularly Symbian and JavaME devices) require that your application has permission to access functions and services like Bluetooth, camera, contacts, Internet access, OpenGL, push notifications, sensors, and file storage. The MoSync SDK makes it easy to grant access to such services and functions.

Coding Guides

  • PhotoGallery Explained

    This article discusses programming techniques used in PhotoGallery example application, which is included in the examples/html5 folder of the MoSync SDK. In particular we look at the JavaScript APIs for file upload and camera capture, but we also discuss server programming, user interface programming in JavaScript, and how to extend an HTML5/JS application with custom C++ code.

  • The Camera C API

    In this tutorial we take a look at how to control a device's cameras through the MoSync Camera C API. With the Camera C API you can discover the number of cameras a device supports, set properties like zoom and image format, embed previews in your application, and, of course, take a picture.

  • The Capture C API

    The MoSync Capture C API provides a set of simple C-level functions for accessing the default camera interface on the device and providing the user with a simple interface without you needing to set up a complete user interface in your application. (This API is also used under-the-hood by the Wormhole JavaScript Library's Capture API.)

Example Apps

  • CameraDemo

    CameraDemo is a simple C++ application built with the MoSync SDK that demonstrates how to control a device's camera. It makes use of the MoSync Widget C API.

  • PhotoGallery

    This example application demonstrates the MoSync Wormhole JavaScript Library, in particular its support for file uploads and camera capture. It shows how to use NativeUI from JavaScript, and how to use multiple WebViews that can send mesages to each other.

  • WormholeDemo

    This example application demonstrates the MoSync Wormhole JavaScript Library, in particular its support for native UI, sensors, capture, and file storage.