C/C++

HelloWorld

HelloWorld is a well-commented example for beginners of a very simple MoSync application that uses the Moblet framework. The application demonstrates how to structure the simplest possible application that responds to key events.

Stylus

Stylus is a simple drawing program, where you draw with your mouse/stylus.

Database Access and Management

Note: this API is experimental and currently available only in our nightly builds.The MoSync Database API provides a set of syscall functions that enable you to create and access databases from your C/C++ code using the SQL query language. The Database API makes use of the SQLite database manager on the supported platforms (see Feature/Platform Support).

PIM Access and Control

Our PIM API module is still in the early stage of development, but we have already implemented many vital elements of PIM management, including low-level functions for accessing contact lists. Here we take a quick look at this new interface.

AccelerometerOpenGLES

This example application makes use of the MoSync Sensor API and OpenGL API to graphically display the orientation of the device.

GLMoblet_OpenGLES2

This example application demonstrates how to use OpenGL ES 2.0 to control a device's graphics hardware.

GLMoblet_OpenGLES1

This example application demonstrates how to use OpenGL ES 1.1 to control a device's graphics hardware.

Working with OpenGL ES

OpenGL ES 2.0 is the latest standard for accessing the graphics hardware on embedded devices (in our case Android and iOS). It is heavily based on the concept of shader programs, written using the C-like language GLSL. At several stages in the graphics pipe-line, shader programs are executed in order to provide maximum freedom to the user. The online API documentation is a good start to understand how to use the API:http://www.khronos.org/opengles/sdk/docs/man/

DeviceFonts

This example application demonstrates how to count, load, and manage device fonts for text drawing using maDrawText and maDrawTextW and the Device Fonts API.

PIMExample

This example application demonstrates how to add, modify and remove a new contact from an address book and how to read contacts from address book.


Share on Facebook