WebVIEW integration, Hybrid apps start

Recently, I have been working on WebView-related content. Until recently, I finally came to an end. Remember this blog to commemorate the past achievements and use it as a reference material for others and yourself. The work brings a certain degree of convenience. Okay, the boss is urging to move bricks, hurry up. . .

Android native and JavaScript interaction article

This content has been introduced in the previous blogs. For details, please move to Android WebView and JavaScript interaction and Android WebView and JavaScript interaction Interaction (continued).
Please try to refer to the method in the second blog to achieve interactive operations, because before Android 4.2, the security of using the methods mentioned in the first blog cannot be guaranteed.
In fact, the security of the second method is really reliable. I don’t know how to test it because I’m a little white, but I’ve learned that it’s more reliable through online comments and other people’s blogs. If anyone knows how to test the safety performance, please let me know, thank you in advance. . .
In the process of interactive implementation, WebView needs to do some related settings. For specific parameters, please refer to the first blog. Please choose according to your needs, not all settings are required.
In the process of implementing the function, some headaches will inevitably appear. If you cannot solve it through the log, please refer to the solution in the Android-side AES encryption bug solution. If there is no bug mentioned in my blog , Please @我, to record it in the blog for the convenience of others, it is best to attach the bug reproduction process and the solution, thank you! ! !

Write the picture description here

Client-server interaction, SocketIO protocol article

To tell the truth, this article is the most boring, as a network project Undergraduates who graduated from majors have almost no knowledge of network communication protocols. The protocols that they have learned such as TCP, UDP, HTTP, etc. are all theoretically understood, such as their message composition, the meaning of each byte, etc. I have not done any actual programming operations, nor can I understand its internal implementation principles; in addition, these protocols learned have not been used much in the previous work, and all used are encapsulated and do not need to Know how communication is achieved internally.
SocketIO has never heard of it before. Almost all the HTTP protocol is used to access the Internet, because the most practical programming practice in school is to build a Web site, and it takes 4 years to sew and repair a site. What I learned has been Stay at that stage.
SocketIO client-server interaction This part of interested comrades can move to the Android side to interact with the Java server-SocketIO.

Android native data storage article

The content of this part is what we often need to use. After all, a complete APP development requires a login function, and login requires a remember The function of storing the user name and password requires data storage.
The most commonly used on the Android side is SharedPreferences, which is the easiest and most efficient way to implement; the second is database storage. The effect of Android’s built-in sqlite database storage is still possible. The only trouble is to implement storage. In the process, an open source framework is recommended here, which can greatly simplify the problem of sqlite data storage. Comrades who have needs and are interested can go to Guo Lin’s blog for a detailed introduction.

Client and server AES encryption and decryption chapters

This part has been thought to be done before, but the demand is not so urgent, and it is more troublesome to implement, so I give up decisively .
I need to use encryption and decryption technologies in my recent work. I searched the Internet. At present, AES encryption technology is relatively safe and popular, so I made a contact. For details, please see Android and Java server encryption and decryption.

Summary

At this point, the knowledge reserve phase has come to an end, and the real Hybrid Apps phase needs to be started. I hope that the subsequent work can proceed smoothly and the product can be launched smoothly.

Okay, no more nonsense, the boss urged to move bricks, present the source code:
Portal

Recently I have been engaged in WebView-related content until it finally came to an end recently. Remember this blog to memorialize the past achievements and use it as a reference material to bring some convenience to others and myself in the future work. Okay, the boss is urging to move bricks, hurry up. . .

Android native and JavaScript interaction article

This content has been introduced in the previous blogs. For details, please move to Android WebView and JavaScript interaction and Android WebView and JavaScript interaction Interaction (continued).
Please try to refer to the method in the second blog to achieve interactive operations, because before Android 4.2, the security of using the methods mentioned in the first blog cannot be guaranteed.
In fact, the security of the second method is really reliable. I don’t know how to test it because I’m a little white, but I’ve learned that it’s more reliable through online comments and other people’s blogs. If anyone knows how to test the safety performance, please let me know, thank you in advance. . .
In the process of interactive implementation, WebView needs to do some related settings. For specific parameters, please refer to the first blog. Please choose according to your needs, not all settings are required.
In the process of implementing the function, some headaches will inevitably appear. If you cannot solve it through the log, please refer to the solution in the Android-side AES encryption bug solution. If there is no bug mentioned in my blog , Please @我, to record it in the blog for the convenience of others, it is best to attach the bug reproduction process and the solution, thank you! ! !

Write the picture description here

Client-server interaction, SocketIO protocol article

To tell the truth, this article is the most boring, as a network project Undergraduates who graduated from majors have almost no knowledge of network communication protocols. The protocols that they have learned such as TCP, UDP, HTTP, etc. are all theoretically understood, such as their message composition, the meaning of each byte, etc. I have not done any actual programming operations, nor can I understand its internal implementation principles; in addition, these protocols learned have not been used much in the previous work, and all used are encapsulated and do not need to Know how communication is achieved internally.
SocketIO has never heard of it before. Almost all the HTTP protocol is used to access the Internet, because the most practical programming practice in school is to build a Web site, and it takes 4 years to sew and repair a site. What I learned has been Stay at that stage.
SocketIO client-server interaction This part of interested comrades can move to the Android side to interact with the Java server-SocketIO.

Android native data storage article

The content of this part is what we often need to use. After all, a complete APP development requires a login function, and login requires a remember The function of storing the user name and password requires data storage.
The most commonly used on the Android side is SharedPreferences, which is the easiest and most efficient way to implement; the second is database storage. The effect of Android’s built-in sqlite database storage is still possible. The only trouble is to implement storage. In the process, an open source framework is recommended here, which can greatly simplify the problem of sqlite data storage. Comrades who have needs and are interested can go to Guo Lin’s blog for a detailed introduction.

Client and server AES encryption and decryption chapters

This part has been thought to be done before, but the demand is not so urgent, and it is more troublesome to implement, so I give up decisively .
I need to use encryption and decryption technologies in my recent work. I searched the Internet. At present, AES encryption technology is relatively safe and popular, so I made a contact. For details, please see Android and Java server encryption and decryption.

Summary

At this point, the knowledge reserve phase has come to an end, and the real Hybrid Apps phase needs to be started. I hope that the subsequent work can proceed smoothly and the product can be launched smoothly.

Okay, no more nonsense, the boss urged to move bricks, present the source code:
Portal

Leave a Comment

Your email address will not be published.