Advertisement
Ankhwatcher

FixProvider

Apr 3rd, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. public class FixProvider extends ContentProvider {
  2.     public static final String PROVIDER_NAME = "ie.appz.shortestwalkingroute.sqlite.FixProvider";
  3.     public static final Uri CONTENT_URI = Uri.parse("content://" + PROVIDER_NAME + "/" + FixOpenHelper.TABLE_NAME);
  4.  
  5.     SQLiteDatabase fixDB;
  6.     FixOpenHelper fixOpenHelper = new FixOpenHelper(getContext());
  7.     private static final int ROUTE = 1;
  8.     private static final int ROUTENO = 2;
  9.     private static final UriMatcher uriMatcher;
  10.     static {
  11.         uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
  12.         uriMatcher.addURI(PROVIDER_NAME, "route", ROUTE);
  13.         uriMatcher.addURI(PROVIDER_NAME, "route/#", ROUTENO);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement