回复短信:“compose_mode”= true vs false有什么区别?

时间:2012-01-09 19:44:52

标签: android sms

使用下面的代码或类似代码,“compose_mode”标志在回复短信方面做了什么?

示例代码:

Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("smsto:" + sendTo));
intent.putExtra("compose_mode", true); //What does this line do? What if it was "false"?
startActivity(intent);

1 个答案:

答案 0 :(得分:0)

从未尝试过,但发现:

// Exit the app once the SMS is sent
    intent.putExtra("compose_mode", true);

http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/result/ResultHandler.java?r=635