Operating Requirements
Accusoft USB Scanner SDK
runs on devices with Android
version 3.2 or higher.
Building software with
Accusoft USB Scanner SDK
requires Java 1.5 or higher, and the Android SDK Version 3.2 (API level 13)
or higher.
Deployment of Accusoft USB Scanner SDK is licensed on a per situation basis, and requires a licensing agreement with Accusoft.
The Accusoft USB Scanner SDK remains in evaluation mode until the completion of an agreement with an Accusoft Sales Representative. Please contact
sales@accusoft.com for more information.
How to build the sample app and run it on your Android device
Go to the Sample directory, and
create the file
local.properties, setting the SDK directory path to point to your Android SDK
directory.
You may create the local.properties file by hand, or you may use
the "android update project -p ." command.
If you are building on Windows, be sure to use a Windows style path name
in your local.properties file, e.g.
sdk.dir=C:\\Program Files (x86)\\Android\\android-sdk
Then, after
plugging in your Android device to your build machine,
build the sample app as follows:
- Open Eclipse, press File->New->Android Project. Select the "Create Project
from existing source" radio button, and set the location to the directory where
you unzipped this file, then select Sample.
- Left click on the arrow under the green Run button to create a run
configuration for your Android Application. Specify the Run Configuration
Name and Project Location.
- Press the Run button.
To add scanning functionality to an exising project, there are a few simple steps:
-
Copy the JAR files into your project:
-
The file assets/USBScanSDKAssets.jar must be copied into the assets directory of your project. This contains native libraries, scanner drivers, and configuration files for the scanner drivers.
-
The file libs/USBScanSDK.jar must be copied into the libs directory of your project. This contains the class files that provide a Java interface for controlling scanners.
- Copy the XML strings file into your project.
The file res/values/scan_errors.xml must be copied into the res/values directory of your project. This contains the strings returned by the ScanError class.
- Refresh your project, so it detects the new files.
- Open your Eclipse project's properties window.
- Go to the Java Build Path section.
- Go to the Libraries tab.
- Click Add Jars...
- Select the libs/USBScanSDK.jar file in your project.
- Go to the Order and Export tab and check the box near USBScanSDK.jar
- Close the project properties window.
You may also refer to
the USB Scanner Programming documentation located
here
and
here