API Documentation and Samples

 

API Documentation

The ‘PenAccessClientApp’ sample application is built on top of the Pen Access Framework. This Framework exposes a public Java API enabling pen access. There are classes for pen management and events to listen for device connection and disconnection. 

How to develop your application for the Pen Access Framework is described in the API Reference for the respective Android or BlackBerry platform. There you will find a getting started guide and API overview. The API reference is found in the 'Documentation' directory in the installation folder. Open index.html to get to the main entry level. From there you will find a getting started guide, descriptions about classes and interfaces etc.

The installation includes the PenAccessClientApp sample located in the '\Samples' directory in the installation folder.

The pictures below illustrate some of the Pen Access Framework functionality available in the sample app, including Bluetooth device discovery, waiting for pidget notifications, handling a pidget notification, querying the pen settings and toggling between Live Pen™ 2 and DP201 Pen connections. The sample app displays an ‘activity log’ of its interactions with the Pen Access Framework.

 

1. 2.
3. 4.

 

Importing the Sample Application (Android and BlackBerry)

The following provide instructions on how to import the Android sample application into your Eclipse IDE. The instructions are identical for BlackBerry, other than you’re using the BlackBerry Eclipse IDE.

  1. File > Import…
  2. Existing Projects into Workspace > Next…
  3. Select root directory > File-path your PenAccessClientApp folder resides
    Check ‘Copy projects into workspace’ > Finish
  4. The sample application should now be present within your ‘Package Explorer’

 

Running the Sample Application (Android)

Using the Android SDK manager, install

  1. The appropriate Android version for your device. This can be found on your device at Settings > About phone > Android version.
  2. Extras > Google USB Driver. You may need to point your Windows Device Manager at this driver if it fails to recognize your Android device.
  3. Connect your device via USB
  4. Select the Eclipse ‘Run’ button. This will build and install the software on your Android device

 

Running the Sample Application (BlackBerry)

  1. Install the BlackBerry Desktop manager software (http://uk.blackberry.com/software/desktop.html)
  2. Connect your BlackBerry Device via USB
  3. Within Eclipse: Debug As > BlackBerry Device

 

How to develop with the Anoto Live SDK for Mobile

The picture below illustrates how you include the Pen Access Framework library in your Android Eclipse project, and start using the functionality in your Android pen application.

 

 

The picture below illustrates how you include the Pen Access Framework library in your BlackBerry Eclipse project, and start using the functionality in your BlackBerry pen application.

 

 

Still need help? Contact Us Contact Us