delete.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
Cursor c= myDB.rawQuery("DELETE FROM contacts where id_ctc='"+t+"'",null);
Intent i = new Intent(Dial.this,TabLayout.class);
startActivity(i);
}
});
应用程序停止工作(不幸的是,Tablayout 有 stopprd。)