There are examples on the github page. Have you tried them? One of them seems to enumerate the usb devices connected, and there are some which read keyboards and mice. That should give you a start.
i tried but lots of confusions .....
so give me simple examples so i can try more easily. as like just sending data via usb and see some application or tool.
or also told me how can i use this library???
The shield acts as a USB host, like a PC does. You connect USB peripheral devices to it - usually, in the case of the ADK, an Android phone. You can't connect another USB host device to it.
Mega ADK is act like USB host ... so can we try to make act like USB client???
at first i want to start just sending data from my ADK (in any mode like host or client) and see this data on some application or simulate so i can get some clues how this usb works...
No. It's entire purpose in life is to be a usb host. The arduino is already a usb client, so you wouldn't need a shield for that. The arduino generally acts as a virtual serial port, but newer arduinos that use the Atmega8U2/Atmega16U2 as a usb/serial converter can have that chip reprogrammed to act as different usb devices.
You could attach an android based phone/tablet to it, download the android open accessory development kit from google and write a quick android app that would see the data. I believe that there are usb loopback devices that can be attached, that simply send back whatever they receive. Don't forget that most usb devices, other than HIDs like keyboards and mice, will require you to write the equivalent of a driver to communicate with them.
when i dump USBHIDmouse sketch in my ADK kit then output is showing on serial monitor OSC is not start ...... could u tell me what happened in this sketch??
could you tell me which way i have to use for learning process... i m trying HID code but that code not with my board even single code so may be i m doing in wrong direction. so guide me how could i use in general term.
i m trying HID code but that code not with my board even single code so may be i m doing in wrong direction.
Clearly, English is not your native language. But, just randomly trying out code is not useful. It's hard to understand why you bought the Mega ADK if you are not trying to interface with an Android device.
If you are, then you need to tell us what that device is, what code you are running, what you expect to see happen, and what actually happens.
could you tell me which way i have to use for learning process... i m trying HID code but that code not with my board even single code so may be i m doing in wrong direction. so guide me how could i use in general term.
Learning process should focus on all electrical connections and then finding out WHY Usb.Init() failed.
You have the library and documents/sites, some difference between what You Have and What Is Supposed To Work should show with enough You Doing The Looking. You are the only one with your hardware. Don't assume everything is right. When there's a problem check 3 times and check again.