Movatterモバイル変換


[0]ホーム

URL:


CN104090787A - Starting method and starting device for home page of application software - Google Patents

Starting method and starting device for home page of application software
Download PDF

Info

Publication number
CN104090787A
CN104090787ACN201410294373.4ACN201410294373ACN104090787ACN 104090787 ACN104090787 ACN 104090787ACN 201410294373 ACN201410294373 ACN 201410294373ACN 104090787 ACN104090787 ACN 104090787A
Authority
CN
China
Prior art keywords
application software
initialization
user interface
homepage
main thread
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.)
Pending
Application number
CN201410294373.4A
Other languages
Chinese (zh)
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.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing 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 Conew Network Technology Beijing Co LtdfiledCriticalConew Network Technology Beijing Co Ltd
Priority to CN201410294373.4ApriorityCriticalpatent/CN104090787A/en
Publication of CN104090787ApublicationCriticalpatent/CN104090787A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

An embodiment of the invention discloses a starting method and a starting device for a home page of application software to more quickly display the home page of the application software. The starting method includes receiving a command of starting the application software; creating a main thread of the application software; and according to a preset sequence, initializing a component of a user interface of the application software through the main thread. The starting device comprises a receiver unit, a first creation unit and an initialization unit. The receiver unit is used for receiving the command of starting the application software. The first creation unit is used for creating the main thread of the application software. The initialization unit is used for, according to a preset sequence, initializing a component of a user interface of the application software through the main thread. The starting method and the starting device are adaptable to starting the application software.

Description

A kind of starting method of application software homepage and starter gear
Technical field
The present invention relates to the start-up technique field of application software, relate in particular to a kind of starting method and starter gear of application software homepage.
Background technology
A application software generally includes subscriber interface module and kernel module, and what have also comprises network service module etc.When application software initiated, these modules need to be carried out to initialization.
In prior art, when application software initiated, that a plurality of modules of application software and the picture utilizing thereof or database resource data are loaded simultaneously, this cause described application software homepage to start and show slower, in the time of also can loading at the same time because of a plurality of modules of described application software and the resource data utilizing thereof when serious, occur blocking, cause stagnation or the collapse of described application software when starting.
Summary of the invention
Because in this, the embodiment of the present invention provides a kind of starting method and device of application software homepage, can accelerate the displaying of application software homepage.
On the one hand, the embodiment of the present invention provides a kind of starting method of application software homepage, comprising:
Receive the instruction that starts application software;
Create the main thread of described application software;
By described main thread, according to predefined order, the assembly of the user interface of described application software is carried out to initialization.
Alternatively, by described main thread, according to predefined order, the assembly of the user interface of described application software is carried out to initialization and comprise: by described main thread, according to predefined order, first user interface assembly is carried out to initialization; After the initialization of described first user interface assembly completes, the second user interface components is carried out to initialization.
Alternatively, described predefined order comprises: the initialization order of the assembly of the user interface by the predefined described application software of ViewStub.
Alternatively, after the main thread of the described application software of described establishment, also comprise: by described main thread, be that described application software creates an asynchronous thread; By described asynchronous thread, load the needed data of described application software; After described data have been loaded, described asynchronous thread notifies described main thread to carry out initialization to the user interface of described application software.
Alternatively, describedly by described asynchronous thread, load the needed data of described application software and comprise: by described asynchronous thread, the priority of needed data, loads the needed data of institute's application software successively when starting described application software.
Alternatively, described application software is browser.
The starting method of the application software homepage of the embodiment of the present invention, by the main thread of this application software, according to predefined order, the assembly of the user interface of this application software is carried out to initialization, like this, avoided because of the synchronous initiation to the assembly of the user interface of this application software, and the initialization time causing is long, thereby can accelerates the displaying of application software homepage.
On the other hand, the embodiment of the present invention provides a kind of starter gear of application software homepage, comprising:
Receiving element, for receiving the instruction that starts application software;
The first creating unit, for creating the main thread of described application software;
Initialization unit, for by described main thread, according to predefined order, carries out initialization to the assembly of the user interface of described application software.
Alternatively, described initialization unit comprises: the first initialization module, for by described main thread, according to predefined order, carries out initialization to first user interface assembly; The second initialization module, after initialization completes to described first user interface assembly at described the first initialization module, carries out initialization to the second user interface components.
Alternatively, described predefined order comprises: the initialization order of the assembly of the user interface by the predefined described application software of ViewStub.
Alternatively, the starter gear of described application software homepage also comprises: the second creating unit, for by described main thread being an asynchronous thread of described application software establishment; Data loading unit, for loading the needed data of described application software by described asynchronous thread; Notification unit, for after described data have been loaded, notifies described initialization unit to carry out initialization to the user interface of described application software; Described initialization unit, also for carrying out initialization according to the data of described loading to the user interface of described application software.
Alternatively, the starter gear of described application software homepage also comprises: Loading Control unit, for passing through described asynchronous thread, during according to the described application software of startup, the priority of needed data, controls described data loading unit and loads successively the needed data of institute's application software.
Alternatively, described application software is browser.
The starter gear of the application software homepage of the embodiment of the present invention, initialization unit is by the main thread of this application software, according to predefined order, the assembly of the user interface of this application software is carried out to initialization, avoided like this because of the synchronous initiation to the assembly of the user interface of this application software, and the initialization time causing is long, thereby can accelerate the displaying of application software homepage.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of starting method one embodiment of application software homepage of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of starting method of application software homepage of the present invention;
Fig. 3 is the schematic flow sheet of the another embodiment of starting method of application software homepage of the present invention;
Fig. 4 is the structural representation of starter gear one embodiment of application software homepage of the present invention;
Fig. 5 is the structural representation of initialization unit in the starter gear of application software homepage of the present invention;
Fig. 6 is the structural representation of another embodiment of starter gear of application software homepage of the present invention.
Embodiment
Below in conjunction with accompanying drawing, starting method and the starter gear of a kind of application software homepage of the embodiment of the present invention are described in detail.
Should be clear and definite, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, the embodiment of the starting method of a kind of application software homepage of the present invention, comprising:
S1, reception start the instruction of application software;
Instruction according to the startup application software receiving, can start described application software.
S2, create the main thread of described application software;
When starting described application software, create the main thread of described application software.
S3, by described main thread, according to predefined order, the assembly of the user interface of described application software is carried out to initialization.
The starting method of the application software homepage of the embodiment of the present invention, by the main thread of this application software, according to predefined order, the assembly of the user interface of this application software is carried out to initialization, avoided like this because of the synchronous initiation to the assembly of the user interface of this application software, and the initialization time causing is long, thereby can accelerate the displaying of application software homepage.
In the present embodiment, the assembly of described user interface can be address field, the title block of above-mentioned application software, menu bar, toolbar, window, back/forward button or bookmark directory etc.
In the embodiment of the starting method of aforementioned applications software home page, alternatively, as shown in Figure 2, by described main thread, according to predefined order, the assembly of the user interface of described application software is carried out to initialization (S3), can comprise:
S31, by described main thread, according to predefined order, first user interface assembly is carried out to initialization; S32, after the initialization of described first user interface assembly completes, the second user interface components is carried out to initialization.
Preferably, described first user interface assembly can be the family interface assembly of required loading while starting described application software, and the second user interface components is the family interface assembly that described user interface loads as required after startup.Or above-mentioned first user interface assembly can be for showing the assembly of the user interface that the homepage of described application software need to load; Above-mentioned the second user interface components can be the assembly of the user interface that need to not show in the homepage of described application software.
For example, the preferential initialization user interface components relevant to the homepage of this application software, after homepage loads and is over, if user passes through slide, make the user interface of application software be switched to another page, again the user interface components relevant to this page carried out to initialization.
Like this, avoided the loading of the disposable all user interface components that complete this application software and load time of causing long, thereby accelerated the displaying of application software homepage.
In the embodiment of the starting method of aforementioned applications software home page, alternatively, the predefined order in described S3 or S31, can be the initialization order of the assembly of the user interface by the predefined described application software of ViewStub.
In the present embodiment, ViewStub can be a view object.It can be controlled in the user interface of application software to show which kind of layout, and the layout of user interface is to organize by the assembly of user interface.Therefore, in an embodiment of the present invention, can to the assembly of the user interface of this application software, divide into groups in advance, and encapsulate by ViewStub; The layout order showing according to ViewStub, the assembly of the corresponding user interface of initialization, thus realized the asynchronously initializing of assembly of the user interface of this application program, accelerated the displaying of application software homepage.
In the embodiment of the starting method of aforementioned applications software home page, alternatively, as shown in Figure 3, the main thread (S2) of the described application software of described establishment afterwards, can also comprise:
S2A, be that described application software creates an asynchronous thread;
S2B, by described asynchronous thread, load the needed data of described application software;
In the embodiment of the present invention, the needed data of this application software comprise picture and/or the database data resource of these application software homepage needs.
S2C, after described data have been loaded, described asynchronous thread notifies described main thread to carry out initialization to the user interface of described application software.
In the present embodiment, only create an asynchronous thread and load the needed data of described application software, can on the basis of asynchronously initializing user interface components, avoid between a plurality of asynchronous threads, switching brought time loss like this, further reduced the start-up time of application software.
In the embodiment of the starting method of aforementioned applications software home page, alternatively, describedly by described asynchronous thread, load the needed data of described application software (S2B), can comprise:
By described asynchronous thread, during according to the described application software of startup, the priority of needed data, loads the needed data of institute's application software successively.
In the present embodiment, create after an asynchronous thread, the data that need during this application software of startup detach to be out put on this asynchronous thread to be carried out according to the priority orders of data, for example, the data that need described in preferential this application software homepage of loading displaying, thus the homepage of quickening application software is shown.
Shown in Fig. 4, the embodiment of the starter gear of a kind of application software homepage of the present invention, comprising: receiving element 1, for receiving the instruction that starts application software; The first creating unit 2, for creating the main thread of described application software; Initialization unit 3, for by described main thread, according to predefined order, carries out initialization to the assembly of the user interface of described application software.
The starter gear of the application software homepage of the embodiment of the present invention, initialization unit 3 is by the main thread of this application software, according to predefined order, the assembly of the user interface of this application software is carried out to initialization, avoided like this because of the synchronous initiation to the assembly of the user interface of this application software, and the initialization time causing is long, thereby can accelerate the displaying of application software homepage.
In the present embodiment, the assembly of described user interface can be address field, the title block of above-mentioned application software, menu bar, toolbar, window, back/forward button or bookmark directory etc.
Shown in Fig. 5, in the embodiment of the starter gear of aforementioned applications software home page, described initialization unit 3, can comprise: the first initialization module 31, for by described main thread, according to predefined order, first user interface assembly is carried out to initialization; The second initialization module 32, after completing in the initialization of 31 pairs of described first user interface assemblies of described the first initialization module, carries out initialization to the second user interface components.
Preferably, described first user interface assembly can be the family interface assembly of required loading while starting described application software, and the second user interface components is the family interface assembly that described user interface loads as required after startup.Or above-mentioned first user interface assembly can be for showing the assembly of the user interface that the homepage of described application software need to load; Above-mentioned the second user interface components can be the assembly of the user interface that need to not show in the homepage of described application software.
For example, the preferential initialization user interface components relevant to the homepage of this application software, after homepage loads and is over, if user passes through slide, make the user interface of application software be switched to another page, again the user interface components relevant to this page carried out to initialization.
Like this, avoided the loading of the disposable all user interface components that complete this application software and load time of causing long, thereby accelerated the displaying of application software homepage.
Shown in Fig. 6, in the embodiment of the starter gear of aforementioned applications software home page, alternatively, described predefined order, can comprise: the initialization order of the assembly of the user interface by the predefined described application software of ViewStub.
In the present embodiment, ViewStub can be a view object.It can be controlled in the user interface of application software to show which kind of layout, and the layout of user interface is to organize by the assembly of user interface.Therefore, in an embodiment of the present invention, can to the user interface components of this application software, divide into groups in advance, and encapsulate by ViewStub; The layout order showing according to ViewStub, the assembly of corresponding this user interface of initialization, thus realized the asynchronously initializing of assembly of the user interface of this application program, accelerated the displaying of application software homepage.
In the embodiment of the starter gear of aforementioned applications software home page, alternatively, the starter gear of described application software homepage, can also comprise: the second creating unit 4, for being that described application software creates an asynchronous thread by described main thread; Data loading unit 5, for loading the needed data of described application software by described asynchronous thread; In the embodiment of the present invention, the needed data of this application software comprise picture and/or the database data resource of these application software homepage needs.Notification unit 6, for after described data have been loaded, the user interface of 3 pairs of described application software of notice initialization unit is carried out initialization; Initialization unit 3, also for carrying out initialization according to the data of described loading to the user interface of described application software.
In the present embodiment, only create an asynchronous thread and load the needed data of described application software, can on the basis of asynchronously initializing user interface components, avoid switching brought time loss between a plurality of asynchronous threads like this, further reduced the start-up time of application software.
In the embodiment of the starter gear of aforementioned applications software home page, alternatively, the starter gear of described application software homepage, can also comprise: Loading Control unit 7, for passing through described asynchronous thread, during according to the described application software of startup, the priority of needed data, controls described data loading unit 5 and loads successively the needed data of institute's application software.
In the present embodiment, create after an asynchronous thread, the data that need during this application software of startup detach to be out put on this asynchronous thread to be carried out according to the priority orders of data, for example, the data that need described in preferential this application software homepage of loading displaying, thus the homepage of quickening application software is shown.
Starting method and the starter gear of the application software homepage described in the embodiment of the present invention, be applicable to the startup of browser homepage, but the invention is not restricted to this, also applicable to other application software.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (RandomAccess Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

CN201410294373.4A2014-06-252014-06-25Starting method and starting device for home page of application softwarePendingCN104090787A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410294373.4ACN104090787A (en)2014-06-252014-06-25Starting method and starting device for home page of application software

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410294373.4ACN104090787A (en)2014-06-252014-06-25Starting method and starting device for home page of application software

Publications (1)

Publication NumberPublication Date
CN104090787Atrue CN104090787A (en)2014-10-08

Family

ID=51638506

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410294373.4APendingCN104090787A (en)2014-06-252014-06-25Starting method and starting device for home page of application software

Country Status (1)

CountryLink
CN (1)CN104090787A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106126260A (en)*2016-07-012016-11-16深圳云之家网络有限公司A kind of delayed data loading method and device
CN106126287A (en)*2016-06-202016-11-16珠海市魅族科技有限公司Application program launching method and system
CN106354512A (en)*2016-09-082017-01-25广州华多网络科技有限公司User interface rendering method and device thereof
CN107038645A (en)*2016-12-212017-08-11阿里巴巴集团控股有限公司Method for processing business, apparatus and system and server
CN107291479A (en)*2017-06-302017-10-24武汉斗鱼网络科技有限公司The optimization method and device of present panel in a kind of Android application programs
CN107436786A (en)*2017-07-282017-12-05深圳Tcl新技术有限公司Using starting guide method, apparatus and computer-readable recording medium
CN107908452A (en)*2017-11-152018-04-13福建中金在线信息科技有限公司Multi-page starts method and device
CN108519894A (en)*2018-03-212018-09-11北京酷我科技有限公司A kind of method of music box load initialization
CN109117203A (en)*2018-07-132019-01-01广州小鹏汽车科技有限公司A kind of Android APP starting velocity optimization method and system
WO2019011141A1 (en)*2017-07-122019-01-17阿里巴巴集团控股有限公司Startup and configuration method, apparatus and device, medium, and operating system
CN109359256A (en)*2018-09-292019-02-19北京城市网邻信息技术有限公司Page loading method, device, equipment and storage medium
CN109739571A (en)*2018-12-202019-05-10努比亚技术有限公司Application program launching method, mobile terminal and computer readable storage medium
CN110321178A (en)*2019-06-282019-10-11百度在线网络技术(北京)有限公司Starting processing method, device, equipment and the storage medium of attached application end
CN111124513A (en)*2019-12-112020-05-08无锡祥生医疗科技股份有限公司Starting method and device of ultrasonic equipment and ultrasonic equipment
CN114356449A (en)*2021-12-292022-04-15广州久邦世纪科技有限公司 A method of application loading

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
GB2411331A (en)*2004-02-192005-08-24Trigenix LtdRendering user interface using actor attributes
CN103345405A (en)*2013-06-092013-10-09贝壳网际(北京)安全技术有限公司Application program starting method and device and client
CN103577207A (en)*2012-08-012014-02-12阿里巴巴集团控股有限公司Loading method and loading device for interface components in custom interface system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
GB2411331A (en)*2004-02-192005-08-24Trigenix LtdRendering user interface using actor attributes
CN1989762A (en)*2004-02-192007-06-27高通剑桥有限公司 Display of menu items in the user interface
CN103577207A (en)*2012-08-012014-02-12阿里巴巴集团控股有限公司Loading method and loading device for interface components in custom interface system
CN103345405A (en)*2013-06-092013-10-09贝壳网际(北京)安全技术有限公司Application program starting method and device and client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苗忠良 等: "《深入Android应用开发 核心技术解析与最佳实践》", 30 June 2012*

Cited By (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106126287A (en)*2016-06-202016-11-16珠海市魅族科技有限公司Application program launching method and system
CN106126260A (en)*2016-07-012016-11-16深圳云之家网络有限公司A kind of delayed data loading method and device
CN106354512A (en)*2016-09-082017-01-25广州华多网络科技有限公司User interface rendering method and device thereof
CN107038645B (en)*2016-12-212021-04-23创新先进技术有限公司Service processing method, device and system and server
CN107038645A (en)*2016-12-212017-08-11阿里巴巴集团控股有限公司Method for processing business, apparatus and system and server
CN107291479A (en)*2017-06-302017-10-24武汉斗鱼网络科技有限公司The optimization method and device of present panel in a kind of Android application programs
WO2019011141A1 (en)*2017-07-122019-01-17阿里巴巴集团控股有限公司Startup and configuration method, apparatus and device, medium, and operating system
CN107436786A (en)*2017-07-282017-12-05深圳Tcl新技术有限公司Using starting guide method, apparatus and computer-readable recording medium
CN107908452A (en)*2017-11-152018-04-13福建中金在线信息科技有限公司Multi-page starts method and device
CN108519894A (en)*2018-03-212018-09-11北京酷我科技有限公司A kind of method of music box load initialization
CN108519894B (en)*2018-03-212021-06-01北京酷我科技有限公司Music box loading initialization method
CN109117203A (en)*2018-07-132019-01-01广州小鹏汽车科技有限公司A kind of Android APP starting velocity optimization method and system
CN109359256A (en)*2018-09-292019-02-19北京城市网邻信息技术有限公司Page loading method, device, equipment and storage medium
CN109739571A (en)*2018-12-202019-05-10努比亚技术有限公司Application program launching method, mobile terminal and computer readable storage medium
CN110321178A (en)*2019-06-282019-10-11百度在线网络技术(北京)有限公司Starting processing method, device, equipment and the storage medium of attached application end
CN111124513A (en)*2019-12-112020-05-08无锡祥生医疗科技股份有限公司Starting method and device of ultrasonic equipment and ultrasonic equipment
CN114356449A (en)*2021-12-292022-04-15广州久邦世纪科技有限公司 A method of application loading

Similar Documents

PublicationPublication DateTitle
CN104090787A (en)Starting method and starting device for home page of application software
CN102789357A (en)Method and device for setting subject resources based on Andriod application technology
CN108845737B (en)Picture staggered floor display methods, electronic equipment and storage medium
CN103970414A (en)Application icon management method and terminal
CN106775394B (en)Content revealing method, device and electronic equipment, storage medium
US20170031581A1 (en)Method and user interface (ui) for customized user access to application functionalities
CN108984245B (en) A method and system for page switching based on a single view controller
US20200167173A1 (en)Application launching method and display device
CN105608390A (en)Picture hiding and displaying method, picture processing system and electronic device
CN109299444B (en)Method and device for generating rich text editor
CN106095461A (en)The method and device of display module in interface
CN109144348B (en)Method and device for realizing shortcut menu in application
CN107908452A (en)Multi-page starts method and device
CN104484229A (en)Method and device for switching operating system, and terminal
CN103902609A (en)File displaying method and device
CN103019833A (en)Terminal equipment and method for enabling same to support quick switching of operating systems
US20220292056A1 (en)Method and apparatus for modifying file name, and storage medium
CN104219084B (en)A kind of startup method and apparatus of board
CN105094503B (en)Information processing method and deformable electronic equipment
CN104899052A (en)Startup method and startup device of application software home page
CN104392189A (en)Method and device for realizing safety operation of file system
CN105573579A (en)Search bar operation method and terminal
CN105487871A (en)Method and device for running application programs on intelligent terminal
CN106559550A (en)SIM management method and electronic installation
CN104915208A (en)Application program head image display controlling method and application program head image display controlling device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20141008

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp