private void shareContent(){
Intent target=
new Intent(Intent.ACTION_SEND);
target.setType("text/*");
target.putExtra(Intent.EXTRA_TEXT, content);
Intent intent=
Intent.createChooser(target, "请选择");
startActivity(intent);
}
/**实现内容的删除*/
private void deleteContent(){
new AlertDialog.Builder(this)
.setTitle("标题")
.setMessage("确定删除吗")
.setPositiveButton("确定",new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dao.delete("notetab", _id);
finish();
}
})
.setNegativeButton("取消", null)
.create().show();