[android-developers] sqlite database

2012-09-12 Thread mohammed Nuhail
how to insert data once in sqlite database programatically ? -- 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 email to

Re: [android-developers] sqlite database

2012-09-12 Thread Sanandiya Rajesh
use Attach Java class. when u like to insert add following code in your java file. DatabaseAdapter db = new DatabaseAdapter(getApplicationContext()); dba.open(); dba.insertLevel(1,anything); dba.close(); On Thu, Sep 13, 2012 at 10:20 AM, mohammed Nuhail nuhail...@gmail.comwrote: how to

[android-developers] sqlite database growing

2012-07-19 Thread Atul Darne
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 will matter? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] sqlite database growing

2012-07-19 Thread Francisco M. Marzoa Alonso
Afaik there is no explicit limit, so it can grow while there is space on the device. El 19/07/2012 11:09, Atul Darne atulmaharash...@gmail.com escribió: 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

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

2012-05-17 Thread chronogps
Hi, here is the sample code : try { File sdcard = Environment.getExternalStorageDirectory(); String dbfile = sdcard.getAbsolutePath() + File.separator+ MyRep + File.separator + Mydatabase.db; db = SQLiteDatabase.openDatabase(dbfile, null,SQLiteDatabase.CREATE_IF_NECESSARY); }

[android-developers] sqlite database on phone creash

2012-03-05 Thread Jagruti Sangani
hello, 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 database then it will crash the application.So anybody know hot to use the

Re: [android-developers] sqlite database storage data

2012-02-25 Thread Jagruti Sangani
I have create the database using below code. db=openOrCreateDatabase(sip_db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the

Re: [android-developers] sqlite database storage data

2012-02-25 Thread Jagruti Sangani
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the

Re: [android-developers] sqlite database storage data

2012-02-25 Thread Narendra Singh Rathore
Hey Jagruti, my suggestion solved your problem or not? -- 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 email to

Re: [android-developers] sqlite database storage data

2012-02-25 Thread Jagruti Sangani
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the

Re: [android-developers] sqlite database storage data

2012-02-25 Thread Jagruti Sangani
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the

[android-developers] sqlite database storage data

2012-02-24 Thread Jagruti Sangani
hello, can anybody know the sqlite database at which place store the data like in project or inpc at any where.because i have use the sqlite database store the data on my pc its work perfect.but when this project run on other pc then no data found from table.so can anybody give me reply at where

[android-developers] sqlite database storage data

2012-02-24 Thread Jagruti Sangani
hello, i want to know the sqlite database at where store the data?It is on application device or on the pc.Because i need the data will be remain with project. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] sqlite database storage data

2012-02-24 Thread Chandra Sekhar
On Sat, Feb 25, 2012 at 11:05 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello, i want to know the sqlite database at where store the data?It is on application device or on the pc.Because i need the data will be remain with project. -- for that u need to follow some steps:

Re: [android-developers] sqlite database storage data

2012-02-24 Thread Jagruti Sangani
That i know but that data will remain with my project or on other pc i need to create database and insert data again.? On Sat, Feb 25, 2012 at 11:24 AM, Chandra Sekhar chandra4...@gmail.comwrote: On Sat, Feb 25, 2012 at 11:05 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello,

Re: [android-developers] sqlite database storage data

2012-02-24 Thread rathod kantilal
your database file is store in following path. data/data/database/*yourdatabasename* no thanks -- 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

Re: [android-developers] sqlite database storage data

2012-02-24 Thread Jagruti Sangani
that is also i know but it is in our project part or consider as a pc? On Sat, Feb 25, 2012 at 11:45 AM, rathod kantilal rathod3...@gmail.comwrote: your database file is store in following path. data/data/database/*yourdatabasename* no thanks -- You received this message

Re: [android-developers] sqlite database storage data

2012-02-24 Thread Narendra Singh Rathore
On Sat, Feb 25, 2012 at 11:44 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: That i know but that data will remain with my project or on other pc i need to create database and insert data again.? Hey Jagruti, I have solution for you. You can store your database in assets folder, n

Re: [android-developers] sqlite database storage data

2012-02-24 Thread rathod kantilal
if you want to external storage (i.e. your database in pc or database server), you use web serivce. no thanks -- 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

[android-developers] SQLite database maximum size

2012-02-17 Thread HighFlyer
Hello to everyone. We have a big SQLite database file (~11.6 Mb) that ships with application. All is good except strange problem on several devices (Samsung Galaxy S and Galaxy 580, both running Android 2.2). System can't open such db file. Logcat poor with only one error message: sqlite

Re: [android-developers] SQLite database maximum size

2012-02-17 Thread Marcelo Henrique
will you Test in emulator ? 2012/2/17 HighFlyer aleks...@gmail.com Hello to everyone. We have a big SQLite database file (~11.6 Mb) that ships with application. All is good except strange problem on several devices (Samsung Galaxy S and Galaxy 580, both running Android 2.2). System can't

[android-developers] SQLite database sync over usb to SQLServer

2012-01-11 Thread AndyM
Hello I am totally new to android. I have been given the task of creating a simple Android Application that stores data on the devices database. I assume it will be SQLite database?. The requirement is then is to connect the device via a usb cable to a pc hosting a SQLServer database. Data

Re: [android-developers] sqlite database

2011-11-09 Thread Abhijeet Kinjawadekar
Hey narendra its simple just google for android dynamically add rows to table layout http://technotzz.wordpress.com/2011/11/04/android-dynamically-add-rows-to-table-layout/ or http://bit.ly/uSm16G Regards, Abhijeet On Tue, Nov 8, 2011 at 11:42 PM, Narendra Singh Rathore

Re: [android-developers] sqlite database

2011-11-09 Thread Narendra Singh Rathore
Thnx buddiesn my almost prob solved. But, even now, a li'l problem is still left that how to add my DB table column values to that table column...Please direct me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] sqlite database

2011-11-09 Thread Narendra Singh Rathore
Thnx a lot friends, I achieved my goal.. With Regards.. Narendra -- 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 email to

[android-developers] sqlite database

2011-11-08 Thread Narendra Singh Rathore
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 cursor object. Cursor cur; tv.setText(cur.getString(0)+ +cur.getString(1));

Re: [android-developers] sqlite database

2011-11-08 Thread Pawan Singh Rathore
Try with table layout, And fill different colors for Table and Table row, set margins so that it will show like table with lines. You can easily google it. Thanks BR, Pawan Rathore On Tue, Nov 8, 2011 at 11:42 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: hi frnds, I actually

[android-developers] SQLite database directory when device connected?

2011-08-10 Thread Duygu Kahraman
Hi all; one of my app i want to use sqllite.I create database but when DEVİCE CONNECT to pc, i cant see my database because data directory couldn open. /data/data/your.package.here/databases just work emulator.How can i see my database when device connected. Thanks for advice. Duygu Kahraman

Re: [android-developers] SQLite database directory when device connected?

2011-08-10 Thread Mark Murphy
On Wed, Aug 10, 2011 at 1:40 PM, Duygu Kahraman duygu.kahram...@gmail.com wrote: one of my app i want to use sqllite.I create database but when DEVİCE CONNECT to pc, i cant see my database because data directory couldn open. /data/data/your.package.here/databases just work emulator.How can i

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Brad Stintson
Thanks. I created foreign key, but when I try to insert values using m application it throws *android.database.sqlite.SQLiteConstraintException: error code* * 19: constraint failed.* * * But if I insert values manually usiing console, then values are inserted properly. Why is it so? **2011/3/13

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Kostya Vasilyev
Most likely, it means you didn't specify a value for the foreign key when inserting into the child table (ref_id_value in the snippet below). -- Kostya 14.03.2011 16:27, Brad Stintson пишет: Thanks. I created foreign key, but when I try to insert values using m application it throws

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Brad Stintson
I assigned pre-defined value for foregin key. The thing that happens is that on first time use of that key, an entry is created in database. But if I use that value for second time then value is not updated in database My database table strings are as follows private static final String

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Kostya Vasilyev
14.03.2011 17:36, Brad Stintson пишет: I assigned pre-defined value for foregin key. The thing that happens is that on first time use of that key, an entry is created in database. But if I use that value for second time then value is not updated in database Brad, Not sure if I understand

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Brad Stintson
What happens is that it doesn't allow multiple entries for that pro_id. I'm not able to understand why that is happening. On Mon, Mar 14, 2011 at 8:48 PM, Kostya Vasilyev kmans...@gmail.com wrote: 14.03.2011 17:36, Brad Stintson пишет: I assigned pre-defined value for foregin key. The

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-14 Thread Kostya Vasilyev
Your table definition looks pretty reasonable to me (perhaps I'm missing something). Are you sure it's really that column? You have a lot of NOT NULL constraints in table event, maybe it's one of the other ones? You previously wrote that inserting values by hand (sqlite3 command line tool?)

[android-developers] SQLite Database - Multiple Tables

2011-03-13 Thread Brad Stintson
How to insert multiple tables which have few fields in common? -- 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 email to

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-13 Thread Kostya Vasilyev
Multiple inserts, one at a time. Preferably using a transaction. 13.03.2011 12:58 пользователь Brad Stintson geek.bin...@gmail.com написал: How to insert multiple tables which have few fields in common? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-13 Thread Brad Stintson
How to use transaction and how to implement the concept of foreign key? 2011/3/13 Kostya Vasilyev kmans...@gmail.com Multiple inserts, one at a time. Preferably using a transaction. 13.03.2011 12:58 пользователь Brad Stintson geek.bin...@gmail.com написал: How to insert multiple tables

Re: [android-developers] SQLite Database - Multiple Tables

2011-03-13 Thread Kostya Vasilyev
SQLite has foreign key support starting with version 3.6.19. http://www.sqlite.org/foreignkeys.html Some versions of Android have SQLite versions earlier than that - someone posted a breakdown recently, check the list archives. For earlier versions, it works pretty well to do something like:

Re: [android-developers] SQLite database is puffed every time I run my app.

2011-01-13 Thread Tobiah
On 01/12/2011 07:53 PM, Kumar Bibek wrote: You should change your Version of database to let it call the onUpgrade method. Really, it should. And, the onCreate should not be called everytime. I have tried incrementing the version. What's odd is that the onUpgrade method never gets called.

[android-developers] Sqlite Database in the APK

2011-01-12 Thread androiddevelopers
Hi, I want to create an database for my service . as of now we are creating the database on invocation of the service. Here we create the Database and add default values and it works. My Need : I want to have a database as part of the system image ( That is when i flash the image/APK) . The

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

2011-01-12 Thread Kostya Vasilyev
If you need to provide data to other applications, consider implementing a ContentProvider: http://developer.android.com/reference/android/content/ContentProvider.html This has the following benefits in your described use scenario: - You can protect your data by declaring read and/or write

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

2011-01-12 Thread androiddevelopers
Hi, thanks for the reply. Can i have the database preloaded, that is as aprt of my APk rather than me populating/creating on start of the activity. just like we have for icons or some files we can add as part of the drawable or in raw folder. Gautham -- You received this message because

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

2011-01-12 Thread Kostya Vasilyev
12.01.2011 21:05, androiddevelopers пишет: Can i have the database preloaded, that is as aprt of my APk rather than me populating/creating on start of the activity. just like we have for icons or some files we can add as part of the drawable or in raw folder. Yes, you can create your

[android-developers] SQLite database is puffed every time I run my app.

2011-01-12 Thread Tobiah
I took my code from the NotePad tutorial: private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override

Re: [android-developers] SQLite database is puffed every time I run my app.

2011-01-12 Thread Kumar Bibek
You should change your Version of database to let it call the onUpgrade method. Really, it should. And, the onCreate should not be called everytime. It seems that your onUpgrade method is being called, and everytime you run the app, it deletes all the tables and recreates them. That should

Re: [android-developers] SQLite Database Issues

2011-01-09 Thread Ilya Shinkarenko
I have the same strange story. Notably all the reports come from OTHER platforms. Will fix it with a retry after a small delay. On Fri, Oct 15, 2010 at 1:36 AM, Albert albert8...@googlemail.com wrote: Hi all, I can see from some user's logs that my app randomly gets the following

[android-developers] SQLite Database Issues

2010-10-14 Thread Albert
Hi all, I can see from some user's logs that my app randomly gets the following SQLiteException: android.database.sqlite.SQLiteException: no such table: DietTip: , while compiling: SELECT DISTINCT tip FROM DietTip at android.database.sqlite.SQLiteProgram.native_compile(Native Method)

Re: [android-developers] SQLite Database Issues

2010-10-14 Thread Kumar Bibek
Well, the error is pretty obvious. There is no table with that name. If you have created the table, after your first installation, which didn't have this table, try uninstalling and re-installing this app. Make sure, you create all the tables that you need before you can start using them. On Fri,

[android-developers] SQLite Database (secure?)

2010-09-26 Thread svebee
I just have one simple question, is it possible to extract (and read records) SQLite Database out of Android application/.apk file/...)? Because I have some important information in it, so I wanna be sure it's pretty secure (only application has access to it)? Thank you. -- You received this

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

2010-09-26 Thread Mark Murphy
On Sun, Sep 26, 2010 at 7:10 PM, svebee sven.kapud...@gmail.com wrote: I just have one simple question, is it possible to extract (and read records) SQLite Database out of Android application/.apk file/...)? Because I have some important information in it, so I wanna be sure it's pretty

[android-developers] Sqlite database problem

2010-06-15 Thread Amol Pathak
I am developing a simple android application in that I am getting serious error that system stops unexpectedly. help me out there,and also I want to know that how should I enter path in DBHelper.java file .Here I am giving my code. -- You received this message because you are subscribed to the

[android-developers] SQLite database locale, locking, and version

2010-03-26 Thread Glenn Doten
In some books and online I see these method calls being made after a database is created: db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); db.setVersion(DB_VERSION); Why is this done? As far as I can tell, after creating a new database, the system adds a table named

[android-developers] SQLite database question

2010-02-23 Thread Paul
I have a database that works fine to create a new row the first time after I start the application, but subsequent times, data base helper returns the same rowID and does not store a new row. It doesn't help when leaving or returning to an activity or if I stop and start the database. Do I need to

[android-developers] SQLite database location restriction

2009-11-12 Thread Nathan
I'm reading this restriction on where SQLite databases should reside on Android. All databases, SQLite and others, are stored on the device in /data/ data/package_name/databases. While this may be appropriate for small databases that begin and end within an application's space with a few

[android-developers] SQLite database location restriction

2009-11-12 Thread Nathan
It seems there is a hard restriction on where SQLite databases reside. All databases must be in /data/data/package_name/databases, according to the spec. Specifically, they can't be on a storage card. This seems ok if the database is a small one that begins and ends with an adroid app. But for a

[android-developers] SQLite database Content provider problem

2008-12-05 Thread andrider
Hi ... Iam new to Android. Iam using sqlite database , Iam getting problem with content provider.. I can able to display the list in the listactivity.. but when I click on the list item it has to display the sublist under the selected item. please tel me hw i can do that. Iam