Communication Between Android and PC via socket Setup Android device and PC should be connected via adb(either through USB or Wifi) Android code PC code - Python version PC code - Java version Notice Android device as socket server, PC as socket client. PC side can choose one of the two versions of code.