views:

144

answers:

1

Hi

I'm writing an app which uses the Foreign Key Constraints which support was only just brought in for on version 2.2, and my phone is 2.1 Is there any way to upgrade the version of sqlite3 on the htc desire or any other android phone when your application installs?

A: 

short answer, no.

Longer answer. Yes, but you would have to have root because the sqlite binary is in /system/xbin. you would need root access to be able to overwrite that file. you would not be able to upgrade any other device unless they too had root, and a recovery image that supported update.zips that can be signed using the "test keys". then you would have to manually distribute the update zip file, that the user would have to reboot in to recovery mode, flash the update.zip to apply your "patch".

Ryan Conrad
nasty! Thanks for the answer. Looks like I'll have to manage the database without Foreign_Keys then 8-(
Chris
don't forget to mark the answer accepted if you are satisfied with the answer. it's hard to get answers in the future if you don't ever mark them.
Ryan Conrad