[android-developers] Re: Using my own SQLite database

2009-03-04 Thread burton miller
the problem is not whether you can write to it, it is WHEN you can write to it. you can do it for testing, but if you want to INSTALL a db that way, then you must first package it with your application, which means the space is used TWICE. the alternative is to download it after installation - i

[android-developers] Re: Using my own SQLite database

2009-03-03 Thread gymshoe
While you can read other databases, if you want to update it, you may have problems because the directory: /data/data/YOUR_PACKAGE/ databases/ does not give permission to write. (It has permissions of drwxrwx-- x). Jim On Mar 3, 12:12 am, fluxa wrote: > Check out this post > herehttp://www.r

[android-developers] Re: Using my own SQLite database

2009-03-03 Thread fluxa
Check out this post here http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ hope be helpful for you. On Feb 14, 3:51 am, Moons wrote: > Hello Android Developers, > > I'm new to Android, I just finished the Notepad Tutorials, where we > can createSQLiteDataba

[android-developers] Re: Using my own SQLite database

2009-02-23 Thread rancano
How can i copy my database file to this directory with the eclipse (packaging the project) On 23 feb, 04:00, 冰咖啡不加糖 wrote: > hi,gus. > let me tell you the db path. > /data/data/YOUR_PACKAGE/databases/ > just copy your db file to that directory. > > i successly copy note_pad.db to that dir, and s

[android-developers] Re: Using my own SQLite database

2009-02-22 Thread 冰咖啡不加糖
i know the reason. there is max size 1048576bytes 02-23 11:11:55.037: DEBUG/asset(16273): Data exceeds UNCOMPRESS_DATA_MAX (37623808 vs 1048576) it's too small. On 2月23日, 上午11时00分, 冰咖啡不加糖 wrote: > hi,gus. > let me tell you the db path. > /data/data/YOUR_PACKAGE/databases/ > just copy your db f

[android-developers] Re: Using my own SQLite database

2009-02-22 Thread 冰咖啡不加糖
hi,gus. let me tell you the db path. /data/data/YOUR_PACKAGE/databases/ just copy your db file to that directory. i successly copy note_pad.db to that dir, and successly read the data in note_pad.db using SQLiteDatabase API. but ,when i copy another db file which is larger (about 16Mb), i encoun

[android-developers] Re: Using my own SQLite database

2009-02-20 Thread burton miller
yeah - same problem here. i determined that (2 months ago) it was impossible. here are your options: 1) copy the db from your apk (as a raw resource) to the file system at run time, and access it there - which doubles the size of your db footprint. 2) download your db upon installation my db

[android-developers] Re: Using my own SQLite database

2009-02-18 Thread mcssys
I have the same need. Any help would be greatly appreciated. And... 1. When an application is installed on a device, is the same directory structure that is used on the Emulator duplicated on the device. When I try to view the device directory structure, I get a "opendir failed, permission d