Back to project page android-chess.
The source code is released under:
MIT License
If you think the Android project android-chess listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jwtc.android.chess.puzzle; /*from w w w.j a v a2s . c o m*/ import android.content.UriMatcher; import android.net.Uri; import jwtc.chess.ChessPuzzleProvider; public class MyPuzzleProvider extends ChessPuzzleProvider{ static { AUTHORITY = "jwtc.android.chess.puzzle.MyPuzzleProvider"; CONTENT_URI_PUZZLES = Uri.parse("content://" + AUTHORITY + "/puzzles"); CONTENT_URI_PRACTICES = Uri.parse("content://" + AUTHORITY + "/practices"); sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); sUriMatcher.addURI(AUTHORITY, "puzzles", PUZZLES); sUriMatcher.addURI(AUTHORITY, "puzzles/#", PUZZLES_ID); sUriMatcher.addURI(AUTHORITY, "practices", PRACTICES); sUriMatcher.addURI(AUTHORITY, "practices/#", PRACTICES_ID); } }