CN103257897B - Starting method and device of mobile terminal browser and mobile terminal - Google Patents
Starting method and device of mobile terminal browser and mobile terminal Download PDFInfo
- Publication number
- CN103257897B CN103257897B CN201310217710.5A CN201310217710A CN103257897B CN 103257897 B CN103257897 B CN 103257897B CN 201310217710 A CN201310217710 A CN 201310217710A CN 103257897 B CN103257897 B CN 103257897B
- Authority
- CN
- China
- Prior art keywords
- file
- browser
- mobile terminal
- thread
- interface
- 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.)
- Expired - Fee Related
Links
Abstract
The embodiment of the invention discloses a method and a device for starting a browser of a mobile terminal and the mobile terminal, relates to the field of mobile terminal Internet, and can improve the starting efficiency of the browser so as to improve the user experience. The method of the embodiment of the invention comprises the following steps: after a user triggers an operation of starting a browser, obtaining a file for displaying a main interface, wherein the file for displaying the main interface comprises a configuration file and a resource file; analyzing the file for displaying the main interface to form an interface layout layer; and displaying the content of the interface layout layer on a screen through an image synthesizer.
Description
Technical field
The present invention relates to mobile terminal internet arena, particularly relate to the startup side of a kind of browser of mobile terminal
Method, device and mobile terminal.
Background technology
Along with popularizing of mobile terminal, increasing user is surfed the Net by electronic equipments such as mobile phones, is applied to
The browser technology of mobile terminal is developed rapidly the most therewith.In existing browser start-up technique, typically
It is main interface and the webpage being loaded and rendering browser by browser engine, in this process, browses
Device needs first to start browser engine, afterwards can be by main showing interface to user.
Inventor finds that during research and development prior art at least exists problems with, owing to user is usually
It will be seen that main interface is as the standard judging whether browser has started, therefore, the startup of this browser
Mode leaves the waiting time that user is too much for, and the starting efficiency of browser is relatively low, reduces the use body of user
Test.
Summary of the invention
The purpose of the embodiment of the present invention is to provide startup method, device and the shifting of a kind of browser of mobile terminal
Dynamic terminal, it is possible to increase the starting efficiency of browser, and then improve the experience of user.
A first aspect of the present invention, it is provided that a kind of startup method of browser of mobile terminal, the method includes:
Trigger user after starting the operation of browser, obtain for showing the file at main interface, described be used for
Show that the file at main interface includes configuration file and resource file;
Resolve the described file for showing main interface, form interface layout layer;
By image synthesizer, the content of described interface layout layer is shown to screen.
In the first possible implementation of first aspect, described by image synthesizer by described interface
The content of layout layer shows to screen, including:
By described image synthesizer, the content of described interface layout layer is blended in described mobile terminal
Deposit;
The content of the described interface layout layer after synthesis is read from described internal memory, and by described interface layout layer
Content show on the screen.
In the implementation that the second is possible, trigger the operation starting browser user after, acquisition is used for
Before showing the file at main interface, also include:
Detect the number of the CPU core of described mobile terminal, if the number of the CPU core of described mobile terminal is
One, described acquisition is used for showing the file at main interface, including:
First thread is created in the first CPU core;
Described configuration file and described resource file is loaded successively in described first thread.
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible,
Described by image synthesizer, the content of described interface layout layer is shown to screen after, described method is also
Including:
The browser engine of described browser is started in described first thread.
In the 4th kind of possible implementation, trigger the operation starting browser user after, acquisition is used for
Before showing the file at main interface, also include:
Detect the number of the CPU core of described mobile terminal, if the number of the CPU core of described mobile terminal is
Two or more, described acquisition is used for showing the file at main interface, including:
In the second CPU core, create the second thread, the 3rd CPU core creates the 3rd thread;
In described second thread, load described configuration file, and load described resource in described 3rd thread
File.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation,
Described by image synthesizer, the content of described interface layout layer is shown to screen after, described method is also
Including:
The browser engine of described browser is started in described second thread or the 3rd thread.
In conjunction with the 4th kind of possible implementation of first aspect, in the 6th kind of possible implementation,
If the number of the CPU core of described mobile terminal be three or more than, described method also includes:
In the 4th CPU core, create the 4th thread, and start described browser in described 4th thread
Browser engine.
In the 7th kind of possible implementation, the described file for showing main interface also includes library file.
In the 8th kind of possible implementation, described interface layout layer is the layout layer through optimizing, wherein,
Described optimization includes: remove redundancy layout hierarchy and/or merge described layout layer hierarchy attributes and/or hide
Section layout layer.
A second aspect of the present invention, it is provided that the starter of a kind of browser of mobile terminal, including:
Acquisition module, after trigger the operation starting browser user, obtains for showing main interface
File, the described file for showing main interface includes configuration file and resource file;
Parsing module, described for showing the file at main interface for resolving, form interface layout layer;
Display module, for showing the content of described interface layout layer to screen by image synthesizer.
Further, the described display module of the present embodiment, including:
Synthesis unit, for being blended into described by described image synthesizer by the content of described interface layout layer
The internal memory of mobile terminal;
Read unit, the content of the described interface layout layer after reading synthesis from described internal memory, and will
The content of described interface layout layer shows on the screen.
Further, the device of the present embodiment, also include:
Detection module, for detecting the number of the CPU core of described mobile terminal,
If the number of the CPU core of described mobile terminal is one, described acquisition module specifically for:
First thread is created in the first CPU core;
Described configuration file and described resource file is loaded successively in described first thread.
Further, the device of the present embodiment, also include:
First browser engine starts module, for starting browsing of described browser in described first thread
Device engine.
Further, the device of the present embodiment, if the number of the CPU core of described mobile terminal be two or
Above, described acquisition module specifically for:
In the second CPU core, create the second thread, the 3rd CPU core creates the 3rd thread;
In described second thread, load described configuration file, and load described resource in described 3rd thread
File.
Further, the device of the present embodiment, also include:
Second browser engine starts module, described clear for starting in described second thread or the 3rd thread
Look at the browser engine of device.
Further, the device of the present embodiment, if the number of the CPU core of described mobile terminal be three or
Above, described acquisition module is additionally operable to:
In the 4th CPU core, create the 4th thread, and start described browser in described 4th thread
Browser engine.
Further, the described file for showing main interface also includes library file.
Further, described interface layout layer is that wherein, described optimization includes through the layout layer optimized:
Remove the layout hierarchy of redundancy and/or merge hierarchy attributes and/or the hidden parts layout layer of described layout layer.
A third aspect of the present invention, it is provided that a kind of mobile terminal, including: shell, screen, processor, interior
Deposit, circuit board and power circuit;
Described screen disposes on the housing, and described circuit board is placed in the interior volume that described shell surrounds,
Described processor and described memory setting are on described circuit board;
Described power circuit, powers for each circuit or the device for described mobile terminal;
Described processor is used for processing data, and specifically for:
Trigger user after starting the operation of browser, obtain for showing the file at main interface, described be used for
Show that the file at main interface includes configuration file and resource file;
Resolve the described file for showing main interface, form interface layout layer;
By image synthesizer, the content of described interface layout layer is shown to described screen.
Further, described processor specifically for:
By described image synthesizer, the content of described interface layout layer is blended into described in described mobile terminal
Internal memory;
The content of the described interface layout layer after synthesis is read from described internal memory, and by described interface layout layer
Content show on the screen.
Further, described mobile terminal includes mobile phone, panel computer or personal digital assistant.
Startup method, device and the mobile terminal of the browser of mobile terminal of the embodiment of the present invention, by first
Obtain and the display associated documents at main interface, and the instrument image synthesizer carried by system is shown and browses
The main interface of device, improves the display efficiency at main interface, and then improves the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, required in embodiment being described below
Accompanying drawing to be used is briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is one of schematic flow sheet of startup method of the browser of mobile terminal of the embodiment of the present invention;
Fig. 2 is the two of the schematic flow sheet of the startup method of the browser of mobile terminal of the embodiment of the present invention;
Fig. 3 is the three of the schematic flow sheet of the startup method of the browser of mobile terminal of the embodiment of the present invention;
Fig. 4 is the four of the schematic flow sheet of the startup method of the browser of mobile terminal of the embodiment of the present invention;
Fig. 5 is one of schematic diagram of starter of browser of mobile terminal of the embodiment of the present invention;
Fig. 6 is the two of the schematic diagram of the starter of the browser of mobile terminal of the embodiment of the present invention;
Fig. 7 is the schematic diagram of the mobile terminal of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
It should be noted that embodiments of the invention are preferably applied to mobile device, such as, IOS
(IOS is the handheld equipment operating system developed by Apple), (android system is one to Android operation system
Kind of freedom based on Linux and the operating system of open source code), Windows Phone operating system
The mobile device of (Windows Phone is the Mobile phone operating system that Microsoft issues), the most also fits
For personal computer and other Intelligent mobile equipments, this is not construed as limiting by the present invention.
Embodiment one
Embodiments provide a kind of startup method of browser of mobile terminal, mobile terminal perform,
Specifically performed, as it is shown in figure 1, comprise the following steps by the starter of the browser arranged in mobile terminal:
Step 101, trigger the operation starting browser user after, obtain for showing the file at main interface,
The described file for showing main interface includes configuration file and resource file;
Mobile terminal in the present embodiment can be mobile phone, it is also possible to be panel computer or personal digital assistant,
The present invention does not limits at this.It can be manually to click on this browser that user triggers the operation of startup browser
Icon, or by input through keyboard instruction etc..After user triggers the operation of startup browser, mobile terminal
Create corresponding process for this browser, and obtain the file for showing main interface.For showing main interface
File include configuration file and resource file, wherein, configuration file includes the attribute information at main interface,
The information such as the size of such as font, color, resource file includes the pattern etc. of picture, button.Further,
The present embodiment for showing that the file at main interface also includes the library file for interface display, generally,
When needing library file can show main interface, the present invention has only to load the display with main interface
Relevant library file.
As one embodiment of the present invention, after the present embodiment triggers the operation starting browser user,
Before obtaining the file for showing main interface, further comprising the steps of:
Detect the CPU(central processing unit of described mobile terminal, Central Processing Unit) kernel
Number.
CPU core is the driving of managing mobile phone hardware, along with the progress of mobile terminal technology, for improving system
The speed of service, a mobile terminal can be provided with multiple CPU core simultaneously.
In the present embodiment, can be obtained by the method for direct access systems parameter in the CPU of mobile terminal
The number of core, it is also possible to detected by additive method, the present invention does not limits at this.Due to a movement
Terminal is after production completes, and the number of CPU core typically will not change, and therefore, the present invention is in detection
After the number of CPU core, this parameter information can be saved, automatically according to this parameter when next time starts
Information performs corresponding action.That is, it is only necessary to detect CPU core when starting browser first
Number, the most no longer do the work detected.Furthermore it is also possible to examine (such as 30 days) at set intervals
Survey the number of a CPU core, to ensure the accuracy of parameter information, concordance.
Only have as a example by a CPU core by mobile terminal below, the method for the present embodiment be described in detail:
If the number of the CPU core of mobile terminal is one, the i.e. first CPU core, concrete, such as Fig. 2
Shown in, the step obtaining the file for showing main interface includes:
Step 1011, in the first CPU core create first thread;
Step 1012, in described first thread, load described configuration file and described resource file successively.
Thread (thread) is the control stream of certain single order in process, is the minimum unit of program execution stream.
The present embodiment loading configuration file and resource file successively in first thread, the present embodiment is to loading sequence not
Limit, say, that can also first load resource file, reload configuration file.It addition, for needs
Loading the situation of library file, first thread also to load the library file for showing main interface, the present embodiment storehouse
The loading sequence of file does not limits, and such as, the loading of library file can be at configuration file box resource literary composition
Carry out before the loading of part.
Step 102, the described file for showing main interface of parsing, form interface layout layer;
After show that the file at main interface has loaded, mobile terminal according to the layout structure of figure layer,
Resolve above-mentioned file further.Figure layer is a region at interface, can have multiple figure layer in same interface
Exist simultaneously, and can be overlapping between each figure layer, and may decide that each figure layer is the most visible,
It also is able to the hierarchical relationship between self-defined each figure layer simultaneously.After resolving the file for showing main interface,
Just can be formed to scheme the layer interface layout layer as ultimate unit, interface layout layer is for showing whole interface
The layout structure of figure layer.
Described interface layout layer is that wherein, described optimization includes through the layout layer optimized: remove redundancy
Layout hierarchy and/or merge hierarchy attributes and/or the hidden parts layout layer of described layout layer.Due to research staff
When writing code, often share out the work and help one another, when therefore the code of each research staff being combined,
The problems such as the redundancy that there will be layout hierarchy unavoidably, and interface layout layer is being blended into internal memory by these redundancies
During can postpone synthesis time.In order to shorten the process of synthesis, the present invention optimizes the structure of layout layer,
Such as remove the layout hierarchy of redundancy or merge hierarchy attributes;Hide a part of layout, needs when
Show this layout again.The present embodiment, after this redundancy etc. being removed, can be greatly shortened the process of synthesis, enter
And improve the display speed at main interface.
Step 103, by image synthesizer, the content of described interface layout layer is shown to screen.
Being formed after interface layout layer, the image synthesizer that mobile terminal is carried by system is by this interface layout
The content of layer is shown on screen, and concrete, this process comprises the following steps:
Step 1031, by described image synthesizer, the content of described interface layout layer is blended into described shifting
The internal memory of dynamic terminal;
Step 1032, from described internal memory, read the content of described interface layout layer after synthesis, and by described
The content of interface layout layer shows on the screen.
Image synthesizer (surface fligger) is the assembly for processing image that system carries, the present embodiment
In, first image synthesizer is synthesized to the content of interface layout layer in internal memory, and then, processor is from internal memory
The content of the middle interface layout layer read after synthesizing, and the content of described interface layout layer is shown mobile whole
On the screen of end.
Further, when mobile terminal only has a CPU core, described by image synthesizer by institute
Stating after the content of interface layout layer shows to screen, the method for the present embodiment also includes:
Step 104, the browser engine of described browser of starting in described first thread.
After the display at main interface completes, the mobile terminal of the present embodiment proceeds browser and starts relevant
Other work, the startup of such as browser engine.It addition, after the display at main interface completes, mobile
Terminal can also configure application layer further.In the case of only CPU core, browser engine
Start and continue to complete in first thread.
First the startup method of the browser of mobile terminal of the present embodiment, by obtaining the display phase with main interface
Close file, and the instrument image synthesizer carried by system shows the main interface of browser, and will browse
After the processes such as the startup of device engine are put into the display at main interface, start browser engine also with prior art
Loaded by browser engine and render main interface and compare, it is possible to being effectively shortened the display time at main interface,
Improve the experience of user.It addition, the present embodiment is by the optimization to interface layout layer, it is also possible to have
Effect shortens the display time at main interface.
Embodiment two
Have as a example by two CPU cores by mobile terminal below, the method that the present invention is discussed in detail.
As it is shown on figure 3, the method for the present embodiment, including:
Step 201, user trigger start browser operation after, detection mobile terminal CPU core
Number;
It can be the icon manually clicking on this browser that user triggers the operation of startup browser, or passes through key
Dish input instruction etc..In the present embodiment, can be obtained mobile whole by the method for direct access systems parameter
The number of the CPU core of end, it is also possible to being detected by additive method, the present invention does not limits at this.By
In a mobile terminal after production completes, the number of CPU core typically will not change, therefore, and this
Inventing after the number of detection CPU core, can be saved by this parameter information, next time is automatic when starting
Corresponding action is performed according to this parameter information.That is, it is only necessary to examine when starting browser first
Survey the number of CPU core, the most no longer do the work detected.Furthermore it is also possible at set intervals (as
30 days) detection CPU core number, to ensure the accuracy of parameter information, concordance.
Step 202, acquisition are for showing the file at main interface, and the described file for showing main interface includes joining
Put file and resource file;
For showing that the file at main interface includes configuration file and resource file, wherein, configuration file comprises
Have the information such as the size of the attribute information at main interface, such as font, color, resource file include picture, by
The pattern etc. of button.Further, the present embodiment is aobvious for interface for showing that the file at main interface also includes
The library file shown, generally, during for needing library file can show main interface, the present invention
Have only to load the library file relevant to the display at main interface.
Mobile terminal has two CPU cores, and the i.e. second CPU core and the 3rd CPU core are concrete,
The step obtaining the file for showing main interface includes:
Step 2021, in the second CPU core, create the second thread, the 3rd CPU core creates the
Three threads;
Step 2022, in described second thread, load described configuration file, and add in described 3rd thread
Carry described resource file.
Loading configuration file in the present embodiment the second thread, and load described resource file in the 3rd thread,
To improve the efficiency loading the file for showing main interface.It addition, for need load library file in the case of,
The present embodiment can load the library file for showing main interface in the second thread or the 3rd thread, for entering
One step improves loading efficiency, and the loading of library file should select the process first completing to load, such as, second
Process has completed the loading to configuration file, but the 3rd thread is now not fully complete the loading to resource file, because of
This, mobile terminal continues to select the second process to load library file.
Step 203, the described file for showing main interface of parsing, form interface layout layer;
After show that the file at main interface has loaded, mobile terminal according to the layout structure of figure layer,
Resolve above-mentioned file further.Figure layer is a region at interface, can have multiple figure layer in same interface
Exist simultaneously, and can be overlapping between each figure layer, and may decide that each figure layer is the most visible,
It also is able to the hierarchical relationship between self-defined each figure layer simultaneously.After resolving the file for showing main interface,
Just can be formed to scheme the layer interface layout layer as ultimate unit, interface layout layer is for showing whole interface
The layout structure of figure layer.
Described interface layout layer is that wherein, described optimization includes through the layout layer optimized: remove redundancy
Layout hierarchy and/or merge hierarchy attributes and/or the hidden parts layout layer of described layout layer.Due to research staff
When writing code, often share out the work and help one another, when therefore the code of each research staff being combined,
The problems such as the redundancy that there will be layout hierarchy unavoidably, and interface layout layer is being blended into internal memory by these redundancies
During can postpone synthesis time.In order to shorten the process of synthesis, the present invention optimizes the structure of layout layer,
Such as remove the layout hierarchy of redundancy or merge hierarchy attributes;Hide a part of layout, needs when
Show this layout again.The present embodiment, after this redundancy etc. being removed, can be greatly shortened the process of synthesis, enter
And improve the display speed at main interface.
Step 204, by described image synthesizer, the content of described interface layout layer is blended into described movement
The internal memory of terminal;
Being formed after interface layout layer, the image synthesizer that mobile terminal is carried by system is by this interface layout
The content of layer is shown on screen.
Step 205, from described internal memory, read the content of described interface layout layer after synthesis, and by described boundary
The content of face layout layer shows on the screen.
Step 206, the browser engine of described browser of starting in described second thread or the 3rd thread.
After the display at main interface completes, the mobile terminal of the present embodiment proceeds browser and starts relevant
Other work, the startup of such as browser engine.It addition, after the display at main interface completes, mobile
Terminal can also configure application layer further.In the case of having two CPU cores, opening of browser engine
Move and can complete in the second thread or the 3rd thread.
First the startup method of the browser of mobile terminal of the present embodiment, by obtaining the display phase with main interface
Close file, and the instrument image synthesizer carried by system shows the main interface of browser, and will browse
After the processes such as the startup of device engine are put into the display at main interface, start browser engine also with prior art
Loaded by browser engine and render main interface and compare, it is possible to being effectively shortened the display time at main interface,
Improve the experience of user.It addition, the present embodiment is by the optimization to interface layout layer, it is also possible to have
Effect shortens the display time at main interface.
Embodiment three
Have as a example by three or three CPU cores by mobile terminal below, the method that the present invention is discussed in detail.
As shown in Figure 4, the method for the present embodiment, including:
Step 301, user trigger start browser operation after, detection mobile terminal CPU core
Number;
It can be the icon manually clicking on this browser that user triggers the operation of startup browser, or passes through key
Dish input instruction etc..In the present embodiment, can be obtained mobile whole by the method for direct access systems parameter
The number of the CPU core of end, it is also possible to being detected by additive method, the present invention does not limits at this.By
In a mobile terminal after production completes, the number of CPU core typically will not change, therefore, and this
Inventing after the number of detection CPU core, can be saved by this parameter information, next time is automatic when starting
Corresponding action is performed according to this parameter information.That is, it is only necessary to examine when starting browser first
Survey the number of CPU core, the most no longer do the work detected.Furthermore it is also possible at set intervals (as
30 days) detection CPU core number, to ensure the accuracy of parameter information, concordance.
Step 302, acquisition are for showing the file at main interface, and the described file for showing main interface includes joining
Put file and resource file;
For showing that the file at main interface includes configuration file and resource file, wherein, configuration file comprises
Have the information such as the size of the attribute information at main interface, such as font, color, resource file include picture, by
The pattern etc. of button.Further, the present embodiment is aobvious for interface for showing that the file at main interface also includes
The library file shown, generally, during for needing library file can show main interface, the present invention
Have only to load the library file relevant to the display at main interface.
Mobile terminal at least has three CPU cores, the i.e. second CPU core, the 3rd CPU core and the 4th
CPU core.
As the first embodiment of the present embodiment, for need not load other for showing main interface
The situation of file, the step obtaining the file for showing main interface includes:
Step 3021, in the second CPU core, create the second thread, the 3rd CPU core creates the 3rd line
Journey, creates the 4th thread in the 4th process;
Step 3022, in described second thread, load described configuration file, load in described 3rd thread
Described resource file, and in described 4th thread, start browser engine.
Loading configuration file in the present embodiment the second thread, loads described resource file in the 3rd thread, and
While loading the file for showing main interface, start in idle CPU core the-the four CPU core
Browser engine, to improve the starting efficiency of browser.It addition, during for more than three CPU cores,
Such as, mobile terminal has the 5th CPU core, the 6th CPU core etc., the 5th CPU core, the 6th CPU
Kernel can load simultaneously or perform other and start the step needed for browser, such as, join application layer
Put, be finally completed the startup of browser.
As the second embodiment of the present embodiment, for needing to load other for the literary composition showing main interface
The situation of part, such as library file, then mobile terminal creates the second thread in the second CPU core, at the 3rd CPU
Kernel creates the 3rd thread, the 4th process creates the 4th thread;And second load configuration literary composition in thread
Part, loads resource file in the 3rd thread, loading library file in the 4th process:
If mobile terminal has a CPU core of more than three, such as, mobile terminal have the 5th CPU core,
6th CPU cores etc., then the startup of browser engine is carried out in the 5th CPU core or the 6th CPU core;
If mobile terminal the most only has three CPU cores, then the startup of browser engine can show at main interface
Having shown and carried out afterwards, as a kind of special circumstances, mobile terminal has three CPU cores, and wherein one
Item is more than other two for showing adding of the file at main interface for the load time showing the file at main interface
The load time of load time, such as resource file > load time of load time+library file of configuration file,
Then the second process loads resource file, the 3rd process loading configuration file successively and library file, and the 4th process is same
Shi Qidong browser engine, to shorten the startup time of browser.
Step 303, the described file for showing main interface of parsing, form interface layout layer;
After show that the file at main interface has loaded, mobile terminal according to the layout structure of figure layer,
Resolve above-mentioned file further.Figure layer is a region at interface, can have multiple figure layer in same interface
Exist simultaneously, and can be overlapping between each figure layer, and may decide that each figure layer is the most visible,
It also is able to the hierarchical relationship between self-defined each figure layer simultaneously.After resolving the file for showing main interface,
Just can be formed to scheme the layer interface layout layer as ultimate unit, interface layout layer is for showing whole interface
The layout structure of figure layer.
Further, described interface layout layer is that wherein, described optimization includes through the layout layer optimized:
Remove the layout hierarchy of redundancy and/or merge hierarchy attributes and/or the hidden parts layout layer of described layout layer.By
In research staff when writing code, often share out the work and help one another, therefore the code of each research staff is merged
Time together, the problem such as redundancy that there will be layout hierarchy unavoidably, and these redundancies are by interface layout lamination
Become the time that can postpone synthesis to internal memory.In order to shorten the process of synthesis, the present invention optimizes layout
The structure of layer, such as, remove the layout hierarchy of redundancy or merge hierarchy attributes;Hide a part of layout,
This layout is shown again the when of needs.The present embodiment, after this redundancy etc. being removed, can be greatly shortened synthesis
Process, and then improve the display speed at main interface.
Step 304, by described image synthesizer, the content of described interface layout layer is blended into described movement
The internal memory of terminal;
Being formed after interface layout layer, the image synthesizer that mobile terminal is carried by system is by this interface layout
The content of layer is shown on screen.
Step 305, from described internal memory, read the content of described interface layout layer after synthesis, and by described boundary
The content of face layout layer shows on the screen.
First the startup method of the browser of mobile terminal of the present embodiment, by obtaining the display phase with main interface
Close file, and the instrument image synthesizer carried by system shows the main interface of browser, with existing skill
Art is first started browser engine and is loaded by browser engine and render main interface and compare, it is possible to effectively contract
The short display time at main interface, improve the experience of user.It addition, the present embodiment is by interface
The optimization of layout layer, it is also possible to effectively shorten the display time at main interface.
Corresponding with embodiment of the method, the present embodiment also provides for the starter of a kind of browser of mobile terminal,
As it is shown in figure 5, include:
Acquisition module 11, after trigger the operation starting browser user, obtains and is used for showing main interface
File, the described file for showing main interface includes configuration file and resource file;
Parsing module 12, described for showing the file at main interface for resolving, form interface layout layer;
Display module 13, for showing the content of described interface layout layer to screen by image synthesizer.
Further, as shown in Figure 6, the described display module 13 of the present embodiment, including:
Synthesis unit 131, for being blended into institute by described image synthesizer by the content of described interface layout layer
State the internal memory of mobile terminal;
Read unit 132, the content of the described interface layout layer after reading synthesis from described internal memory, and
The content of described interface layout layer is shown on the screen.
Further, the device of the present embodiment, also include:
Detection module 10, for detecting the number of the CPU core of described mobile terminal,
If the number of the CPU core of described mobile terminal is one, described acquisition module 11 specifically for:
First thread is created in the first CPU core;
Described configuration file and described resource file is loaded successively in described first thread.
Further, the device of the present embodiment, also include:
First browser engine starts module 14, for starting the clear of described browser in described first thread
Look at device engine.
Further, the device of the present embodiment, if the number of the CPU core of described mobile terminal be two or
Above, described acquisition module 11 specifically for:
In the second CPU core, create the second thread, the 3rd CPU core creates the 3rd thread;
In described second thread, load described configuration file, and load described resource in described 3rd thread
File.
Further, the device of the present embodiment, also include:
Second browser engine starts module, described clear for starting in described second thread or the 3rd thread
Look at the browser engine of device.
Further, the device of the present embodiment, if the number of the CPU core of described mobile terminal be three or
Above, described acquisition module 11 is additionally operable to:
In the 4th CPU core, create the 4th thread, and start described browser in described 4th thread
Browser engine.
Further, the described file for showing main interface also includes library file.
Further, described interface layout layer is that wherein, described optimization includes through the layout layer optimized:
Remove the layout hierarchy of redundancy and/or merge hierarchy attributes and/or the hidden parts layout layer of described layout layer.
Accordingly, the embodiment of the present invention additionally provides a kind of mobile terminal, as it is shown in fig. 7, this mobile terminal bag
Include: shell 21, screen 22, processor 23, internal memory 24, circuit board 25 and power circuit 26;Wherein,
Described screen 22 is placed on described shell 21, and described circuit board 25 is placed in what described shell 21 surrounded
Interior volume, described processor 23 and described internal memory 24 are arranged on described circuit board 25;
Described power circuit 26, powers for each circuit or the device for described mobile terminal;
Described processor 23 is used for processing data, and specifically for:
Trigger user after starting the operation of browser, obtain for showing the file at main interface, described be used for
Show that the file at main interface includes configuration file and resource file;
Resolve the described file for showing main interface, form interface layout layer;
By image synthesizer, the content of described interface layout layer is shown to described screen 22.
Further, described processor 23 specifically for:
By described image synthesizer, the content of described interface layout layer is blended into described in described mobile terminal
Internal memory;
The content of the described interface layout layer after synthesis is read from described internal memory 24, and by described interface layout
The content of layer shows on screen 22.
Further, the mobile terminal that the embodiment of the present invention provides can be mobile phone, panel computer or individual number
Word assistant etc. any one there is the terminal unit of browser.
It is pointed out that the embodiment of the present invention is applicable to the mobile terminal of any operating system, as Android,
The mobile terminal of the operating systems such as wp or ios, can realize by modifying any one operating system,
This is not limited by the present invention.
Each embodiment in this specification all uses the mode gone forward one by one to describe, phase homophase between each embodiment
As part see mutually, what each embodiment stressed is the difference with other embodiments.
For device embodiment, owing to it is substantially similar to embodiment of the method, so describing to compare
Simply, relevant part sees the part of embodiment of the method and illustrates.
It should be noted that, device embodiment described above is only that schematically wherein said conduct divides
Unit from part description can be or may not be physically separate, the parts shown as unit
Can be or may not be physical location, i.e. may be located at a place, or can also be distributed to many
On individual NE.Some or all of module therein can be selected according to the actual needs to realize this reality
Execute the purpose of example scheme.It addition, in the device embodiment accompanying drawing of present invention offer, the connection between module is closed
System represents have communication connection between them, specifically can be implemented as one or more communication bus or holding wire.
Those of ordinary skill in the art, in the case of not paying creative work, are i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Bright can add the mode of required common hardware by software and realize, naturally it is also possible to be included by specialized hardware
Special IC, dedicated cpu, private memory, special components and parts etc. realize.Generally,
All functions completed by computer program can realize with corresponding hardware easily, and, it is used for
The particular hardware structure realizing same function can also be diversified, such as analog circuit, digital circuit
Or special circuit etc..But, the most more in the case of software program realize being more preferably embodiment party
Formula.Based on such understanding, prior art is contributed by technical scheme the most in other words
Part can embody with the form of software product, and this computer software product is stored in the storage that can read
In medium, such as the floppy disk of computer, USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc.,
Including some instructions with so that a computer equipment (can be personal computer, server, or net
Network equipment etc.) perform the method described in each embodiment of the present invention.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to
This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in
Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should
It is as the criterion with described scope of the claims.
Claims (21)
1. the startup method of a browser of mobile terminal, it is characterised in that including:
Trigger user after starting the operation of browser, obtain for showing the file at main interface, described be used for
Show that the file at main interface includes configuration file and resource file;
Resolve the described file for showing main interface, form interface layout layer;
The instrument image synthesizer carried by system shows the main interface of browser, and by browser engine
Start-up course be put into main interface display after.
Method the most according to claim 1, it is characterised in that the described tool drawing carried by system
As synthesizer shows the main interface of browser, including:
By described image synthesizer, the content of described interface layout layer is blended in described mobile terminal
Deposit;
The content of the described interface layout layer after synthesis is read from described internal memory, and by described interface layout layer
Content show on screen.
Method the most according to claim 1, it is characterised in that trigger the behaviour starting browser user
After work, before obtaining the file for showing main interface, also include:
Detect the number of the central processor CPU kernel of described mobile terminal, if the CPU of described mobile terminal
The number of kernel is one, and described acquisition is used for showing the file at main interface, including:
First thread is created in the first CPU core;
Described configuration file and described resource file is loaded successively in described first thread.
Method the most according to claim 3, it is characterised in that start described in described first thread
The browser engine of browser.
Method the most according to claim 1, it is characterised in that trigger the behaviour starting browser user
After work, before obtaining the file for showing main interface, also include:
Detect the number of the CPU core of described mobile terminal, if the number of the CPU core of described mobile terminal
For two or more, described acquisition is used for showing the file at main interface, including:
In the second CPU core, create the second thread, the 3rd CPU core creates the 3rd thread;
In described second thread, load described configuration file, and load described resource in described 3rd thread
File.
Method the most according to claim 5, it is characterised in that at described second thread or the 3rd thread
The browser engine of the described browser of middle startup.
Method the most according to claim 5, it is characterised in that create the in the 4th CPU core
Four threads, and in described 4th thread, start the browser engine of described browser.
8. according to the method described in any one of claim 1-7, it is characterised in that described for showing main boundary
The file in face also includes library file.
9. according to the method described in any one of claim 1-7, it is characterised in that described interface layout layer is
Through the layout layer optimized, wherein, described optimization includes: removes the layout hierarchy of redundancy and/or merges described
The hierarchy attributes of layout layer and/or hidden parts layout layer.
10. the starter of a browser of mobile terminal, it is characterised in that including:
Acquisition module, after trigger the operation starting browser user, obtains for showing main interface
File, the described file for showing main interface includes configuration file and resource file;
Parsing module, described for showing the file at main interface for resolving, form interface layout layer;
Display module, the instrument image synthesizer for being carried by system shows the main interface of browser,
And after the start-up course of browser engine is put into the display at main interface.
11. devices according to claim 10, it is characterised in that described display module, including:
Synthesis unit, for being blended into described by described image synthesizer by the content of described interface layout layer
The internal memory of mobile terminal;
Read unit, the content of the described interface layout layer after reading synthesis from described internal memory, and will
The content of described interface layout layer shows on screen.
12. devices according to claim 10, it is characterised in that also include:
Detection module, for detecting the number of the CPU core of described mobile terminal,
If the number of the CPU core of described mobile terminal is one, described acquisition module specifically for:
First thread is created in the first CPU core;
Described configuration file and described resource file is loaded successively in described first thread.
13. devices according to claim 12, it is characterised in that also include:
First browser engine starts module, for starting browsing of described browser in described first thread
Device engine.
14. devices according to claim 10, it is characterised in that if the CPU of described mobile terminal
The number of kernel is two or more, described acquisition module specifically for:
In the second CPU core, create the second thread, the 3rd CPU core creates the 3rd thread;
In described second thread, load described configuration file, and load described resource in described 3rd thread
File.
15. devices according to claim 14, it is characterised in that also include:
Second browser engine starts module, described clear for starting in described second thread or the 3rd thread
Look at the browser engine of device.
16. devices according to claim 14, it is characterised in that if the CPU of described mobile terminal
The number of kernel be three or more than, described acquisition module is additionally operable to:
In the 4th CPU core, create the 4th thread, and start described browser in described 4th thread
Browser engine.
17. according to the device described in any one of claim 10-16, it is characterised in that described for showing master
The file at interface also includes library file.
18. according to the device described in any one of claim 10-16, it is characterised in that described interface layout layer
For the layout layer through optimizing, wherein, described optimization includes: removes the layout hierarchy of redundancy and/or merges institute
State hierarchy attributes and/or the hidden parts layout layer of layout layer.
19. 1 kinds of mobile terminals, it is characterised in that including: shell, screen, processor, internal memory,
Circuit board and power circuit;
Described screen disposes on the housing, and described circuit board is placed in the interior volume that described shell surrounds,
Described processor and described memory setting are on described circuit board;
Described power circuit, powers for each circuit or the device for described mobile terminal;
Described processor is used for processing data, and specifically for:
Trigger user after starting the operation of browser, obtain for showing the file at main interface, described be used for
Show that the file at main interface includes configuration file and resource file;
Resolve the described file for showing main interface, form interface layout layer;
The instrument image synthesizer carried by system shows the main interface of browser, and by browser engine
Start-up course be put into main interface display after.
20. according to the mobile terminal described in right 19, it is characterised in that described processor specifically for:
By described image synthesizer, the content of described interface layout layer is blended into described in described mobile terminal
Internal memory;
The content of the described interface layout layer after synthesis is read from described internal memory, and by described interface layout layer
Content show on the screen.
21. according to the mobile terminal described in claim 19 or 20, it is characterised in that described mobile terminal
Including mobile phone, panel computer or personal digital assistant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310217710.5A CN103257897B (en) | 2013-06-03 | 2013-06-03 | Starting method and device of mobile terminal browser and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310217710.5A CN103257897B (en) | 2013-06-03 | 2013-06-03 | Starting method and device of mobile terminal browser and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103257897A CN103257897A (en) | 2013-08-21 |
CN103257897B true CN103257897B (en) | 2016-08-31 |
Family
ID=48961832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310217710.5A Expired - Fee Related CN103257897B (en) | 2013-06-03 | 2013-06-03 | Starting method and device of mobile terminal browser and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103257897B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488686B (en) * | 2013-09-02 | 2017-06-30 | 用友网络科技股份有限公司 | The device of generation displaying class component and the method for generation displaying class component |
CN107179920B (en) * | 2016-03-09 | 2021-06-04 | 斑马智行网络(香港)有限公司 | Network engine starting method and device |
CN106095441A (en) * | 2016-06-13 | 2016-11-09 | 天脉聚源(北京)传媒科技有限公司 | The loading method of a kind of video control and device |
CN112015507A (en) * | 2020-08-20 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Application guide method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247593B (en) * | 2008-03-06 | 2011-05-11 | 中兴通讯股份有限公司 | System and method for configuring mobile phone subscriber interface operation interface |
CN101477460A (en) * | 2008-12-17 | 2009-07-08 | 三星电子(中国)研发中心 | Production and customization method for browser used in hand-held equipment |
EP2222062B1 (en) * | 2009-02-06 | 2017-05-10 | BlackBerry Limited | A mobile device with enhanced contact information and a method of using same |
CN102945133B (en) * | 2012-10-18 | 2016-05-04 | 天津三星通信技术研究有限公司 | Screen regional display system and screen regional display methods |
-
2013
- 2013-06-03 CN CN201310217710.5A patent/CN103257897B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN103257897A (en) | 2013-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8584044B2 (en) | Localized thumbnail preview of related content during spatial browsing | |
CN107315580B (en) | User interface component processing method, device and equipment and readable medium | |
CN108549568B (en) | Application entry processing method and device, storage medium and electronic equipment | |
CN107729246B (en) | Auxiliary test method, device and equipment for target application and storage medium | |
CN111984163B (en) | Application icon display method and device and electronic equipment | |
CN109325195A (en) | Rendering method and system, computer equipment, the computer storage medium of browser | |
KR20130086138A (en) | Cross-platform application framework | |
CN113157156A (en) | Data processing method for displaying interface content | |
CN103942078A (en) | Method for loading driver and embedded device | |
CN104598254A (en) | Method and device for rapidly powering on Android system | |
US9910641B2 (en) | Generation of application behaviors | |
CN104704468A (en) | Cross system installation of WEB applications | |
US20190012821A1 (en) | Displaying images associated with apps based on app processing task progress statuses | |
CN103257897B (en) | Starting method and device of mobile terminal browser and mobile terminal | |
CN109960491A (en) | Application program generation method, generating means, electronic equipment and storage medium | |
CN111045653B (en) | System generation method and device, computer readable medium and electronic equipment | |
CN103761110A (en) | Browser font displaying and processing method and device | |
CN104298523A (en) | Component loading method and device and terminal | |
CN104375933A (en) | Unit testing method and device | |
CN112579187A (en) | Optimization method and device for cold start of application program | |
CN113885935A (en) | Resource packaging method and device, electronic equipment and computer readable storage medium | |
CN104182266B (en) | A kind of application installation method and device | |
CN104834759A (en) | Realization method and device for electronic design | |
WO2018226989A1 (en) | Displaying images associated with apps based on app processing task progress statuses | |
CA3148068A1 (en) | Skill pack data processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160831 Termination date: 20180603 |