[android-developers] Re: sqlite database

2012-09-13 Thread Antoniuskas
http://cursodeandroid.blogspot.com.es/ You can tralate with google. El jueves, 13 de septiembre de 2012 06:52:52 UTC+2, mohammed Nuhail escribió: > > how to insert data once in sqlite database programatically ? > -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: sqlite database growing

2012-07-19 Thread RichardC
http://www.sqlite.org/limits.html On Wednesday, July 18, 2012 9:44:52 AM UTC+1, Atul Darne wrote: > > Hi, > > I have an app, which stores its data to sqlite db, and it keeps growing as > i insert records, i would like to know how much is the max limit for which > i can use db ? > > is size wil

[android-developers] Re: SQLite database on sdcard under android 2.2 : possible ?

2012-05-17 Thread chronogps
You are right. I found my problem (which is not in the sample source code I posted first (that's doesn't help !!!) File f1 = Environment.getExternalStorageDirectory(); Log.v(TAG, f1.getAbsolutePath()); returns \sdcard under 2.1 and \mnt\sdcard unders 2.2 And I hardcoded "\mn

[android-developers] Re: SQLite database on sdcard under android 2.2 : possible ?

2012-05-17 Thread RichardC
The following code just worked for me on the emulator (android 2.1): File f1 = Environment.getExternalStorageDirectory(); Log.v(TAG, f1.getAbsolutePath()); String dbFilePath = f1.getAbsolutePath() + File.separator + "extdir.db";

[android-developers] Re: SQLite database on sdcard under android 2.2 : possible ?

2012-05-17 Thread chronogps
I made a mistake : the problem is under Android 2.1 The log cat under 2.1 Emulator is : 05-17 19:43:06.536: E/Database(245): sqlite3_open_v2("/mnt/sdcard/chronogps.db", &handle, 6, NULL) failed 05-17 19:43:06.536: W/dalvikvm(245): threadid=15: thread exiting with uncaught exception (group=0x400

[android-developers] Re: SQLite database on sdcard under android 2.2 : possible ?

2012-05-17 Thread RichardC
Try in the 2.2 emulator and post the error log please. On Thursday, May 17, 2012 6:38:46 PM UTC+1, chronogps wrote: > > Hi, here is the sample code : > > try > { > File sdcard = Environment.getExternalStorageDirectory(); > String dbfile = sdcard.getAbsolutePath() + File.separator+ "MyRep" + > Fil

Re: [android-developers] Re: sqlite database on phone creash

2012-03-08 Thread harshita agrawal
I think emulator is getting old database whatever u have used before. so uninstall the application, run the new application.it'll be also crash.. There is problem in your code not in phone.can you tell me what's error coming. On Mon, Mar 5, 2012 at 9:23 PM, Chris Stratton wrote: > On Monday, Ma

Re: [android-developers] Re: sqlite database on phone creash

2012-03-08 Thread harshita agrawal
check Your database that it has data what u have entered.if it has entered value than check the value of cursor which are coming from query for fetching the value from database. On Tue, Mar 6, 2012 at 10:49 AM, Jagruti Sangani < jagruti.sang...@inextrix.com> wrote: > hello below is my code of dat

Re: [android-developers] Re: sqlite database on phone creash

2012-03-05 Thread Jagruti Sangani
hello below is my code of database that fetch value from database and fill in listview. when we click on tab then screen will crash the application. path = "/data/data/" + mContext.getApplicationContext().getPackageName() + "/databases/" + "call_history.db

[android-developers] Re: sqlite database on phone creash

2012-03-05 Thread moktarul anam
Hi Jagruti Sangani, *There is some problem in ur program. one problem may be ur not closing database after fetching data from database. * *better share ur database code * * * *Moktarul anam * * * On Monday, 5 March 2012 14:50:12 UTC+5:30, Jagruti Sangani wrote: > > hello, > i have use the sqlit

[android-developers] Re: sqlite database on phone creash

2012-03-05 Thread Jagruti Sangani
Hello, But when i run the application on emulator then there is no error so how can i know ..? On Monday, March 5, 2012 9:23:19 PM UTC+5:30, Chris Stratton wrote: > > On Monday, March 5, 2012 4:20:12 AM UTC-5, Jagruti Sangani wrote: >> >> i have use the sqlite databse for storing and retrive the

[android-developers] Re: sqlite database on phone creash

2012-03-05 Thread Chris Stratton
On Monday, March 5, 2012 4:20:12 AM UTC-5, Jagruti Sangani wrote: > > i have use the sqlite databse for storing and retrive the value during > application run.It is work perfectly when i run my apllication on > emulator but when i run my application on phone then when try to get > data from data

Re: [android-developers] Re: sqlite database storage data

2012-02-27 Thread abhijeet tomar
Narendra sir guide well ...it should be like that ...why are u not applying that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: sqlite database storage data

2012-02-27 Thread JJ
I just went through this and believe I can help. It's on the device. It's also in the virtual device, but it's a lot harder to get at (google UnYaffs) I tried to use UnYaffs and gave up after a few days, as it did not compile on my machine (it's C++). The easiest way is to root your phone. Once

Re: [android-developers] Re: sqlite database storage data

2012-02-24 Thread Narendra Singh Rathore
On Fri, Feb 24, 2012 at 8:53 PM, abdullah mohamed mohamed abdelrhim < eng.abod...@gmail.com> wrote: > i think the answer is in this link > > http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database > > On Feb 24, 3:57 pm, Jagruti Sangani > wrote: > > hello, > >

[android-developers] Re: sqlite database storage data

2012-02-24 Thread abdullah mohamed mohamed abdelrhim
i think the answer is in this link http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database On Feb 24, 3:57 pm, Jagruti Sangani wrote: > hello, > can anybody know the sqlite database at which place store the data > like in project or inpc at any where.because i

[android-developers] Re: SQLite database maximum size

2012-02-17 Thread HighFlyer
Version in emulator is 3.5.9 On 17 фев, 14:41, Marcelo Henrique wrote: > bug in SQlite 2.2. ? what version SQlite Database in 2.2? 2.3 ? 3.2 ? 4? > > 2012/2/17 HighFlyer > > > > > > > > > > > Yes, database opening also fails in emulator > > > On 17 фев, 13:46, Marcelo Henrique wrote: > > > will

[android-developers] Re: SQLite database maximum size

2012-02-17 Thread HighFlyer
Yes, database opening also fails in emulator On 17 фев, 13:46, Marcelo Henrique wrote: > will you Test in emulator ? > > 2012/2/17 HighFlyer > > > > > > > > > > > Hello to everyone. > > We have a big SQLite database file (~11.6 Mb) that ships with > > application. All is good except strange prob

[android-developers] Re: sqlite database

2011-11-09 Thread Jim Lindsey
I think that's a great idea. On Nov 8, 12:12 pm, Narendra Singh Rathore wrote: > hi frnds, I actually want to show my database table in tabular form in > my avd. Is there any simple way to achieve that. > I am currently using single class for database (no sqliteDBHelper), > with the help of curso

[android-developers] Re: Sqlite Database in the APK

2011-03-31 Thread Kostya Vasilyev
Responding back to list. 31.03.2011 2:00, fg1921 пишет: Yes, you can create yourdatabaseanywhere usingSQLitetools, and package it with your application (assets / raw). The first the app is run, open the packageddatabaseas a stream, and copy it into a file where your application has read/write a

[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Bret Foreman
If everyone is read-only then there should be no collisions. Read- locks and write-locks are different. A write-lock prevents everyone else from reading or writing. A read-lock prevents anyone else from writing but allows any number of other readers. This is true for schema reads and writes too, l

[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Albert
In most cases retrying would be simple, I guess I could try that and see what I get... In my case I take care of not multi-thread access the DB, so if I launch a new thread I wait for its callback until I do anything else on the DB. One question, if you open your DB as "READ-ONLY" would it matter

[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Bret Foreman
I think you should add logic that implements a backoff delay and retry when the table is not found. 100 mS between tries and 5 tries for a total of 1/2 second. In the rare case where it has to retry, the user should never notice. I have a lot of multi-threaded SQLite access and I had to implement

[android-developers] Re: SQLite Database Issues

2010-10-26 Thread Albert
Hi, still randomly see that the DB does not recognize one of my tables. The table is shipped along with the database and unlike others is not modified at any time. I can also see through my own tests that the way I open the database has a great impact on this. What is the recommended way to open t

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
> I have an app that does something similar and the way I ensure that > the copy is finished is that I have a special end-of-load (EOL) record > that goes into the table as the last item. My app does a select for > that EOL record each time it's launched. If the table isn't created > yet or the EO

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Bret Foreman
I have an app that does something similar and the way I ensure that the copy is finished is that I have a special end-of-load (EOL) record that goes into the table as the last item. My app does a select for that EOL record each time it's launched. If the table isn't created yet or the EOL is missin

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Umm that's unlikely as I launch a spinner that blocks any user action (it only takes a second or two to complete), and I certainly don't touch it while its doing that. Also this only happens at the start and were a new database version is available. On Oct 15, 3:26 pm, Mark Murphy wrote: > On Fr

Re: [android-developers] Re: SQLite Database Issues

2010-10-15 Thread Mark Murphy
On Fri, Oct 15, 2010 at 10:23 AM, Albert wrote: > Sorry if it was not clear. It does work most of the time for those > users (meaning the table is there), it just fails from time to time... > > I'm also shipping the database with the app and it gets copied to the > internal memory. Might it be th

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Sorry if it was not clear. It does work most of the time for those users (meaning the table is there), it just fails from time to time... I'm also shipping the database with the app and it gets copied to the internal memory. On Oct 15, 3:14 pm, Prakash Iyer wrote: > I think what Kumar means is t

Re: [android-developers] Re: SQLite Database Issues

2010-10-15 Thread Prakash Iyer
I think what Kumar means is that does this ever work for this user in question? One interpretation of your email is that it works for most users but fails for some. On Oct 15, 2010 10:07 AM, "Albert" wrote: > Well it "should" be very obvious but the table exits, im sure of that. > It just from tim

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Well it "should" be very obvious but the table exits, im sure of that. It just from time to time the database fails to recognise that is there... Cheers, Alberto On Oct 15, 3:34 am, Kumar Bibek wrote: > Well, the error is pretty obvious. There is no table with that name. If you > have created th

[android-developers] Re: SQLite Database (secure?)

2010-09-27 Thread DanH
Best thing to do to learn SQLite is to go to http://www.sqlite.org/ and just start reading. You can download a PC/Mac/Linux version of the executables and play around with SQLite on a desktop/laptop where experimenting is a lot easier. And if you want a GUI instead of the command-line SQLite inte

Re: [android-developers] Re: SQLite Database (secure?)

2010-09-27 Thread amir elmankabady
hi all ; i am a new android developer, can any one help me to learn more about sqllite and android application by pdf, websites, ...etc. and if their is any tool like sqlserver to help me to create tables ... etc thanks for ur help and best regards Amir El-Mankabady -- You received this message

[android-developers] Re: SQLite Database (secure?)

2010-09-27 Thread DanH
As Mark says, if you're wanting to protect the data from access by other than the owner, have the owner supply a password that is used to generate the key (basically the "seed" to getRawKey). If you want to prevent access by the owner, or want to protect the data without requiring a password, you

Re: [android-developers] Re: SQLite Database (secure?)

2010-09-27 Thread Mark Murphy
On Mon, Sep 27, 2010 at 4:14 AM, svebee wrote: > Hmm..tnx guys. I found this as William Ferguson suggested it. > > http://www.androidsnippets.org/snippets/39/ > > This seems to be secure, but, can someone get this code and read seed > value and therefore get access to whole database? If you are t

[android-developers] Re: SQLite Database (secure?)

2010-09-27 Thread svebee
Hmm..tnx guys. I found this as William Ferguson suggested it. http://www.androidsnippets.org/snippets/39/ This seems to be secure, but, can someone get this code and read seed value and therefore get access to whole database? On Sep 27, 2:52 am, DanH wrote: > There is an open source SQLite-cryp

[android-developers] Re: SQLite Database (secure?)

2010-09-26 Thread DanH
There is an open source SQLite-crypto package which I've used on Symbian and seen used on iPhone. But you basically have to load an entirely new version of SQLite onto the phone, and I suspect that on Android there's no way to switch it in in place of the existing version, so it wouldn't interface

[android-developers] Re: SQLite Database (secure?)

2010-09-26 Thread William Ferguson
You could always encrypt the data in the database. See http://stackoverflow.com/questions/2203987/android-database-encryption It would be nice to be able to encrypt the enture DB, but that doesn't appear to be possible. See http://code.google.com/p/android/issues/detail?id=191 On Sep 27, 9:16 am

[android-developers] Re: SQLite database question

2010-03-09 Thread Paul
I solved the problem, but I'm not sure why it was a problem. In case anyone is interested: A menu selection calls a dialog box which inserts the new row. It worked only the first time it was selected after the program starts. None of the variables change after the first time. I moved the identica

[android-developers] Re: SQLite database question

2010-02-23 Thread Paul
On further review, I think I am using the database object to insert a row. return mDb.insert(DATABASE_TABLE, null, initialValues); where mDb is the database returned by getWritableDatabase. Any ideas why this would work the first time, but not create a new row the next time? It returns the same ro

[android-developers] Re: SQLite database question

2010-02-23 Thread Paul
Thanks for the reply. I meant android.database.sqlite.SQLiteOpenHelper . I'm using: long android.database.sqlite.SQLiteDatabase.insert(String table, String nullColumnHack, ContentValues values) which returns a rowID for the new row. This works the first time but not subsequent. I'll try using th

[android-developers] Re: SQLite database question

2010-02-23 Thread Brion Emde
I'm confused with the terminology you're using. What is Data Base Helper? There are a couple of them: SQLiteOpenHelper; SQLiteQueryHelper and just the plain old database. Your SQLiteOpenHelper can create stuff when you create your database, like if you need a table pre-populated. The QueryHelper

[android-developers] Re: SQLite database location restriction

2009-11-13 Thread Nathan
On Nov 12, 11:50 pm, westmeadboy wrote: > Yes, I can see that is misleading. I'm sure they just mean that for > when you don't specify a File. > > Have you tried putting it on the sdcard? I have an app, used by > thousands of users, where a 20MB+ sqlite db file is located on the > sdcard. > > Hop

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread westmeadboy
Yes, I can see that is misleading. I'm sure they just mean that for when you don't specify a File. Have you tried putting it on the sdcard? I have an app, used by thousands of users, where a 20MB+ sqlite db file is located on the sdcard. Hope this helps! On Nov 13, 3:43 pm, Nathan wrote: > Yes,

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread Nathan
Yes, the method public static SQLiteDatabase openOrCreateDatabase (File file, SQLiteDatabase.CursorFactory factory) makes it sound like you can open an arbitrary filename. But the developer's guide http://developer.android.com/guide/topics/data/data-storage.html makes it sounds like you can't:

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread westmeadboy
http://developer.android.com/intl/en/reference/android/database/sqlite/SQLiteDatabase.html#openOrCreateDatabase(java.io.File, android.database.sqlite.SQLiteDatabase.CursorFactory) On Nov 13, 11:00 am, Nathan wrote: > It seems there is a hard restriction on where SQLite databases > reside. > > All

[android-developers] Re: SQLite Database Issue.

2008-03-28 Thread OmarFlores
Hi Android-Berry: Try: insert into form values(null,11,22,33,44,55,66,77); This would make sure that the _id gets automatically auto-incremented. Hope it helps, Omar Flores. On Mar 28, 10:53 am, Android-Berry <[EMAIL PROTECTED]> wrote: > Hi ALL, > > I open a data base and create table on my