CN105446796B - A kind of analogy method and equipment of mobile light application - Google Patents

A kind of analogy method and equipment of mobile light application Download PDF

Info

Publication number
CN105446796B
CN105446796B CN201510854462.4A CN201510854462A CN105446796B CN 105446796 B CN105446796 B CN 105446796B CN 201510854462 A CN201510854462 A CN 201510854462A CN 105446796 B CN105446796 B CN 105446796B
Authority
CN
China
Prior art keywords
dimensional parameters
mobile terminal
parameter
size
analog machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510854462.4A
Other languages
Chinese (zh)
Other versions
CN105446796A (en
Inventor
宋大伟
李馥龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201510854462.4A priority Critical patent/CN105446796B/en
Publication of CN105446796A publication Critical patent/CN105446796A/en
Application granted granted Critical
Publication of CN105446796B publication Critical patent/CN105446796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of analogy methods and equipment of mobile light application.Present invention method includes:Analog machine determines the second dimensional parameters according to the first size parameter and adjust instruction input by user of mobile terminal;The first size parameter is the size of the actual screen of preset mobile terminal, and second dimensional parameters are the size of the simulation screen after adjustment;The analog machine calculates the scale parameter of the first size parameter and second dimensional parameters;The analog machine is adjusted the page of light application according to the scale parameter, so that the page size parameter is corresponding with second dimensional parameters.The present invention also provides a kind of analog machines of light application.The embodiment of the present invention makes the page of light application can be very good to adapt to the size of mobile terminal screen;Portable and effective, good integrated with desktop application, user experience is good.

Description

A kind of analogy method and equipment of mobile light application
Technical field
The present invention relates to computer realm more particularly to a kind of analogy methods and equipment of mobile light application.
Background technology
Light application is a kind of global function App for being not necessarily to download, search and use immediately developed by HTML and JavaScript, both The user experience for having the local app that matches in excellence or beauty, but also with the characteristic for being retrieved with intelligently distributing of web App, due to light application Plurality of advantages, deep to be favored by users, with being widely used for light application, more and more developers develop light application, In the exploitation of light application, debugging is very important a link.
In the prior art, mobile-terminal simulator (official's simulator of such as android system) can be used to light application Runnable interface debugged, this scheme can guarantee authenticity preferably consistent with prototype, can really simulate and gently answer Web page adapts to true mobile terminal screen.But this kind of scheme needs to install mobile-terminal simulator, mould at the ends PC The CPU of quasi- device, the occupancy of Installed System Memory are higher, cause starting and running for mobile-terminal simulator all very slow.
Relative to mobile-terminal simulator, the Web browser (such as Chrome, Firefox, IE) of PC desktop systems is used The runnable interface of light application is tested, the effect of light application page is showed, a large amount of CPU of system and interior need not be occupied It deposits, solves the problems, such as that starting and running for mobile-terminal simulator is slow, still, PC screens cannot simulate really well sometimes Mobile terminal screen, for example, the resolution ratio with mobile terminal is constantly promoted, when the resolution ratio of mobile terminal is more than PC screens When resolution ratio, the point of mobile terminal screen is corresponded with the point of PC screens, it will the screen of mobile terminal is made to exceed PC screens Display visual range, the effect of general view overall picture is not achieved.
Invention content
An embodiment of the present invention provides a kind of analogy methods and equipment of mobile light application, allow the page of light application very The screen size of good adaptation analog machine, portable and effective.
The one side of the embodiment of the present invention provides a kind of analogy method of mobile light application, including:
Analog machine determines that the second size is joined according to the first size parameter and adjust instruction input by user of mobile terminal Number;The first size parameter is the size of the actual screen of preset mobile terminal, and second dimensional parameters are after adjusting Simulate the size of screen;
The analog machine calculates the scale parameter of the first size parameter and second dimensional parameters;
The analog machine is adjusted the page of light application according to the scale parameter, so that the page after adjustment Dimensional parameters are corresponding with second dimensional parameters.
Further, the analog machine according to the scale parameter to the page of light application be adjusted including:
The analog machine determines the first drawing area according to second dimensional parameters;
The analog machine is adjusted the page of light application according to the scale parameter, so that the page ruler after adjustment Very little parameter is corresponding with first drawing area;
The analog machine adds browsing corresponding with the page size parameter after adjustment in first drawing area Device assembly, the kernel of the browser component are identical as the kernel of the system browser of the mobile terminal.
Further, the analog machine according to the scale parameter to the page of light application be adjusted including:
The analog machine obtains the third dimensional parameters of the mobile terminal, and the third dimensional parameters are the movement The size of the practical positive outer rim of terminal;
The analog machine determines the second drawing area according to the third dimensional parameters and the scale parameter, and according to The outer rim of practical mobile terminal and the relative position relation of screen and the scale parameter determine third drawing area;
The analog machine is adjusted the page of light application according to the scale parameter, so that the page ruler after adjustment Very little parameter is corresponding with the third drawing area;
The analog machine adds browsing corresponding with the page size parameter after adjustment in the third drawing area Device assembly, the kernel of the browser component are identical as the kernel of the system browser of the mobile terminal.
Further, the method further includes:The analog machine obtains the first front picture of practical mobile terminal, institute The dimensional parameters for stating the first front picture are the third dimensional parameters;
The analog machine determines the second front picture according to first front picture and the scale parameter;
The analog machine synthesizes second front picture in second drawing area.
Further, the method further includes:
The analog machine has the browser group of same kernel by programming language API Calls and mobile device browser Part.
The another aspect of the embodiment of the present invention provides a kind of analogy method of mobile light application, including:
First determining module, for determining according to the first size parameter and adjust instruction input by user of mobile terminal Two dimensional parameters;The first size parameter is the size of the actual screen of preset mobile terminal, and second dimensional parameters are The size of simulation screen after adjustment;
Computing module, the second dimensional parameters determined with first determining module for calculating the first size parameter Scale parameter;
Module is adjusted, the scale parameter for being calculated according to the computing module adjusts the page of light application It is whole, so that the page size parameter is corresponding with second dimensional parameters.
Further, the adjustment module includes:
First determination unit, for determining the first drawing area according to second dimensional parameters;
The first adjustment unit, for being adjusted to the page of light application according to the scale parameter, so that after adjustment Page size parameter is corresponding with first drawing area that first determination unit determines;
First adding device, for corresponding with the page size parameter after adjustment in first drawing area addition Browser component, the kernel of the browser component are identical as the kernel of the system browser of the mobile terminal.
Further, the adjustment module further includes:
Acquiring unit, the third dimensional parameters for obtaining mobile terminal, the third dimensional parameters are described mobile whole The size of the practical positive outer rim at end;
Second determination unit, the third dimensional parameters for being obtained according to the acquiring unit and the scale parameter Determine the second drawing area,
Third determination unit, for according to the outer rim of practical mobile terminal and the relative position relation of screen and the ratio Example parameter determines third drawing area;
Second adjustment unit, for being adjusted to the page of light application according to the scale parameter, so that after adjustment Page size parameter is corresponding with the third drawing area that the third determination unit determines;
Second adding device, the third drawing area addition for being determined in the third determination unit and the page ruler The very little corresponding browser component of parameter, the kernel of the kernel of the browser component and the system browser of the mobile terminal It is identical.
Further, further include:
Acquisition module, the first front picture for obtaining practical mobile terminal, the size ginseng of first front picture Number is the third dimensional parameters;
Image processing module, for positive to described first according to first front picture and second scale parameter Picture carries out image procossing, obtains the second front picture;
Synthesis module, for synthesizing second front picture in second drawing area.
Further, further include:
Call unit, be additionally operable to the analog machine has phase by programming language API Calls and mobile device browser With the browser component of kernel.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
Analog machine is simulated according to the first size parameter of preset practical mobile terminal screen and preset first ratio-dependent Second dimensional parameters of mobile terminal screen, analog machine is according to the dimensional parameters of itself screen and the second sizecalculation Two scale parameters are adjusted the page size of light application according to the second scale parameter, to make analog machine add and page The corresponding browser component of face size, to make the page of light application can be very good the size of adaptation mobile terminal screen; By calling browser component identical with practical browser of mobile terminal kernel, the browser and reality of analog machine are avoided The uncertainty simulated caused by the browser difference of mobile terminal, portable and effective is good integrated with desktop application, user It experiences.
Description of the drawings
Fig. 1 is a kind of analogy method schematic diagram of mobile light application in the embodiment of the present invention 1;
Fig. 2 is a kind of analogy method schematic diagram of mobile light application in the embodiment of the present invention 2;
Fig. 3 is a kind of schematic diagram of a scenario of mobile light application in the embodiment of the present invention 2;
Fig. 4 is a kind of structural schematic diagram of analog machine in the embodiment of the present invention 3;
Fig. 5 is a kind of structural schematic diagram of analog machine in the embodiment of the present invention 4.
Specific implementation mode
An embodiment of the present invention provides a kind of analogy methods of mobile light application, for keeping the page of light application fine Adaptation mobile terminal screen size, portable and effective is good integrated with analog machine.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
Term " first ", " second ", " third " in description and claims of this specification and above-mentioned attached drawing, " The (if present)s such as four " are for distinguishing similar object, without being used to describe specific sequence or precedence.It should manage The data that solution uses in this way can be interchanged in the appropriate case, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, product or equipment need not limit In those of clearly listing step or unit, but may include not listing clearly or for these processes, method, production The intrinsic other steps of product or equipment or unit.A point embodiment is specifically described below.
Embodiment 1
Refering to Figure 1, the present invention provides a kind of analogy methods of mobile light application, including:
101, analog machine determines the second ruler according to the first size parameter and adjust instruction input by user of mobile terminal Very little parameter.
First size parameter is the size of the actual screen of preset mobile terminal, and the second dimensional parameters are the simulation after adjustment The size of screen.
It is understood that analog machine is pre-stored the first size parameter of the actual screen of a variety of mobile terminals, first Dimensional parameters are used to indicate the size of the actual screen of mobile terminal, it is to be understood that first size parameter can be pixel, First size parameter is shown in the screen of analog machine, point can indicate the actual screen of mobile terminal away from identical with pixel Size, it should be noted that first size parameter can also be the size of the actual screen of mobile terminal, but different brands are not It is different with the pixel of the mobile terminal of model, and the screen resolution of mobile terminal is different from the screen resolution of analog machine, It is converted, essence indicates identical with pixel, which kind of specific representation is not done and do not limited herein.The present invention couple It is same in the understanding of dimensional parameters, it does not repeat below.
It is understood that for example, due to mobile terminal hardware performance continuous promotion, the screen resolution of mobile terminal Increasing, 1080P (pixel be 1920 × 1080) is very common, and if the pixel of the screen of analog machine be 1280 × 960, the terminal of mobile device and the point of the screen of analog machine can then make the screen of mobile terminal exceed analog machine away from identical The indication range of screen needs first size parameter being adjusted at this time, and the ratio of adjustment can be moved according in practical application The actual screen size of dynamic terminal and content to be shown is needed to determine, can be adjusted to 960 × 540,640 × 360,480 × 270 etc., the size of the simulation screen after adjustment is expressed as the second dimensional parameters, as long as the second dimensional parameters are less than or equal to simulation and set The dimensional parameters of standby screen, do not limit herein.
102, analog machine calculates the scale parameter of first size parameter and the second dimensional parameters.
It is understood that for example, mobile terminal A is mounted with the corresponding APP of application software for running mobile light application, If the pixel of the actual screen of mobile terminal is 1920 (transverse direction) × 1080 (longitudinal direction), the pixel of the simulation screen after adjustment is 960 (transverse direction) × 540 (longitudinal direction), analog machine are calculated according to 1920 and 960, calculate scale parameter, and scale parameter can be the The ratio of two dimensional parameters and first size parameter, in the present example, scale parameter 1/2, if the simulation screen after adjustment Pixel is 540 × 360, then the scale parameter calculated is 1/3, it should be noted that is calculated as horizontal pixel or longitudinal picture herein The corresponding calculating of element.It is not limited herein for specific scale parameter.
103, analog machine is adjusted the page of light application according to scale parameter, so that the page size after adjustment Parameter is corresponding with the second dimensional parameters.
It is understood that being illustrated with above-mentioned example, analog machine is according to scale parameter to the page of light application Face is adjusted, scale parameter 1/2, then needs to be carried out at the same time adjustment to the page of light application, by the page ratio of light application Parameter (1/2) is reduced in proportion, and page size parameter and the pixel 960 (transverse direction) × 540 of the simulation screen after adjustment are (vertical To) identical so that light application page well adapts to the simulation screen after adjustment.
Further, analog machine determines the first drawing area according to the second dimensional parameters.
Second dimensional parameters are the size of the simulation screen after adjustment, and the first drawing area can be a suspension windows.
Analog machine is adjusted the page of light application according to scale parameter so that adjustment after page size parameter with First drawing area is corresponding;Analog machine adds corresponding clear with the page size parameter after adjustment in the first drawing area Look at device assembly.
The page of light application will be presented in browser (such as Chrome) or the browser component with browser same kernel In (such as android.webkit.WebView of Android).Analog machine encapsulates identical with browser of mobile terminal kernel The kernel of browser component, browser component is webkit kernels, and analog machine calls browser component, and analog machine is first Drawing area adds browser component corresponding with page size parameter.When execution, need to pass to the URL of light application clear Look at device assembly.
For example, analog machine adds one greatly in the suspension windows that a size is 960 (transverse direction) × 540 (longitudinal direction) pixels Small identical browser component.
First size parameter and input by user adjust instruction of the analog machine according to mobile terminal in the embodiment of the present invention Determine the second dimensional parameters;First size parameter is the size of the actual screen of preset mobile terminal, and the second dimensional parameters are to adjust The size of simulation screen after whole;Analog machine calculates the scale parameter of first size parameter and the second dimensional parameters;Simulation is set It is standby that the page of light application is adjusted according to scale parameter, so that page size parameter is corresponding with the second dimensional parameters, To make the page of light application can be very good the size of adaptation mobile terminal screen;It is browsed with practical mobile terminal by calling The identical browser component of device kernel, the browser for avoiding analog machine is different from the browser of practical mobile terminal and causes Simulation uncertainty, reduce the implicit dependence to other software environment in system, provide integrated Integrated Development Environment, portable and effective, user experience are good.
Embodiment 2
It please refers to shown in Fig. 2, the present invention provides a kind of analogy methods of mobile light application, include the following steps:
In the present embodiment step 201 and step 202 in embodiment 1 step 101 and step 102 it is identical, do not go to live in the household of one's in-laws on getting married herein It states.
203, analog machine obtains the third dimensional parameters of mobile terminal.
Third dimensional parameters are the size of the practical positive outer rim of mobile terminal, and third dimensional parameters can prestore and be stored in Analog machine, third dimensional parameters can refer in particular to the size of the practical positive outer rim of a mobile terminal, can also refer to various The set of the size of brand or the practical positive outer rim of model mobile terminal, does not limit herein.
204, analog machine determines the second drawing area according to third dimensional parameters and scale parameter.
It is understood that the second drafting area is the outside frame region of the mobile terminal after adjustment, can be visually one The outline border of a mobile phone shape.
205, analog machine is true according to the outer rim of practical mobile terminal and the relative position relation of screen and scale parameter Determine third drawing area.
For example, the embodiment of the present invention can be illustrated in following scene:Mobile terminal A is mounted with application software Corresponding APP is for running mobile light application, if the pixel of the actual screen of mobile terminal is that 640 (transverse direction) × 1136 are (vertical To), if the pixel of the screen of analog machine is 1280 × 960, the screen display of mobile terminal exceeds the screen of analog machine It has been shown that, that is, need the size to the actual screen of mobile terminal to be adjusted, and the pixel of the simulation screen after adjustment is 320 (horizontal To) × 568 (longitudinal direction), for analog machine according to 640 and 320, it is 1/2 to calculate scale parameter.Analog machine is by the page of light application Reduce 1/2.
The third dimensional parameters for the mobile terminal that analog machine obtains are 756 × 1594, and analog machine is according to third size Parameter (756 × 1594) and scale parameter (1/2) determine the second drawing area dimensional parameters (378 × 797), and according to practical shifting The outer rim of dynamic terminal and the relative position relation and scale parameter of screen determine third drawing area.
It should be noted that determine practical mobile terminal outer rim and screen relative position relation can there are many kinds of Realization method, outer rim can refer to the line of composition frame, can also refer to the set of all the points in outer rim, for example, can basis The outer rim of practical mobile terminal determines the relative position relation of outer rim and screen at a distance from screen frame, can also be with Outer rim any two faces side and establishes coordinate system, determine on screen the position of a characteristic point in a coordinate system determine outer rim with The relative position relation of screen, specific method do not limit herein.
Wherein, a kind of method for determining third drawing area being illustrated in method chooses the point in the screen upper left corner It is characterized point p, using the outer rim upper left corner as origin, the left side and top with outer rim are respectively that y-axis and x-axis establish rectangular co-ordinate System, separately down and to the right, the coordinates of characteristic point p in the coordinate system are (62,236) to two axis directions, pass through scale parameter (1/ 2) it calculates (31,118).Analog machine determine third drawing area be in the second drawing area, opposite deviation post (31, 118), and size is 320 × 568 pixels.
206, analog machine is adjusted the page of light application according to scale parameter, so that the page size ginseng after adjustment Number is corresponding with third drawing area.
Simulation screen area after the adjustment of third drawing area, can be for box or with other identifier drawing area.
207, analog machine adds browser group corresponding with the page size parameter after adjustment in third drawing area Part.
The analog machine has the browser group of same kernel by programming language API Calls and mobile device browser Part, for example, the browser component of webkit kernels can be called by Java local interfaces JNI.Analog machine is drawn in third Add browser component corresponding with page size parameter in area.When execution, need the URL of light application passing to browser group Part.
It should be noted that the second drafting area can be a suspension windows, which can be visually one The outer rim of simulating mobile terminal, it may be outer rim mark that third, which draws area, visually the screen of simulating mobile terminal.
208, analog machine obtains the first front picture of practical mobile terminal.
Analog machine obtains the high-definition front picture of mobile terminal A, specifically, can be in the storage of analog machine It is obtained in module, can also obtain, can also be drawn by graphics module from network, specific method does not limit herein.
The dimensional parameters of first front picture are third dimensional parameters;It should be noted that this step can also be in step Before 203, as long as getting the first front picture, specific sequential does not limit.
209, analog machine carries out picture processing according to the first front picture and the first front of scale parameter pair picture, obtains Second front picture.
Analog machine carries out ratio adjustment according to the first front picture and the first front of scale parameter pair picture, obtains second Front picture.
210, analog machine synthesizes the second front picture in the second drawing area.
It please refers to shown in Fig. 3, the second drafting area can be a suspension windows, and visually the suspension windows, which are one, has The window of mobile terminal appearance, effect is true to nature, and simulation is truer.
The analogy method of the mobile light application in the embodiment of the present invention is described above, the present invention is implemented below Analog machine in example is described.
Embodiment 3
It please refers to shown in Fig. 4, a kind of network equipment provided in an embodiment of the present invention includes:
First determining module 301, for true according to the first size parameter of mobile terminal and adjust instruction input by user Fixed second dimensional parameters;First size parameter is the size of the actual screen of preset mobile terminal, and the second dimensional parameters are adjustment The size of simulation screen afterwards.
Computing module 302, for calculating first size parameter and the second dimensional parameters of the first determining module 301 determination Scale parameter.
Module 303 is adjusted, the scale parameter for being calculated according to computing module 302 is adjusted the page of light application, So that page size parameter is corresponding with the second dimensional parameters.
Further, adjustment module 303 includes:
First determination unit 3031, the second dimensional parameters for being calculated according to computing module 302 determine the first drafting area Domain.
The first adjustment unit 3032, for being adjusted to the page of light application according to scale parameter, so that after adjustment Page size parameter is corresponding with the first drawing area that the first determination unit 3031 determines.
First adding device 3033, the first drawing area addition for being determined in the first determination unit 3031 are adjusted with first Whole unit 3032 adjust after the corresponding browser component of page size parameter, the kernel of browser component and mobile terminal The kernel of system browser is identical.
Embodiment 4
It please refers to shown in Fig. 5, a kind of network equipment is provided in the embodiment of the present invention includes:
First determining module 401, for true according to the first size parameter of mobile terminal and adjust instruction input by user Fixed second dimensional parameters;First size parameter is the size of the actual screen of preset mobile terminal, and the second dimensional parameters are adjustment The size of simulation screen afterwards.
Computing module 402, for calculating first size parameter and the second dimensional parameters of the first determining module 401 determination Scale parameter.
Module 403 is adjusted, the scale parameter for being calculated according to computing module 402 is adjusted the page of light application, So that page size parameter is corresponding with the second dimensional parameters.
Further, adjustment module 403 includes:
Acquiring unit 4031, the third dimensional parameters for obtaining mobile terminal, third dimensional parameters are mobile terminal The size of practical front outer rim.
Second determination unit 4032, the third dimensional parameters for being obtained according to acquiring unit 4031 and computing module 402 The scale parameter of calculating determines the second drawing area.
Third determination unit 4033, by according to the outer rim of practical mobile terminal and the relative position relation of screen and based on It calculates the scale parameter that module 402 calculates and determines third drawing area.
Second adjustment unit 4034, the scale parameter for being calculated according to computing unit 402 carry out the page of light application Adjustment, so that the page size parameter after adjustment is corresponding with the third drawing area that third determination unit 4033 determines.
Call unit 4035, the analog machine have by programming language API Calls with mobile device browser identical The browser component of kernel.
Second adding device 4036, the third drawing area addition for being determined in third determination unit 4033 are adjusted with second The corresponding call unit 4035 of page size parameter after whole unit 4034 adjusts calls browser component.
Further, analog machine further includes:
Acquisition module 404, the first front picture for obtaining practical mobile terminal, the dimensional parameters of the first front picture For third dimensional parameters.
Image processing module 405, the first front picture for being obtained according to acquisition module 404 and scale parameter pair first Front picture carries out image procossing, obtains the second front picture.
Synthesis module 406, the second front picture synthesis for handling image processing module 405 determine 4032 in second The second drawing area that unit determines.
Each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also be each Unit physically exists alone, can also be during two or more units are integrated in one unit.Above-mentioned integrated unit both may be used It realizes, can also be realized in the form of SFU software functional unit in the form of using hardware.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these modification or It replaces, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (6)

1. a kind of analogy method of mobile light application, which is characterized in that including:
Analog machine determines the second dimensional parameters according to the first size parameter and adjust instruction input by user of mobile terminal;Institute The size for the actual screen that first size parameter is preset mobile terminal is stated, second dimensional parameters are the imitation screen after adjustment The size of curtain;
The analog machine calculates the scale parameter of the first size parameter and second dimensional parameters;
The analog machine is adjusted the page of light application according to the scale parameter, so that the page size after adjustment Parameter is corresponding with second dimensional parameters;
The analog machine according to the scale parameter to the page of light application be adjusted including:
The analog machine obtains the third dimensional parameters of the mobile terminal, and the third dimensional parameters are the mobile terminal Practical positive outer rim size;
The analog machine determines the second drawing area according to the third dimensional parameters and the scale parameter, and according to reality The outer rim of mobile terminal and the relative position relation of screen and the scale parameter determine third drawing area;
The analog machine is adjusted the page of light application according to the scale parameter, so that the page size ginseng after adjustment Number is corresponding with the third drawing area;The analog machine adds and the page ruler after adjustment in the third drawing area The very little corresponding browser component of parameter, the kernel of the kernel of the browser component and the system browser of the mobile terminal It is identical.
2. the analogy method of mobile light application according to claim 1, which is characterized in that the method further includes:
The analog machine obtains the first front picture of practical mobile terminal, and the dimensional parameters of first front picture are institute State third dimensional parameters;
The analog machine determines the second front picture according to first front picture and the scale parameter;
The analog machine synthesizes second front picture in second drawing area.
3. the analogy method of mobile light application according to claim 1 or 2, the method further include:
The analog machine has the browser component of same kernel by programming language API Calls and mobile device browser.
4. a kind of analog machine, which is characterized in that including:
First determining module, for determining the second ruler according to the first size parameter and adjust instruction input by user of mobile terminal Very little parameter;The first size parameter is the size of the actual screen of preset mobile terminal, and second dimensional parameters are adjustment The size of simulation screen afterwards;
Computing module, the ratio for calculating the second dimensional parameters that the first size parameter is determined with first determining module Example parameter;
Module is adjusted, the scale parameter for being calculated according to the computing module is adjusted the page of light application, with So that the page size parameter is corresponding with second dimensional parameters;
The adjustment module includes:
Acquiring unit, the third dimensional parameters for obtaining mobile terminal, the third dimensional parameters are the mobile terminal The size of practical front outer rim;
Second determination unit, the third dimensional parameters and the scale parameter for being obtained according to the acquiring unit determine Second drawing area,
Third determination unit, for being joined according to the outer rim of practical mobile terminal and the relative position relation of screen and the ratio Number determines third drawing area;
Second adjustment unit, for being adjusted to the page of light application according to the scale parameter, so that the page after adjustment Dimensional parameters are corresponding with the third drawing area that the third determination unit determines;
Second adding device, in the third drawing area addition that the third determination unit determines and the page ruler after adjustment The very little corresponding browser component of parameter, the kernel of the kernel of the browser component and the system browser of the mobile terminal It is identical.
5. analog machine according to claim 4, which is characterized in that further include:
Acquisition module, the first front picture for obtaining practical mobile terminal, the dimensional parameters of first front picture are The third dimensional parameters;
Image processing module, for being carried out to first front picture according to first front picture and the scale parameter Image procossing obtains the second front picture;
Synthesis module, for synthesizing second front picture in second drawing area.
6. analog machine according to claim 4 or 5, which is characterized in that further include:
Call unit, the analog machine have the clear of same kernel by programming language API Calls and mobile device browser Look at device assembly.
CN201510854462.4A 2015-11-30 2015-11-30 A kind of analogy method and equipment of mobile light application Active CN105446796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510854462.4A CN105446796B (en) 2015-11-30 2015-11-30 A kind of analogy method and equipment of mobile light application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510854462.4A CN105446796B (en) 2015-11-30 2015-11-30 A kind of analogy method and equipment of mobile light application

Publications (2)

Publication Number Publication Date
CN105446796A CN105446796A (en) 2016-03-30
CN105446796B true CN105446796B (en) 2018-10-23

Family

ID=55557033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510854462.4A Active CN105446796B (en) 2015-11-30 2015-11-30 A kind of analogy method and equipment of mobile light application

Country Status (1)

Country Link
CN (1) CN105446796B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344950A (en) * 2008-06-10 2009-01-14 熊刚 Network community marketing method by utilizing forum and blog in electronic commerce system
CN101729160A (en) * 2008-10-30 2010-06-09 中兴通讯股份有限公司 Method for generating test information for automatic test system of mobile phone software
CN101853158A (en) * 2010-05-11 2010-10-06 中兴通讯股份有限公司 Method and device for adjusting Widget window
CN103135979A (en) * 2011-12-05 2013-06-05 中国移动通信集团广东有限公司 Method, device and system for generating terminal applications
CN103814371A (en) * 2011-09-26 2014-05-21 英特尔公司 Simulation of Web applications and secondary devices in a Web browser, Web application development tools, and methods using the same
CN103838477A (en) * 2014-03-05 2014-06-04 天闻数媒科技(北京)有限公司 Simulator text display method and device
CN104270579A (en) * 2014-09-24 2015-01-07 青岛海信移动通信技术股份有限公司 Terminal application interface pixel adjusting method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101782995B1 (en) * 2011-01-13 2017-09-29 삼성전자주식회사 method and apparatus of Web browsing through code caching and optimization for JavaScript
CN105021181B (en) * 2014-04-28 2018-03-30 高德信息技术有限公司 A kind of drawing electronic map area determination method, device and navigation equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344950A (en) * 2008-06-10 2009-01-14 熊刚 Network community marketing method by utilizing forum and blog in electronic commerce system
CN101729160A (en) * 2008-10-30 2010-06-09 中兴通讯股份有限公司 Method for generating test information for automatic test system of mobile phone software
CN101853158A (en) * 2010-05-11 2010-10-06 中兴通讯股份有限公司 Method and device for adjusting Widget window
CN103814371A (en) * 2011-09-26 2014-05-21 英特尔公司 Simulation of Web applications and secondary devices in a Web browser, Web application development tools, and methods using the same
CN103135979A (en) * 2011-12-05 2013-06-05 中国移动通信集团广东有限公司 Method, device and system for generating terminal applications
CN103838477A (en) * 2014-03-05 2014-06-04 天闻数媒科技(北京)有限公司 Simulator text display method and device
CN104270579A (en) * 2014-09-24 2015-01-07 青岛海信移动通信技术股份有限公司 Terminal application interface pixel adjusting method and terminal

Also Published As

Publication number Publication date
CN105446796A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN106095437B (en) The implementation method and device of the user interface layout type of RTL from right to left
CN103593196A (en) Page layout self-adaptation method and device
CN105096368B (en) Three dimensional object processing method and relevant apparatus
CN105787402B (en) A kind of information displaying method and device
CN105528207A (en) Virtual reality system, and method and apparatus for displaying Android application images therein
WO2014107405A1 (en) Reactive ad formats
CN111177621B (en) Web page development method, device and system
CN104978433A (en) Web page display method and device
CN107707965B (en) Bullet screen generation method and device
CN105335410A (en) Synthesis rendering acceleration based webpage updating method and apparatus
CN108228121B (en) Browser split screen method and device and mobile terminal
CN105869199A (en) Apparatus and method for processing animation
CN104899038A (en) Interface style transformation method and device
CN106683152B (en) 3D visual effect analogy method and device
CN107168606B (en) Dialog control display methods, device and user terminal
CN106909263A (en) The interactive display method and system of 3-D view
CN105446796B (en) A kind of analogy method and equipment of mobile light application
CN110288934B (en) Imaging maintaining method and device based on flexible screen and mobile terminal
CN114693780A (en) Image processing method, device, equipment, storage medium and program product
Girašek et al. Visualization of temperature fields distribution on power module within web interface
CN110930499B (en) 3D data processing method and device
CN104361011A (en) Dynamic color display implementation method and device
CN110020285B (en) Histogram processing method and device
CN106156371B (en) Method and device for realizing complete background picture of webpage
US20190172255A1 (en) System and method for rendering shadows for a virtual environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant