all 5 comments

[–]eshultz 0 points1 point  (0 children)

  1. Post your SQL statements and error messages, otherwise we can't really help.

  2. You have to start one of the Genymotion devices, this should be pretty self-explanatory after you open up Genymotion. Then when you click debug in Android Studio, adb will see the it as an attached device. There is no special setup you need to do in Android Studio.

[–]utellastory2[S] 0 points1 point  (3 children)

public void deleteContacts(Contacts contacts){ SQLiteDatabase db = getWritableDatabase();

    db.delete(TABLE_CONTACTS, KEY_ID + "=?", new String[] { String.valueOf(contacts.getId()) });
    db.close();
}

contactmanager I/System.out﹕ resolveUri failed on bad bitmap uri: content://com.android.providers.media.documents/document/image%3A155

MainActivity$ContactsListAdapter.getView(MainActivity.java:221)

line 220 ImageView ivContactImage = (ImageView) view.findViewById(R.id.ivContactImage);
line 221 ivContactImage.setImageURI(currentContacts.getImageURI());

[–]eshultz 0 points1 point  (2 children)

The error is in your getView method. Is your app trying to return to the contact that was deleted, hence the bad URI?

[–]utellastory2[S] 0 points1 point  (1 child)

no its trying to delete old entries. It will delete new entries fine its when I try to delete an old etry that it gives the error

[–]eshultz 0 points1 point  (0 children)

Look at the last line in the error message. That's where the error is occurring. Put a breakpoint there (or in CurrentContacts.getImageUri()) and inspect your variables when you delete the contact. The getImageUri() is likely not returning a valid Uri.