Acessing the web from android application -
this isnt programming question, more on logic.
basically have website making android app for. on app want user able login entering username , password prompt on app. when user clicks login data posted site url. bit lost... how app know whether login successful or not, and, if successful, want app show form or whatever user able post new content site, posted again. i'd imagine involves retrieving cookie check authentication? have set custom response page? , how app maintain session?
to answer questions:
how app know whether login successful or not?
on server side, can respond post
command value. value can whatever want, including information on whether login successful or not.
i'd imagine involves retrieving cookie check authentication?
you can use cookie validate on server side request comes valid session.
would have set custom response page?
it's not strictly necessary, this.
how app maintain session?
you can store "cookie" on global object/variable.
--
having answer questions suggest small restful/http/soap api on server side , use on client (android) side. easier parsing existing web pages.
Comments
Post a Comment