Decryption friend Circle Red Envelopes photo function _android

Source: Internet
Author: User
Tags http request

Yesterday, we were all the micro-trust friends Circle of the hair glass picture screen painting? This is the micro-letter for the New Year red envelopes prepared a novel function, yesterday, a period of time, the transmission effect is very large, which tells us a truth: no money, even friends can not see the circle. This function just launched everyone busy in the red envelopes when the photo, as a programmer is naturally sensitive, a little research on how to do not spend money can be viewed, and the first time released in my friend Circle, today to share with you, this skill is a necessary for Android development.

First of all to answer a puzzle, that is, micro-letter This function how to do it out, good magic ah, this function said on-line on the line, said the line on the line, many people guess exactly what magical technology to achieve, with the legend of the plug-in?

Let me give you some advice, this function does not use any magic technology, this function in the previous version of the micro-letter has been done, with the release of the built-in client, the version of the micro-letter is not the function of this. It is difficult to achieve the full functionality of plug-ins by simply displaying and hiding the portal through a single configuration of the server.

Back to the point, this feature just came online after I found a preview of the circle area can see a clear picture, and every time the random display of different places, so I initially judged this picture must be downloaded or cached to the local, then it is good to do, as the saying goes on the client's things always through some means to get, Because the circle of friends is the normal network request, so the first time to think of the grab bag, all the HTTP request to get the picture is taken for granted.

So plainly this is not what fresh skills, will grasp the package OK, for our client development, we often have to follow the API interface with the backend, grab bag is an essential skill, then how to grasp the bag? Today's theme to recommend a few of the best use of grasping bag tools.

1, Fiddler

This is known as the best use of Windows grab Bag tool. If you are a Windows platform, then this tool is strongly recommended to you. Here is a very detailed tutorial:
Http://www.jb51.net/softjc/107063.html

2, Charles
There is no doubt that the best use of the Mac platform grab tools, the official charge, but you can find a cracked version online. Detailed tutorials are here:
http://blog.devtang.com/blog/2015/11/14/charles-introduction/

3, Logcat
The first two grab tools can grasp the system level of request, the principle is very simple by setting up the agent, the use of a little bit of trouble, each time to set up the agent. Some time ago I am debugging network problems, use very frequently, each connection is very troublesome, so simply on the app optimized our log display, from this directly in as Logcat can be very detailed to see the request URL, params, header, response, etc. Greatly improve the efficiency of our team to debug the network, the last picture you feel:

I will only be in the app to debug the network use, the number of praise forwarding a lot of words back to tell you how to achieve the principle.

Of course, there are other methods of network grab, such as tcpdump, Wireshark, etc., but are not as good as the above recommended two use simple. Interested can be studied under other grasping bag tools.

Finally, let me tell you a bad news, red envelopes picture function micro-letter has found a loophole, the data has been encrypted, so may temporarily grasp the bag can not see the hair glass pictures, but the grasp of this skill is called every app developers must, you must master.

A lot of people ask my friend circle why not send red envelopes photo ah? I have tears in my eyes answer you: I spent an hour of my mother took a beautiful nude photo, who knows this function should be off-line ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.