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" />
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0|