Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to get the "Assets" path using Xamarin Forms?

$
0
0

Hi, I'm trying to assess a sqlite database that I created and put into the Assets folder under Xamarin.Android like this:

var db = new SQLiteConnection(dbPath); //this code is not written in Xamarin.Android

I'm not quite sure how do I find the required "dbPath" that directs toward the Assets folder, I've heard of using AssetManager but it doesn't seem to work since the code is not written under Xamarin.Androids. Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>