API Documentation and Samples
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 Android platform. 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 AP-701x/Live Pen™ 2 and Live Pen™ 1 (DP-201) pen connections. The sample app displays an ‘activity log’ of its interactions with the Pen Access Framework.
- File > Import…
- Existing Projects into Workspace > Next…
- Select root directory > File-path where your PenAccessClientApp folder resides
Check ‘Copy projects into workspace’ > Finish
- The sample application should now be present within your ‘Package Explorer’
Running the Sample Application (Android)
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 recognise your Android device)
- Connect your device via USB
- Select the Eclipse ‘Run’ button (this will build and install the software on your Android 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.