android - Detect if power cable unplugged even when no power -


is there way detect if power cable gets unplugged if it's not plugged power source? example, plug in phone it's power cable prior plugging wall outlet.

i know can detect power-state-change, - don't think there change power state when happens.

i believe exists headphone jack, hoping available power jack.

(i realize strange request)

no, there no way detect simple cable changes usb port.

you can detect power changes because, well, cause change in power state of device, , can detect electrical energy.

you can headphone jacks because jack completes small circuit within device (i think. i'm not audio circuitry expert, don't take word it).


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -