0
我有一個使用短信操作的代碼。這裏是我有的代碼: -android的短信息選項
public void onClick(View v)
{
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("smsto:"+data.phno));
//intent.putExtra("address", data.phno);
intent.putExtra("sms_body","Some Stuff.");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
}
在這種情況下,用戶被髮送到撰寫短信屏幕。我想知道是否有任何其他方式,我可以發送短信給用戶,而不會提示用戶的Android設備,也有可能知道是否發送短信或以上的情況下,也是我想要的情況下知道。提前致謝。
只是使用SmsManager,它無形中發送短信 – Fattie 2014-06-24 14:22:42