title: Difference between: getPathSegments().get(1) and / vs getLastPathSegment()
body: <p>I've seen both being used for getting the ID in a content provider.</p>
  
  <pre><code>String id = uri.getLastPathSegment();
  String id = uri.getPathSegments().get(1);
  </code></pre>
  
  <p>Is there a difference? and if so, is one better / better practice than the other?</p>
  
  <p>Or in which situation would you use one and not the other?</p>