The below method returns the Drawable object
public Drawable getIcon() {
return icon;
}
but when i put this method where Drawable is required, it gives me error saying "Required type int provided Drawable." like here in second argument of decodeResource method.
Bitmap b = BitmapFactory.decodeResource(mContext.getResources(), appInformations.get(position).getIcon());