Code example for Uri.Builder

Methods: authority

0
	 
	private StationInfoDBHelper SIDBHelper;
	private SQLiteDatabase theStationsDB;
	 
	public static Uri makeURI(String urlpath) {
		Builder b = new Uri.Builder();
		return b.authority(STNPROVIDER_AUTHORITY).path(urlpath).build();
	} 
 
	@Override 
	public boolean onCreate() { 
		SIDBHelper = new StationInfoDBHelper (getContext());
		theStationsDB = SIDBHelper.getReadableDatabase();
		if (SIDBHelper.isDBValid()) {
		} 
		return false; 
	} 
 
	@Override 
	public String getType(Uri uri) {
		// TODO Auto-generated method stub