Skip to content Skip to sidebar Skip to footer

Dbhelper , Ormlite And Fragments Issues

I've got problem with my database. Application sends link written by user and in response get short form of the link (that works fine). In my database I need to put both versions o

Solution 1:

I know it's pretty late but I've just faced this problem, and after an hour of 'try and fail' bug-fixing I worked it out.

Re-making ormlite-config.txt fixed problem. You should have similar class in your project for that task.

Example:

publicclassDatabaseConfigUtilextendsOrmLiteConfigUtil{

privatestaticfinalClass<?>[] classes = newClass[] {
        Notification.class, Message.class, LocationWrapper.class
};

publicstaticvoid main(String[] args) throws SQLException, IOException {
    // Provide the name of .txt file which you have already created and kept in res/raw directory
    writeConfigFile("ormlite_config.txt", classes);
}

}

Post a Comment for "Dbhelper , Ormlite And Fragments Issues"