첫 않습니다 동일하게 소켓을 통해 무엇을 읽고 전송하므로 해당 클라이언트를 수정하면 파일 경로가 필요하고 파일 이름 목록
for (int i = 0; i < checkeditem.size(); i++) {
File file = new File(path + "/" + checkeditem.get(i));
imageUris.add(Uri.fromFile(file));
}
및 파일과 의도를 사용하여 채우기 위해
ArrayList<Uri> imageUris = new ArrayList<Uri>();
지금 URI리스트에게 필요한 보내는 이상의 파일에 대한 그래서 그것을 보내 당신은 블루투스 또는 더 많은 옵션을 사용하여 미디어 파일을 보낼 수있는 uri 목록
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM,imageUris);
// shareIntent.setType("application/bluetooth");
shareIntent.setType("*/*");
startActivity(Intent.createChooser(shareIntent, "Share with"));
대답에 대한 목록입니다. 그러나 이것은 비디오로 할 수 있습니까? –
예 모든 유형의 파일보기 블루투스를 보낼 수 있습니다. –