I found that, unlike the documentation, BitmapDescriptorFactory.fromAsset (String) does not return null if the specified asset does not exist. I am currently doing work where I preload the list of assets that exist using AssetManager.list (""). Then, for the asset name in question, I look at the cached list of assets to determine if the specified asset exists.
This was the least resource-intensive approach I could use, since I could not depend on zero return when the resource did not exist.
Blake
source share