"application yamba has stopped unexpectedly" error ("Learning Android" O'Reilly book)
<p>I try to run the code in chapter 6 but every time I get in the emulator an "the application yamba has stopped unexpectedly" error massage. </p>

<p>This is the code:</p>

<pre><code>import winterwell.jtwitter.Twitter;
import winterwell.jtwitter.TwitterException;
import android.app.Activity;
import android.os.AsyncTask;
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.Toast;

public class StatusActivity extends Activity implements OnClickListener {
    private static final String TAG = "StatusActivity";
    EditText editText;
    Button buttonUpdate;
    Twitter twitter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.status);

        editText = (EditText) findViewById(R.id.editText);
        buttonUpdate = (Button) findViewById(R.id.butonUpdate);

        buttonUpdate.setOnClickListener(this);

        twitter = new Twitter("student", "password");
        twitter.setAPIRootUrl("http://yamba.marakana.com/api");
    }

    class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt;{

        @Override
        protected String doInBackground(String... statuses) {
            // TODO Auto-generated method stub
            try{
                Twitter.Status status = twitter.updateStatus(statuses[0]);
                return status.text;
            } catch (TwitterException e){
                Log.e(TAG, e.toString());
                e.printStackTrace();
                return "Failed to post";
            }
        }

        @Override
        protected void onProgressUpdate(Integer... values) {
            // TODO Auto-generated method stub
            super.onProgressUpdate(values);
        }

        @Override
        protected void onPostExecute(String result) {
            // TODO Auto-generated method stub
            Toast.makeText(StatusActivity.this, result, Toast.LENGTH_LONG);
        }



    }

    public void onClick(View v) {
        // TODO Auto-generated method stub
        String status = editText.getText().toString();
        new PostToTwitter().execute(status);
        Log.d(TAG, "onClicked");
    }   

}
</code></pre>

<p>Can anyone explain what is the problem?</p>
