Integration Server 10.7 | Developing Data Synchronization Solutions with webMethods Mobile Support | Developing Solutions Using Mobile Support | Step 3: Write the Mobile Application
 
Step 3: Write the Mobile Application
 
Preparing to Use the Mobile Support Client
Creating a Context Instance
Setting Initialization Parameters
Writing the Logic to Initiate Download Requests
Writing the Logic to Initiate Synchronization Requests
Writing the Logic for Logging Activities
Who performs: Mobile application developer
Development tools needed: webMethods Mobile Designer and the Mobile Support Client
Mobile applications that synchronize data between a mobile device and a backend application must invoke methods from the following classes in the Mobile Support Client library:
*com.softwareag.mobile.data.client.Context
*com.softwareag.mobile.data.sync.DataSynchronization
*com.softwareag.mobile.data.sync.Filter
*com.softwareag.mobile.data.sync.ResponseSet
*com.softwareag.mobile.data.sync.RowStructure
Mobile Designer copies these classes to the _temp_/_supportclient_ and _temp_/_src folders in your project when you activate a device. Mobile Designer obtains the location of these classes from the mobilesupportclient.runtime.dir property for the project. For details about setting this property, see Preparing to Use the Mobile Support Client.
Your mobile application should include functionality to create a Context instance and set initialization parameters. Depending on business need, your application should also include the logic to download data from the backend application, synchronize data with the backend application, and process the response. In addition, the application should contain logic to read data from, and write data to, the device’s local database. For details on including this logic, see the sections that follow.
For more information about creating mobile applications using Mobile Designer, including creating a project, setting properties and parameters for the project, defining the devices you want your application to support, and distributing the application on the appropriate platforms, see Using webMethods Mobile Designer. For details about the Mobile Support Client classes, see webMethods Mobile Support Client Java API Reference.