Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FixProvider extends ContentProvider {
- public static final String PROVIDER_NAME = "ie.appz.shortestwalkingroute.sqlite.FixProvider";
- public static final Uri CONTENT_URI = Uri.parse("content://" + PROVIDER_NAME + "/" + FixOpenHelper.TABLE_NAME);
- SQLiteDatabase fixDB;
- FixOpenHelper fixOpenHelper = new FixOpenHelper(getContext());
- private static final int ROUTE = 1;
- private static final int ROUTENO = 2;
- private static final UriMatcher uriMatcher;
- static {
- uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
- uriMatcher.addURI(PROVIDER_NAME, "route", ROUTE);
- uriMatcher.addURI(PROVIDER_NAME, "route/#", ROUTENO);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement