I wrote an Android application and I would like the application to know when the Android device is connected to the PC via USB or even better, find out when it is connected and adc logcat is working. Is it possible?
My goal is to write traces to a separate circular buffer (which is sometimes written to an SD card), unless the device is connected, for example, via Eclipse and logcat - in this case I would like to display traces as part of logcat as they arise.
source
share