get right to the point i need to make push a button to send the edittext as sms and i have problem with the onclicklistner right after the new it is marked with red under line 

```
buttonSms.setOnClickListener  (new OnClickListener()

```

i would be really thankfull if any one could manage to help me

here is the full code code:

```
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.app.Activity;
import android.telephony.SmsManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import android.view.View.OnClickListener;

public class ServiceActivity extends ActionBarActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_service);
    //smssending
    Button buttonSms;
    final EditText textsms;
    buttonSms = (Button) findViewById(R.id.buttonSms);
    textsms = (EditText) findViewById(R.id.textsms);
    final String editPhoneNum = "059444444";
    buttonSms.setOnClickListener  (new OnClickListener()
            {
                public void smsClick(View v) {
                    String phoneNo = editPhoneNum;
                    String sms = textsms.getText().toString();
                    try {
                        SmsManager smsManager = SmsManager.getDefault();
                        smsManager.sendTextMessage(phoneNo, null, sms, null, null);
                        Toast.makeText(getApplicationContext(), "SMS Sent!",
                                Toast.LENGTH_LONG).show();
                    } catch (Exception e) {
                        Toast.makeText(getApplicationContext(),
                                "SMS faild, please try again later!",
                                Toast.LENGTH_LONG).show();
                        e.printStackTrace();
                    }
                }
            }
    );
}

public void backToMain(View view) {
    Intent b = new Intent(this, MainActivity.class);
    startActivity(b);
}

```