I want to make an application for the site .. But immediately ran into a problem. It is necessary that the application receives the text on the page of the site and sends it to the Akran. Type as an application for contacts or classmates where the application reads posts from the news and vivodit text of the post in a separate frame with a separate design .. The site does not use MySql if it is important, only php. Please advise on educational materials on this topic. Thanks in advance.
1 answer
There are two options:
1 On the site you need to organize a controller that will return JSON for example. And it’s easier to do it on android on this tutorial.
https://spring.io/guides/gs/consuming-rest-android/
Option 2 - use Jsoup and parse pages here tutorial on this option
http://www.androidbegin.com/tutorial/android-basic-jsoup-tutorial/
But there will be many difficulties with authentication (if there is one) and you need to know xpath
|