Well, I don't not why this project i'm building doesn't work.
So far, this project only have one table. Simple. You can see it in the project.
- What's suposed to do?
Insert 'Operario', 'Fecha' and 'Vehiculo' fields in table 'CPARTES' when you push 'Add' (if the registry already exists shows a message). And 'Count' the number of registries are in the table. All very simple, no?
When the activity starts the DataBase and the table are created (I can see it with the DDMS).
- What's not working?
The 'Add' button (to add new registry) and of course 'Count' button (to count registrys in table).
- Why?
Because 'Add' doesn't add anything.
If I edit db file with a record (in my descktop) and upload it to the device, 'Count' works, and 'Add' tell if the record alredy exists, but doesn't add new records.
Can anyone tell me what is wrong? Can be something stupid, but sorry I can't see it.
PD: sorry for my English...
So far, this project only have one table. Simple. You can see it in the project.
- What's suposed to do?
Insert 'Operario', 'Fecha' and 'Vehiculo' fields in table 'CPARTES' when you push 'Add' (if the registry already exists shows a message). And 'Count' the number of registries are in the table. All very simple, no?
When the activity starts the DataBase and the table are created (I can see it with the DDMS).
- What's not working?
The 'Add' button (to add new registry) and of course 'Count' button (to count registrys in table).
- Why?
Because 'Add' doesn't add anything.
If I edit db file with a record (in my descktop) and upload it to the device, 'Count' works, and 'Add' tell if the record alredy exists, but doesn't add new records.
Can anyone tell me what is wrong? Can be something stupid, but sorry I can't see it.
PD: sorry for my English...