Code example for Matcher

Methods: find, group

0
			 
		} 
		if (h != null) {
			try { 
				Matcher matcher = p.matcher(h);
				if (matcher.find()) {
					specifiedHeight = Integer.parseInt(matcher.group(1));
				} 
			} catch (Exception e) { }
		} 
	} 
 
	public void setCover(int coverResource) {
//		Log.d(TAG, "setCover(" + coverResource + ")"); 
		setCover(BitmapFactory.decodeResource(getContext().getResources(), coverResource));
	} 
 
	public void setCover(Bitmap cover) {
		mPoster = cover;
		mPosterAR = (float) cover.getHeight() / (float) cover.getWidth();
//		Log.d(TAG, "setCover(), AR = " + mPosterAR);