Update Contacts.java

fixed, 

NOTE: i forget put

editor.putInt("counter", nextIndex);

before 

editor.commit();
Merge pull request #2 from rnrneverdies/patch-2

Update Contacts.java