G gadgetmonster Active Member Licensed User Longtime User Apr 8, 2013 #1 Hi All The firs thing my app does is check the existence of the db file and if it doesn't exist, it creates it. This works fine on my device but not on the emulator. Code: Copy File.MakeDir(File.DirRootExternal, "MyApp/database") If File.Exists(File.DirRootExternal, "MyApp/database/MyApp.db") = False Then dbSQL.Initialize(File.DirRootExternal, "MyApp/database/MyApp.db", True) ... End if It falls over on the Initialise line with 'Could not open database' exception. Any ideas?
Hi All The firs thing my app does is check the existence of the db file and if it doesn't exist, it creates it. This works fine on my device but not on the emulator. Code: Copy File.MakeDir(File.DirRootExternal, "MyApp/database") If File.Exists(File.DirRootExternal, "MyApp/database/MyApp.db") = False Then dbSQL.Initialize(File.DirRootExternal, "MyApp/database/MyApp.db", True) ... End if It falls over on the Initialise line with 'Could not open database' exception. Any ideas?
stevel05 Expert Licensed User Longtime User Apr 8, 2013 #2 Did you create an SD card for the emulator? You need to enter the required size when creating in the AVD. Upvote 0
Did you create an SD card for the emulator? You need to enter the required size when creating in the AVD.