SDK Tools Guides

Home

Developing Android Applications

Android developers will find much to like in the MoSync SDK. Like the native Android SDK, the MoSync SDK utilizes Eclipse as its development environment. Here we provide some advice on building Android application using the MoSync SDK.

Android Package Settings

Package settings for Android applications can be found under Properties > MoSync Project > Android for your project. Here you can set the application's package name and version code and sign the package with your credentials.

The application package name is used by the Android OS to identify your application. The default package name is com.mosync.app_<Project Name>.

The application version code is used by the Android Market to check for application updates.

Application Signing

You need to sign your Android application before it can be installed on an Android device. You can create your own self-signed certificate (see http://developer.android.com/guide/publishing/app-signing.html). Just add the information about your certificate in MoSync and your application will be signed when you build it. 

Sending Applications to Devices via USB

From within the MoSync IDE you can search for connected Android devices. Click the small down-arrow next to the icon of a mobile phone and magnifying glass on the top bar of the IDE then select Scan for Android USB device. (If your device is not found make sure you have installed the connection software which came with the device.)

Sending Applications to Devices via Bluetooth

Newer Android devices (2.1 onwards) can also send applications via Bluetooth. This is enabled on your phone. To search for Bluetooth devices, choose Scan for Bluetooth device instead. When you have selected your device and choosen a default device profile for it, you can send the application to the device.

Bluetooth is not supported by Android 1.5 and 1.6.

Background Processing

One of the more powerful features of the Android platform is its ability to let applications run in the background. However, many devices on other platforms (particularly Java ME) do not allow you to do this, they just stop working if you switch to another application. Therefore, be careful if you are creating Android applications that rely on being able to run in the background and you intend to port them to other platforms.

 Screen Resolution Support

MoSync applications built for Android 1.6 and later uses the Android manifest settings to handle all types of screen resolutions. At this time all resolutions are allowed. 

 Touch Input and Sound 

Applications based on MoSync are able to access touch and key input, and can access all the image and sound formats supported by the Android OS.

Known Issues and Limitations

For known issues and limitations with our Android implementation, see our Issue Tracker.


 

 

 

 

MoSync SDK 3.3
Copyright © 2013 MoSync AB
www.mosync.com