Hand-Coding Mobile Components

Use

All components in the Mobile Applications for Handhelds perspective that you cannot model, can be coded in a Mobile Java Component. You can call this function from any other standard mobile component.

Prerequisites

You have created a Mobile Java Component.

More information: Creating Development Components

Procedure

1. Write Your Code

  1. Navigate to the Java perspective and expand the <<Mobile Java Component>> node.

  2. In the context menu of the src folder, choose Start of the navigation pathNewEnd of the navigation path.

    You can choose the required options from the context menu.

2. Add Your Libraries (Optional)

  1. In the context menu of the libraries folder, choose Start of the navigation pathNewEnd of the navigation path.

    You can choose the options from the context menu.

3. Build the Mobile Java Component

  1. In the context menu of the Mobile Java Component, choose Start of the navigation pathDevelopment Component Next navigation step BuildEnd of the navigation path

4. Set Dependencies to the Mobile Java Component

  1. Navigate to the Development Infrastructure perspective.

  2. Expand the Local Development node and choose the Mobile Java Component from MyComponents node.

  3. Under Component Properties , navigate to the Dependencies tab page.

  4. Add the dependency to the required component.

More information: Defining Dependencies Between Components

5. Deploy the Mobile Java Component

  1. Navigate to the Java perspective.

  2. In the context menu of the Mobile Java Component, choose Deploy .

More information: Deploying the Mobile Application