开发者

Using android phone to debug

I have been experimenting with android apps using the android sdk with eclipse. So far i have only used the emulator, but i was planning on getting an android phone in the next week. my question is simple, will any android phone be able to plug into eclipse and help me tes开发者_运维知识库t my application or are there only certain phones that are capable of this? Thanks


Yes Infact debugging using device will be more better..

You can see the log events directly over Log Cat coming from device when connected to your computer via USB (Make Sure USB Driver of Your device is on Your Computer).

You Can Run Debugger As Well and can easily walk through the break Points that you will set in the code. Add debugging enabled true in Manifest File.

You can see the log cat event coming from your application without your computer as well. Download log cat application from Android Market. Install Your application and test your logs and all while testing in field.

In short Device Debugging is more preferred as ultimately application is to be deployed over it only. Simulator will never give such efficient results. And When Application involve hardware interaction like of GPS, Camera. We are left with no option.

Hope this help :)


You should be able to do this with any android phone.


Yes. According to the Android Compatibility Document any Android devices must work with the Android Development Tools or they won't be certified.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜