CN104699501B - A kind of method and device for running application program - Google Patents

A kind of method and device for running application program Download PDF

Info

Publication number
CN104699501B
CN104699501B CN201510018616.6A CN201510018616A CN104699501B CN 104699501 B CN104699501 B CN 104699501B CN 201510018616 A CN201510018616 A CN 201510018616A CN 104699501 B CN104699501 B CN 104699501B
Authority
CN
China
Prior art keywords
functional module
application
applications client
application template
server
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
CN201510018616.6A
Other languages
Chinese (zh)
Other versions
CN104699501A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510018616.6A priority Critical patent/CN104699501B/en
Publication of CN104699501A publication Critical patent/CN104699501A/en
Application granted granted Critical
Publication of CN104699501B publication Critical patent/CN104699501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and device for running application program, belong to field of Internet communication.Methods described includes:To the version number of application identities and application template corresponding to server transmission applications client, server is set to determine whether the application template of application template and server storage is identical according to application identities and version number;According to result is determined, application template corresponding to applications client is obtained;The user interface of applications client is rendered according to the application template;When the entrance trigger command for detecting the functional module in user interface, according to the functional module of entry call one of a functional module, a functional module is run.Described device includes:Sending module, acquisition module, rendering module and operation module.When the present invention adds New function in the application, application template only need to be changed, the entrance of New function module is added in application template, without changing applications client, improves the efficiency of addition New function.

Description

A kind of method and device for running application program
Technical field
The present invention relates to field of Internet communication, more particularly to a kind of method and device for running application program.
Background technology
The frequent development and application program of technical staff, in order that application program more meets the use demand of user, in the application , it is necessary to constantly add New function in the application program after program is reached the standard grade, so that the application program more meets making for user Use demand.
Wherein, when New function is added in the application program, technical staff adds the New function in the application program Code, the code of the New function is compiled, the application program of redaction is obtained, then to the application program of the redaction Examined and approved, administrative examination and approval reaches the standard grade the application program of redaction into server after passing through.Should if user will use New function, then firstly the need of being downloaded from server and installing the application program of redaction, it then could run being somebody's turn to do for redaction Application program, to use the New function in the application program of redaction.
During the present invention is realized, inventor has found that prior art at least has problems with:
The process complexity of New function is added in the application, it is necessary to which take a significant amount of time to add in the application New function, cause the efficiency for adding New function in the application very low.
The content of the invention
In order to improve the efficiency for adding New function in the application, the invention provides a kind of side for running application program Method and device.The technical scheme is as follows:
A kind of method for running application program, methods described include:
The version of the application template in application identities and the applications client corresponding to applications client is sent to server This number, the server is set to determine the application template with being deposited in the server according to the application identities and the version number Whether application template corresponding to the applications client of storage is identical;
According to the determination result of the server, application template corresponding to the applications client is obtained, it is described to apply mould Plate includes the entrance of at least one functional module;
Render the user interface of the applications client according to the application template, the user interface include it is described extremely The entrance of few One function module;
When the order for the entrance triggering for detecting the functional module in the user interface, according to the function mould A functional module described in the entry call of block, run a functional module.
A kind of method for running application program, methods described include:
Mould is applied in application identities and the applications client corresponding to the applications client that receiving terminal is sent The version number of plate;
According to the application identities and the version number, determine what is stored in the application template in the terminal and server Whether application template is identical corresponding to the applications client, obtains determining result;
According to the determination result, indicate that the terminal obtains application template corresponding to the applications client, so that institute State terminal and the applications client is run according to the application template, the application template includes at least one functional module Entrance.
A kind of device for running application program, described device include:
Sending module, for being sent to server in application identities and the applications client corresponding to applications client The version number of application template, the server is set to determine the application template and institute according to the application identities and the version number Whether identical state application template corresponding to the applications client stored in server;
Acquisition module, for the determination result according to the server, obtain and apply mould corresponding to the applications client Plate, the application template include the entrance of at least one functional module;
Rendering module, for rendering the user interface of the applications client, user circle according to the application template Face includes the entrance of at least one functional module;
Run module, for when detect the functional module in the user interface entrance triggering order when, root According to a functional module described in the entry call of a functional module, a functional module is run.
A kind of device for running application program, described device include:
First receiving module, application identities and the application corresponding to the applications client sent for receiving terminal The version number of application template in client;
Determining module, for according to the application identities and the version number, determine the application template in the terminal with Whether application template corresponding to the applications client stored in server is identical, obtains determining result;
Indicating module, for according to the determination result, indicating the terminal to obtain corresponding to the applications client and answering With template, so that the terminal runs the applications client according to the application template, the application template is included at least The entrance of One function module.
In embodiments of the present invention, due to obtaining application template corresponding to applications client, according to the application template wash with watercolours Contaminate and show the entrance of at least one functional module, and when the entrance trigger command of a functional module, according to the function mould The entry call of the block functional module, runs the functional module.So when needing to add New function module in the application, only Entrance corresponding to New function module need to be added in application template, the application client without changing the application program End, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram for operation application program that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram for operation application program that the embodiment of the present invention 2 provides;
Fig. 2-2 is a kind of schematic diagram for user interface that the embodiment of the present invention 2 provides;
Fig. 2-3 is a kind of schematic diagram for Webpage that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of method flow diagram for operation application program that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of apparatus structure schematic diagram for operation application program that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of apparatus structure schematic diagram for operation application program that the embodiment of the present invention 5 provides;
Fig. 6 is a kind of structural representation for terminal that the embodiment of the present invention 6 provides;
Fig. 7 is a kind of structural representation for server that the embodiment of the present invention 7 provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment 1
Referring to Fig. 1, the embodiments of the invention provide a kind of method for running application program, including:
Step 101:The application template in application identities and applications client corresponding to applications client is sent to server Version number, the application for making server determine to store in the application template and server according to the application identities and the version number Whether application template corresponding to client is identical;
Step 102:According to the determination result of server, application template corresponding to applications client, the application template are obtained Include the entrance of at least one functional module;
Step 103:The user interface of the applications client is rendered according to the application template, the user interface is included at least The entrance of One function module;
Step 104:When the order for the entrance triggering for detecting the functional module in user interface, according to a function mould The functional module of entry call one of block, run a functional module.
Preferably, when the order for the entrance triggering for detecting the functional module in user interface, according to a function mould The functional module of entry call one of block, a functional module is run, including:
When the order for the entrance triggering for detecting the functional module in user interface, the work(with entrance binding is obtained The mark of energy module;
If the link for being identified as functional module of the functional module, functional module is obtained from server according to the link Corresponding Webpage, show the Webpage;
If the mark of the functional module is not the link of functional module, according to the mark of the functional module from local tune With functional module, the functional module is run.
In embodiments of the present invention, due to obtaining application template corresponding to applications client, according to the application template wash with watercolours Contaminate and show the entrance of at least one functional module, and when the entrance trigger command of a functional module, according to the function mould The entry call of the block functional module, runs the functional module.So when needing to add New function module in the application, only Entrance corresponding to New function module need to be added in application template, the application client without changing the application program End, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 2
The embodiments of the invention provide a kind of method for running applications client.
Technical staff develops at least one functional module in development and application program, by this at least one functional module It is encapsulated in applications client, and develops application template corresponding to the applications client, the application template includes this at least The entrance of One function module, then the applications client and the application template are reached the standard grade into server respectively.When user thinks The application program is run, the application program can be run by method provided in an embodiment of the present invention.
Referring to Fig. 2-1, this method specifically includes:
Step 201:Terminal sends confirmation request message to server, and applications client pair is carried in the confirmation request message The version number of application template in the application identities and the applications client answered;
Wherein, application identities corresponding to applications client can be title of the applications client etc..Wrapped in application template Include the version number of the application template.
Wherein, when user wants operation application program, answering for the application program is downloaded from server by terminal first With client, the applications client is arranged on terminal local.When user runs the application program first, the applications client Its corresponding application template from server pull, and cache the application template.Afterwards when user runs the application program again, Perform the operation of this step.
Terminal has provided the user the interface for opening applications client, and the interface can be bound with the applications client Icon or button.User can open the application bound with the icon or button by clicking on the icon or button come triggering terminal Client.
For this step specifically, when terminal detects that user opens applications client, terminal obtains the applications client pair The application identities answered, and application template corresponding to the applications client is obtained from the applications client, from the application template The middle version number for obtaining the application template, confirmation request message is sent to server, the application is carried in the confirmation request message Mark and the version number.
For example, it is assumed that application identities corresponding to applications client are app1, the version of the application template in the applications client This number is 001.When terminal detects that user opens applications client, terminal obtains application identities corresponding to the applications client App1, and application template corresponding to the applications client is obtained from the applications client, being obtained from the application template should The version number 001 of application template, confirmation request message is sent to server, the application identities are carried in the confirmation request message App1 and the version number 001.
Step 202:The confirmation request message that server receiving terminal is sent, the application carried according to the confirmation request message The version number of mark and application template, determines that the application template in terminal is corresponding with the applications client stored in server Whether application template is identical, obtains determining result;
Wherein, in order that applications client more meets the use demand of user, by the applications client and the application After application template is reached the standard grade corresponding to client, technical staff constantly can be carried out to application template corresponding to the applications client Modification, adds the entrance of some new functional modules, and change the version number of application template in the application template.And will modification Application template afterwards is reached the standard grade into server, and server is by application identities corresponding to the applications client and the amended application Template is stored in the corresponding relation of application identities and application template.
Wherein, when the entrance of new functional module is added in application template, technical staff is by functional module to be added Mark and the point of addition of the entrance submit to server.Server obtain functional module to be added mark and this add Add position, an entrance is set at the point of addition in application template corresponding to the applications client, the entrance is added with waiting The mark binding of the functional module added, and the version number of application template is changed, obtain amended corresponding to the applications client Application template.
This step carries specifically, the confirmation request message that server receiving terminal is sent according to the confirmation request message Application identities, the corresponding application template of the applications client is obtained in the corresponding relation from application identities with application template.From The version number of the application template is obtained in the application template of acquisition.By the version number that the confirmation request message carries and the version of acquisition This number is compared, if both are identical, obtained determination result is to determine to deposit in application template and the server in terminal Application template corresponding to the applications client of storage is identical.If both differ, obtained determination result is determination terminal In application template it is different from application template corresponding to the applications client stored in server.
For example, the confirmation request message that server receiving terminal is sent, the application carried according to the confirmation request message is marked Know app1, obtain that the applications client is corresponding to be applied in the corresponding relation from application identities as shown in table 1 with application template Template " application template 002 ".From the application template of acquisition, " version number that the application template is obtained in application template 002 " is 002. By the version number 001 that the confirmation request message carries compared with the version number 002 obtained, and compare both and differ, The determination result then obtained be determine that application template in terminal is corresponding with the applications client stored in server should It is different with template.
Table 1
Application identities Application template
app1 Application template 002
…… ……
Step 203:Server, which is sent, determines result to terminal;
Wherein, the determination result is corresponding with the applications client stored in server to determine the application template in terminal Application template it is identical, or the determination result is determines the application client that stores in application template and server in terminal Application template corresponding to end is different.
For example, server, which is sent, determines that result " determines the application visitor stored in the application template in terminal and server Application template corresponding to the end of family is different " give terminal.
Step 204:The determination result that terminal the reception server is sent, the applications client pair is obtained according to the determination result The application template answered;
Wherein, the determination result that terminal the reception server is sent, if the determination result is to determine to apply mould in terminal Plate is identical with application template corresponding to the applications client stored in server, then is obtained from the applications client and apply mould Plate.If the determination result is applied to determine that the application template in terminal is corresponding with the applications client stored in server Template is different, then sends application identities corresponding to the applications client to server.The application mark that server receiving terminal is sent Know, the corresponding application template of the applications client is obtained in the corresponding relation from application identities with application template, sends the application Template is to terminal.The application template that terminal the reception server is sent.
For example, the determination result that terminal the reception server is sent " determines to store in the application template in terminal and server The applications client corresponding to application template it is different ", according to the determination result, determine the application template in the applications client 001 from the applications client stored in server corresponding to application template it is different.Then sending should corresponding to the applications client With mark app1 to server.The application identities app1 that server receiving terminal is sent, from application identities as shown in table 1 with answering With application template 002 corresponding to the applications client is obtained in the corresponding relation of template, the application template 002 is sent to terminal. The application template 002 that terminal the reception server is sent.
Further, in embodiments of the present invention, when user runs the application program first, the applications client also may be used Not cache application template corresponding to the applications client.But when terminal detects that user opens applications client, eventually End all directly obtains application template corresponding to the applications client from server, and specific acquisition process is as follows:
When terminal detects that user opens applications client, terminal obtains application identities corresponding to the applications client, The application identities are sent to server.The application identities that server receiving terminal is sent, according to the application identities, marked from application Know application template corresponding with obtaining the applications client in the corresponding relation of application template, the application template is sent to end End.The application template that terminal the reception server is sent.
Wherein, got by above-mentioned steps 201-204 operation after the applications client corresponds to application template, can be with 205 and 206 operation as follows runs the application program.
Step 205:Terminal application template according to corresponding to the applications client renders the user interface of the applications client, The user interface includes the entrance of at least one functional module;
Wherein, application template includes the entrance of at least one functional module, renders and shows according to the application template Also the entrance of this at least one functional module is included in user interface.
For example, terminal application template 002 according to corresponding to the application client list renders and shows should answer as shown in Fig. 2-2 With the user interface of client, the entrance that the user interface includes 4 functional modules is respectively " news ", " self-timer ", " U.S. Food " and " calling a taxi ".
Wherein, after rendering by the operation of above-mentioned steps 205 and show the user interface of the applications client, Yong Huke To click on the entrance for the functional module that the user interface includes to use the function that the functional module provides, now terminal needs Will as follows 206 operation run the functional module.
Step 206:When terminal detects the order of entrance triggering of the functional module in the user interface, according to this The entry call of the functional module functional module, runs the functional module.
Wherein, mark of the entrance of functional module all with the functional module is bound.Functional module provide function can be Technical staff develops the function of realizing, or the function of Webpage is obtained from server.What if functional module provided Function is obtains the function of Webpage, then being identified as corresponding to the Webpage for the functional module links.
Wherein, according to the difference of the mark of functional module, this step can by following first and second two ways come Realize, be specially:
First, the functional module is identified as link.When terminal detects entering for the functional module in the user interface During the order of mouth triggering, the mark for the functional module bound with the entrance of the functional module is obtained, determines the mark of the functional module Know for after link, the link of the functional module is sent into server.The link for the functional module that server receiving terminal is sent, The Webpage according to corresponding to the link of the functional module obtains the functional module, the Webpage is sent to terminal.Terminal connects The Webpage that server is sent is received, shows the Webpage, the functional module is run to realize.
For example, it is assumed that user clicks the entrance " news " of the functional module in the user interface as shown in Fig. 2-2.Work as end When end detects the order of entrance " news " triggering of the functional module in the user interface as shown in Fig. 2-2, obtain and the work( The mark URL1 of the functional module of entrance " news " binding of energy module, the mark URL1 for determining the functional module " news " is chain After connecing, the link URL 1 of the functional module " news " is sent to server.The functional module that server receiving terminal is sent is " new The link URL 1 of news ", the webpage page according to corresponding to the link URL 1 of the functional module " news " obtains the functional module " news " Face Page1, Webpage Page1 is sent to terminal.The Webpage Page1 that terminal the reception server is sent, display is such as Webpage Page1 shown in Fig. 2-3, the functional module " news " is run to realize.
Second, the mark of the functional module is not link.When terminal detects the functional module in the user interface During the order of entrance triggering, the mark for the functional module bound with the entrance of the functional module is obtained, determines the functional module After mark is not link, the mark of the functional module is obtained from the functional module locally encapsulated according to the mark of the functional module Corresponding functional module, the functional module is called, run the functional module.
For example, it is assumed that user clicks the entrance " self-timer " of the functional module in the user interface as shown in Fig. 2-2.Work as end When end detects the order of entrance " self-timer " triggering of the functional module in the user interface as shown in Fig. 2-2, obtain and the work( The mark camera of the functional module of entrance " self-timer " binding of energy module, the mark camera for determining the functional module is not chain After connecing, the mark of the functional module is obtained from the functional module locally encapsulated according to the mark camera of the functional module Functional module corresponding to camera " camera ", the functional module " camera " is called, run the functional module " camera ".
Wherein, in embodiments of the present invention, each functional module is only included in applications client corresponding to application program, and Do not include user interface.But user interface is integrated in application template corresponding to the applications client, in the application template The middle entrance that each functional module is set.When needing to provide the function of a functional module in a user interface, it is only necessary to repair Change application template, opening position corresponding to the user interface adds the entrance of the functional module in application template, will change Application template afterwards is reached the standard grade into server.User when running the application program by method provided in an embodiment of the present invention, Amended application template is obtained first, and so can runs amended application program immediately.
Wherein, when the entrance of functional module is added in application template, the display code of the entrance need to be only added, and will The entrance is bound with the functional module, and the binding procedure can be the mark that the functional module is added in the click event of the entrance Know.So modification application program process is simple, and efficiency is very high.
In embodiments of the present invention, due to obtaining application template corresponding to applications client, mould is applied according to acquisition Plate renders and shows the entrance of at least one functional module, and when the entrance trigger command of a functional module, according to the work( The entry call of the energy module functional module, runs the functional module.So need to add New function module in the application When, entrance corresponding to New function module only need to be added in application template, the application without changing the application program Client, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 3
Referring to Fig. 3, the embodiments of the invention provide a kind of method for running application program, including:
Step 301:Application in application identities and the applications client corresponding to the applications client that receiving terminal is sent The version number of template;
Step 302:According to the application identities and the version number, determine what is stored in the application template in terminal and server Whether application template is identical corresponding to the applications client, obtains determining result;
Step 303:According to result is determined, instruction terminal obtains application template corresponding to the applications client, so that terminal The applications client is run according to the application template, the application template includes the entrance of at least one functional module.
Further, according to the application identities and the version number, determine to store in the application template in terminal and server The applications client corresponding to application template it is whether identical before, in addition to:
The mark and point of addition of functional module to be added are obtained, in application template corresponding to the applications client One entrance is set at the point of addition, the mark of the entrance and functional module to be added is bound, obtains the applications client Corresponding application template.
Further, according to the determination result, after instruction terminal obtains application template corresponding to the applications client, go back Including:
The link for the functional module that receiving terminal is sent, the net according to corresponding to the link of the functional module obtains functional module The page page, sends the Webpage to terminal, terminal is shown the Webpage.
In embodiments of the present invention, application identities and the applications client corresponding to the applications client that receiving terminal is sent In application template version number;According to the application identities and the version number, determine in the application template and server in terminal Whether application template corresponding to the applications client of storage is identical, obtains determining result;According to the determination result, instruction terminal Application template corresponding to the applications client is obtained, so that terminal runs the applications client according to the application template, the application Template includes the entrance of at least one functional module.When needing to add New function in the application, application only need to be changed Application template corresponding to client, entrance corresponding to New function module is added in application template, should without changing The applications client of application program, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 4
Referring to Fig. 4, the embodiments of the invention provide a kind of device for running application program, including:
Sending module 401, for being sent to server in application identities and the applications client corresponding to applications client Application template version number, make server determine the application template with being deposited in server according to the application identities and the version number Whether application template corresponding to the applications client of storage is identical;
Acquisition module 402, for the determination result according to server, application template corresponding to applications client is obtained, should Application template includes the entrance of at least one functional module;
Rendering module 403, for rendering the user interface of applications client according to the application template, wrapped in the user interface Include the entrance of at least one functional module;
Run module 404, for when detect the functional module in the user interface entrance triggering order when, root According to the functional module of entry call one of a functional module, a functional module is run.
Wherein, operation module 404 includes:
Acquiring unit, for when detect the functional module in user interface entrance triggering order when, obtain with The mark of the functional module of entrance binding;
Display unit, if the link for being identified as functional module for the functional module, according to the link from service Webpage corresponding to device acquisition functional module, shows the Webpage;
Running unit, if the mark for functional module is not the link of functional module, according to the functional module Mark runs the functional module from local calling functional modules.
In embodiments of the present invention, due to obtaining application template corresponding to applications client, according to the application template wash with watercolours Contaminate and show the entrance of at least one functional module, and when the entrance trigger command of a functional module, according to the function mould The entry call of the block functional module, runs the functional module.So when needing to add New function module in the application, only Entrance corresponding to New function module need to be added in application template, the application client without changing the application program End, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 5
Referring to Fig. 5, the embodiments of the invention provide a kind of device for running application program, including:
First receiving module 501, application identities corresponding to the applications client sent for receiving terminal and application visitor The version number of application template in the end of family;
Determining module 502, for according to the application identities and the version number, determining the application template and server in terminal Whether application template corresponding to the applications client of middle storage is identical, obtains determining result;
Indicating module 503, for according to the determination result, instruction terminal to obtain and applies mould corresponding to the applications client Plate, so that terminal runs applications client according to the application template, the application template includes entering at least one functional module Mouthful.
Further, the device also includes:
Setup module, it is corresponding in the applications client for obtaining the mark and point of addition of functional module to be added Application template in the point of addition at an entrance is set, the mark of the entrance and functional module to be added is bound, obtained To application template corresponding to the applications client.
Further, the device also includes:
Second receiving module, the link of the functional module sent for receiving terminal, is obtained according to the chain of the functional module Webpage corresponding to taking the functional module, the Webpage is sent to terminal, terminal is shown the Webpage.
In embodiments of the present invention, application identities and the applications client corresponding to the applications client that receiving terminal is sent In application template version number;According to the application identities and the version number, determine in the application template and server in terminal Whether application template corresponding to the applications client of storage is identical, obtains determining result;According to the determination result, instruction terminal Application template corresponding to the applications client is obtained, so that terminal runs the applications client according to the application template, the application Template includes the entrance of at least one functional module.When needing to add New function in the application, application only need to be changed Application template corresponding to client, entrance corresponding to New function module is added in application template, should without changing The applications client of application program, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 6
Fig. 6 is refer to, should it illustrates the terminal structure schematic diagram with touch sensitive surface involved by the embodiment of the present invention Terminal can be used for the method for implementing the operation application program that above-described embodiment provides.Specifically:
Terminal 900 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or the processing of more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 6 is not formed pair The restriction of terminal, it can include than illustrating more or less parts, either combine some parts or different part cloth Put.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, it is sent to up data are related to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can store uses created number according to terminal 900 According to (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use Family on or near it touch operation (such as user using any suitable object or annex such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user's input or be supplied to the information and terminal 900 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in figure 6, touch sensitive surface 131 and display panel 141 are conducts Two independent parts come realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 with display Panel 141 is integrated and realizes input and output function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as the gyroscope that can also configure in terminal 900, barometer, hygrometer, thermometer, infrared ray sensor, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 900.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another end End, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronicses by WiFi module 170 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 6 is shown WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 900, can exist as needed completely Do not change in the essential scope of invention and omit.
Processor 180 is the control centre of terminal 900, utilizes various interfaces and each portion of connection whole mobile phone Point, by running or performing the software program and/or module that are stored in memory 120, and call and be stored in memory 120 Interior data, the various functions and processing data of terminal 900 are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 also includes the power supply 190 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality Apply in example, the display unit of terminal 900 is touch-screen display, and terminal 900 also includes memory, and one or one More than program, one of them or more than one program storage in memory, and be configured to by one or one with Upper computing device states one or more than one program bag contains the instruction for being used for being operated below:
The version of the application template in application identities and the applications client corresponding to applications client is sent to server Number, server is determined the application template and the applications client stored in server according to the application identities and the version number Whether corresponding application template is identical;
According to the determination result of server, obtain application template corresponding to applications client, the application template include to The entrance of few One function module;
The user interface of the applications client is rendered according to the application template, the user interface includes at least one function The entrance of module;
When the order for the entrance triggering for detecting the functional module in user interface, according to the entrance of a functional module A functional module is called, runs a functional module.
Preferably, when the order for the entrance triggering for detecting the functional module in user interface, according to a function mould The functional module of entry call one of block, a functional module is run, including:
When the order for the entrance triggering for detecting the functional module in user interface, the work(with entrance binding is obtained The mark of energy module;
If the link for being identified as functional module of the functional module, functional module is obtained from server according to the link Corresponding Webpage, show the Webpage;
If the mark of the functional module is not the link of functional module, according to the mark of the functional module from local tune With functional module, the functional module is run.
In embodiments of the present invention, due to obtaining application template corresponding to applications client, according to the application template wash with watercolours Contaminate and show the entrance of at least one functional module, and when the entrance trigger command of a functional module, according to the function mould The entry call of the block functional module, runs the functional module.So when needing to add New function module in the application, only Entrance corresponding to New function module need to be added in application template, the application client without changing the application program End, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
Embodiment 7
Fig. 7 is the structural representation of server provided in an embodiment of the present invention.The server 1900 can be because of configuration or performance It is different and produce bigger difference, one or more central processing units (central processing can be included Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications The storage medium 1930 of program 1942 or data 1944 (such as one or more mass memory units).Wherein, memory 1932 and storage medium 1930 can be it is of short duration storage or persistently storage.One can be included by being stored in the program of storage medium 1930 Individual or more than one module (diagram does not mark), each module can include operating the series of instructions in server.More enter One step, central processing unit 1922 be could be arranged to communicate with storage medium 1930, and storage medium is performed on server 1900 Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
Server 1900 can include memory, and one or more than one program, one of them or one Individual procedure above is stored in memory, and be configured to by one either more than one computing device it is one or one Individual procedure above includes the instruction for being used for being operated below:
The version of application identities and the application template in the applications client corresponding to the applications client that receiving terminal is sent This number;
According to the application identities and the version number, the application visitor stored in the application template in terminal and server is determined Whether application template is identical corresponding to the end of family, obtains determining result;
According to the determination result, instruction terminal obtains application template corresponding to the applications client, so that terminal is according to this Application template runs the applications client, and the application template includes the entrance of at least one functional module.
Further, according to the application identities and the version number, determine to store in the application template in terminal and server The applications client corresponding to application template it is whether identical before, in addition to:
The mark and point of addition of functional module to be added are obtained, in application template corresponding to the applications client One entrance is set at the point of addition, the mark of the entrance and functional module to be added is bound, obtains the applications client Corresponding application template.
Further, according to the determination result, after instruction terminal obtains application template corresponding to the applications client, go back Including:
The link for the functional module that receiving terminal is sent, the net according to corresponding to the link of the functional module obtains functional module The page page, sends the Webpage to terminal, terminal is shown the Webpage.
In embodiments of the present invention, application identities and the applications client corresponding to the applications client that receiving terminal is sent In application template version number;According to the application identities and the version number, determine in the application template and server in terminal Whether application template corresponding to the applications client of storage is identical, obtains determining result;According to the determination result, instruction terminal Application template corresponding to the applications client is obtained, so that terminal runs the applications client according to the application template, the application Template includes the entrance of at least one functional module.When needing to add New function in the application, application only need to be changed Application template corresponding to client, entrance corresponding to New function module is added in application template, should without changing The applications client of application program, adds that the process of New function is simple and direct, improves the efficiency of addition New function.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. method for running application program, it is characterised in that methods described includes:
    The version number of the application template in application identities and the applications client corresponding to applications client is sent to server, The server is set to determine what is stored in the application template and the server according to the application identities and the version number Whether application template is identical corresponding to the applications client;
    According to the determination result of the server, application template corresponding to the applications client is obtained, in the application template Include the entrance of at least one functional module, the applications client includes each functional module, and does not include user interface, institute State user interface to be integrated in the application template, the server is additionally operable to obtain the mark of functional module to be added and added Add position, an entrance is set at the point of addition in application template corresponding to the applications client, by the entrance Bound with the mark of the functional module to be added, and change the version number, obtaining should corresponding to the applications client Use template;
    The user interface of the applications client is rendered according to the application template, the user interface includes described at least one The entrance of individual functional module;
    When the order for the entrance triggering for detecting the functional module in the user interface, obtain and entrance binding The mark of functional module;
    If the link for being identified as the functional module of the functional module, according to the link from server acquisition Webpage corresponding to functional module, show the Webpage;
    If the mark of the functional module is not the link of the functional module, according to the mark of the functional module from originally Ground calls the functional module, runs the functional module.
  2. A kind of 2. method for running application program, it is characterised in that methods described includes:
    Server obtains the mark and point of addition of functional module to be added, in application template corresponding to applications client One entrance is set at the point of addition, the mark of the entrance and the functional module to be added bound, and change institute The version number of application template is stated, obtains application template corresponding to the applications client, the applications client includes each work( Energy module, and do not include user interface, the user interface is integrated in the application template;
    Application in application identities and the applications client corresponding to the applications client that the server receiving terminal is sent The version number of template;
    The server is determined in the application template and server in the terminal according to the application identities and the version number Whether application template corresponding to the applications client of storage is identical, obtains determining result;
    The server indicates that the terminal obtains application template corresponding to the applications client according to the determination result, So that the terminal runs the applications client according to the application template of the acquisition, the application template includes at least one The entrance of individual functional module.
  3. 3. method as claimed in claim 2, it is characterised in that it is described according to the determination result, indicate that the terminal obtains After application template corresponding to the applications client, in addition to:
    The server receives the link for the functional module that the terminal is sent, according to obtaining the link of the functional module Webpage corresponding to functional module, the Webpage is sent to the terminal, the terminal is shown the Webpage.
  4. 4. a kind of device for running application program, it is characterised in that described device includes:
    Sending module, for sending the application in application identities and the applications client corresponding to applications client to server The version number of template, the server is set to determine the application template and the clothes according to the application identities and the version number Whether application template corresponding to the applications client stored in business device is identical;
    Acquisition module, for the determination result according to the server, obtain application template corresponding to the applications client, institute Stating application template includes the entrance of at least one functional module, and the applications client includes each functional module, and does not wrap Containing user interface, the user interface is integrated in the application template, and the server is additionally operable to obtain function to be added The mark and point of addition of module, one is set at the point of addition in application template corresponding to the applications client to enter Mouthful, and the mark of the entrance and the functional module to be added is bound, obtain applying corresponding to the applications client Template;
    Rendering module, for rendering the user interface of the applications client according to the application template, in the user interface Include the entrance of at least one functional module;
    Acquiring unit, for when detect the functional module in the user interface entrance triggering order when, obtain with The mark of the functional module of the entrance binding;
    Display unit, if the link for being identified as the functional module for the functional module, according to it is described link from Webpage corresponding to the server acquisition functional module, shows the Webpage;
    Running unit, if the mark for the functional module is not the link of the functional module, according to the function The mark of module calls the functional module from local, runs the functional module.
  5. 5. a kind of device for running application program, it is characterised in that for server, described device includes:
    Setup module, for obtaining the mark and point of addition of functional module to be added, applied corresponding to applications client One entrance is set at the point of addition in template, the mark of the entrance and the functional module to be added is bound, And the version number of the application template is changed, obtain application template corresponding to the applications client, the applications client bag Each functional module is included, and does not include user interface, the user interface is integrated in the application template;
    First receiving module, in application identities and the applications client corresponding to the applications client of receiving terminal transmission Application template version number;
    Determining module, for according to the application identities and the version number, determining the application template in the terminal and service Whether application template corresponding to the applications client stored in device is identical, obtains determining result;
    Indicating module, for according to the determination result, indicating the terminal to obtain corresponding to the applications client and applying mould Plate, so that the terminal runs the applications client according to the application template, the application template includes at least one The entrance of functional module.
  6. 6. device as claimed in claim 5, it is characterised in that described device also includes:
    Second receiving module, the link of the functional module sent for receiving the terminal, according to the link of the functional module Webpage corresponding to obtaining the functional module, the Webpage is sent to the terminal, make described in the terminal shows Webpage.
CN201510018616.6A 2015-01-15 2015-01-15 A kind of method and device for running application program Active CN104699501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510018616.6A CN104699501B (en) 2015-01-15 2015-01-15 A kind of method and device for running application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510018616.6A CN104699501B (en) 2015-01-15 2015-01-15 A kind of method and device for running application program

Publications (2)

Publication Number Publication Date
CN104699501A CN104699501A (en) 2015-06-10
CN104699501B true CN104699501B (en) 2018-02-16

Family

ID=53346667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510018616.6A Active CN104699501B (en) 2015-01-15 2015-01-15 A kind of method and device for running application program

Country Status (1)

Country Link
CN (1) CN104699501B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899067B (en) * 2015-06-19 2019-04-05 江苏联宏创能信息科技有限公司 A kind of method and system of more new application
CN109165050B (en) * 2018-07-05 2020-10-13 腾讯科技(深圳)有限公司 Program running method and device, computing equipment and storage medium
CN110275701B (en) * 2019-06-19 2023-05-23 网易传媒科技(北京)有限公司 Data processing method, device, medium and computing equipment
CN111181836B (en) * 2019-10-25 2023-03-24 腾讯科技(深圳)有限公司 Message pushing method and device
CN113569551B (en) * 2021-07-16 2023-12-19 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113515269B (en) * 2021-09-13 2021-12-31 腾讯科技(深圳)有限公司 Application package processing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001069444A2 (en) * 2000-03-10 2001-09-20 Aether Systems, Inc. System, method, and apparatus for providing value added services to specific users
CN102693238A (en) * 2011-03-23 2012-09-26 青岛海信电器股份有限公司 Widget application method and system and multimedia terminal
CN103176804A (en) * 2013-04-19 2013-06-26 中国海洋大学 User interface realization method
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application
CN104077162A (en) * 2014-06-30 2014-10-01 北京奇虎科技有限公司 Mobile terminal application template updating and issuing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001069444A2 (en) * 2000-03-10 2001-09-20 Aether Systems, Inc. System, method, and apparatus for providing value added services to specific users
CN102693238A (en) * 2011-03-23 2012-09-26 青岛海信电器股份有限公司 Widget application method and system and multimedia terminal
CN103176804A (en) * 2013-04-19 2013-06-26 中国海洋大学 User interface realization method
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application
CN104077162A (en) * 2014-06-30 2014-10-01 北京奇虎科技有限公司 Mobile terminal application template updating and issuing method and device

Also Published As

Publication number Publication date
CN104699501A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104618217B (en) Share method, terminal, server and the system of resource
CN104699501B (en) A kind of method and device for running application program
CN104618222B (en) A kind of method and device for matching facial expression image
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
CN106778585A (en) A kind of face key point-tracking method and device
CN104519404B (en) The player method and device of graphic interchange format file
CN103390034B (en) Method, device, terminal and the server of picture presentation
CN104519262B (en) Obtain the method, apparatus and terminal of video data
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN106210755A (en) A kind of methods, devices and systems playing live video
CN107357725A (en) Application testing method and device
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN106254910A (en) A kind of method and apparatus recording image
CN104820546B (en) Function information methods of exhibiting and device
CN104253870B (en) The method and apparatus of control data access cycle
CN107590397A (en) A kind of method and apparatus for showing embedded webpage
CN106126411A (en) A kind of method and apparatus that tested program code is tested
CN106294168A (en) A kind of method and system carrying out Application testing
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN104636455B (en) The acquisition methods and device of application program map information
CN107122036A (en) CPU frequency adjusting method and device
CN106874045A (en) A kind of startup method of application program, device and mobile terminal
CN104834655B (en) A kind of method and apparatus for the mass parameter for showing Internet resources
CN107577795A (en) A kind of methods, devices and systems for recommending song

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