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

Architectural Overviews

Overviews

  • Platform and Device Database

    The MoSync profile database contains information about mobile platforms and devices. This helps the MoSync toolchain to build the correct package for each platform and device. The database comes in two flavors.

  • The MoSync Emulator and MoRE

    The MoSync Emulator is the most visible part of the MoSync Runtime Environment (MoRE). MoRE is the reference implementation of MoSync. It’s an application that executes MoSync bytecode and looks and behaves like a phone. But it is not an emulator of any particular phone - it’s the phones that emulate MoRE, not the other way around!

  • The MoSync Toolchain

    The MoSync IDE uses a custom GCC backend that outputs MoSync Intermediate Language. This is fed into Pipe-Tool, our transformation engine, which builds code trees, analyzes, optimizes and outputs bytecode or java ready for packaging with the appropriate runtime. The packager does the work of producing the installable packages for your platforms and devices.

  • The Runtime Architecture

    MoSync has two primary runtime architectures - one implemented in C++ and one in Java. However, the design is very similar in both cases.

  • The Runtimes

    The MoSync runtimes consist of libraries and programs that execute your code on a given target device. They provide a uniform interface to low-level system APIs, including graphics, audio, event handling and communications.

API References

  • Resource Compiler Reference

    This manual describes how your application resources (such as image, audio, and binary files) are handled by MoSync in C/C++, describes the format and lists that can be used to organize your resource files, and the command switches for the resource compiler.

IDE User Guides

  • Compilation, Linking, and Assembly

    Pipe-Tool is MoSync's code transformation engine. It combines the functions of a code linker and assembler, and performs code verification, optimization and dead code elimination to produce highly optimized outputs for each of the target platforms.

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.

  • Using JavaScript Callbacks

    Callback functions are very common in JavaScript, because JavaScript in the browser is single-threaded. Working with callbacks is an important part of your skillset as an app developer. This beginner's tutorial introduces callbacks and looks at their use within the MoSync Application Framework.

Example Apps

  • 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.