I am developing an app which includes logins activity and main activity. If the user login for the first time, the app saves username and pass in sharedPrefs. And on the next startup, login activity uses those username and password, if server returns true(in xml, getEntity) main activity intent starts. After login, I want to interact with webpage using cookies set in startup login. As far as I searched through the web, they say that I should use the same httpclient in order not to lose cookies. I tried it and but couldnt manage. So, can I use cookies without using same httpclient?
General logic of my app:
httpclient.execute("http://www.abc.com/index.php?process=login&user="+variable1+"&pass="+variable1);
//here I get the entity of this response and I parse that return value, after that, if(login==true)--> go on...
//here I have to read all page from website which is protected by user authentication(by cookies).(ex:index.php?process=getmymessages)
//But I did not manage that. At this point what is your suggestions?
Thanks in advance!