[android-developers] Re: Installing APK + DB

2011-07-13 Thread hectordu...@yahoo.com
hi guys, thanks for comments, i've strongly reduced the size of my DB :-) and thigs are better now! btw, 1 . I am working in improving the activity lifecycle and i am getting also a message like appl is not responding, force quit OR WAIT. by typing WAIT the process continues ... is there a

Re: [android-developers] Re: Installing APK + DB

2011-07-11 Thread lbendlin
Or just include it as a raw resource (give the file a silly name so Android doesn't think it is a database) and then upon the initial program run/ database version update use your copy routine to place the (large) database stub where you need it. -- You received this message because you are

[android-developers] Re: Installing APK + DB

2011-07-10 Thread hectordu...@yahoo.com
hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. i have my DB in the assets folder and first time is copied to the data/ data/APPL/databases directory. i wonder if the 1MB restriction for the assets folder is still an application constraint ? i

[android-developers] Re: Installing APK + DB

2011-07-10 Thread hectordu...@yahoo.com
hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. i have my DB in the assets folder and first time is copied to the data/ data/APPL/databases directory. i wonder if the 1MB restriction for the assets folder is still an application constraint ? i

Re: [android-developers] Re: Installing APK + DB

2011-07-10 Thread Nikolay Elenkov
On Mon, Jul 11, 2011 at 9:29 AM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: hey guys, i am getting problems, again, with the DB; it happens when the DB size is great than 1MB. You have to split your data into 1MB chunks and merge those when copying the database. At some point (soon?)

[android-developers] Re: Installing APK + DB

2011-07-08 Thread hectordu...@yahoo.com
hi kostya, i get your point, i'll try to find the bug; btw, if you have any advice on how to deal with it, i willl apreciate it very much. soo, i will post what happened! regards hector pd.about the double click conflict, i used setOnLongClickListener instead of onDblClick. On Jul 7, 1:10 

[android-developers] Re: Installing APK + DB

2011-07-07 Thread hectordu...@yahoo.com
your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... YEAH ! it is still crashing but i don't know exactly when :-( but ot works fine by pressing HOME, or returning to the

Re: [android-developers] Re: Installing APK + DB

2011-07-07 Thread Kostya Vasilyev
Hector, What I was hinting at (sorry if I was being too oblique) is that: 1 - There is a bug in your code when the activity gets recreated for configuration changes; 2 - The most frequent case of a configuration change is the screen orientation change; 3 - There are other cases configuration

[android-developers] Re: Installing APK + DB

2011-07-06 Thread hectordu...@yahoo.com
no kostya, by the moment it thasn't crash for that ... know i am geting conflicts with single and double click on a button .. :-( it looks like when i make a double click also tryes to execute some associates methods to single click ... plase help :-) hector On Jul 5, 1:33 pm, Kostya

[android-developers] Re: Installing APK + DB

2011-07-05 Thread NikolaMKD
The application will be complete if you ship the database as RESOURCE. And what about where will be database? That's irrelevant question as long as you have exact path. For example I have shipped a db in application in folder data/data/files, I specified the same path to the app, and that's it. As

[android-developers] Re: Installing APK + DB

2011-07-05 Thread NikolaMKD
BTW: Regarding my previous I forgot to say. Your db path (data/data/ MYAPPL/databases ) is perfectly reasonable and right. On Jul 4, 3:58 am, hectordu...@yahoo.com hectordu...@yahoo.com wrote: there is something i don't understand ... if the application works fine into the emulator: --- does

Re: [android-developers] Re: Installing APK + DB

2011-07-05 Thread Pepijn Van Eeckhoudt
On 04/07/2011 03:19, NikolaMKD wrote: Save it as resource in raw folder, load it as resource then try to copy it into app path. It does not need to be inside /databases folder. It can be anywhere (SDcard not recommended) Why is copying onto the sdcard not recommeded? Pepijn -- You received

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
thanK you guys, finallly I followed this link and works: www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ i had some problems with the package name, which throws in error copying the database, and then with a table which wasn't found in the schema. it wasn't

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
thanK you guys, finallly I followed this link and works: www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ i had some problems with the package name, which throws in error copying the database, and then with a table which wasn't found in the schema. it wasn't

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
about the screen orientation, i have included this line in the manfest: android:configChanges=orientation|keyboardHidden ... works :-) On Jul 5, 12:42 pm, hectordu...@yahoo.com hectordu...@yahoo.com wrote: thanK you guys, finallly I followed this link and

Re: [android-developers] Re: Installing APK + DB

2011-07-05 Thread Kostya Vasilyev
That's good, but your application is still likely crash if you leave it by pressing Home, change the phone's language in Settings, and return to the app (via launcher icon or recent app list)... 05.07.2011 22:13, hectordu...@yahoo.com пишет: about the screen orientation, i have included this

[android-developers] Re: Installing APK + DB

2011-07-03 Thread hectordu...@yahoo.com
Mark, yes, i agree, the process is not right ... may you share with me a link which help me including my database into the apk file ? thanks in advance. On 3 jul, 17:59, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com hectordu...@yahoo.com

[android-developers] Re: Installing APK + DB

2011-07-03 Thread NikolaMKD
Save it as resource in raw folder, load it as resource then try to copy it into app path. It does not need to be inside /databases folder. It can be anywhere (SDcard not recommended) Thats how you ship external SQLiteDatabase. Google it how to ship external sqlite database android, there is sample

[android-developers] Re: Installing APK + DB

2011-07-03 Thread hectordu...@yahoo.com
there is something i don't understand ... if the application works fine into the emulator: --- does not mean that it will work into de real device ? --- does not mean that the apk file is complete ... including the database ? --- directory: data/data/MYAPPL/databases is or not the right place for