Why this code sends 9 SMS messages one after the other If I'm asking just one? What is wrong?
I am trying to sent SMS message one at a time, but with this code sends 9 SMS (exactly 9) messages one after the other, why ? If I'm asking just one? What is wrong?    

wrong?

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        send();
        finish();
    }

    public void send()
    {
        	if (hits == 0){
        	   PendingIntent pi = PendingIntent.getActivity(this, 0,new Intent(this, sms.class), 0);
                   SmsManager sms = SmsManager.getDefault();
                   sms.sendTextMessage(phoneNumber, null, msg, pi, null);
                   hits = 1000;
        	}
     }


Why this code sends 9 SMS messages one after the other If I'm asking just one? What is wrong?
===

I am trying to sent SMS message one at a time, but with this code sends 9 SMS (exactly 9) messages one after the other, why ? If I'm asking just one? What is wrong?    

wrong?

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        send();
        finish();
    }

    public void send()
    {
        	if (hits == 0){
        	   PendingIntent pi = PendingIntent.getActivity(this, 0,new Intent(this, sms.class), 0);
                   SmsManager sms = SmsManager.getDefault();
                   sms.sendTextMessage(phoneNumber, null, msg, pi, null);
                   hits = 1000;
        	}
     }

