title: Android Content Provider Identical URI's not matching
body: <p>Am I misunderstanding something here? I'm trying to implement a ContentProvider in Android and for some reason the calling URI is not being matched.
  In my ContentProvider I define the following:</p>
  
  <pre><code>private static final int GET_COURSES = 100;
  public static final Uri COURSES_URI = Uri.withAppendedPath(CONTENT_URI, CourseTable.NAME);
  private static final UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);
  static 
  {
      matcher.addURI(AUTHORITY, COURSES_URI.toString(), GET_COURSES);
  }
  </code></pre>
  
  <p>Then, in my query call:</p>
  
  <pre><code>public Cursor query(Uri uri, ...)
  {
      int type = matcher.match(uri);
      .
      .
  </code></pre>
  
  <p>Here, type is always -1... In the debug window I've viewed both the passing in uri and COURSES_URI and the string representations are identical... </p>
  
  <p>Any suggestions? </p>
  
  <p>Thanks</p>
  
  <p>Update:</p>
  
  <p>I call the Content Provider using:</p>
  
  <pre><code>new CursorLoader(this, CoursesProvider.COURSES_URI, null, null, null, null);
  </code></pre>
  
  <p>... this is boggling my mind... just got uri.equals(COURSES_URI) == true, so something must be incorrect in the UriMatcher</p>