How to determine the current directory on the mobile device

I need to determine current program directory, from which it is started. Why did I need this Well, I'm trying to connect to sql database, that is placed in the same directory as the program itself. But when I prepare connection string "Data Source=MyDB;" - SqlConnection.Open() returns exception, cannot find database MyDB. So I decided to append a directory name to database name, but the program on a mobile device may be placed anywhere, depending on program version and OS, therefore I cannot use current program path as a constant to use it.

How can I decide this problem



Answer this question

How to determine the current directory on the mobile device