Reputation: 21901
What can I use to log on to a website using my application? is there a library or something that makes communicating with websites and returning data easy?
Upvotes: 0
Views: 78
Reputation: 1123
Personally I use a post request, as you can see in my sources, function login: http://code.google.com/p/tsukiapp/source/browse/trunk/src/net/myfigurecollection/android/webservices/MFCService.java
I have to manage cookies, but it its not mandatory if you just have to validate credentials ;)
Upvotes: 1
Reputation: 7020
Authentificator might be what youre looking for.
Its part of the java.net package and provides a callback method for password authentification.
There is a very basic and easy understanding example how to use it so i´m just going to link it.
Couldnt demonstrate it better!
http://www.java2s.com/Code/Java/Network-Protocol/AuthenticatorsetDefaultnewAuthenticator.htm
Upvotes: 1