Show: Object Pascal C++
Display Preferences

Steps in Creating Multi-Device Applications

From Appmethod Topics
Jump to: navigation, search

Go Up to Developing Multi-Device Applications

Compiling and building, but not running, your multi-device applications is similar to the same operations for building native Windows applications, with the additions described in this topic.

Running and debugging a multi-device application for Mac OS X, iOS, or in some cases for 64-bit Windows, requires that the development system be connected to the target platform (or an intermediate platform that supports the target platform), where the Platform Assistant server (the remote application server) is running in listening mode.

Start by setting up your development environment

If your application targets 64-bit Windows

If your application targets either Mac OS X or iOS

  1. Connect your development PC to the Mac.
  2. Install and run PAServer, the cross-platform server, on the Mac.
  3. Create a connection profile that describes the connection to the Platform Assistant server on the Mac.
  4. Add an SDK to build your application.
  5. Acquire the necessary developer IDs and certificates from Apple. For details, see:
  6. Configure your certificates and provisioning profiles in Appmethod.

If your application targets Android

  1. If you did not choose to install the Android development tools (SDK and NDK) during the Appmethod installation, install the Android development tools.
  2. Add an Android SDK to build your application.
  3. Enable USB debugging on your Android device.
  4. Configure your system to detect your Android device.
  5. Configure your signing certificate in Appmethod.

Then create and configure your multi-device application in the IDE

Create your application by selecting a wizard that supports your chosen target platform.

For example, you can select Multi-Device Application, which supports multi-device application development for all available target platforms.
Console applications can be multi-device if the Target Platform is set accordingly in the Project Manager. Choose either of the following:
  • Object Pascal: File > New > Other > Object Pascal Projects > Console Application
  • C++: File > New > Other > C++ Projects > Console Application

Summary: To configure your multi-device application in the Appmethod IDE

See More Details: Configuring a Multi-Device Application

  1. Add and activate the target platform (in the Project Manager):
    1. To add a platform for the current application, right-click the Target Platforms node, select Add Platform and then select the target platform, such as OS X.
      (The Target Platforms node only appears for applications that are multi-device capable.)
    2. To activate the target platform, double-click a platform (or right-click and then select Activate on the context menu) or choose the platform in the Platform Device Selection Toolbar.
      For example, double-click OS X to have the current application use Mac OS X as its target platform.
  2. Configure the target platform (in the Project Manager):
    1. Right-click the active target platform and select Properties from the context menu. The Platform Properties dialog box is displayed.
    2. You need to configure an SDK (software development kit) only if you are developing a Mac OS X application, an iOS (Device or Simulator) application, or an Android application:
      1. On the Platform Properties dialog box, click the down-arrow on the SDK combo box, and select Add New.
      2. On the Add a New SDK dialog box, click the down-arrow on the Select an SDK Version combo box.
      3. From the list of available SDKs that appears, choose the SDK you want to use for the selected platform.
    3. You need to select the connection profile you want to use for the selected platform, only if your application is a 64-bit Windows application (and your development system is not Win64), a Mac OS X application, or an iOS (Device or Simulator) application.
      To create a connection profile for the selected platform, select Add New from the combo box.
    4. Click OK to save the changes.
  3. For database applications, you need to select and configure the appropriate database drivers for deployment on the target platform:
    1. Open the Deployment Manager.
    2. Select Add Featured Files from the toolbar (DMgrAddFeatFiles.png).
    3. On the Add Featured Files dialog box, select the database drivers for your applications's target platform.
    You can also verify the platform support for all the various database drivers on the Add Featured Files dialog box.
  4. For all applications, you can use the Deployment Manager to optionally add miscellaneous files to your project deployment, such as libraries required for dynamic linking on the target platform, if you are using a connection profile.

Next

See Also

Personal tools
In other languages