Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Setting Up a Mobile Application Project : Creating a New Mobile Application Project
Creating a New Mobile Application Project
This is the old way for creating new applications. You can use this method to create an old-style application without Mobile Development features.
You can begin a mobile application project by cloning an existing project. You can clone a sample project that Mobile Designer provides or clone a project that you have already created. Clone a project that is similar to the one you want to create.
For example, if you want to create an application that uses NativeUI controls for the user interface, you could start with the _NativeUIHelloWorld_ project. If you want to create an application that uses pixel-level access to the screen, but no NativeUI controls, you could use the _FunctionDemo_ project.
For a description of the sample projects that Mobile Designer, see Sample Projects Provided with Mobile Designer.
To create a new mobile application project
1. If the project you want to clone 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.
c. Click OK, and then click Finish.
2. Use the Clone-Project Ant target to make a copy of the original project.
a. In the Project Explorer view, expand the project you want to clone and drag its build.xml file to the Ant view.
If the Ant view is not open, see Displaying the Ant View.
b. In the Ant view, double-click Clone-Project.
c. In the Clone Project dialog, specify the following:
*Directory path where you want the save the cloned version of the project
*Name for the cloned project
*MIDlet name (application name of your project) for the cloned project
Caution:  
Do not create projects in directories that have spaces in their names. Some third-party tools are less tolerant of spaces in directory names, and you might get compilation errors as a result.
Mobile Designer creates the cloned project in the location you specified.
After you clone a project, you can begin editing it to the requirements for you application. For example, you can change the names used in the final build, the version of Mobile Designer to use at both build time and run time, and you can start adding new code.
3. In the Project Explorer view, expand the project you just cloned, and drag the build.xml file to the Ant editor. In the build.xml file, you can:
*Rename the MIDlet, which is the application name of your project.
*Identify the targets for which you want to build this project.
Add a call to the importxmldirectory Ant task to import all individual handset targets set up for the project. You can replace this with a list of individual import calls. However, doing so requires updating the build.xml file each time you add a handset.
4. Define project-specific properties. For instructions, see Where You Set Properties and Setting Project Properties.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback