开发者

how do i do authentification on android

I need to authenticate to use a rest web service.

I make a

HttpClient httpclient = new DefaultHttpClient();

an there must be a way to use UsernamePasswordCredentials on that client.

Can somebody please point me to a relevant example?

I have found some so开发者_如何学Curce code uding the HttpClient class in the org.apache.commons.SOMETHING_HTTP, but that doesn't exist on Android.

Cheers


This may help you : http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜