API Documentation and Samples
- API Documentation
- Importing the Sample Application (Android and BlackBerry)
- Running the Sample Application (Android)
- Running the Sample Application (BlackBerry)
- How to develop with the Anoto Live SDK for Mobile
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.
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.
- File > Import…
- Existing Projects into Workspace > Next…
- Select root directory > File-path your PenAccessClientApp folder resides
Check ‘Copy projects into workspace’ > Finish
- The sample application should now be present within your ‘Package Explorer’
Using the Android SDK manager, install
- The appropriate Android version for your device. This can be found on your device at Settings > About phone > Android version.
- Extras > Google USB Driver. You may need to point your Windows Device Manager at this driver if it fails to recognize your Android device.
- Connect your device via USB
- Select the Eclipse ‘Run’ button. This will build and install the software on your Android device
- Install the BlackBerry Desktop manager software (http://uk.blackberry.com/software/desktop.html)
- Connect your BlackBerry Device via USB
- Within Eclipse: Debug As > BlackBerry Device
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.