Current location - Health Preservation Learning Network - Slimming men and women - Tencent TBS browsing service (using X5WebView)
Tencent TBS browsing service (using X5WebView)
Official website address:

Advantages of 1 and TBS (Tencent browsing service)

? 1) Fast speed: compared with webview, the speed of webpage opening is increased by 30+%;

? 2) Save traffic: adopt cloud optimization technology to save traffic by 20+%;

3) Safer: security problems can be fixed within 24 hours;

4) More stable: tested by hundreds of millions of users, the crash rate is lower than 0.15%;

5) Good compatibility: the system kernel is not fragmented and there are few compatibility problems;

6) Excellent experience: support browsing enhancement functions such as night mode, suitable screen typesetting and font setting;

7) Full function: more complete support for Html5 and ES6;

8) More powerful: integrate a powerful video player and support a video format far exceeding the system webview;;

9) Video and file formats support x5 kernel more than system kernel.

10) Anti-hijacking is a highlight of x5 kernel.

2. License statement:

3. Import the jar package of tbs under the libs file.

4. copy the jniLibs file in the project X5WebDemo and all the files in the folder to your own home folder.

5. Add it to the defaultConfig of gradle.

For example:

6. Optimize the exception report:

In order to improve the stability of partner webview scenarios and find and solve x5-related problems in time, please be sure to take x5-related information with you when the client crashes and reports to the server. X5 kernel exception information acquisition interface is: com. Tencent. smtt.sdk.webview.getCrasherXtremMessage (context) Take the bugly log report as an example:

7. Initialize initx5environment () in the oncreate () method of the application;

8. Compatible video playback:

9. It is forbidden to call (directly or through reflection) the following interfaces to prevent the display of video pictures:

10, AndroidManifest requires the following registration.

1 1. Call interface for playing video.

12, it is especially important to use this paragraph when X5WebView is initialized.