I'm need to package a pre-populated database with my app so I am using the method mentioned a few times on here of releasing in the assets folder and then copying it to the databases folder at runtime. Specifically I am using this tutorial.
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-1/#comment-233 It basically just creates an empty db then uses a FileOutputStream to rewrite it with the packaged db in assets folder. Anyways, the empty db gets created fine and I can see it in the file browser. But when I try and open it using //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); and I get 06-30 19:05:04.696: INFO/WTF(708): java.io.FileNotFoundException: the- filepath file not found error. I know the path is correct and that the file already exists. Why would it be giving me the error? The file is located in /data/data/my_package/databases/db_name. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

