public static boolean isDrawableImage(String imagePath){
  return imagePath.startsWith("@drawable/");
}

public static boolean isDrawableImage ( String imagePath ) { return imagePath . startsWith ( "@drawable/" ) ; }
returns whether the path represents a drawable resource .
