不知道为什么获取 Illgal Argument Exception 会导致 android 代码崩溃。任何帮助将不胜感激....
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView tv=(TextView)findViewById(R.id.test_id); tv.append("\n");
Uri u=Uri.parse("content://sms/inbox");
try{
Toast.makeText(this, getContentResolver().delete(u, "_id like ?", new String[]{"2"})+"", Toast.LENGTH_LONG).show();
}catch(Exception e){
Toast.makeText(this, e.toString(), Toast.LENGTH_LONG).show();
}
}