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
-
Navigate to the Java perspective and expand the <<Mobile Java Component>> node.
-
In the context menu of the src folder, choose .
You can choose the required options from the context menu.
2. Add Your Libraries (Optional)
-
In the context menu of the libraries folder, choose .
You can choose the options from the context menu.
3. Build the Mobile Java Component
-
In the context menu of the Mobile Java Component, choose
4. Set Dependencies to the Mobile Java Component
-
Navigate to the Development Infrastructure perspective.
-
Expand the Local Development node and choose the Mobile Java Component from MyComponents node.
-
Under Component Properties , navigate to the Dependencies tab page.
-
Add the dependency to the required component.
More information: Defining Dependencies Between Components
5. Deploy the Mobile Java Component
-
Navigate to the Java perspective.
-
In the context menu of the Mobile Java Component, choose Deploy .
More information: Deploying the Mobile Application

