@Override
public void onClick(View v) {
sendFeedback(parameters)
}
try this.
On Mar 19, 5:33 am, jaafar zbeiba <[email protected]>
wrote:
> hello I just created a code to input area password c is to say in
> dermarage of the android must put his onscreen user password but the
> problem in the code that I have no errors when I type in the edit text
> area and I click ok nothing happens AC that can help me thank you
> here is the code
> ublic void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> editText= (EditText)findViewById(R.id.editText);
> ok= (Button)findViewById(R.id.ok);
> ok.setOnClickListener(this);
> editText.setOnClickListener(this);
>
> public void sendFeedback(View button) {
> String name="1234";
>
> String name1 ="chaine";
> //nameField.getText().toString();
>
> if(name.equals(name1))
> Toast.makeText(this,"Mot de passe
> orrect",Toast.LENGTH_SHORT).show();
> else
> Toast.makeText(this,"Mot de passe
> Incorrect",Toast.LENGTH_SHORT).show();
>
> // Do click handling here
> }
>
> @Override
> public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
> // TODO Auto-generated method stub
> return false;
> }
>
> @Override
> public void onClick(View v) {
> // TODO Auto-generated method stub
>
> }}
--
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