Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old November 6th, 2012, 08:36 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Feb 2011
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Cool onUpgrade() not called for project y which is copy of project x

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

Quote:
(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

Advertisements
vikas.patel is offline  
Last edited by vikas.patel; November 15th, 2012 at 04:13 AM.
Reply With Quote
sponsored links
Old January 30th, 2013, 07:13 AM   #2 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Feb 2011
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Cool

Resolved,
It is because of [HIGH]getReadableDatabase();[/HIGH] method was not called which actually listen for database upgrade.
vikas.patel is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:31 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.