How do I match the root of a content URI in Android 4.3? <p>I'd like to return some results when someone hits the root of my ContentProvider, which has worked fine up until now. As of Android 4.3, however, I cannot match the root! Here's everything I've tried, and nothing will work. This returns -1 under 4.3, but not under earlier versions.</p> <p>How do I match that URI?</p> <pre><code>private int testMatch(){ UriMatcher mUriMatcher = new UriMatcher(0); mUriMatcher.addURI("com.someone.app.provider.thingy", "/#", 0); mUriMatcher.addURI("com.someone.app.provider.thingy", "/", 1); mUriMatcher.addURI("com.someone.app.provider.thingy", "", 2); mUriMatcher.addURI("com.someone.app.provider.thingy", "/*", 3); mUriMatcher.addURI("com.someone.app.provider.thingy", "#", 4); mUriMatcher.addURI("com.someone.app.provider.thingy", "*", 5); mUriMatcher.addURI("com.someone.app.provider", "thingy", 6); Uri uri=Uri.parse("content://com.someone.app.provider.thingy"); return mUriMatcher.match(uri); } </code></pre>