subiendo docx, doc y pdf a sharepoint en línea desde la aplicación nativa de Android

Estoy desarrollando una aplicación de Android para acceder de forma remota a sharepoint en línea. Puedo cargar archivos utilizando el método de poner http y verlos, pero no puedo abrirlos. Siento que no estoy especificando el tipo de contenido adecuado. Aquí está mi código:

try {       
    File sdcard = Environment.getExternalStorageDirectory();

    //Get the text file
    File file = new File(sdcard, "gps.doc");

    FileInputStream fIn = new FileInputStream(file);
    BufferedReader myReader = new BufferedReader(
            new InputStreamReader(fIn));
    String aDataRow = "";
    String aBuffer = "";
    while ((aDataRow = myReader.readLine()) != null) {
        aBuffer += aDataRow + "\n";
    }

    System.out.println(aBuffer + "content of the file");

    HttpPut httpupld = new HttpPut("http://mysite.sharepoint.com/Sites/Documents/gps.doc");


    StringEntity entity1 = new StringEntity(aBuffer, "HTTP.UTF_8");
    httpDel.setEntity(entity1);


    System.out.println(title);
    HttpResponse rsp = http2.execute(httpupld);
    respcode=rsp.getStatusLine().getStatusCode();
    System.out.println(respcode);

} catch (Exception e) {
    Log.e("Error: ", e.getMessage());
}

Cualquier ayuda se agradece, gracias

Respuestas a la pregunta(1)

Su respuesta a la pregunta