0
A
답변
0
DeviceDetailFragment.java 두 개의 매개 변수를 갖는 copyFile이라는 메서드가 있습니다. InputStream 및 OutputStream, Inputstream은 파일을 바이트 스트림으로 제공합니다. 대신 문자열을 바이트로 변환하고 출력 스트림에 출력합니다. copyFile
코드를 게시 할 수 있습니다. 이 https://github.com/life0fun/wifi-direct-chat, http://stackoverflow.com/questions/28914774/android-passing-simple-string-over-wi-fi – YLS
https : // groups를 사용해보십시오. google.com/forum/#!topic/wi-fi-direct/uWpuOzHY6y0 – YLS
문자열을 'OutputStream'에 씁니다. – CommonsWare