ORM and SQLite, can it be used simultaneously in Android?

Hello, tell me how to implement saving photos from the camera in ORM? To create a registration in the application, do you need SQLite or can it be done via ORM?Can I use it at the same time?

Author: Вади Конюх, 2017-11-22

1 answers

Look in the direction of ORMLite, more precisely in the direction of its Android incarnation. Creates mapping of Java objects over SQLite

Tell me how to implement saving photos from the camera in ORM?

The photo can be saved in a field of type BLOB, on the ORM side it will be byte[] array:

@DatabaseField(dataType = DataType.BYTE_ARRAY)
byte[] imageBytes;
 0
Author: Barmaley, 2017-11-24 08:23:13