Hi. I have a question about resources in on-demand...
# android
a
Hi. I have a question about resources in on-demand feature modules. Please check thread.
😶 3
If you want to access any resource in feature module, docs states that I would need to use package as appPackage.feature-module https://developer.android.com/guide/playcore/feature-delivery#resource-uri It feature modules name I could get from the given method:
resources.getResourcePackageName(resId)
Now, what I need instead is use method like getIdentifier() where we pass String and package name. This package name if I pass the feature module one, will give me correct id which is understandable. But how to get the feature module name without passing resource id? (We don’t have resource id at that point of code run) https://developer.android.com/reference/android/content/res/Resources#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String)
Is there any way we can resolve the string to resource getIdentifier in feature module also?
g
This is not kotlin specific