Answer the question
In order to leave comments, you need to log in
How to delete line by line in Sugar ORM?
adding works great, but with the removal of the problem ...
contentView.findViewById(R.id.action).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Korz korz = new Korz(name, price,image);
korz.save();
Toast.makeText(getApplicationContext(), name+"Цена"+price, Toast.LENGTH_SHORT ).show();
}
});
contentView.findViewById(R.id.delite).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Izb contact = Izb.findById(Izb.class,String name);
contact.delete();
Answer the question
In order to leave comments, you need to log in
went the clumsy method through a name matching searchKorz.deleteAll(Korz.class, "name = ?", name);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question