What is quick way to check if ImageView has bitmap assigned?

android

Solution

Use getDrawable() method, if it return null then nothing assigned

if( mImageView.getDrawable() != null){

  //Image Assigned

}else{
  //nothing assigned

}

Problem

I need to quickly and safely check if an android.widget.ImageView currently has a Bitmap of non zero value attached. What is a quick way to do this. Update my image view is set initially drawable set to "logo.png" so if I know that it is currently set to logo.png than I know that the bitmap has not yet been set. So how can I check if background drawable is currently logo.png Thanks

Original source

Related problems