Click here to Skip to main content
16,020,519 members
Home / Discussions / Android
   

Android

 
QuestionSimple HTTP Post Request - application/json Pin
Django_Untaken27-Jan-17 9:21
Django_Untaken27-Jan-17 9:21 
AnswerRe: Simple HTTP Post Request - application/json Pin
Richard MacCutchan27-Jan-17 22:03
mveRichard MacCutchan27-Jan-17 22:03 
QuestionAndroid USB Detection Pin
Pavlex421-Jan-17 11:18
Pavlex421-Jan-17 11:18 
AnswerRe: Android USB Detection Pin
Afzaal Ahmad Zeeshan21-Jan-17 12:28
professionalAfzaal Ahmad Zeeshan21-Jan-17 12:28 
GeneralRe: Android USB Detection Pin
Pavlex421-Jan-17 12:53
Pavlex421-Jan-17 12:53 
GeneralRe: Android USB Detection Pin
Afzaal Ahmad Zeeshan21-Jan-17 13:00
professionalAfzaal Ahmad Zeeshan21-Jan-17 13:00 
GeneralRe: Android USB Detection Pin
Pavlex421-Jan-17 13:08
Pavlex421-Jan-17 13:08 
GeneralRe: Android USB Detection Pin
Afzaal Ahmad Zeeshan21-Jan-17 13:12
professionalAfzaal Ahmad Zeeshan21-Jan-17 13:12 
The best way to achieve this will be to install a server application on your own device, and have a client-based application on other devices. Then upon connection, detect the devices and connect to them using server-client channel that you will hold in the network.

This is the safest way, and the simplest way, otherwise USB won't allow much of permissions, such as executing any command (write commands are way too strict).

There are many ways to do this, Android Client-Server Using Sockets – Client Implementation, since you require USB based communication, please check the following and then move onwards to a conclusion.

root access - How do I use Android device with USB OTG device as MTP client for another device? - Android Enthusiasts Stack Exchange
usb on the go - What is the difference between USB On-The-Go (OTG) and USB Host Mode? - Android Enthusiasts Stack Exchange
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Android USB Detection Pin
Pavlex421-Jan-17 13:36
Pavlex421-Jan-17 13:36 
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 
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 

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.