[flexcoders] SQL lite database and Tablet problem
Hi friends I developed a Air mobile application with flex sdk 4.6.0. I test it in Flash Builder 4.6 simulators in windows.it works fine. but when I install the apk and test it in Samsung Galaxy Tab 10.1 , the sqllite functions seems do not work I save the sqllite database in the following path. I guess the tablet maybe do not allow me to use path. var file:File = File.documentsDirectory.resolvePath(testDb.db); Please help me if you have idea for this. Thanks a lot Mark
Re: [flexcoders] SQL lite database and Tablet problem
Hi Mark, I think the problem comes from your path. When using documentsDirectory, Flex will find the testDb.db in default folder: C:\Documents and Settings\userName\My Documents (please read this article: http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_03.html) It will fail if no folder like this be found in your Samsung Galaxy In my opinion, you should try with static link first: For example, var file:File = new File(C:/YOURFOLDER/testDb.db); Good luck Mark Yours sincerely, Khanh Tran --- On Wed, 3/28/12, markflex2007 markflex2...@yahoo.com wrote: From: markflex2007 markflex2...@yahoo.com Subject: [flexcoders] SQL lite database and Tablet problem To: flexcoders@yahoogroups.com Date: Wednesday, March 28, 2012, 12:23 PM Hi friends I developed a Air mobile application with flex sdk 4.6.0. I test it in Flash Builder 4.6 simulators in windows.it works fine. but when I install the apk and test it in Samsung Galaxy Tab 10.1 , the sqllite functions seems do not work I save the sqllite database in the following path. I guess the tablet maybe do not allow me to use path. var file:File = File.documentsDirectory.resolvePath(testDb.db); Please help me if you have idea for this. Thanks a lot Mark
Re: [flexcoders] SQL lite database and Tablet problem
Mark- Perhaps try applicationStorageDirectory instead of documentsDirectory. -Jeff On 3/28/2012 09:23, markflex2007 wrote: Hi friends I developed a Air mobile application with flex sdk 4.6.0. I test it in Flash Builder 4.6 simulators in windows.it works fine. but when I install the apk and test it in Samsung Galaxy Tab 10.1 , the sqllite functions seems do not work I save the sqllite database in the following path. I guess the tablet maybe do not allow me to use path. var file:File = File.documentsDirectory.resolvePath(testDb.db); Please help me if you have idea for this. Thanks a lot Mark