Open another activity and Browser doesn't work
<p>*<strong><em>i want to open other activity when i press the button1 but the activity open when i press button to login</strong>
when the page with webview open the site don't work, i add the activity into the manifest.</em>*</p>

<pre><code>Main Activity  
package com.sencide;

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.util.ArrayList;
    import java.util.List;

    import org.apache.http.HttpResponse;
    import org.apache.http.NameValuePair;
    import org.apache.http.client.ClientProtocolException;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.entity.UrlEncodedFormEntity;
    import org.apache.http.client.methods.HttpPost;
    import org.apache.http.impl.client.DefaultHttpClient;
    import org.apache.http.message.BasicNameValuePair;

    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.TextView;

    public class AndroidLogin extends Activity implements OnClickListener {

        Button ok,back,exit,site;
        TextView result;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);



            // Login button clicked
            ok = (Button)findViewById(R.id.btn_login);
            ok.setOnClickListener(this);

            result = (TextView)findViewById(R.id.lbl_result);

        }

        public void postLoginData() {
            // Create a new HttpClient and Post Header
            HttpClient httpclient = new DefaultHttpClient();

            /* logar no site */
            HttpPost httppost = new HttpPost("http://www.reclameaqui.com.br/includes/autenticaUsuario.php");

            try {
                // Add user name and password
                EditText uname = (EditText)findViewById(R.id.txt_username);
                String username = uname.getText().toString();

                EditText pword = (EditText)findViewById(R.id.txt_password);
                String password = pword.getText().toString();

                List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(6);
                nameValuePairs.add(new BasicNameValuePair("identificador", username ));
                nameValuePairs.add(new BasicNameValuePair("senha", password ));
                nameValuePairs.add(new BasicNameValuePair("urlRedir", "http://www.reclameaqui.com.br/areadoconsumidor/"));
                nameValuePairs.add(new BasicNameValuePair("tipo", "cadastro" ));
                nameValuePairs.add(new BasicNameValuePair("x", "35" ));
                nameValuePairs.add(new BasicNameValuePair("y", "24" ));
                httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

                // Execute HTTP Post Request
                Log.w("SENCIDE", "Execute HTTP Post Request");
                HttpResponse response = httpclient.execute(httppost);

                String str = inputStreamToString(response.getEntity().getContent()).toString();
                Log.w("SENCIDE", str);

                if(str.toString().equalsIgnoreCase("true"))
                {
                    Log.w("SENCIDE", "TRUE");
                    result.setText("Login successful");   
                }else
                {
                    Log.w("SENCIDE", "FALSE");
                    result.setText(str);                
                }

            } catch (ClientProtocolException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        } 

        private StringBuilder inputStreamToString(InputStream is) {
            String line = "";
            StringBuilder total = new StringBuilder();
            // Wrap a BufferedReader around the InputStream
            BufferedReader rd = new BufferedReader(new InputStreamReader(is));
            // Read response until the end
            try {
                while ((line = rd.readLine()) != null) { 
                    total.append(line); 
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
            // Return full string
            return total;
        }

        @Override
        public void onClick(View view) {
            if(view == ok){
                postLoginData();

                 // Login button clicked
                site = (Button)findViewById(R.id.button1);
               site.setOnClickListener(this);


                    Intent i = new Intent(this, Web.class);  
                    startActivity(i);  
            }
        }

    }
</code></pre>

<p><strong>Here is the manifest</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.sencide"
      android:versionCode="1"
      android:versionName="1.0"&gt;

    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;activity android:name=".AndroidLogin"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity android:name=".Web"

 android:label="@string/app_name"&gt;
         &lt;intent-filter&gt;
                &lt;action android:name="com.sencide.Web" /&gt;

                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
 &lt;/activity&gt;


    &lt;/application&gt;
&lt;/manifest&gt;
</code></pre>
