Good evening :) There is a web api. Is it possible to make a widget that will periodically send requests and monitor info (frequency 2-5 minutes)? Do you need a widget, if so, how best to do it, and what could be the pitfalls? Thank !:)

Closed due to the fact that it is necessary to reformulate the question so that you can give an objectively correct answer by the participants of D-side , aleksandr barakin , user194374, Denis , Bald July 28, '16 at 8:00

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    yes you can. But requests will not be sent by the widget, but by the service. And after receiving the data - update the widget. - Vladyslav Matviienko
  • Easy to do. Google "Android Services". These are processes running in the background. That is, the service is executed in the background and when it is needed, it refers to the widget informing the necessary information (if I remember correctly). - Janislav Kornev

0