With the Wikitude Android SDK and Sony’s Camera Add-on API, you can easily create stunning augmented reality experiences for the Xperia™ Z1 and Xperia™ Z1 Compact. It’s entirely up to you if you want to augment your magazine, implement a game, or display geo-content in the user’s vicinity like Wikitude Places does it.
Wikitude Places is a location based service that provides a unique camera experience by adding a layer of augmented reality. Users can pan 360 degrees and view a visual representation of the world around them using the camera viewfinder. Once a particular point of interest is discovered, tapping on this location will bring up a host of information, including step-by-step navigation to the location.
Moreover, Wikitude Places directly integrates into the camera application of Sony Xperia Z1 or Xperia Z1 Compact as part of the ‘Sony Select’ recommendation service. And once installed, users can launch the app without having to leave the camera view.
“Listing Augmented Reality experiences in a native camera application is a perfect fit”, says Andreas Hauser, Head of Mobile Development at Wikitude. “Users already expect applications linked here to use the camera, so now you only need to notify the user which specific problem the application solves.”
By following these simple steps, you can produce your own augmented reality applications, and integrate them with the camera on Sony Xperia Z1/ Xperia Z1 Compact:
1. Download and install the Wikitude Android SDK (sign-up required). It provides you with tools and samples to set up an augmented reality cam in just a few minutes.
2. Set up an Android Project using the Wikitude SDK, and implement an AR-Activity that launches your “World” in fullscreen mode. Find details on how to do this in the Wikitude Android SDK Documentation.
3. Now you need to modify your Android project so it can appear as a shortcut in the camera apps mode selector on Sony Xperia Z1/ Xperia Z1 Compact. To do so, download and install the latest version of Sony’s Add-on SDK. The Camera Add-on API is included in the package.
4. You need to define the icon, title and description in a mode.xml file of your Android project. See Camera Add-on API section in Sony’s Add-on SDK Documentation for more information. To check for the Camera Add-on API code examples, go to the samples > CameraAddon folder in the Sony’s Add-on SDK package.
5. In order to use the Camera Add-on framework, you need to add a permission in AndroidManifest.xml:
6. Link the AR-Activity with the camera on Sony Xperia Z1/ Xperia Z1 Compact by using an intent filter in the AndroidManifest-file:
7. In your AR-Activity, implement the click-listener for the camera grid to define action executed when user presses your AR activity in the mode selector menu in Xperia Z1/ Xperia Z1 Compact camera. For reference, see code snippets on how to implement click listeners in our Camera Add-on API tutorial.
Congratulations, your users can now launch your AR activity without leaving the built-in camera app!
We hope this gives you all the necessary info to start working on your very own Augmented Reality camera application. If you have any questions, feel free to leave us a message in the Comments field below, and we’ll get back to you as soon as possible!