Android: Downloading an NTLM-authentication-protected file

android, authentication, java, ntlm, sharepoint

Solution

Did you use standard Java `java.net.Authenticator` http://developer.android.com/reference/java/net/Authenticator.html? If it doesn't support NTLM check http://developer.android.com/reference/org/apache/http/auth/NTCredentials.html and related `org.apache.http` package. Also look at blog http://mrrask.wordpress.com/2009/08/21/android-authenticating-via-ntlm/ where it is shown how to use it. In par

Problem

I want to download a file from a Sharepoint server that protected with NTLM authentication from my Android application. I found some tutorials and couldn't successful. I tried using The Java CIFS Client Library and did not successful again. I investigated this post: Manipulating SharePoint list items with Android (JAVA) and NTLM Authentication but i do not want to consume a webservice, i just want to download a file. Any suggestions?

Original source