When you’ve got Eclipse running with the Android SDK, you will propaly get confused and frustrated about the very slow emulator. It takes forever and everything you do to speed it up, you will never get it just as you it want to.
So the only solution is to debug directly on the Android device. This is fast and you can try all the touch events like pinch zoom ect. on your app.
On the device goto Settings –> Applications programs –> Development
Here check USB debugging
After this, if you just plug your device onto the computer using the USB cable, you are only half way there. The thing that makes the job done is the ADB driver, witch isen’t installed by default, when you plug the device onto the computer.
You have to install it by installing the appropiate driver package that matches your device.
I have a HTC Legend so I have to install the “HTC Synch for all Android Phones” application. I’m not going to use it after installation, I only want the ADB driver.
I also have a Sumsung Galaxy S2 so I also need the Samsung Kies installed to get the driver.
Now I can se that all the drivers are installed correctly.
Go to a command prompt and type: C:<Path to android SDK>platform-toolsadb.exe devices
Now your device will be listed and ready to debug on.
Fire up Eclipse and go to the LogCat window.