0
是否有可能发送短信到设备或android手机,使短信在指定的时间(比如说30分钟)之后被删除? 我使用发送短信的代码是:`android:发送临时短信到手机
public class SMSTestActivity extends Activity {
/** Called when the activity is first created. */
String str, str1;
@Override
public void onCreate(Bundle savedInstanceState) {
final Button btn;
final EditText etb, etb1;
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
btn=(Button) findViewById(R.id.btn);
etb=(EditText) findViewById(R.id.txtMsg);
etb1=(EditText)findViewById(R.id.phNum);
btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v)
{
str=etb.getText().toString();
str1=etb1.getText().toString();
sendSms(str1, str);
}
});
}
private void sendSms(String phonenumber, String message)
{
SmsManager x=SmsManager.getDefault();
x.sendTextMessage(phonenumber, null, message, null, null);
}
public void display(View v)
{
final Button bt;
bt=(Button) v;
bt.setText("Hello");
}
}
我不认为它可能 –
自毁sms。?除非您在接收端安装了一个应用程序,该应用程序本身会在30分钟后删除短信,否则不可能。 –
那么我们如何才能从指定数字的设备中删除30分钟后的短信? – Sanghita