O
O
Opie2014-12-27 19:10:35
Android
Opie, 2014-12-27 19:10:35

How to work from a widget with standard data sources?

Good day!
There is a task of developing a widget for Android that would display information about recent calls. It is not clear how to work with data sources like ContactsContract or Call Log in the widget? getContentResolver() on the widget doesn't work.
This is not written in any literature (at least I did not find it).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2014-12-28
@mbelskiy

When working with a widget, all data must be processed in the service. getContentResolver is a Context method. Well, that's what you mean.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question