According to the documentation, Resources.getIdentifier()
Returns 0 if no such resource
was found. (0 is not a valid resource ID.)
UPDATE (after 5+ years thanks to Micer):
- API 29+: Resources.ID_NULL constant
- older API: ResourcesCompat.ID_NULL
According to the documentation, Resources.getIdentifier()
Returns 0 if no such resource
was found. (0 is not a valid resource ID.)
UPDATE (after 5+ years thanks to Micer):