Camera Add-on API

Camera Add-on API

All camera apps in one menu
The Camera Add-on API enables you to both add a shortcut to your imaging app from the  camera apps mode selector, and you can add a shortcut to the smart social camera apps mode selector in your imaging app UI. This way the user can get a seamless camera experience, and make shifting in-between different camera apps really easy. The functionality is available on a range of supported Xperia devices.

For your app to be included in the camera apps mode selector on Xperia devices, the end user needs to have download and installed your imaging app from Google Play™.

Optimise for frequent usage of your imaging app
Frequent usage is essential for the success of an app. But sometimes app developers are suffering from a “fire and forget” attitude, where end users might download and start an app once, and then forget about it. But by using the Camera Add-on API, and being part of the camera app in Xperia devices, you will enable your imaging app to be visible to the end user every time he or she shifts in-between camera modes. This way you’ll ensure that the user will see your app frequently, and thus you are taking an extra step towards a frequent usage of your imaging app.

How does the Camera Add-on API work?
As a developer, you will need to add an XML file to your work project. The XML file should contain the name of your imaging app, an icon and a description. All of this will then show up to the end user in the camera mode selector screen on Xperia devices. You will also need to add some functionality to your app to integrate a clickable icon which takes the user to the camera mode selector screen.

Get started with the Sony Add-on SDK, documentation and code examples
To start using the Camera Add-on API in your app, download the Sony Add-on SDK and the Sony Add-on SDK documentation kit. This includes everything you need to know, including a Get started guide, UI guidelines, and code examples.

The Sony Add-on SDK includes the following code examples for the Camera Add-on API:

  • Basic Camera App: This is a simple code example which shows the camera mode selector UI integration.
  • Multi Function Camera App: This is a more advanced code example which shows the camera mode selector UI integration, with capture functionality and content thumbnail support.

Questions?
If you have any questions while you’re developing, check out the Troubleshooting sections in the Get started guide, in the Sony Add-on SDK documentation kit. If you have any questions the installation or emulator setup, there is also a Troubleshooting section on the Install page. 

If you can’t find an answer to your question, you can post Sony Add-on SDK developer related questions on the Stack Overflow forum. We have a team of Sony developers that constantly monitors, contributes and replies to questions regarding our products and tools at Stack Overflow. This way, your question and our answer can be shared, viewed and used by many people.

So if you have a question, just make sure you add the term “Sony” to your question. Then we should be able to catch your question, and support you in your development!