HelloMoblet

HelloMoblet is a well-commented example application for beginners. It demonstrates how to use MoSync's Moblet framework to wrap your application to ensure timely response to key events.

This example is included in the MoSync SDK installation in the /examples/Moblet folder. For information on importing the examples into your workspace, see Importing the Examples.

Behaviour

This application provides a very basic example of how to use MoSync's Moblet framework to detect key events and use timers. When started, it displays the text "Hello Moblet!" The text can be moved around using the joystick or you can click on the screen and the text will jump to that position.

The code is very well commented so that you can see what's happening at each step. Examine the source code of the application (in the file main.cpp) to learn how the program works.

Key Presses

  • Tap the screen - moves the word to the tapped location
  • Up key – moves the word up until it reaches the top of the screen
  • Down key – moves the word down until it reaches the bottom of the screen
  • Left key – moves the word left until it reached the edge of the screen
  • Right key – moves the word right until it reached the edge of the screen
  • 0 or right-softkey - exits the program


Share on Facebook