I have tried various solution from stack overflow with no luck. What I want.
Try this:
try { Drawable icon = getContext().getPackageManager().getApplicationIcon("com.example.testnotification"); imageView.setImageDrawable(icon); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); }