Do you know what this code is doing?  It deserves a comment.  I think it is to handle the case where device store prefixes the filename with /sdcard/ or /sdcard_ext/.  We need to strip that off to match in deleteItem().  

Note the bug, though: this does not account for the case where startString is -1.  In that case, you can just return early.