- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我尝试使用下一个代码发送短信,但收件人两次收到我的消息。我检查 native 应用程序,如果我使用它发送短信,收件人只会收到一条消息。测试应用程序。代码在这里:
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
* <P>
* Type: INTEGER
* </P>
*/
public static final String THREAD_ID = "thread_id";
/**
* The address of the other party
* <P>
* Type: TEXT
* </P>
*/
public static final String ADDRESS = "address";
/**
* The person ID of the sender
* <P>
* Type: INTEGER (long)
* </P>
*/
// public static final String PERSON_ID = "person";
/**
* The date the message was sent
* <P>
* Type: INTEGER (long)
* </P>
*/
public static final String DATE = "date";
/**
* Has the message been read
* <P>
* Type: INTEGER (boolean)
* </P>
*/
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
* <P>
* Type: TEXT
* </P>
*/
public static final String SUBJECT = "subject";
/**
* The body of the message
* <P>
* Type: TEXT
* </P>
*/
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
}
手机:Galaxy S2 ICS、Galaxy S2 GB
此错误仅发生在 S2 ICS 上
adb logcat -b radio :
D/RILJ ( 2257): [12827]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12827]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12828]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12828]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12829]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12830]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12830]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12831]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12831]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12832]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12833]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12833]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12834]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12835]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12835]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12836]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12836]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12837]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12837]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12838]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12838]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12839]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12840]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12840]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12841]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12842]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12842]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12843]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12843]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12844]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12844]< 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]> SCREEN_STATE: true
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12845]< 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]> OPERATOR
D/RILJ ( 2257): [12847]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12848]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12849]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12846]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12847]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12848]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12849]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12850]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12851]> SCREEN_STATE: false
D/RILJ ( 2257): [12851]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12852]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12853]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12854]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
E/RIL ( 1824): +handle_modemctl_event
D/RILJ ( 2257): [12855]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12855]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12856]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12856]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12857]> SCREEN_STATE: true
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12857]< 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]> OPERATOR
D/RILJ ( 2257): [12859]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12860]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12861]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12858]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12859]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12860]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12861]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12862]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12863]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12864]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
D/RILJ ( 2257): [12865]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12865]< 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]> SEND_SMS
D/SMS ( 2257): isSMSBlocked=false
D/SMS ( 2257): isSMSBlocked=false
D/RILJ ( 2257): [12867]> SEND_SMS
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12868]> OPERATOR
D/RILJ ( 2257): [12869]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12870]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12868]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12871]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12869]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12870]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12871]< 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]< SEND_SMS { messageRef = 10, errorCode = 0, ackPdu =
null}
D/RILJ ( 2257): [UNSL]< UNSOL_STK_SEND_SMS_RESULT {0}
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12872]> OPERATOR
D/RILJ ( 2257): [12873]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12874]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12872]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12873]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12875]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12874]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12875]< QUERY_NETWORK_SELECTION_MODE {0}
D/RILJ ( 2257): [12876]> OPERATOR
D/RILJ ( 2257): [12877]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12876]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12878]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12879]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12877]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12878]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12879]< 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]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12880]> OPERATOR
D/RILJ ( 2257): [12881]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12882]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12880]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12883]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12881]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12882]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12883]< 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]< SEND_SMS { messageRef = 11, errorCode = 0, ackPdu =
null}
D/RILJ ( 2257): [UNSL]< UNSOL_STK_SEND_SMS_RESULT {0}
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 2257): [12884]> OPERATOR
D/RILJ ( 2257): [12885]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12886]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12884]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12887]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12888]> OPERATOR
D/RILJ ( 2257): [12889]> DATA_REGISTRATION_STATE
D/RILJ ( 2257): [12885]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12886]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12887]< QUERY_NETWORK_SELECTION_MODE {0}
D/RILJ ( 2257): [12888]< OPERATOR {MTS BY, MTS BY, 25702}
D/RILJ ( 2257): [12890]> VOICE_REGISTRATION_STATE
D/RILJ ( 2257): [12889]< DATA_REGISTRATION_STATE {1, 00c8, 00c80521, 9}
D/RILJ ( 2257): [12891]> QUERY_NETWORK_SELECTION_MODE
D/RILJ ( 2257): [12890]< VOICE_REGISTRATION_STATE {1, 00c8, 00c80521}
D/RILJ ( 2257): [12891]< 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]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 2257): [12892]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.
internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
我检查了这个解决方案 Android 1.6 SMS (older application code)并得到了相同的结果
UPD错误报告:http://code.google.com/p/android/issues/detail?id=27024
这是一个固件问题
最佳答案
看起来有些手机(HTC Tattoo、三星 Galaxy S2、带有 LPQ 固件的手机)在 sendTextMessage 中有一个错误,但它应该可以与 sendMultipartTextMessage 一起正常工作。
Android sendTextMessage sends two identical messages on exceution
关于android - 使用 sendTextMessage 方法发送了两次短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9928367/
由于某种原因,当 php mail() 发送到文本号码(通过电子邮件)时,即 123456789@vtext.com;发件人显示为 centos apache 服务器输出电子邮件 (apache@ho
我正在编写一个需要用户输入手机号码的新网站,我面临的问题是我需要确保用户实际上是(或在这种情况下,有权访问)的所有者手机号码。 我想出的解决方案是,在提交号码时,我向他们发送带有 token 的短信,
我目前正在尝试编写一个应用程序来拦截文本消息并根据该消息的内容使用react。我试图挂接到 CKSMSService 类中的 _receivedMessage:(struct __CKSMSRecor
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 4年前关闭。 Improve thi
Android/iPhone/Windows mobile/Symbian 是否有任何一种标准/广泛使用的 SMS 格式可以发送/接收 GPS 坐标(“地理标记 SMS”)? 例如Garmin 具有对
当用户的桌面应用程序上发生警报时,我想向用户的智能手机发送电子邮件或短信。 如何在不提供应用程序内登录凭据的情况下发送电子邮件? 使用 smtp,我需要提供我的凭据,但由于这是针对已发布的应用程序,这
有多久,没有发过短信了? 1、背景简介 在常规的分布式架构下,「消息中心」的服务里通常会集成「短信」的渠道,作为信息触达的重要手段,其他常用的手段还包括:「某微」、「某钉」、
我基本上是在尝试允许用户使用短信发布到他们的博客。我为每个用户存储了一个电话号码,并且由于 twilio 在他们提交给我的页面的发布请求中发送该信息,我可以进行反向查找以查看将其发布到哪个博客。现在出
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我想从 jSMPP 接收 Unicode 短信。 如果数据编码是8,我想将其转换为Unicode符号。 为此,我使用 HexUtil.convertBytesToHexString 函数。 但它没有正
我正在尝试使用 USB 调制解调器发送短信(我有一个 D-Link USB 调制解调器)。我刚找到 SmsLib,但我不知道如何使用 USB 调制解调器。我找到的例子是串行调制解调器,我没有找到任何
我想为网站管理员做一个简单的通知/新闻系统。 将这些消息(最多 250 个字符)存储在数据库中的最佳解决方案是什么? VARCHAR(255) 还是 TEXT? 谢谢 最佳答案 如果它们要短,定义一个
传入的 Type-0 SMS(请注意:“Type-0”是 ment,而不是“Class-0”)如何被 BroadcastReceiver 捕获? 背景:出于配置目的,发送 Type-0 SMS(带有
我在我的 android 应用程序中尝试了这段代码来获取 SMS 消息,但它不起作用,该应用程序没有出现在消息列表中。我应该添加一些东西来让它工作吗?
我在这里的两篇文章中找到了这段代码: String url = "content://sms/"; Uri uri = Uri.parse(url); getContentResolver().reg
有几个示例说明如何在具有高优先级的广播接收器中读取 SMS,然后调用 abortBroadcast() 以阻止 Intent 到达其他应用程序的广播接收器。但是,它们似乎都没有考虑到 Intent 数
我的 sendSms 函数有 try 和 catch block 。 Try block 是默认设备短信应用程序。 catch block 是设置为当前短信应用程序的其他短信应用程序,例如谷歌短信应用
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 7年前关闭。 Improve this qu
客户询问我们是否可以向订阅者发送免费短信。他们想知道是否有办法不向收件人收取入站短信费用? 我们与几个短信服务合作,我不认为这是一个选项。我的假设是您需要与每个运营商合作并从他们的系统发送消息才能完成
我是一名优秀的程序员,十分优秀!