Code example for ImageSpan

0
		final Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight() + 1,
				Config.ARGB_8888);
		final Canvas c = new Canvas(b2);
		c.drawBitmap(b, 0, 0, new Paint());
		builder.setSpan(new ImageSpan(context, b2,
				DynamicDrawableSpan.ALIGN_BOTTOM), 0, 1,
				Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		return builder;
	} 
 
	public int getTransportState() { 
		return mTransportState;
	} 
 
	public int getTransportType() { 
		return mTransportType;
	} 
 
	public int getUnreadMessages() { 
		return mUnreadMessages;