G
G
geron2015-09-17 19:47:31
Android
geron, 2015-09-17 19:47:31

What is better to use ContentProvider or ORM in android application?

Different sources recommend differently, so it's not entirely clear what is better to use?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FoxInSox, 2015-09-17
@FoxInSox

It depends.

O
Oleg Gamega, 2015-09-17
@gadfi

Depends on the task.
The ContentProvider in conjunction with the CursorLoader will take care of the asynchrony, will follow you to change the database, etc.
Instead, a disgusting api.
ORM will give you a nice api and a noticeable gain in complex queries on the fly, in return you will have to solve ContentProvider tasks manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question