Building Mobile Enterprise Applications : webMethods Mobile Development Help : Defining Resources for the Mobile Project : The Resource Handler
The Resource Handler
Each project requires its own resource handler. The resource handler defines all resources to be included into your mobile application, such as graphics, text, icons, and sounds. Mobile Development provides an implementation, named UniversalResHandler so that developers do not need to code their own.
The UniversalResHandler is responsible for providing resources to the resulting native application as well as to the Phoney runtime, such as:
*Additional Text Resources,
*Static HTML Resources, and
*Graphical Assets.
To run the Resource Handler
1. Execute the ANT target +Run-Reshandler, or
2. execute the ANT target ++Reactivate-Handset, or
3. do a multi build.
While writing your own resource handler is going to be deprecated, you could still code your own implementation and make the project to take use of it.
4. Ensure the Mobile Project is open in the Outline Editor. For instructions, see Displaying a Mobile Project in the Outline Editor.
5. Select the top-level child node of the project, which is the root application node.
6. Modify the Res Handler property in the Properties section of the Outline Editor.
a. Enter the fully-qualified name of your implementation, e.g.: reshandler/my/fully/qualified/class.java.
b. The custom resource handler implementation must be added to the <project>/reshandler directory.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback