User Guide > Tasks > Working with Cloud Connected Mobile > Running Native Applications

Running Native Applications

Zend Studio's Cloud Connected Mobile (CCM) tool allows you to preview your native applications by testing or running them within your workspace. You can test your native applications by using an integrated emulator/simulator, or on an actual device connected to, and identified, by your machine.

Important:

Testing or running your native application from within Zend Studio requires existing conditions depending on the native platform being tested. Please take note of the relevant 'Prerequisites' sections on this page: Android, iOS, Windows Phone.

Running Android Applications

Android native applications can be tested in Zend Studio using the Android mobile device emulator or on an actual device.

Prerequisites

Note:

Using ADT on Linux 64-bit requires installation of ia32-libs. To do this, run:
sudo apt-get update
sudo apt-get install ia32-libs

Running Applications On the Android Emulator

The Android SDK includes a mobile device emulator - a virtual mobile device that runs on your computer. The emulator lets you develop and test Android applications without using a physical device. Click here for more information on the Android Emulator.

 

 

Instructions on how to complete a procedure

To run an Android application on the Android Emulator:

  1. In the Menu-bar, go to Window | AVD Manager.
    The Android Virtual Device (AVD) Manager is displayed.

  1. Click New.
    The Create New Android Virtual Device (AVD) dialog is displayed.

  1. Configure the new AVD:
    Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can also add specific hardware features of the emulated device by clicking New and selecting the feature. You can also add specific hardware features of the emulated device by clicking the New button and selecting the feature.
  2. Click Create AVD.
    The new AVD is created. For more information on managing AVDs, see http://developer.android.com/tools/devices/managing-avds.html.

  3. In the PHP Explorer, right-click your native project, and select Run As | Android Application.
    The application is displayed in the Android emulator.


If your application fails to run on the emulator, check if the ARM System Image is installed on your Android SDK:

Open the Android SDK Manager and view installed packages. Install the package if it not installed, and repeat the procedure above.

Running Applications On a Device

This option allows you to run your Android native application on an actual device from within Zend Studio.

 

 

Instructions on how to complete a procedure

To run your Android application on an actual device:

  1. Connect your Android device to your machine.
  2. In the PHP Explorer, right-click your native project, and select Run As | Android Application.
    Your Android application is launched on your device.

To configure the Android launch device and emulator settings, right-click the project in the PHP Explorer, and select Run As | Run Configurations.

Running iOS Applications

iOS native applications can be tested in Zend Studio using the iOS Simulator or on an actual device using Xcode.

Note:

Only available for Mac OS X.

Prerequisites

Running Applications On the iOS Simulator

The iOS Simulator presents the iPhone or iPad user interface in a window on your computer. The simulator provides several ways to interact with it by using the keyboard and mouse to simulate taps, device rotation, and other user actions. Click here for more information on the iOS Simulator.

 

 

Instructions on how to complete a procedure

To run an iOS application using the iOS Simulator:

In the PHP Explorer, right-click your native project, and select Run As | iOS Application.
The application is displayed in the iOS simulator.


To configure launch settings, right-click the project in the PHP Explorer, and select Run As | Run Configurations.

You can configure the project to be launched, the SDK to be used in the iOS simulator, and the device family (iPhone, iPad).

Running Applications On a Device

This option allows you to run your iOS native application on an actual device from within Zend Studio.

 

 

Instructions on how to complete a procedure

To run an iOS application on an actual device:

  1. Connect your device to your machine.
  2. Right-click the project in the PHP Explorer, and select Open in Xcode to open the iOS project directly in Xcode.

 

Running Windows Phone Applications

Windows Phone native applications can be tested in Zend Studio using the Windows Phone emulator, MS Visual Studio, or an actual device.

Prerequisites

Running Applications On the Windows Phone Emulator

The Windows Phone emulator emulates a Windows Phone 7 or a Windows Phone 7.1 device. It provides a virtualized environment in which you can develop, debug, and test Windows Phone applications. It also provides an isolated environment for early application prototypes. By using the emulator, you can proceed through the common application development scenarios without a physical device. This can reduce the cost of developing applications for Windows Phone.

 

 

Instructions on how to complete a procedure

To run a Windows Phone application using the Windows Phone emulator:

In the PHP Explorer, right-click your mobile project, and select Run As | Windows Phone Application.
The application is displayed in the Windows Phone Emulator.

Tip:

If you have modified your project and want to test your updates simply re-select Run as | Windows Phone Application, and the updated application will be deployed to your running emulator. There is no need to close and re-launch the emulator.

Your Windows Phone application can also be run in the Microsoft Visual Studio. To do this, right-click the application in the PHP Explorer, and select Open in Visual Studio.

Running Applications On a Device

This option allows you to run your Windows Mobile native application on an actual device from within Zend Studio (MS Visual Studio does not need to be opened).

Important:

See Prerequisites above.

 

 

Instructions on how to complete a procedure

To run a Windows Mobile application on an actual device:

  1. Launch Zune.
  2. Connect your Windows Phone device to your machine, and make sure the device is recognized by Zune. Click here for troubleshooting the connection process.
  3. In Zend Studio, in the PHP Explorer, right-click your native project, and select Run As | Windows Phone Application | On Device.
    The application is launched on your Windows Phone device.

 

 

 

Related Links

Related Links:

Creating Native Applications

Creating a New Cloud Connected Mobile Project

Testing a New Cloud Connected Mobile Project

Cloud Connected Mobile

 

 

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.