I have a binary file in root of apk and I can check it by:
AssetManager assets = Context().getResources().getAssets();
assets.list("/")
It exists in returning list. But how can I open it?
Because when I try to open the file by using this code:
assets.open("/test.bin")
I faced by FileNotFoundException.
finally, I soloved it by using getClass().getResourceAsStream() instead of assetManager: