Processing method and device for multi-platform multi-resolution application program interface

A technology of application program interface and application program, which is applied in the direction of program control device, program loading/starting, branch office equipment, etc., can solve the problem that the application program interface cannot adapt to multi-platform and multi-resolution, and achieve volume reduction, resource saving, The effect of reducing workload

Inactive Publication Date: 2011-04-20
BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF1 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] The technical problem to be solved by the present invention is to provide a processing method and device for a multi-platform multi-resoluti

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processing method and device for multi-platform multi-resolution application program interface
  • Processing method and device for multi-platform multi-resolution application program interface
  • Processing method and device for multi-platform multi-resolution application program interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] refer to figure 1 , is a flow chart of a method for processing a multi-platform multi-resolution API described in Embodiment 1. When installing an application program on a certain system platform, perform the following steps:

[0056] Step 101, read the original vector graphics used to generate the application program interface;

[0057] That is, the original vector graphics are read from the application installation package applicable to the platform, and the original vector graphics define the interface layout of the application, and are used to draw the interface when the application is running. The installation package of an application only contains original vector graphics based on one resolution. Preferably, in order to reduce the size of the installation package, the original vector graphics with the smallest size (ie, the smallest resolution) are uniformly used.

[0058] Step 102, query the screen resolution of the current system platform;

[0059] Different...

Embodiment 2

[0066] In practical applications, some system platforms support the display of vector graphics, while some system platforms do not support the display of vector graphics. Therefore, it is necessary to convert the format of the vector graphics in the installation package before displaying them.

[0067] refer to figure 2 , is a flow chart of a method for processing a multi-platform multi-resolution API described in Embodiment 2. The program installation process is as follows:

[0068] Step 201, read the original vector graphics used to generate the application program interface;

[0069] Step 202, performing content analysis on the original vector map;

[0070] The graphics displayed in the computer can generally be divided into two categories - vector graphics and bitmaps. Vector graphics use straight lines and curves to describe graphics. The elements of these graphics are some points, lines, rectangles, polygons, circles and arcs, etc., which are all calculated by mathem...

Embodiment 3

[0078] In the second embodiment, because the vector diagram analysis process is the most time-consuming, accounting for more than 95% of the entire conversion time, and for mobile terminals such as mobile phones, their operating speed is far slower than that of PCs. Therefore, the present invention provides a third preferred embodiment, the parsing process is completed in the process of making the installation package, so that when the mobile phone and other devices install the application program, it does not need to spend too much time for parsing.

[0079] refer to image 3 , is a flow chart of making an application installation package as described in the third embodiment. When making an installation package for an application, perform the following steps:

[0080] Step 301, making a set of original vector graphics;

[0081] That is, select a specification to make a set of original vector graphics;

[0082] Preferably, the minimum resolution can be selected to make the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a processing method and a device for a multi-platform multi-resolution application program interface so as to solve the problem that current application program interfaces cannot adapt to multiple platforms and multiple resolutions. The method comprises the steps: reading relative data of a vector diagram used for generating an application program interface, querying the screen resolution of a current system platform, scaling the relative data of the vector diagram in corresponding proportion according to the screen resolution of the current system platform and acquiring data already scaled. One installation package of the invention can adapt to multiple resolutions on the same platform, thereby greatly diminishing the pressure in designing the application program interface and the layout, decreasing the workload of making and maintaining pictures, significantly decreasing the volume of the installation package and consequently saving various resources for making the installation package.

Description

technical field [0001] The invention relates to the technical field of program installation, in particular to a processing method and device for multi-platform and multi-resolution application program interfaces. Background technique [0002] With the diversification of smartphone screen resolutions and system platforms, it is an increasingly complex project for applications to adapt to diverse screens and system platforms (referred to as platforms). For example, the same application running on different platforms usually needs to design different interface layouts and make pictures of different formats and sizes due to the different image formats supported by the system platforms or different screen resolutions, so as to ensure the user's satisfaction. Use experience and screen display effect. [0003] There are two commonly used solutions to the problem of how to adapt the application to various screens and system platforms: one is that the application not only needs to m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44G06F9/445H04M1/725H04M1/72427
Inventor 吴爽王斌
Owner BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products