Saturday, October 1, 2011

[android-developers] authentication to the server

 
i want to connect to the sap server.
am posting my code
 

UsernamePasswordCredentials creds =

new UsernamePasswordCredentials("username", "password");

AbstractHttpClient httpclient =

null;

((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(

new
AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),creds);

 

but it is not connecting ..can any one suggest me how to authenticate to the serer

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate