M
M
mobimaks2014-08-19 06:58:03
Android
mobimaks, 2014-08-19 06:58:03

How to implement parsing news from a website for an Android application?

I am making an application in which it will be possible to read news from the site. The question arose of how to correctly transfer news from a site with style support: indents, italics, bold text, hyperlinks, pictures and their alignment, video?
For example, like here: I
OtygfkP.pngtmedxZS.png
made a news feed using JSON, but what should I use here?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
smanioso, 2014-08-19
@smanioso

Alternatively, you can use the Readability Developers API - https://www.readability.com/developers/api

A
Alexander Taratin, 2014-08-19
@Taraflex

Yes, even with the help of the same json. Just escape quotes or replace them with single quotes.

K
Konstantin Dovnar, 2014-08-19
@SolidlSnake

If you are satisfied with how the site itself looks on the mobile. devices, then a regular WebView should be sufficient.

D
Dmitry Entelis, 2014-08-19
@DmitriyEntelis

There are really only 2 options.
Or pass html5 which you display in webview.
Or make your own format and your own parser :)

A
Alexey, 2014-08-19
@Solexid

Make an exhaust in xml and process it as layout elements. Naturally, I don’t advise using a self-written parser adapter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question