开发者

android - How to connect the Device to the Emulator

My Application is working properly in emulator. I am running the application in the device using the ".apk" file. But it is not working properly. So i want to test the application in the device using Eclipse l开发者_运维百科ogcat. How to connect the Real device to the Eclipse for debugging the application in the device. I follow the steps of this link "http://developer.android.com/guide/developing/device.html" . i am facing the problem after setting the path (i.e,The Google USB Driver is located in \google-usb_driver). The error is the hardware is not installed. How to handle this. My device is "Samsung Galaxy Apollo GT-i5801". Please can anybody help me.

thanks


Samsung has a generic driver for various mobile phones. You need to download and install usb driver from this url. After installing the driver and connecting the phone to your computer you need to configure eclipse so that it deploys & runs your program on the device.


In your phone, be sure you have enable the debug mode (Settings -> Applications -> Development -> USB debugging). If you enable it, and with eclipse open, when you connect the phone to the computer, it tries to install the device. Usually, there's no problems,but if there's any, just download the drivers.


Follow the answer provided by Finuka. After you connect the phone, open the DDMS perspective in Eclipse. Any connected phone or emulator will be listed there. You will also see hooks to running apps on those devices. Select your phone+app to see LogCat.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜