this is working delete but there is problem in data fetching after deleting the data and also problem comes data saving after deleting data
database class
public void delete_byID(long id1)
{
Log.d("unicorn","in DELETE");
db.delete(DATASAVE, _id+"-1="+id1, null);
}
in activity i want to delete from profile activity and return to second activity
delete.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
Intent i = new Intent(ProfileActivity.this,SecondActivity.class);
startActivity(i);
d1.delete_byID(id4);
}
});