fromResource

open fun fromResource(context: Context, resId: Int): Callable<InputStream>

Creates an InputStream from an Android resource ID.

Throws

for resources that can't be loaded.