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 PM, Mário César Mancinelli de Araújo < [email protected]> wrote: > 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" < > [email protected]> escreveu: > > 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 and, >> then, delete and recreate the database. ;-) >> >> Best regards. >> Em 01/12/2012 11:08, "Salih Gündüz" <[email protected]> escreveu: >> >>> 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 < >>> [email protected]> wrote: >>> >>>> will maintain server >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

