Fixes Issue 7907 in the public bugs database...
Fixes Issue 7907 in the public bugs database (http://code.google.com/p/android/issues/detail?id=7907). The Javadoc comment for class `android.content.UriMatcher` had four issues: 1. The example calls to `addURI` should not be using a leading forward slash in the path parameter (reported by Ester Ytterbrink). 2. The sample code to construct a `UriMatcher` was incorrect because the `UriMatcher` constructor takes a parameter (reported by Ross Light). 3. The code example for using `match` was incorrect because it showed two parameters being passed, when `match` only takes one (reported by Ross Light). 4. The sample `getType` implementations were incorrect because `getType` takes a `Uri` object, not an array of `String`s. Change-Id: I560bff6f021c13cabf736f40ff0f47a205074291
Loading
Please register or sign in to comment