How To Debug Android Application In Phone Sleep Mode Without Usb Connection
Solution 1:
This was quite easy, but the easy answers always come last: I installed aLogcat from the market and it seems to work just fine! Great app to see the logs without the computer, straight on the phone.
Solution 2:
You can access adb over a network connection:
When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection. To enable adb over a network connection:
- Connect the Android-powered device via USB to your computer.
- From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt.
- Enter adb connect :5555 You should now be connected to the Android- powered device and can issue the usual adb commands like adb logcat.
- To set your device to listen on USB, enter adb usb.
Source: http://developer.android.com/guide/topics/usb/index.html
Solution 3:
You can start a logcat session in some service, and save it to file, after you're done, get the log from the device.
Solution 4:
You can use apphance: http://www.apphance.com/ - this is a new service which my company developed. It allows to see logs of android application fully remotely, it also records conditions of the device (like USB/connected/disconnected). You can see logs of the application in a web panel. It's extremely useful for remotely debugging if you are not in a possesion of particular phone, but it covers your case pretty well.
You can sign-up for beta access - the service is in beta phase, it will soon be opened for regular use.
Post a Comment for "How To Debug Android Application In Phone Sleep Mode Without Usb Connection"