Answer the question
In order to leave comments, you need to log in
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
Try to make some kind of RSS reader there. And once every 10 minutes, send an RSS request for new news.
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question