1. What is EZ SHARE? EZ Share is made up of four ali final-year students privately yourself an APP for some frowsty coquettish WeChat (I had asked our department colleagues, didn’t provide the interface, so I can’t do) provide services, according to the user’s mood to match the pictures of loading force, and can put pictures, reasonable arrangement and taking in the pack to force more pretend bility.
  2. System architecture because the function is relatively simple, so the system complexity is relatively simple. There are two main parts: PhoneGap and native Android/ iOS, as shown in the image below. In addition to providing interaction between interface and APP, PhoneGap also has a very important function, which is to use Canvas to process images and integrate text into images. And you might be wondering why do you do that? Because the use of native to deal with words although the performance is good, but Android and IOS need to write a code, and native image processing is more troublesome. The Android/ iOS native part is actually very simple, just connect to the SDK of WeChat and share WeChat. PhoneGap and native communication My approach is to set up a socket server in the native part and communicate through the socket.
  3. 3.1 Debuging of PhoneGap 3.1 Debuging of PhoneGap is a bit of a hassle for me, so I use Weinre for remote debugging. The principle is as follows: [1] Install Weinre 2 using NPM, start Weinre 3 and inject a js file into the index. HTML. (Note that in the virtual machine, Do not write “localhost” or “”, otherwise you will ask the virtual machine itself.) [4] Remember to add access permission in config. XML. [2] Layer 2: It mainly renders some solid color background and renders it according to the text input by the user. It also monitors the focus event of the input box. When the focus is lost, the text will be redrawn to the second canvas. The display of this canvas is hidden. When the user decides to send it, the contents of the first and second layers will be rendered to the third layer and a picture will be generated and stored on the SD card surface
  4. Part of the technical details of native Android is to connect to the SDK of WeChat, and send the information sent by PhoneGap to WeChat when I receive it. Now I do Android, because I am too poor and do not have an IOS device, I may buy it when I go back to work after graduation. Anyway, there are not many native codes for ^_^, and it should be very fast. Android WeChat SDK access is a bit of a hassle, haha! Make sure the package name and signature certificate are correct before sending. I also found some information that some people can bypass the WeChat SDK and directly wake up the WeChat sharing activity for convenience. I guess what they do is to check the source code inside the WeChat SDK package and modify it slightly!

  5. rendering

Because our EZ team is still on vacation at school, and everyone is busy with graduation and travel, so it still needs a little time to launch. Haha, you definitely deserve to have the magic device.