I am trying to use this library in my app. I successfully linked it with my database and set all swipe to remove and undo operations. But I am stuck with a major problem.
My listview has strings which open respective activities, when I compare them and try to open new activity, it just doesnt work. While simple code in onitemclicklistener
works.
lv.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,int position, long _id) {
String values = adapter.getItem(position);
Log.d("List item", values);
// TODO Auto-generated method stub
if(values == "21 Guns") {
Toast.makeText(Favorites.this, "found it", Toast.LENGTH_LONG).show();
}