Click here to Skip to main content
15,887,596 members
Home / Discussions / Android
   

Android

 
GeneralRe: Android USB Detection Pin
David Crow24-Jan-17 2:38
David Crow24-Jan-17 2:38 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 3:34
professionalJochen Arndt24-Jan-17 3:34 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 3:41
Pavlex424-Jan-17 3:41 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 3:53
professionalJochen Arndt24-Jan-17 3:53 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 3:54
Pavlex424-Jan-17 3:54 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 4:05
professionalJochen Arndt24-Jan-17 4:05 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 4:07
Pavlex424-Jan-17 4:07 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 4:23
professionalJochen Arndt24-Jan-17 4:23 
By inspecting the Android sources to find which module is generating the message (if the message is not prefixed with the module name). Once the module is known check if it provides some kind of notification that can be used.

Or trying to use the provided Android APIs like android.hardware.usb | Android Developers[^].

Or polling the /dev directory for changes.

The host mode is entered when an USB device is attached. That can be detected as described in my initial answer (if supported).

If you did not get a final answer here or searching the web, you can try to do it yourself. This requires some research and implementing one or more of the above.
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 4:42
Pavlex424-Jan-17 4:42 
GeneralRe: Android USB Detection Pin
Pavlex425-Jan-17 0:22
Pavlex425-Jan-17 0:22 
GeneralRe: Android USB Detection Pin
Jochen Arndt25-Jan-17 0:33
professionalJochen Arndt25-Jan-17 0:33 
GeneralRe: Android USB Detection Pin
Pavlex426-Jan-17 6:20
Pavlex426-Jan-17 6:20 
GeneralRe: Android USB Detection Pin
Pavlex427-Jan-17 22:22
Pavlex427-Jan-17 22:22 
QuestionRe: Android USB Detection Pin
David Crow24-Jan-17 4:23
David Crow24-Jan-17 4:23 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 4:33
Pavlex424-Jan-17 4:33 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 4:42
Pavlex424-Jan-17 4:42 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 5:09
professionalJochen Arndt24-Jan-17 5:09 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 6:21
Pavlex424-Jan-17 6:21 
GeneralRe: Android USB Detection Pin
Richard MacCutchan24-Jan-17 6:28
mveRichard MacCutchan24-Jan-17 6:28 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 7:49
Pavlex424-Jan-17 7:49 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 10:49
Pavlex424-Jan-17 10:49 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 10:48
Pavlex424-Jan-17 10:48 
AnswerRe: Android USB Detection Pin
Pavlex427-Jan-17 22:23
Pavlex427-Jan-17 22:23 
Questionremote android app's source code Pin
AkhilVarghese21-Jan-17 6:34
AkhilVarghese21-Jan-17 6:34 
AnswerRe: remote android app's source code Pin
Afzaal Ahmad Zeeshan21-Jan-17 7:52
professionalAfzaal Ahmad Zeeshan21-Jan-17 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.