how can i pass my password value into other class of my package
<p>Here i want to send the value of "ourpassword" to say in myclass.java so how can i do this??    </p>

<pre><code>public class SetPassword extends Activity{  
@Override  
protected void onCreate(Bundle savedInstanceState) {  
// TODO Auto-generated method stub  
super.onCreate(savedInstanceState);  
setContentView(R.layout.set_password);

    final EditText ed=(EditText)findViewById(R.id.setpass);
    Button submit=(Button)findViewById(R.id.button1);

    submit.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
        String  ourpassword=ed.getText().toString();

        }
    });
}
</code></pre>
