I have data.xlsx
file in Assets
folder and need to get its path to apply some library.
Found several solutions here but neither works for me. For example - File Not Found Exception In Xamarin program
I tried to use file:///android_asset/data.xlsx
but here is no file too.
I checked the path with: System.IO.File.Exists(filePath);
So how to get path to this file? Maybe I have to place it in different folder?
Update: possibly I can solve it this way: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
But I can't find where to place it.
Update: this question is about Java and this is unclear how to use this solution in Xamarin.Android: How to get the android Path string to a file on Assets folder?