android - Button is not responding to click event -


The button I used is not responding to the click event, I've added onClickListener. I'm new to Android, please tell me where I'm going.

  The Welcome section of the public section extends the OnClickListener {edit test range; Submit button; /** Called when the activity is first created. * / Crate on Public Zero (Bundle Saved Instantstate) {Log.i ("MyActivity", "Entered"); Try {Super.onCreate (Saved Instantstate); SetContentView (R.layout.main2); Button submit = (button) VVBID (RID. BTNSBitit); EditTatch limit = (edit text) VVBIID (RID Editrange); TextView Title = (TextView) SearchVBIID (RIDTTT); TextView Notification = (TextView) findViewById (R.id.txtRange); EditTatch EditRange = Faucet; String value = edit range .getText (). ToString (); Final bundle bundle = new bundle (); Bundle.putString ("param1", value); Submit.setOnClickListener ((android.view.View.OnClickListener) this); } Hold (Exception e) {//Log.d (My Activity ", e.getMessage ()); e.printStackTrace ();}} Click Public Zero (see V) {Log.i (" MyActivity ", "Onclic onclic ()"); // TODO auto generated method stub string value = class.getText (); ToString (); Final bundle bundle = new bundle (); bundle.putString ("param1", value); Toast Make text (getBaseContext), "wait", toast .LENGTH_SHORT. Show (); myIntent = new intent (v.getContext (), pathpath class); myIntent.putExtras (bundle); startActivity (myIntent); }}    

right now in setOnClickListener Get OnClickListener (welcome.this)

Comments