How can you easily check whether your app has persistentObjects? Right now I'm using the following:
public boolean needsFirstTimeInit() {
PersistentObject persistentObject = getPersistentObject(Settings.TABLE_USERS);
Vector vector = (Vector) getVector(persistentObject);
if(vector.size()<=0){
return true;
}
return false;
}
The negative here is that I'm asking data from a table I know that has to exists, and if it exists I assume the tables haven't been initialized. Is there a better way of doing this?