The issue is:
a) The Usb library requires that you use a usb device containing a USB chip CP2102, FT232 , or PL2301.(Google these) I suggest "FT232-FTDI" cables 3.3volts or 5volts.
http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
b) Connect this Usb cable to your microcontroller device serial port (Tx, Rx)
Note: The above connection is for TTL signal levels. If the signals are +/- use a different FTDI cable device.
c) You must root your device (meaning your device will allow you read /write access to files on your device) (Google "Root your phone/tablet".)
Note: Rooting your device is not necessarily easy, nor is it usually recommended, but it does allow you to change your device to add features and give you more control of your device. In this case your device, in its original configuration, is not set up to allow the use of the Usb. Therefore you must edit the "permissions" file of your android device and add a line that allows hardware Usb. In order to edit some files on your device, the device must be rooted.
d) The file you must modify is located in a folder (on your android device) called (/ system / etc / permissions) and is (read-only) so you must change it to (read-write) using an editor.
e) Add the text <feature name="android.hardware.usb.host"> in the above identified file.
f) The reference to "Test my terminal" refers to testing if Usb is now functioning. Use UsbSerial2.3 by agraham demo program to test your Usb.
g) Hope this helps