title: how to transfer several files selected one time using alljoyn
body: <p>I am trying to transfer files using Alljoyn framework, and the sample given by the Alljoyn shows me how to send and receive one file selected by one click on the ListView of the fileExplorer.
  <strong>the problem is i wanna transfer  several selected files,e.g. 4 pics,one time</strong>.</p>
  
  <p>in the onActivityResult() when case OFFER_SELECTED_FILE:i modefied as follows:</p>
  
  <pre><code>case OFFER_SELECTED_FILE: {
  
      final String[] peers = ajManager.getPeers();
      //create the click listener - when a peer is selected, offer them the file
      DialogInterface.OnClickListener onPeerClicked = new DialogInterface.OnClickListener() {
  
          public void onClick(DialogInterface dialog, int which) {
  
              String peer = peers[which];
              //File file = (File) intent.getExtras().get("file"); 
              File selected = (File) intent.getExtras().get("file"); 
  
              ArrayList&lt;String&gt; filePath = new ArrayList&lt;String&gt;();
              filePath.add(selected.getAbsolutePath());
              //ftComponent.offerFileToPeer(peer, file.getAbsolutePath(), 1000);                      
              ftComponent.offerFileToPeer(peer, filePath, 1000);                      
          }
      };
      showPeerPickerDialog(onPeerClicked);
      break;
  }
  </code></pre>
  
  <p>but it's denied by the public class FileTransferComponent which cannot be modified.</p>
  
  <pre><code>public int offerFileToPeer(String peer, String filePath, int timeoutMSecs) {
  
      return offerManager.offerFile(peer, filePath, timeoutMSecs);
  }
  </code></pre>
  
  <p>and i refered the *File Transfer Module Usage Guide for
  Android*4.1.1 Basic File Transfer procedures as follows:</p>
  
  <p>Sender Side</p>
  
  <pre><code>ftComponent.announce(filePaths);
  </code></pre>
  
  <p>Receiver Side</p>
  
  <pre><code>ArrayList&lt;FileDescriptor&gt; availableFiles = ftComponent.getAvailableRemoteFiles();
  FileDescriptor selected = availableFiles.get(0);
  ftComponent.requestFile(selected.owner, selected.fileId, selected.filename);
  </code></pre>
  
  <p>help ,any suggestion will be appreciated.i am new about the alljoyn.
  if possible,please tell me how to do both the Receicer&amp;&amp;Sender sides.thx</p>