Android Question [SOLVED] DB phantom

Discussion in 'Android Questions' started by yfleury, Apr 6, 2019.

  1. yfleury

    yfleury Active Member Licensed User

    I have an app with db.
    In app, I delete database.db from File.DirInternal. Then I try to acces to a table and the app crash of course. I am sure the db file is deleted.

    Then I uninstall the app from my device. and reinstall it. My app create a fresh database file with a empty table.

    Then a load table and surprise. The table is not empty.

    I try all procedure above many time and the table have same data time after time.

    How can be sure a fresh database is empty?
  2. Erel

    Erel Administrator Staff Member Licensed User

    Disable Android backup feature with this line (manifest editor):
    SetApplicationAttribute(android:allowBackup, "false")
    MarcoRome, Xicu, Segga and 3 others like this.
  3. yfleury

    yfleury Active Member Licensed User

    Thanks Erel
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice