@@ -0,0 +1,1438 @@
+package com.fyp.mountainRescue2;%0A%0A%0A%0Aimport android.app.Activity;%0Aimport android.os.Bundle;%0Aimport android.app.PendingIntent;%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.IntentFilter;%0Aimport android.telephony.SmsManager;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.TextView;%0A//This application is used to see if your are able to send a message within the application%0Apublic class smsActivity extends Activity%7B%0A%09Button SMS;%0A%09IntentFilter messageIntent;%0A%09%0A%09private BroadcastReceiver intentReciever = new BroadcastReceiver()%7B%0A%09%09@Override%0A%09%09public void onReceive(Context context, Intent intent)%7B%0A%09%09%09TextView smsR = (TextView) findViewById(R.id.textView1);%0A%09%09%09smsR.setText(intent.getExtras().getString(%22sms%22));%0A%09%09%7D%0A%09%7D;%0A%09@Override%0A%09public void onCreate(Bundle savedInstanceState)%7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09setContentView(R.layout.send);%0A%09%09%0A%09%09SMS = (Button) findViewById(R.id.sendSMS);%0A%09%09SMS .setOnClickListener(new View.OnClickListener() %7B%0A%09%09%09%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09// TODO Auto-generated method stub%0A%09%09%09%09%0A%09%09%09%09//sendSMS(%22123456789%22,%22Testing%22);%0A%09%09%09%09Intent i = new Intent(android.content.Intent.ACTION_VIEW);%0A%09%09%09%09i.putExtra(%22address%22,%22123456789; 987654321;010101010%22);%0A%09%09%09%09i.putExtra(%22sms_body%22, %22This is a test!%22);%0A%09%09%09%09i.setType(%22vnd.android-dir/mms-sms%22);%0A%09%09%09%09startActivity(i);%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09%0A%09%7D%0A%7D%0A

Create smsActivity.java