This is my code






String url = StrippedChars(Url.getText().toString().trim());

final SharedPreferences mPreferences;

mPreferences = getSharedPreferences("CurrentUser", MODE_PRIVATE); 

HttpPost httppost = new 
HttpPost("http://www.extraplay.com/mobile/prcs_login-verify-mobile.php";); 

List<NameValuePair> params = new ArrayList<NameValuePair>();

params.add(new BasicNameValuePair("email", email));

params.add(new BasicNameValuePair("pwd", password));

params.add(new BasicNameValuePair("remember", Remember));

params.add(new BasicNameValuePair("url", url));

try {

    httppost.setEntity(new UrlEncodedFormEntity(params));

    } catch (UnsupportedEncodingException e) {

    // TODO Auto-generated catch block

    e.printStackTrace();

}

try {

    HttpResponse response = httpclient.execute(httppost);

    InputStream is = response.getEntity().getContent(); 

    BufferedInputStream bis = new BufferedInputStream(is);


    ByteArrayBuffer baf = new ByteArrayBuffer(100);

    int current = 0; 

    while((current = bis.read()) != -1){ 

    baf.append((byte)current); 

} 


    String text = new String(baf.toByteArray());

   if (text.equals("success")) {

        if (Remember.equals("1")) {

           SharedPreferences.Editor editor=mPreferences.edit();

            editor.putString("Email", email);

            editor.putString("PassWord", password);

            editor.putString("Remember", Remember);

            editor.putString("Url", url);

            editor.commit();

    }

    

    HttpGet httpget = new HttpGet("http://www.extraplay.com/mobile/index.php";);

    ttpResponse response1 = httpclient.execute(httpget); 

} 





I want http://www.extraplay.com/mobile/index.php to display in a browser and I 
want the session variables preserved from 
http://www.extraplay.com/mobile/prcs_login-verify-mobile.php when in.php is 
called. How do I go about it?





Thanks








-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to