title: Sms have been sent twice using sendTextMessage method
body: <p>I try to send a sms using next code, but recipient gets my message twice. I check native app, and if I send sms using it, recipient takes only one message. Test app. code here:</p>
  
  <pre><code>package com.test2;
  
  import android.app.Activity;
  import android.app.PendingIntent;
  import android.content.ContentResolver;
  import android.content.ContentValues;
  import android.content.Context;
  import android.content.Intent;
  import android.net.Uri;
  import android.os.Bundle;
  import android.telephony.SmsManager;
  
  public class Test1Activity extends Activity {
  
      private static final String ACTION_SMS_SENT = "com.testapp.ACTION_SMS_SENT";
  
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          sendSms("Alice","+375295959617");
      }
  
      private void sendSms(String msg, String address) {
          Intent sentIntent = new Intent(ACTION_SMS_SENT);
  
          SmsManager smsManager = SmsManager.getDefault();
  
          PendingIntent sentPendingIntent = PendingIntent
              .getBroadcast(this, 0, sentIntent,
                   PendingIntent.FLAG_CANCEL_CURRENT);
          smsManager.sendTextMessage(address, null, msg, sentPendingIntent, null);
      }
  
      public static Uri addMessage(Context c, String address, String body, Long date, boolean deliveryReport, long threadId) {
  
          /**
           * The content:// style URL for this table
           */
  
          final Uri CONTENT_URI = Uri.parse("content://sms/outbox");
  
          return addMessageToUri(c.getContentResolver(), CONTENT_URI, address, body, null, date, true, deliveryReport, threadId);
     }
  
      public static Uri addMessageToUri(ContentResolver resolver, Uri uri, String address, String body, String subject, Long date, boolean read, boolean deliveryReport, long threadId) {
  
          ContentValues values = new ContentValues(7);
  
          values.put(ADDRESS, address);
          if (date != null) {
              values.put(DATE, date);
          }
          values.put(READ, read ? Integer.valueOf(1) : Integer.valueOf(0));
          values.put(SUBJECT, subject);
          values.put(BODY, body);
          if (deliveryReport) {
              values.put(STATUS, STATUS_PENDING);
          }
          if (threadId != -1L) {
              values.put(THREAD_ID, threadId);
          }
          Uri newUri = resolver.insert(uri, values);
  
  
          return newUri;
      }
  
      /**
       * The thread ID of the message
       * &lt;P&gt;
       * Type: INTEGER
       * &lt;/P&gt;
       */
      public static final String THREAD_ID = "thread_id";
  
      /**
       * The address of the other party
       * &lt;P&gt;
       * Type: TEXT
       * &lt;/P&gt;
       */
      public static final String ADDRESS = "address";
  
      /**
       * The person ID of the sender
       * &lt;P&gt;
       * Type: INTEGER (long)
       * &lt;/P&gt;
       */
  //    public static final String PERSON_ID = "person";
  
      /**
       * The date the message was sent
       * &lt;P&gt;
       * Type: INTEGER (long)
       * &lt;/P&gt;
       */
      public static final String DATE = "date";
  
      /**
       * Has the message been read
       * &lt;P&gt;
       * Type: INTEGER (boolean)
       * &lt;/P&gt;
       */
      public static final String READ = "read";
  
  //    public static final String ERROR_CODE = "err_code";
  
      /**
       * The TP-Status value for the message, or -1 if no status has been received
       */
      public static final String STATUS = "status";
  //    public static final int STATUS_NONE = -1;
  //    public static final int STATUS_COMPLETE = 0;
      public static final int STATUS_PENDING = 64;
  //    public static final int STATUS_FAILED = 128;
  
      /**
       * The subject of the message, if present
       * &lt;P&gt;
       * Type: TEXT
       * &lt;/P&gt;
       */
      public static final String SUBJECT = "subject";
  
      /**
       * The body of the message
       * &lt;P&gt;
       * Type: TEXT
       * &lt;/P&gt;
       */
      public static final String BODY = "body";
  
      public static final String TYPE = "type";
  
  //    public static final int MESSAGE_TYPE_ALL = 0;
      public static final int MESSAGE_TYPE_INBOX = 1;
      public static final int MESSAGE_TYPE_SENT = 2;
      public static final int MESSAGE_TYPE_DRAFT = 3;
      public static final int MESSAGE_TYPE_OUTBOX = 4;
      public static final int MESSAGE_TYPE_FAILED = 5; // for failed outgoing
      // messages
      public static final int MESSAGE_TYPE_QUEUED = 6; // for messages to send
  }
  </code></pre>
  
  <p>Phones: Galaxy S2 ICS,Galaxy S2 GB<br>
  This bug occured only on S2 ICS<br>
  adb logcat -b radio:  </p>
  
  <pre><code>D/RILJ    ( 2257): [12827]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12827]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12828]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12828]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=-1ms arg1=19932
   obj=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19933 delay=360s
  D/RILJ    ( 2257): [12829]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12829]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12830]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12830]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12831]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12831]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  W/RIL     ( 1824): process_multiclient(): EOS. multi client socket(27), errno:11
  
  I/RILS    (19978): SecPhone :: onStart()
  I/RILS    (19978): Connected to '7777' socket
  D/RILJ    ( 2257): [12832]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12832]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12833]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12833]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=0 arg1=19933 ob
  j=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19934 delay=360s
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=0 arg1=19934 ob
  j=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19935 delay=360s
  D/RILJ    ( 2257): [12834]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12834]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12835]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12835]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12836]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12836]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12837]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12837]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12838]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12838]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270368 when=0 arg1=1 }
  D/RILJ    ( 2257): [12839]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12839]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12840]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12840]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=0 arg1=19935 ob
  j=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19936 delay=360s
  D/RILJ    ( 2257): [12841]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12841]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12842]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12842]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12843]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12843]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12844]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12844]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILClient( 1825): [*] RecordReqHistory(): token(1), ID(59)
  D/RILClient( 1825): [*] RecordReqHistory(): token(1), ID(59)
  D/RILClient( 1825): SendOemRequestHookRaw(): token = 1
  D/RILClient( 1825): processRxBuffer: status 0 response_type 0
  D/RILClient( 1825): processSolicited()
  D/RILClient( 1825): [*] FindReqHandler(): token(1)
  D/RILClient( 1825): processSolicited: No handler for token 1
  D/RILClient( 1825): [*] ClearReqHistory(): token(1)
  D/RILClient( 1825): processRxBuffer: status 0 response_type 1
  D/RILClient( 1825): processUnsolicited(): resp_id (11011), len(2)
  D/RILClient( 1825): [*] RxReaderFunc() b_connect=1
  D/RILJ    ( 2257): [12845]&gt; SCREEN_STATE: true
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12845]&lt; SCREEN_STATE
  D/GSM     ( 2257): [GsmDCT] onReceive: action=android.intent.action.SCREEN_ON
  D/GSM     ( 2257): [GsmDCT] stopNetStatPoll
  D/GSM     ( 2257): [GsmDCT] overall state is IDLE
  D/RILJ    ( 2257): [12846]&gt; OPERATOR
  D/RILJ    ( 2257): [12847]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12848]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12849]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12846]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12847]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12848]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12849]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [12850]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12850]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12851]&gt; SCREEN_STATE: false
  D/RILJ    ( 2257): [12851]&lt; SCREEN_STATE
  D/GSM     ( 2257): [GsmDCT] onReceive: action=android.intent.action.SCREEN_OFF
  D/GSM     ( 2257): [GsmDCT] stopNetStatPoll
  D/GSM     ( 2257): [GsmDCT] overall state is IDLE
  E/RIL     ( 1824): +handle_modemctl_event
  D/RILJ    ( 2257): [12852]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12852]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=0 arg1=19936 ob
  j=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19937 delay=360s
  D/RILJ    ( 2257): [12853]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12853]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  E/RIL     ( 1824): +handle_modemctl_event
  E/RIL     ( 1824): +handle_modemctl_event
  D/RILJ    ( 2257): [12854]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12854]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  E/RIL     ( 1824): +handle_modemctl_event
  D/RILJ    ( 2257): [12855]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12855]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12856]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12856]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12857]&gt; SCREEN_STATE: true
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12857]&lt; SCREEN_STATE
  D/GSM     ( 2257): [GsmDCT] onReceive: action=android.intent.action.SCREEN_ON
  D/GSM     ( 2257): [GsmDCT] stopNetStatPoll
  D/GSM     ( 2257): [GsmDCT] overall state is IDLE
  D/RILJ    ( 2257): [12858]&gt; OPERATOR
  D/RILJ    ( 2257): [12859]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12860]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12861]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12858]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12859]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12860]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12861]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [12862]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12862]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  E/RIL     ( 1824): +handle_modemctl_event
  E/RIL     ( 1824): +handle_modemctl_event
  D/RILJ    ( 2257): [12863]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12863]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  E/RIL     ( 1824): +handle_modemctl_event
  D/GSM     ( 2257): [GsmDCT] onReceive: action=com.android.internal.telephony.gpr
  s-data-stall
  D/GSM     ( 2257): [GsmDCT] handleMessage msg={ what=270353 when=0 arg1=19937 ob
  j=com.android.internal.telephony.gprs-data-stall }
  D/GSM     ( 2257): [GsmDCT] startDataStallAlarm: tag=19938 delay=360s
  D/RILJ    ( 2257): [12864]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12864]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/RILJ    ( 2257): [12865]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12865]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  D/SMS     ( 2257): isSMSBlocked=false
  D/SMS     ( 2257): isSMSBlocked=false
  D/RILJ    ( 2257): [12866]&gt; SEND_SMS
  D/SMS     ( 2257): isSMSBlocked=false
  D/SMS     ( 2257): isSMSBlocked=false
  D/RILJ    ( 2257): [12867]&gt; SEND_SMS
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12868]&gt; OPERATOR
  D/RILJ    ( 2257): [12869]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12870]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12868]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12871]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12869]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12870]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12871]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [12866]&lt; SEND_SMS { messageRef = 10, errorCode = 0, ackPdu =
  null}
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_STK_SEND_SMS_RESULT {0}
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12872]&gt; OPERATOR
  D/RILJ    ( 2257): [12873]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12874]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12872]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12873]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12875]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12874]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12875]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/RILJ    ( 2257): [12876]&gt; OPERATOR
  D/RILJ    ( 2257): [12877]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12876]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12878]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12879]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12877]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12878]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12879]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12880]&gt; OPERATOR
  D/RILJ    ( 2257): [12881]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12882]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12880]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12883]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12881]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12882]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12883]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [12867]&lt; SEND_SMS { messageRef = 11, errorCode = 0, ackPdu =
  null}
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_STK_SEND_SMS_RESULT {0}
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [UNSL]&lt; UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
  D/RILJ    ( 2257): [12884]&gt; OPERATOR
  D/RILJ    ( 2257): [12885]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12886]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12884]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12887]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12888]&gt; OPERATOR
  D/RILJ    ( 2257): [12889]&gt; DATA_REGISTRATION_STATE
  D/RILJ    ( 2257): [12885]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12886]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12887]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/RILJ    ( 2257): [12888]&lt; OPERATOR {MTS BY, MTS BY, 25702}
  D/RILJ    ( 2257): [12890]&gt; VOICE_REGISTRATION_STATE
  D/RILJ    ( 2257): [12889]&lt; DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
  D/RILJ    ( 2257): [12891]&gt; QUERY_NETWORK_SELECTION_MODE
  D/RILJ    ( 2257): [12890]&lt; VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
  D/RILJ    ( 2257): [12891]&lt; QUERY_NETWORK_SELECTION_MODE {0}
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo, carrier=[25702], im
  si=[257027010122629]
  D/GSM     ( 2257): [SpnOverride] getMatchingSpnOverrideInfo - no entry for carri
  er=[25702]
  D/GSM     ( 2257): [GsmSST] Poll ServiceState done:  oldSS=[0 home MTS BY MTS BY
   25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
  ] newSS=[0 home MTS BY MTS BY 25702  HSDPA:9 CSS not supported -1 -1 RoamInd=-1
  DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxData
  Calls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=HSDPA:9 newType=H
  SDPA:9
  D/RILJ    ( 2257): [12892]&gt; REQUEST_GET_NEIGHBORING_CELL_IDS
  D/RILJ    ( 2257): [12892]&lt; REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
  internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
  </code></pre>
  
  <p>I checked this solution <a href="https://stackoverflow.com/questions/2015259/android-1-6-sms-problem-older-app-code">Android 1.6 SMS (older application code)</a> and had the same result</p>
  
  <p><strong>UPD</strong>
  bug report: <a href="http://code.google.com/p/android/issues/detail?id=27024" rel="nofollow noreferrer">http://code.google.com/p/android/issues/detail?id=27024</a><br>
  this is a firmware issue  </p>