I referred some similar questions on SO but none of them deals with IO
.
I had used the same code in java when I used Eclipse
. That time it worked.
But now I try to use this code in Mono for Android
(C#), it doesn't work.
I'm trying to run this code to create an InputStream
:
InputStream myInput =ctx.Assets.Open(DATABASE_NAME + ".db");
But it is giving me compile-time error : Cannot implicitly convert type 'System.IO.Stream' to 'Java.IO.InputStream'
There is a direct function to copy a file from assets to device memory but that requires source and destination path.
How do I get the source Path???
As I'm absolute beginner to Mono for Android
, any help appreciated.