I have 2 tables (master/detail): Client and Phone.
I have 1 layout with client profile and I can add several fields with phones for this client.
There are primary keys in both tables and in Phone table there are a PK_ID_Client.
I use Maps.Put and DBUtils.InsertMaps to save the record in table Client.
Save the Client table is OK, but how I can check the ID created of Client in SQLite database to add in field PK_ID_Client and save Phone table?
How I can save this information (client profile and phones) in two tables simultaneously?
Thanks in advance.
I have 1 layout with client profile and I can add several fields with phones for this client.
There are primary keys in both tables and in Phone table there are a PK_ID_Client.
I use Maps.Put and DBUtils.InsertMaps to save the record in table Client.
Save the Client table is OK, but how I can check the ID created of Client in SQLite database to add in field PK_ID_Client and save Phone table?
How I can save this information (client profile and phones) in two tables simultaneously?
Thanks in advance.