title: Sending an SMS in Android
body: <p>Hey, I have been making an Android app which needs to send a text message. Here is the current code I have:</p>
  
  <pre><code>public class getMessage extends Service {
  @Override
  public IBinder onBind(Intent intent) {
      return null;
  }
  
  @Override
  public void onStart(Intent intent, int startId) {
      super.onStart(intent, startId);
  
      client Phone = new client();
  
  
      String[] msg = Phone.getMsg(user[0],user[1]);
      PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, getMessage.class), 0);
      SmsManager man = SmsManager.getDefault();
      Log.e("GOT MESSAGE", msg[0]+ " : " +msg[1]);
      man.sendTextMessage(msg[0], null, msg[1], pi, null);
      Log.e("Message", "Sent the message?");
  }
  </code></pre>
  
  <p>Now, for some reason, the text message will not send using this code, and I'm not sure why. I was hoping that someone here could help me out in finding why this message won't send.</p>
  
  <p>No error is raised, nothing appears in the log (except for the log messages that I make myself in the code). Also, the manifest does have the correct  tags.</p>
  
  <p>Suggestions?</p>