What do you expect to happen?  ... That code captures the string but doesn't
do anything with it....

Kris

On Wed, Apr 13, 2011 at 2:42 PM, jaafar zbeiba <[email protected]
> wrote:

> when I click ok nothing works
> herre is my code
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.KeyEvent;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.view.View.OnKeyListener;
> import android.widget.Button;
> import android.widget.EditText;
>
> public class main extends Activity implements OnClickListener,
> OnKeyListener {
>
>            EditText editText1;
>            Button ok ;
>            String C ;
>
>            public void onCreate(Bundle savedInstanceState) {
>                super.onCreate(savedInstanceState);
>                setContentView(R.layout.main);
>               editText1= (EditText)findViewById(R.id.editText1);
>                ok= (Button)findViewById(R.id.ok);
>                editText1.setOnClickListener(this);
>                ok.setOnClickListener(this);
>            }
>
>                public void sendFeedback(View button) {
>
>                    C = editText1.getText().toString();
>                }
>
>
>
>                @Override
>                public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
>                        // TODO Auto-generated method stub
>                        return false;
>                }
>
>
>                @Override
>                public void onClick(View arg0) {
>                        sendFeedback(ok);
>
>                }
>            }
>
> --
> 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

-- 
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