• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps onUpgrade() not called for project y which is copy of project x

vikas.patel

Newbie
Feb 11, 2011
15
0
To test database onUpgrade() scenario,
I've copied original project(x) to new project(y) keeping all structure same (package id) to develop newer version which has some table addition/modification. To test upgrade scenario, I've older application(prj x, 1.0) installed and installing newer version apk(prj y, 2.0) to upgrade database but that "onUpgrade()" not called.
It is only called when apk is built from same project (prj x), no matter other project (prj y) has same package id(structure). like following

(Project x)---> (Project y, copy of project x, db change/increment)
v 1.0 (Installed) ---> v 2.0 (Not getting onUpgrade() call )

Is there any project specific properties to change ?

Thanking you,
vikas
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones