android 验证短信是否发送成功
2012-12-04 20:40:33 来源:WEB开发网核心提示:@Overridepublic void onReceive(Context context, Intent intent) {// TODO Auto-generated method stubswitch (getResultCode()) { case -1: Toast.makeText(context, &q
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
switch (getResultCode()) {
case -1:
Toast.makeText(context, "短信发送成功", Toast.LENGTH_SHORT).show();
break;
case 0:
Toast.makeText(context, "发送失败", Toast.LENGTH_LONG).show();
break;
default:
break;
}
}
}</pre><br>
<br>
<pre></pre>
</pre>
更多精彩
赞助商链接