If I connect an android smart phone through USB cable to a computer, I want to know if the connected device is running Android. Based on that I am going to show some notifications on the computer.
How to programmatically identify this from a windows PC?
I am trying to get a logic something similar to how Mobiledit does.
[Note: I cannot turn on USB debugging in the phone]
You can list connected devices using
Windows Portable Devices
API, and then filter results, using list of possible android devices as Appleman1234 suggested. Problem is that far as I knowWPD API
doesn't have C# wrapper so you'll have to usePInvoke
to write your own.There are 2 articles on MSDN which can help:
WPD API
in C++