« Back

Using both Google's and Cisco's APIs

Today we will be talking about how to use the Cisco Cius API's in junction with the Google API's. There is three things that you need in order to do this, they are the skin, the launcher, and the actual APIs. The first two of these, the skin and the launcher, are both only necessary if you are wanting to run this in an Emulator. The last one, the APIs, are needed if you are using an actual Cius or an Emulator. Without further delay let us jump in to this.

Configuring the APIs

Before we get started we will need to have both the latest Cisco Cius Add-on as well as the Google API Add-on with API level 8. We will start by creating a new project in Android. Proceed to making the Android project just like you would make any other Android project. When you get to the Build Target, select Google API with the API level of 8. Once the project has been created right-click on the project and select Properties. Once in the Properties, you will need to navigate to Java Build Path. From there, you will need to "Add External Jar". This should pop-up another window in which you will need to navigate to where you install the Cisco Cius Add-on and then within that to the libs folder. You should see four jars in this directory. They are telephony.jar, push.jar, hardware.jar, and inputdevice.jar. Include all of these jars into your project. With that you now have access to both Google API's and Cisco API's within your project.



Adding the Skin

To do this we will have to navigate to our Cisco Cius Add-on folder then to the skins folder. In here, there should be a folder called CiscoCius. Copy this file and then navigate to the Google Add-on. In order to transfer the file over we first need to create a directory named skins within this directory and then copy the CiscoCius folder to this new skins folder. With that you have now included the skin in the Google Add-on. To see what we have done we will need to create a new Emulator using the AVD Manager. When we get there we will again select the Google Add-on to be our build target but then under skins we will change it to the CiscoCius we just setup. You may need to close the AVD if it was already open in order to refresh your skin options. Go ahead and run the Emulator as we will need it for the next step.



Installing the Launcher

In order to install the launcher, we need to use adb that comes with Android and have the Emulator running. For those of you that are use to using adb, simply navigate to the extras folder and use adb install to install LauncherCius.apk to the Emulator running. For those of you that are unfamiliar with this process, the simplest way is to copy the LauncherCius.apk into the platform-tools folder in your Android directory. Once we do this we can launch a command prompt and navigate to the platform-tools directory in your Android directory. Then type "adb devices" which should show a device running which will be the Emulator. Now that we know adb is working, we type "adb install LauncherCIUS.apk". The next time that you restart the Emulator it will give you an option on which Launcher you wish to use and you should select LauncherCIUS and use by default.



With these few simple steps we have showed you how you can use both Cisco's and Google's APIs.
Comments