不知道为什么得到错误的参数异常崩溃的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();
}
}
我们可以有堆栈跟踪吗?这将非常有帮助。 – michaelb958 2013-05-08 01:22:09