1. Download our Official Android App: Forums for Android!

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

Discussion in 'Android Development' started by vikas.patel, Nov 6, 2012.

  1. vikas.patel

    vikas.patel Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    15
    Joined:
    Feb 11, 2011

    Feb 11, 2011
    15
    0
    15
    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

    Is there any project specific properties to change ?

    Thanking you,
    vikas
     

    Advertisement

  2. vikas.patel

    vikas.patel Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    15
    Joined:
    Feb 11, 2011

    Feb 11, 2011
    15
    0
    15
    Resolved,
    It is because of [HIGH]getReadableDatabase();[/HIGH] method was not called which actually listen for database upgrade.
     

Share This Page

Loading...