Android:EditText.setText() not working properly?
<p>Hi 
          I Want to set Data in EditText in onActivityResult() ,I Got Result From Previous Activity, But I can't set value into my Current EditText..
Hi ,my code:</p>

<pre><code>public class MyStuff extends Activity {
EditText messageArea;
int baseValue=200;
TextView txtCounter;
Button btnStuffOk;
Button btnStuffCancel;
ImageButton imgBrowse;
private Gallery gallery;
Bitmap myBitmap;
boolean flag=false;
int val=0;
private ArrayList&lt;String&gt; arrayLst=new ArrayList&lt;String&gt;();
protected static final int SELECT_IMAGE = 1;
protected static final int SELECT_URL = 2;
BitmapFactory.Options options = new BitmapFactory.Options();
String url_data="";
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.mystuff);



    imgBrowse.setOnClickListener(new OnClickListener()
    {
        @Override
        public void onClick(View v) {
            Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
            photoPickerIntent.setType("image/*");
             startActivityForResult(
                        new Intent(
                                Intent.ACTION_PICK,
                                  android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI),
                        SELECT_IMAGE);
        }
        });

     gallery = (Gallery) findViewById(R.id.examplegallery);
     gallery.setAdapter(new AddImgAdp(this));

     messageArea=(EditText)findViewById(R.id.editArea01);


     txtCounter=(TextView)findViewById(R.id.txtCounts);

     btnStuffOk=(Button)findViewById(R.id.btnStufftOk);
     btnStuffCancel=(Button)findViewById(R.id.btnStuffCancel);

   messageArea.addTextChangedListener(new TextWatcher() { 


        public void afterTextChanged(Editable s) {
            if(s.toString().length()&lt;1 ||s.toString().length()&gt;200)
            {
                btnStuffOk.setEnabled(false);
            }
            else
            {
                btnStuffOk.setEnabled(true);
            }

                txtCounter.setText(""+(baseValue-s.toString().length()));

        } 
        public void beforeTextChanged(CharSequence s, int start, int count,int after) { 

        } 
        public void onTextChanged(CharSequence s, int start, int before, int count) { 

        } 
}); 
}

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

       switch (requestCode) {

           case  SELECT_IMAGE:
            if (resultCode == Activity.RESULT_OK) {
                //
                break;
            }
           case SELECT_URL:
               if (resultCode == Activity.RESULT_OK) {

                   messageArea.setText(data.getStringExtra("url"));
                   messageArea.setText("this is a test");

                    break;
               }


       } 
    } 
}   
</code></pre>

<p><code>data.getStringExtra("url")</code> shows value .. ,but i cant assign it int Edittext...
Please help Me...</p>
