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 DevicesAPI, and then filter results, using list of possible android devices as Appleman1234 suggested. Problem is that far as I knowWPD APIdoesn't have C# wrapper so you'll have to usePInvoketo write your own.There are 2 articles on MSDN which can help:
WPD APIin C++