Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » UltraLite - Java Programming


Tutorial: Building an Android application

This tutorial guides you through the development of an application for Android smartphones using the UltraLiteJ API and the Eclipse environment. In this tutorial, you run the application on a Windows simulator.

The Android application used in this tutorial is located in the %SQLANYSAMP16%\UltraLiteJ\Android\CustDB\ directory. The application code, located in the src\com\sybase\custdb directory, references the UltraLiteJ API to perform the following tasks:

  • UltraLite remote database creation.

  • SQL operations on the database.

  • Data synchronization with the SQL Anywhere CustDB sample database using MobiLink.

The res\menu and res\layout directories illustrate how to create Android menu items and interfaces. You can view these files through Eclipse when you create the new Android project.

The AndroidManifest.xml project file was modified so that the Android application can access the network, which is required for data synchronization. The following permission statement was added:

<uses-permission android:name="android.permission.INTERNET" />
 Required software
 Competencies and experience
 See also

Lesson 1: Setting up a new Android project
Lesson 2: Starting the MobiLink server
Lesson 3: Running your Android application
Lesson 4: Testing your Android application and synchronizing
Cleaning up