I would like to retrieve a ContentURI with appended id and be able to strip the id out.
In other words, I have a Content URI such as:
org.mycontentproviderAuthority/path1/path2/3
and I would like to get
org.mycontentproviderAuthority/path1/path2/
Is it possible to do that preferably with Uri methods? I mean I guess I could use a String tokenizer to remove the last digit, but Id assume that a uri api for that would be safer.
I tried uri.getAuthority() + uri.getPath() but that gives me back the whole ContentUri.
You might use the following:
Usage: