Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Adding Devices to a Mobile Application Project : Updating an Existing Device Profile in the Device Database
Updating an Existing Device Profile in the Device Database
You can update the settings in an existing device profile by executing the +Add-Update-Handset Ant target, also known as the Profile Updater. When you update an existing device profile in the Mobile Designer device database, the +Add-Update-Handset Ant target modifies the XML profile file in the following directory:
Mobile Designer_directory /Devices
Note:  
This procedure describes how to use the +Add-Update-Handset Ant target to update a device profile. If you want to add a new device profile for a device, see Updating an Existing Device Profile in the Device Database and Adding a Device Profile to the Device Databases.
To update an existing device profile
1. If the Handset Updater project is not in Software AG Designer, import the project.
a. In Software AG Designer select File > Import> General > Existing Projects into Workspace, and then click Next.
b. In Import Projects, click Browse and select the project source directory of the project you want to clone.
The source code for the Handset Updater sample application is in the following directory:
Mobile Designer_directory /Tools/HandsetUpdater
c. Click OK, and then click Finish.
2. Open the Handset Updater project’s build.xml file in the Ant view.
a. In the Project Explorer view, locate the Handset Updater project.
b. Expand the project and drag its build.xml file to the Ant view.
If the Ant view is not open, for instruction, see Displaying the Ant View.
3. In the Ant view, double-click +Add-Update-Handset.
4. In the Choose Handset dialog, select the device profile you want to update from the Edit an existing handset list.
5. Click Update.
The +Add-Update-Handset Ant target displays the Update Handset Information dialog, which displays the default settings for the device and any device-specific overrides.
6. In the Update Handset Information dialog, for each parameter or property you want to update, type a value in the Handset Override column.
Note:  
You can also specify the values for the properties used in the Java run-time code, such as the obfuscator to use, the MIDlet-icon size, and the maximum JAR size.
7. Optionally, in Comments field, type a explanation for the change.
8. Click Update Handset Information.
The Console view indicates whether the update was successful or failed.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback