0

I'm having a problem with a ContentValues ​​that insert data into a db, then my situation is that I have to enter the pairs of values ​​that are being debugged, before insertion into the database, but then it just gives me I enter into the database, here is the code and then some screenshots.

public boolean insertElement(Element element) {
    long ret = manager.db.insert(this.getTableName(element), null,
            this.getContentValues(element, true));
    if (ret == -1)
        return false;
    element.id = ret;
    return true;
}

getTableName is my method to return the name of the table and that has always worked.

The problem is that I enter all the values ​​belonging to the value named "tipo", which is not included despite both within the content values.

This are some screenShot:

http://imageshack.us/photo/my-images/209/vyf.jpg/ After Insert

http://imageshack.us/photo/my-images/854/z2ua.png/ Element-ContentValues

Thanks

1 Answer 1

1

As per I can see the problem lies in your getContentValues Method . Can you give some detail about this method and you table structure as it will help me to find out the problem.

Thanks.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.