mardi 9 juin 2015

Clearing database for emulator app so it acts like being run for the first time?

I have an android app for my school project that keeps track of the times it is ran by putting in the date in a table in the SQLite database whenever it is ran, and when it is run for the first time, there are supposed to be none in the database so it acts accordingly. When debugging on my phone (installing it fresh), it does so. Problem is when running on emulator, it is not. There's no way that a time entry can be happening when running for the first time so I am assuming that the emulator must have saved the current state when running the app before and not be acting like a fresh install (I am slightly new to android, my partners are even newer). Also, we are using a git repository to install it on their machines to run on an emulator. Is there anyway I can clear this data, and submit it to git so when they run it on their machines, it will act as a fresh install on both their machines?

Aucun commentaire:

Enregistrer un commentaire