title: How to download dropbox files into my android application programmatically
body: <p>i am trying to download files using getFileStream() in dropbox api but it returns file 
  information only,please help me to download file data.</p>
  
  <p>here is code..</p>
  
  <pre><code>FileDownload fd = api.getFileStream("dropbox","/public/myfilename.rtf", null);
  
  BufferedReader br = new BufferedReader(new InputStreamReader(fd.is));
  
  BufferedWriter bw = new BufferedWriter(new FileWriter(newfile));
  
  char[] buffer = new char[4096];
  
  int read;
  
  while (true) {
      read = br.read(buffer);
  
      if (read &lt;= 0) {
          break
      }
      bw.write(buffer, 0, read);
  }
  </code></pre>