Home > Mobile >  Android copy today's headlines
Android copy today's headlines

Time:11-16

Project address (don't stingy your star! Thank you oh! :
https://github.com/LaravelChen/TouTiao

Personal profile:
Android as a Web developer, just the school curriculum, so along learning Android development, and for me personally, learning a language is not to see how many books, but first of all, online learning basic knowledge, [/url] to making learning predecessors program source code, so taking this opportunity, I developed a similar App headlines today, using the crawler caught some data show that the process let me know the Android aspects of knowledge network request.

Technology stack
- use Joup crawl and Okhttp network data
- use Recyclerview PageFragment and custom data types to make news data according to
- based on the Retrofit and RxJava dozen chain network library
- support rxJava chain operation
- I use Novate framework for interface data acquisition, simple to use
- for the user login the, according to the standard process should be follow the process of OAuth2.0 after there is time to change
- the picture shows use ImageLoader
- head display using CircleImageView
- date picker is using a copy ios PickerView
- the popup window display using the materialedittext
- video playback using ijkplayer artifact level players
- the interface is used for most controls Material Design Design specification

The function
- crawl of today's headlines real-time data
- use Recyclerview and PageFragment and the combination of the custom data types to display data
- support to view a list of specific content, including video
- supports review images and save the image to the local library (the url of the picture is difficult to climb)
- support real-time refresh to get data
- support video playback (video url is very difficult to climb)
- user interface data using PHP to write
- registered users to login
- user collection news
- support theme avi
- support users' personal Settings, etc.
- support users to share news, support QQ, WeChat, QQ space, etc.
- third-party login (temporary undeveloped)
- upload avatar, undeveloped)
- global search (can make use of the crawler search, temporarily not development)

Technical difficulties
May find that you look carefully I am writing the images and video all the time and the difficult words, is the process, because the headlines website don't like most of the website is the url directly
Written in HTML, because such main links too easy to pick it up, so the designer will all the url in the form of a script written in HTML, so it is easy to take to climb, but on the policy, the
A countermeasure, ha ha! We can through the network request will crawl to all web front-end code, and then through sifting to find what you want to part, this album url access can actually,
Specific code can directly see in program source code, but not so easy, for video url in the script only video video_id so must once again joining together API for the corresponding video information,
But, after the access to the coding are so pit dad! The video url encryption, my god! Have to poke fun at once! Fortunately there was a great god making it solved the matter ahead of time, I was in the gourd painting gourd ladle
Switch the link after the encrypted decoding, after can then play the video! Then, specific code in the program source code, please check! There is a problem please put forward in the issue! I'll try to solve!


CodePudding user response:

Excuse me, excuse me the source code, I download your effects that why some of them are not, such as video will not come, but I see your renderings have

CodePudding user response:

Why couldn't load pictures?

CodePudding user response:

Will play, but can't see the preview
  • Related