Re: [android-developers] sqllite database with data

2012-12-01 Thread Mário César Mancinelli de Araújo
Thanks, man! It will do the job. :-D Best regards, Mario Cesar M. de Araujo Em 01/12/2012 12:30, "Παύλος-Πέτρος Τουρνάρης" escreveu: > Mario check this out. String versionName = getPackageManager(). > getPackageInfo(getPackageName(), 0).versionName; > > You will programmatically check for the eq

Re: [android-developers] sqllite database with data

2012-12-01 Thread Παύλος-Πέτρος Τουρνάρης
Mario check this out. String versionName = getPackageManager(). getPackageInfo(getPackageName(), 0).versionName; You will programmatically check for the equality of this and an old one that you have saved either using sharedpreferences or any other way you would like. On Sat, Dec 1, 2012 at 4:22

Re: [android-developers] sqllite database with data

2012-12-01 Thread Mário César Mancinelli de Araújo
Something I forgot: there are two xml with the data for each language, of course. And, for now, it's only Portuguese and English. Em 01/12/2012 12:20, "Mário César Mancinelli de Araújo" < mandaproma...@gmail.com> escreveu: > I'm developping an app where I need it too. It's a basic quotes app, so i

Re: [android-developers] sqllite database with data

2012-12-01 Thread Salih Gündüz
thank you very much ;) On Sat, Dec 1, 2012 at 4:17 PM, Παύλος-Πέτρος Τουρνάρης < p.tourna...@gmail.com> wrote: > Either you will create a custom .slite db and add it to your assets and on > the first install you will copy it (programmatically) to a new SQLite > Database, or you will use web servi

Re: [android-developers] sqllite database with data

2012-12-01 Thread Mário César Mancinelli de Araújo
I'm developping an app where I need it too. It's a basic quotes app, so it has two tables: quotes and authors. What I did: created two xml with the data and, when I create the database, I read the xml and populate it. Just simple. Now I have to discover some way to discover if the app was updated

Re: [android-developers] sqllite database with data

2012-12-01 Thread Παύλος-Πέτρος Τουρνάρης
Either you will create a custom .slite db and add it to your assets and on the first install you will copy it (programmatically) to a new SQLite Database, or you will use web services and download the sqlite content only once, or when the text is updated. It is pretty easy and fast. On Sat, Dec 1

Re: [android-developers] sqllite database with data

2012-12-01 Thread Salih Gündüz
Web service is a good solution.But I want user can read the text when they are offline. My apllication will show some text and user can search in this text. On Sat, Dec 1, 2012 at 2:11 PM, sree android wrote: > will maintain server -- You received this message because you are subscribed to the

Re: [android-developers] sqllite database with data

2012-12-01 Thread sree android
Their is possible to do it.But it is supported only CRUD operations ,light weight database and it is local for single user. If you are maintain single database(common for every one)for all user you will maintain server and you can use web services in android project.(Here Client and Server relatio

Re: [android-developers] sqllite database with data

2012-12-01 Thread Jovish P
Yes, it is possible. You have to keep the database in the asset folder of your application. Then copy the db to application directory. If you google out you view many samples for this Reference http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Regards, Jovish

[android-developers] sqllite database with data

2012-12-01 Thread Salih Gündüz
I want to develope an android aplication with sqllite database. and I want to prepare database with data before publising. is it possible? How can I do it? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email