I
I
Ilya Megalinskiy2015-05-21 21:44:40
Android
Ilya Megalinskiy, 2015-05-21 21:44:40

How to implement the broadcast of events (news) from the site to the application in Android Studio (Eclipse)?

Hello, the fact is that I am developing a graduation project. And on one of the application tabs I should have "news". But I don't know how they can be broadcast from the site. How can I implement the news tab?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
Oleg Gamega, 2015-05-21
@gadfi

REST API

K
Kirill Arutyunov, 2015-05-21
@arutyunov

Try to make some kind of RSS reader there. And once every 10 minutes, send an RSS request for new news.

V
Vladimir Yakushev, 2015-05-21
@VYakushev

Let a specific site address return JSON or XML with a list of the latest news (for example, the last 10 entries from the database). The application receives a list of news at this address, parses and displays.

R
Roman Kitaev, 2015-05-21
@deliro

I join those who advise to use the API and return JSON. To avoid traffic overhead, don't forget to use the GET parameter with the ID of the latest news so that only news created later is returned to you.

V
Viktor Koltcov, 2015-05-22
@Vityarik

web socket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question