Code example for DefaultHttpClient

Methods: setCookieStore

0
import java.util.List; 
import java.util.Scanner; 
 
public class MyGuelphApplication extends Application {
 
    private final DefaultHttpClient mHttpClient = new DefaultHttpClient();
    private final BasicCookieStore mCookieStore = new BasicCookieStore();
    private boolean mLoggedIn;
    private final String mBalanceDetailsUrl;
 
    public enum LoginType { 
        EVENTS, LIBRARY, BALANCE
    }; 
 
    public MyGuelphApplication() { 
        mHttpClient.setCookieStore(mCookieStore);
        mLoggedIn = false;
        mBalanceDetailsUrl = "";
    } 
 
    public boolean login(Context context, LoginType type) {