1 | String s = id.toString();↵ | | 1 | String s = location.toString();
↵
|
|
2 | // TODO: @author fdietz replace with regular expression↵ | | 2 | // TODO: @author fdietz replace with regular expression
↵
|
3 | int contactIndex = s.lastIndexOf('/');↵ | | 3 | int activityIndex = s.lastIndexOf('/');
↵
|
4 | String contactId = s.substring(contactIndex + 1, s.length());↵ | | 4 | String activityId = s.substring(activityIndex + 1, s.length());
↵
|
5 | int folderIndex = s.lastIndexOf('/', contactIndex - 1);↵ | | 5 | int folderIndex = s.lastIndexOf('/', activityIndex - 1);
↵
|
6 | String folderId = s.substring(folderIndex + 1, contactIndex);↵ | | 6 | String folderId = s.substring(folderIndex + 1, activityIndex);
↵
|
7 | int componentIndex = s.lastIndexOf('/', folderIndex - 1);↵ | | 7 | int componentIndex = s.lastIndexOf('/', folderIndex - 1);
↵
|
8 | String componentId = s.substring(componentIndex + 1,↵ | | 8 | String componentId = s.substring(componentIndex + 1,
↵
|
9 | folderIndex); | | 9 | folderIndex);
|