by Tomas Madajevas.
hi. i've maneged to fix my problem, but i don't see how my solution could help you in login process.
reasently i was working on android aplication too. because my knoladge in java is realy poor i've used PhoneGap to build the app. for login process i've create an hidden iframe in which login form was loaded. then user enters his/her credentials and presses login button (in my custom form), the information entered is being pushed into iframe's form and login button click is simulated. by parsing data loaded in iframe you can know if user logged in or an error ocured.
hope that will help you. wish you best of luck working on your project!
Tomas