Test and verify

As in all development, testing and verification are essential parts when creating Camera Add-on apps, IR Remote apps or Small Apps. In this section, you will find some specific information related to testing while using these APIs.

While developing using the Camera Add-on API, IR Remote API or Small App API, you can use the Xperia skins that comes with the AVD (Android Virtual Device). You can create an AVD with the AVD Manager tool (see the Detailed installation instruction page for more information on how to set it up).

Develop_364x212_Test

Build and debug

To test the apps you create for the Camera Add-on API, IR Remote API or Small App API, you can either use a physical hardware device, or in most cases use an emulator. See the table to below to see which APIs can be tested on the emulator included in the Sony Add-on SDK. If a device cannot be tested on the emulator, then you must test it on a physical hardware device.

For more information on how to use the Sony Add-on SDK emulators, please see the information available in the Sony Add-on SDK documentation kit.

API Run/Debug
Small Apps API Yes
IR Remote API No
Camera Add-on API Yes

Test an app using the Small Apps API

Once you’ve created a Small App, there are two main ways to test it:

XperiaTabletZ_XperiaZ

IRRemoteSensor_660x384

Test an app using the IR Remote API

For the IR Remote API, you actually create your own tablet apps that can send IR signals to any IR-based entertainment device. Since this is a hardware dependent functionality, the app can only be tested on real devices. The Sony Add-on SDK emulator cannot simulate these functions.

Test an app using the Camera Add-on API

If you have created a camera app that uses the Camera Add-on API into your camera app, you can test it with the Xperia Cam Modes emulator included as part of the default emulator package in the Sony Add-on SDK. The Xperia Cam Modes emulator enables you to develop and test Camera Add-on apps on an AVD (Android Virtual Device).

It also provides a simplified user interface and a button to open the Mode selector. To use the Xperia Cam Modes emulator, just run it in the default emulator. To learn more about the Xperia Cam Modes emulator, see the Sony Add-on SDK documentation kit.

picwithphonenewgreeen