WebView Native Library Binding for Local Image Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional techniques using WebView for displaying application operation screens are unable to generate and display image data from local files efficiently, leading to delays due to network traffic dependencies when preview images are generated on a server.
Innovation Solution
An information processing apparatus that obtains web contents from a server, instructs a WebView to process these contents, calls a native library to generate image data from local files, and displays the generated image data on the operation screen, eliminating the need for server-based image generation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If image data is generated on the server and transmitted through the network, then the application can display preview images, but the display processing is delayed due to network traffic conditions
Solution Approach 1:
The patent introduces a native library as an intermediary component that enables local image processing capabilities within the WebView environment. The WebView calls functions in the native library through a binding mechanism, allowing the client device to generate preview images locally without requiring server-side processing and network transmission.
2Ease of manufacture
If WebView is used to display operation screens, then the application can be updated by rewriting HTML code, but the application cannot generate and display image data from local files
Solution Approach 1:
The patent merges the WebView's HTML-based interface capabilities with the native library's local file processing capabilities. By establishing a binding mechanism between JavaScript executed in the WebView and the native library functions, the system combines the ease of web-based updates with the versatility of native image processing.
Solution Approach 2:
The native library serves multiple functions: it processes local files, generates image data, and integrates with the WebView through JavaScript binding. This multi-functional component enables the WebView-based application to perform operations previously requiring separate native applications.
Data Source
AI summary
According to an aspect of some embodiments, an information processing apparatus is configured to perform: displaying an operation screen in a display, the operation screen generated by instructing a WebView to process the obtained web contents; if a predetermined instruction is given through the operation screen, calling the native library by using a script contained in the web contents, and instructing the called native library to generate image data corresponding to the file; and displaying the image data generated by the native library in the operation screen.


