Cleaned up MainActivity

Next:
Rename SendMessageActivity since it is actually a service
Have main activity start a background activity such as...

public class AlarmReceiver extends BroadcastReceiver 
{

public void onReceive(Context context, Intent intent) 
    { 
    Toast.makeText(context,"AlarmReceiver" , Toast.LENGTH_LONG).show(); 
    Intent i = new Intent(context, SendMessageActivity.class); 
    i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
    context.startService(i);
    } 
}