Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We want to pull in the SharePoint list data into an Android application.

Is REST webservices the way ahead? Or is there any other method? Please provide articles reference in your answer.

How do we authenticate a request if using rest?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Why don't you write a middle-ware service that uses Client Object Model to connect to SharePoint, I guess it will be more flexible.. Make calls to this middle-ware service from Android application..

You can authenticate using a particular user like:

using (var clientContext = new ClientContext("http://siteUrl"))
{
    clientContext.Credentials = new NetworkCredential("username", "password", "domain");

    // Do your stuff
}

You can learn about Client Object Model here:

Basic Operations in Client Object Model

share|improve this answer
    
What about using sharepoint web services like listdata.svc? –  variable Mar 26 at 15:47
    
You can try using that, but I have heard there are some limitations on that.. If you go for custom web service, you will have more flexibility.. However what Rob has recommended is worth a try, I didn't know of that.. –  Arsalan Adam Khatri Mar 26 at 19:59
    
If I go to list out the methods to achieve this: 1. REST, 2. JSOM and 3. Robs method. Is there any other technique –  variable Mar 27 at 4:10
    
Mine is the fourth one actually, 4. CSOM –  Arsalan Adam Khatri Mar 27 at 8:18

Microsoft announced a preview version of an SDK for Andriod at this year's SharePoint conference.

https://github.com/OfficeDev/Office-365-SDK-for-Android

You could also check out this session which shows how to authenticate with SharePoint from a non-Microsoft platform.

http://channel9.msdn.com/Events/SharePoint-Conference/2012/SPC118

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.