简体   繁体   中英

I am testing my android application on my phone,and i want to access my camera and see the logs as well

I am testing my android application on my phone.Since my phone is connected to my PC with a USB cable,its not allowing me to access the camera. And i need to see the logs on eclipse.Is there any way,so that i can see the logs and test my application where i need to access my phone camera?

Logcat is always available. And if you are opening Camera from your app then you can see Logcat messages

so may be there are few reason as follows :-

  1. check if connect your device as usb debug mode.
  2. your device should not be connect as a media device. hope it will solve this issue

Which os used in your pc.

  1. if you use mac os then goto-->DDMS(eclipse)--> select your device then you will able to see your log cat.

  2. if you use Ubuntu then you will mention device id in some file in your pc. check link.

  3. if you use window-7 then i can not not help you... because i am suffering this issue. :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM