title: smsManager.sendTextMessage crashing app
body: <p>I am trying to send sms from my app but it is crashing.</p>
  
  <p>LOGCAT:</p>
  
  <pre><code>10-10 17:23:08.420: ERROR/AndroidRuntime(279): FATAL EXCEPTION: main
      java.lang.NullPointerException
      at android.os.Parcel.readException(Parcel.java:1253)
      at android.os.Parcel.readException(Parcel.java:1235)
      at com.android.internal.telephony.ISms$Stub$Proxy.sendText(ISms.java:369)
      at android.telephony.SmsManager.sendTextMessage(SmsManager.java:87)
      at com.example.SendAsSmsActivity.onClickSend(SendAsSmsActivity.java:101)
      at com.example.SendAsSmsActivity$1.onClick(SendAsSmsActivity.java:39)
      at android.view.View.performClick(View.java:2408)
      at android.view.View$PerformClick.run(View.java:8816)
      at android.os.Handler.handleCallback(Handler.java:587)
      at android.os.Handler.dispatchMessage(Handler.java:92)
      at android.os.Looper.loop(Looper.java:123)
      at android.app.ActivityThread.main(ActivityThread.java:4627)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:521)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
      at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Code is similar to 
  the <a href="http://mobiforge.com/developing/story/sms-messaging-android" rel="nofollow">SMS manager example</a>.</p>