I am developing an app for medical students which includes database. For database I have used sqilte. my app is running fine on editor and even after building for PC. But for android database connection is not establishing. I have checked for android my code is working fine till the path and it is getting correct path of database but cannot establish the connection.
here is my code
conn = "URI=file:" + System.IO.Path.Combine(Application.streamingAssetsPath,"anatomy3D.s3db"); //Path to database.
t.text = conn;
dbconn = (IDbConnection)new SqliteConnection(conn);
dbconn.Open(); //Open connection to the database.
t.text = t.text + "\n database opened";
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
How to use #extension with GLSL shader
How do I get Internet Permission on Android M with Unity 5.3.5
Activity Indicator Centered
Realistic metalic on mobile
Accurate but fast car reflections on mobile