CN107357486B - Show icon resolution response method, TV and computer readable storage medium - Google Patents
Show icon resolution response method, TV and computer readable storage medium Download PDFInfo
- Publication number
- CN107357486B CN107357486B CN201710567205.1A CN201710567205A CN107357486B CN 107357486 B CN107357486 B CN 107357486B CN 201710567205 A CN201710567205 A CN 201710567205A CN 107357486 B CN107357486 B CN 107357486B
- Authority
- CN
- China
- Prior art keywords
- display icon
- preset field
- parameter
- command
- field
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses display icon resolution response method, TV and the computer readable storage mediums of a kind of electronic device, by obtaining the corresponding preset field of display icon in user interface, preset field includes one or more command parameters corresponding with display icon;Preset field is encapsulated and saved with display icon;Respond the operation that user clicks packed display icon;Obtain preset field corresponding with packed display icon;According to the command parameter in the preset field, corresponding operation is executed.By showing that corresponding preset field is arranged in icon to TV in advance, and the display icon and preset field encapsulation are saved, so that client directly directly can execute corresponding operation according to the preset field, alleviate the data transmission pressure of the interface of transmission data, and when showing that icon needs to extend its operation format, it can directly modify to preset field, reduce the variation of code to the greatest extent.
Description
Technical field
The present invention relates to TV technology more particularly to a kind of display icon resolution response methods of electronic device, electricity
Depending on and computer readable storage medium.
Background technique
After TV experienced plate, high Qinghua, the networking of TV, the intelligent main hair for having become television industries
Open up direction.Continuous improvement and user couple for the smart television of China currently on the market, with hardware and software technology
The requirements at the higher level of quality of the life, function have become stronger and stronger, and interaction is also more and more humanized, have overturned completely in the past
Image of the TV in the minds of people.Although TV and information-based so high speed development bring many conveniences, there is also certain
Drawback.
Currently based on the operating system of internet television, mainly carried out data transmission by background service, allows client
End parsing data, execute operation.As the click volume of internet television content increases, this mode obviously can not be timely and effective
All user's operation of response, cause the experience of certain customers very poor.Simultaneously in big data era, internet television it is interior
Appearance material is also rich and varied, and response forms are also changing, this to increase sound in postorder in such a way that parsing data execute operation
After answering form, a large amount of programmings is needed to work.
Summary of the invention
The main purpose of the present invention is to provide display icon resolution response method, TV and the calculating of a kind of electronic device
Machine readable storage medium storing program for executing, it is intended to solve the problems, such as that TV background data transfer pressure is big and response speed is slow.
To achieve the above object, the display icon resolution response method of a kind of electronic device provided by the invention, the electricity
The display icon resolution response method of sub-device the following steps are included:
The corresponding preset field of display icon in user interface is obtained, the preset field includes and the display icon
Corresponding one or more command parameter;
The preset field is encapsulated and saved with the display icon;
Respond the operation that user clicks the packed display icon;
Obtain preset field corresponding with the packed display icon;
According to the command parameter in the preset field, corresponding operation is executed.
Preferably, the preset field is onclick field.
Preferably, the command parameter according in the preset field, the step of executing corresponding order include:
The operational order of the command parameter instruction is created according to the command parameter in the preset field;
The operation is executed according to the operational order created.
Preferably, the movement packet that the action command instruction is created according to the corresponding action command of the preset field
Include: creation start-up operation startActivity movement and/or creation starting server startService movement and/or
The movement of creation hair broadcast sendBroadcast.
Preferably, the command parameter according in the preset field creates the operation of the command parameter instruction
After the step of order further include:
When the movement for creating the action command instruction according to the action command occurs abnormal, the application is responded
Corresponding exception handling in preset field.
Preferably, include the step of corresponding exception handling in the preset field of the response application, it is described
Command parameter includes exception parameter:
The exception parameter of the preset field is parsed, and the corresponding behaviour of exception parameter is executed according to parsing
Make.
Preferably, the display icon obtained in user interface and preset field corresponding with the display icon, institute
It states preset field and includes the steps that and include: with the command parameter of the corresponding one or more of the display icon
Obtain the display icon in user interface;
According to the one or more command parameters corresponding with the display icon of display icon creation;
Preset field is assembled into according to one or more of command parameters corresponding with the display icon.
Preferably, the command parameter include: packagename, versioncode, params, dowhat, bywhat,
Byvalue parameter.
In addition, to achieve the above object, the present invention also provides a kind of TV, the TV include: memory, processor and
It is stored in the display icon resolution response program for the electronic device that can be run on the memory and on the processor, it is described
The step of display icon resolution response program of electronic device realizes method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The display icon resolution response program of electronic device, the display icon resolution response of the electronic device are stored on storage medium
The step of display icon resolution response method of electronic device as described above is realized when program is executed by processor.
The display icon resolution response method of electronic device of the present invention is corresponding by obtaining the display icon in user interface
Preset field, the preset field includes one or more command parameter corresponding with the display icon;It will be described default
Field is encapsulated and is saved with the display icon;Respond the operation that user clicks the packed display icon;Acquisition and institute
State the packed corresponding preset field of display icon;According to the command parameter in the preset field, corresponding behaviour is executed
Make.Icon, which is arranged corresponding preset field, to be shown to TV in advance by means of the present invention, and by the display icon with
Preset field encapsulation saves, so that client directly can execute corresponding operation according to the preset field, alleviates transmission
The data of the interface of data transmit pressure, and when showing that icon needs to extend its operation format, can directly to preset field into
Row modification, reduces the variation of code to the greatest extent.
Detailed description of the invention
Fig. 1 is the flow diagram of the display icon resolution response method first embodiment of electronic device of the present invention;
Fig. 2 is the flow diagram of the display icon resolution response method second embodiment of electronic device of the present invention;
Fig. 3 is the flow diagram of the display icon resolution response method 3rd embodiment of electronic device of the present invention;
Fig. 4 is the flow diagram of the display icon resolution response method fourth embodiment of electronic device of the present invention;
Fig. 5 is the schematic diagram of TV of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of display icon resolution response method of electronic device, and the electronic device includes TV, hand
The terminals such as machine, tablet computer.
In the first embodiment, referring to Fig.1, the display icon resolution response method of the electronic device includes following step
It is rapid:
Step S10 obtains the display icon in user interface and preset field corresponding with the display icon, described pre-
If field includes one or more command parameters corresponding with the display icon.
In the present embodiment, it is illustrated by TV of electronic device.In the processing system of the TV, TV
Processing system generally include background server for being managed to data, to the data sent from background server into
Row is parsed and is rendered to it to generate the front end of display effect, and the client of the data transmitted for receiving front-end
End.Wherein, the front end and user interface are the one end being presented to the user.
Specifically, background server is used to be managed the data of display icon corresponding in television interfaces, wherein electricity
Depending on user interface on corresponding display icon can be corresponding film, channel, special topic, live streaming, Apk (Android
Package, Android installation kit), website links etc..These display icons can be operation personnel when developing tv product,
Selection is either needed according to product according to investigation user's use habit;Or in the use process of TV, user is autonomous
Select application icon, plug-in unit, picture, thumbnail, the file etc. shown on a user interface.The use that user passes through click TV
Display icon on the interface of family makes television system respond the corresponding operation of display icon, such as a certain portion's film when the user clicks
When showing icon, TV will play the film assets accordingly.
The background server is after getting the display icon that operation personnel's selection is shown on television user interface, together
When can obtain the corresponding preset field of display icon, the preset field is to have selected corresponding display icon in operation personnel
Afterwards, background server can create preset field corresponding with the display icon automatically according to selected display icon.It is described pre-
If field is onclick field.
Wherein, the onclick field may include one or more command parameters corresponding with the display icon.Tool
The command parameter of body may include: packagename, versioncode, params, dowhat, bywhat, byvalue ginseng
Number.So background server is when obtaining the display icon on television user interface, while it is corresponding also to will acquire the display icon
Onclick field.
Specifically, packagename represents the application packet of response operation;Versioncode represents the version letter of application packet
Breath, can do version isolation in more new function;Params represents the parameter that starting application needs, such as heading message, if
It can suspend, film ID, film source company, resource type etc.;Dowhat indicates the concrete operations executed, including creation starting behaviour
Make the movement of startActivity and/or the movement of creation starting server startService and/or creation hair broadcast
The three classes such as sendBroadcast specifically act;The mode type of bywhat representative execution concrete operations, including action,
Class, URI (Uniform Resource Identifier, uniform resource identifier) etc.;Byvalue, which is represented, executes specific behaviour
The occurrence of work, specific action, specific complete class name, specific URI etc.;Exception represents different in front-end processing
Processing mode after often, parameter therein is identical with onclick field, and the value of setting is primarily to after starting exception
Default treatment.
It should be noted that the Onclick field in the present embodiment is mainly formed in the form of key:value, it is therein
Key is the index of the field, and value is value.By indexing searching value, index must be uniquely that value can repeat.It is this more
High-speed searching is supported to the format of data composition and saves memory space, substantially increase the speed of transmission mass data and is avoided
Data in transmission process omit problem.
The preset field is encapsulated and is saved with the display icon by step S20;
When the background server gets the display icon and the corresponding onclick field of the display icon,
Then further the onclick field and display icon are packaged together, and are saved in database.
Specifically the setting of the parameters of onclick field can refer to following examples:
{
"packagename":"com.tianci.movieplatform",
"versioncode":"1","dowhat":"startService",
"bywhat":"action","byvalue":"coocaa.intent.player.video",
" params ": " id ": " _ yinhe_203291601 ", " name ": " thunderbolt fire of special technical soldier ",
"url":"{'definition':'DEFINITON_1080P','tvId':'441828700',
'albumId':'203291601','vId':'92efb36f66e47f1a922e0e85d40eb,
aca'}","needParse":"false","company":"iqiyi","url_type":
"iqiyi","child_id":"3",},
"exception":{}
}
After the setting for completing the parameter of onclick, onclick field corresponding with display icon is encapsulated into preservation extremely respectively
Database.
Step S30, response user click the operation of the packed display icon;
Step S40 obtains preset field corresponding with the packed display icon;
When user clicks and correspondingly shows icon, the client end response click event, the actually display icon at this time
The corresponding data of the display icon are saved in the database, in the client end response click event by background server
Afterwards, client directly passes through background service and obtains the corresponding onclick field of the display icon from database.
Specifically, user clicks one of those according to the multiple display icons shown in the user interface of TV, selection
Show icon.After user clicks the display icon, television headend is obtained from the TV background server and is taken from the background
The display icon and the corresponding onclick field of the display icon of end seal of being engaged in dress, the order from the onclick field
The onclick field is parsed in parameter, client is directly executed according to the corresponding command parameter of onclick field after the parsing
Corresponding operation.
Step S50 executes corresponding operation according to the command parameter in the preset field.
It shows that icon clicks event in client end response, and obtains the display icon and the display icon is corresponding
After onclick field, which is transferred to front end by client, and front end parses the onclick field.Before
After end is parsed according to above-mentioned onclick field, the field that front end needs is transmitted directly to client, so that client
Corresponding movement is directly executed according to the field of the parsing.For example, this film is shown for example, user clicks a film
The corresponding onclick parameter of diagram mark is set as opening in a manner of starting activity (startActivity) by background server
Entitled " name ": the TV of " Chu Qiaochuan ", front end parse the onclick after getting the corresponding onclick field of the film
Field learns the display icon indicated by the field is that movement needed to trigger after being clicked, then by the number after parsing
According to client is sent to, then client can execute such a movement according to parameter.
The present embodiment is by obtaining display icon and preset field corresponding with the display icon in user interface, institute
Stating preset field includes one or more command parameters corresponding with the display icon;By the preset field and the display
Icon is encapsulated and is saved;Respond the operation that user clicks the packed display icon;It obtains and the packed display
The corresponding preset field of icon;According to the command parameter in the preset field, corresponding operation is executed.Through this embodiment
Method icon, which is arranged corresponding preset field, to be shown to TV in advance, and the display icon and preset field encapsulation are protected
It deposits, so that client can alleviate transmission data directly according to the corresponding direct execution corresponding operation of the preset field
Interface data transmit pressure, and when show icon need to extend its operation format when, directly preset field can be repaired
Change, reduces the variation of code to the greatest extent.
Further, referring to Fig. 2, the display icon resolution response method first based on electronic device of the present invention is implemented
, in the display icon resolution response method second embodiment of electronic device of the present invention, include: in the step S50
Step S51 is ordered according to the operation that the command parameter in the preset field creates the command parameter instruction
It enables;
Step S52 executes the operation according to the operational order created.
Television headend parses the onclick after the corresponding onclick field of display icon for getting client transmission
Field, and according to the corresponding corresponding movement of value creation of dowhat parameter in the onclick field.For example, when described
The instruction of dowhat parameter is startActivity, then television headend will create the movement of startActivity;Work as dowhat
When that parameter indicates is startService, then television headend will create the movement of startService;When dowhat parameter refers to
When that show is sendBroadcast, then television headend will create the movement of sendBroadcast.And any activity specifically started
And start that parameter is then determined by bywhat and byvalue.The parameter wherein executed, which equally determines, is shown in electricity
Depending on the effect on machine, for example, when the corresponding display effect of parameter executed is the global operation of pop-up or the operation of next step
Need to further click on TV display icon operation etc., these above-mentioned display effects can according to execute what
Parameter is arranged.And after the display icon that user clicks TV, client can be directly according to front end analytic parameter and basis
The movement of parameter creation directly executes corresponding movement, so that client does not need to do excessive processing, reduces data
Treatment process and operation response time.
The present embodiment creates the command parameter according to the command parameter in the preset field by television headend
The operational order of instruction;The operation is executed according to the operational order created.So that television headend can directly will be according to solution
The movement of the parameter creation of analysis is sent to client and is pointing directly at the movement, reduces the intermediate treatment process of client, accelerates
Response speed.
Further, referring to Fig. 3, the display icon resolution response method second based on electronic device of the present invention is implemented
Example, in the display icon resolution response method 3rd embodiment of electronic device of the present invention, above-mentioned steps S51 includes:
Step S51a, when the movement for creating the action command instruction according to the action command occurs abnormal, response
Corresponding exception handling in the preset field of the application;
Specifically, in the present embodiment, the corresponding onclick field of the display icon further includes exception parameter,
The exception parameter represents the processing mode after front-end processing exception, and parameter therein is identical with onclick field,
The value of setting is primarily to default treatment after starting exception.
Television headend parses exception parameter after handling exception, and executes corresponding movement after parsing.Example
Such as, user clicks a lichee TV software, and the onclick parameter of this material is set as by background server to start activity
(startActivity) mode is opened in the application packet of entitled com.tianci.appstore using entitled
The application of com.js.litch.Then client can execute such a movement according to parameter.At this time if the TV of user
There is no the software of downloading installation lichee TV on machine, then client can open failure.So front end can further parse exception
Then field opens lichee TV downloading details page.
The application extends television headend after handling exception by the way that exception field is arranged in preset field
Processing mode.
Further, referring to Fig. 4, the display icon resolution response method second based on electronic device of the present invention is implemented
Example, in the display icon resolution response method fourth embodiment of electronic device of the present invention, above-mentioned steps S10 includes:
Step S11 obtains the display icon in user interface;
Step S12, according to the one or more command parameters corresponding with the display icon of display icon creation;
Step S13 is assembled into preset field according to one or more of command parameters corresponding with the display icon.
The background server of TV, can be according to the display after getting the display icon in user interface in the present embodiment
The type of icon is the corresponding command parameter of the one or more display icons of display icon creation, which includes:
One in packagename, versioncode, params, dowhat, bywhat, byvalue, exception parameter etc.
Or it is multiple.And above-mentioned one or more command parameters are assembled into preset field, for television headend and client root
Corresponding operation is executed by the preset field that one or more command parameters are assembled into according to this.
In the present embodiment, parameters are just assembled at background server by preset field and display figure by early period
Mark encapsulation, and save in the database, thus a possibility that saving between the assembling of background server, reducing error, and
Improve maintainability.
Referring to FIG. 5, the TV includes: memory 10, processor 20 the present invention further provides a kind of TV 100
And it is stored in the display icon resolution response journey for the electronic device that can be run on the memory 10 and on the processor 20
Sequence.The display icon resolution response program of the electronic device realizes following method and step when being executed by the processor:
Obtain the display icon in user interface and preset field corresponding with the display icon, the preset field packet
Include one or more command parameters corresponding with the display icon;
The preset field is encapsulated and saved with the display icon;
Respond the operation that user clicks the packed display icon;
Obtain preset field corresponding with the packed display icon;
According to the command parameter in the preset field, corresponding operation is executed.
In the present embodiment, it is illustrated by TV of electronic device.In the television system, the processing end of TV includes
Background server for being managed to data parse and carry out it to the data sent from background server
Rendering is to generate the front end of display effect, and the client of the data transmitted for receiving front-end.
Specifically, background server is used to be managed the data of display icon corresponding in television interfaces, wherein electricity
Depending on user interface on corresponding display icon can be corresponding film, channel, special topic, live streaming, Apk (Android
Package, Android installation kit), website links etc..These display icons can be operation personnel when developing tv product,
Selection is either needed according to product according to investigation user's use habit;Or in the use process of TV, user is autonomous
Select application icon, plug-in unit, picture, thumbnail, the file etc. shown on a user interface.The use that user passes through click TV
Display icon on the interface of family makes television system respond the corresponding operation of display icon, such as a certain portion's film when the user clicks
When showing icon, TV will play the film assets accordingly.
The background server is after getting the display icon that operation personnel's selection is shown on television user interface, together
When can obtain the corresponding preset field of display icon, the preset field is to have selected corresponding display icon in operation personnel
Afterwards, background server can create preset field corresponding with the display icon automatically according to selected display icon.It is described pre-
If field is onclick field.
Wherein, the onclick field may include one or more command parameters corresponding with the display icon.Tool
The command parameter of body may include: packagename, versioncode, params, dowhat, bywhat, byvalue ginseng
Number.So the background server while also will acquire the display icon when obtaining the display icon on television user interface
Corresponding onclick field.
Specifically, packagename represents the application packet of response operation;Versioncode represents the version letter of application packet
Breath, can do version isolation in more new function;Params represents the parameter that starting application needs, such as heading message, if
It can suspend, film ID, film source company, resource type etc.;Dowhat indicates the concrete operations executed, including creation starting behaviour
Make the movement of startActivity and/or the movement of creation starting server startService and/or creation hair broadcast
The three classes such as sendBroadcast specifically act;The mode type of bywhat representative execution concrete operations, including action,
Class, URI (Uniform Resource Identifier, uniform resource identifier) etc.;Byvalue, which is represented, executes specific behaviour
The occurrence of work, specific action, specific complete class name, specific URI etc.;Exception represents different in front-end processing
Processing mode after often, parameter therein is identical with onclick field, and the value of setting is primarily to after starting exception
Default treatment.
It should be noted that the Onclick field in the present embodiment is mainly formed in the form of key:value, it is therein
Key is the index of the field, and value is value.By indexing searching value, index must be uniquely that value can repeat.It is this more
High-speed searching is supported to the format of data composition and saves memory space, substantially increase the speed of transmission mass data and is avoided
Data in transmission process omit problem.
When the background server gets the display icon and the corresponding onclick field of the display icon,
Then further the onclick field and display icon are packaged together, and are saved in database.
Specifically the setting of the parameters of onclick field can refer to following examples:
{
"packagename":"com.tianci.movieplatform",
"versioncode":"1","dowhat":"startService",
"bywhat":"action","byvalue":"coocaa.intent.player.video",
" params ": " id ": " _ yinhe_203291601 ", " name ": " thunderbolt fire of special technical soldier ",
"url":"{'definition':'DEFINITON_1080P','tvId':'441828700',
'albumId':'203291601','vId':'92efb36f66e47f1a922e0e85d40eb,
aca'}","needParse":"false","company":"iqiyi","url_type":
"iqiyi","child_id":"3",},
"exception":{}
}
After the setting for completing the parameter of onclick, onclick field corresponding with display icon is encapsulated into preservation extremely respectively
Database.
When user clicks and correspondingly shows icon, the client end response click event, the actually display icon at this time
The corresponding data of the display icon are saved in the database, in the client end response click event by background server
Afterwards, client directly passes through background service and obtains the corresponding onclick field of the display icon from database.
Specifically, user clicks one of those according to the multiple display icons shown in the user interface of TV, selection
Show icon.After user clicks the display icon, television headend is obtained from the TV background server and is taken from the background
The display icon and the corresponding onclick field of the display icon of end seal of being engaged in dress, the order from the onclick field
The onclick field is parsed in parameter, client is directly executed according to the corresponding command parameter of onclick field after the parsing
Corresponding operation.
It shows that icon clicks event in client end response, and obtains the display icon and the display icon is corresponding
After onclick field, which is transferred to front end by client, and front end parses the onclick field.Before
After end is parsed according to above-mentioned onclick field, the field that front end needs is transmitted directly to client, so that client
Corresponding movement is directly executed according to the field of the parsing.For example, this film is shown for example, user clicks a film
The corresponding onclick parameter of diagram mark is set as opening in a manner of starting activity (startActivity) by background server
Entitled " name ": the TV of " Chu Qiaochuan ", front end parse the onclick after getting the corresponding onclick field of the film
Field learns the display icon indicated by the field is that movement needed to trigger after being clicked, then by the number after parsing
According to client is sent to, then client can execute such a movement according to parameter.
The present embodiment is by obtaining display icon and preset field corresponding with the display icon in user interface, institute
Stating preset field includes one or more command parameters corresponding with the display icon;By the preset field and the display
Icon is encapsulated and is saved;Respond the operation that user clicks the packed display icon;It obtains and the packed display
The corresponding preset field of icon;According to the command parameter in the preset field, corresponding operation is executed.Through this embodiment
Method icon, which is arranged corresponding preset field, to be shown to TV in advance, and the display icon and preset field encapsulation are protected
It deposits, so that client can alleviate transmission data directly according to the corresponding direct execution corresponding operation of the preset field
Interface data transmit pressure, and when show icon need to extend its operation format when, directly preset field can be repaired
Change, reduces the variation of code to the greatest extent.
In one embodiment, when the display icon resolution response program of the electronic device is executed by the processor, institute
The step of stating according to the command parameter in the preset field, executing corresponding order include:
The operational order of the command parameter instruction is created according to the command parameter in the preset field;
The operation is executed according to the operational order created.
Television headend parses the onclick after the corresponding onclick field of display icon for getting client transmission
Field, and according to the corresponding corresponding movement of value creation of dowhat parameter in the onclick field.For example, when described
The instruction of dowhat parameter is startActivity, then television headend will create the movement of startActivity;Work as dowhat
When that parameter indicates is startService, then television headend will create the movement of startService;When dowhat parameter refers to
When that show is sendBroadcast, then television headend will create the movement of sendBroadcast.And any activity specifically started
And start that parameter is then determined by bywhat and byvalue.The parameter wherein executed, which equally determines, is shown in electricity
Depending on the effect on machine, for example, when the corresponding display effect of parameter executed is the global operation of pop-up or the operation of next step
Need to further click on TV display icon operation etc., these above-mentioned display effects can according to execute what
Parameter is arranged.And after the display icon that user clicks TV, client can be directly according to front end analytic parameter and basis
The movement of parameter creation directly executes corresponding movement, so that client does not need to do excessive processing, reduces data
Treatment process and operation response time.
The present embodiment creates the command parameter according to the command parameter in the preset field by television headend
The operational order of instruction;The operation is executed according to the operational order created.So that television headend can directly will be according to solution
The movement of the parameter creation of analysis is sent to client and is pointing directly at the movement, reduces the intermediate treatment process of client, accelerates
Response speed.
Further, in one embodiment, the display icon resolution response program of the electronic device is by the processor
When execution, the operational order of the command parameter instruction is created in the command parameter according in the preset field
Following method and step is also realized after step:
When the movement for creating the action command instruction according to the action command occurs abnormal, the application is responded
Corresponding exception handling in preset field.
Specifically, in the present embodiment, the corresponding onclick field of the display icon further includes exception parameter,
The exception parameter represents the processing mode after front-end processing exception, and parameter therein is identical with onclick field,
The value of setting is primarily to default treatment after starting exception.
Television headend parses exception parameter after handling exception, and executes corresponding movement after parsing.Example
Such as, user clicks a lichee TV software, and the onclick parameter of this material is set as by background server to start activity
(startActivity) mode is opened in the application packet of entitled com.tianci.appstore using entitled
The application of com.js.litch.Then client can execute such a movement according to parameter.At this time if the TV of user
There is no the software of downloading installation lichee TV on machine, then client can open failure.So front end can further parse exception
Then field opens lichee TV downloading details page.
The application extends television headend after handling exception by the way that exception field is arranged in preset field
Processing mode.
Further, in one embodiment, the display icon resolution response program of the electronic device is by the processor
When execution, the display icon obtained in user interface and preset field corresponding with the display icon, the predetermined word
Section includes the steps that the command parameter of one or more corresponding with the display icon includes:
Obtain the display icon in user interface;
According to the one or more command parameters corresponding with the display icon of display icon creation;
Preset field is assembled into according to one or more of command parameters corresponding with the display icon.
The background server of TV, can be according to the display after getting the display icon in user interface in the present embodiment
The type of icon is the corresponding command parameter of the one or more display icons of display icon creation, which includes:
One in packagename, versioncode, params, dowhat, bywhat, byvalue, exception parameter etc.
Or it is multiple.And above-mentioned one or more command parameters are assembled into preset field, for television headend and client root
Corresponding operation is executed by the preset field that one or more command parameters are assembled into according to this.
In the present embodiment, parameters are just assembled at background server by preset field and display figure by early period
Mark encapsulation, and save in the database, thus a possibility that saving between the assembling of background server, reducing error, and
Improve maintainability.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with the display icon resolution response program of electronic device, the display icon resolution response program of the electronic device is located
It manages and realizes following operation when device executes:
Obtain the display icon in user interface and preset field corresponding with the display icon, the preset field packet
Include one or more command parameters corresponding with the display icon;
The preset field is encapsulated and saved with the display icon;
Respond the operation that user clicks the packed display icon;
Obtain preset field corresponding with the packed display icon;
According to the command parameter in the preset field, corresponding operation is executed.
Specially realize the method and step of above-mentioned first embodiment.
Further, when the display icon resolution response program of the electronic device is executed by the processor, described
According to the command parameter in the preset field, the step of executing corresponding order, includes:
The operational order of the command parameter instruction is created according to the command parameter in the preset field;
The operation is executed according to the operational order created.
Specially implement the method and step of above-mentioned second embodiment.
Further, when the display icon resolution response program of the electronic device is executed by the processor, described
It is also real after the step of creating the operational order of the command parameter instruction according to the command parameter in the preset field
Existing following method and step:
When the movement for creating the action command instruction according to the action command occurs abnormal, the application is responded
Corresponding exception handling in preset field.
Specially implement the method and step of above-mentioned 3rd embodiment.
Further, it is described to obtain when the display icon resolution response program of the electronic device is executed by the processor
The display icon in user interface and preset field corresponding with the display icon are taken, the preset field includes showing with described
The step of command parameters corresponding to diagram mark includes:
Obtain the display icon in user interface;
According to the one or more command parameters corresponding with the display icon of display icon creation;
Preset field is assembled into according to one or more of command parameters corresponding with the display icon.
Specially implement the method and step of above-mentioned fourth embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (9)
1. a kind of display icon resolution response method of electronic device, which is characterized in that the display icon solution of the electronic device
Analyse response method the following steps are included:
The corresponding preset field of display icon in user interface is obtained, the preset field includes corresponding with the display icon
One or more command parameters, the preset field be onclick field;
The preset field is encapsulated and saved with the display icon;
Respond the operation that user clicks the packed display icon;
Obtain preset field corresponding with the packed display icon;
According to the command parameter in the preset field, corresponding operation is executed.
2. the display icon resolution response method of electronic device according to claim 1, which is characterized in that the basis should
The command parameter in preset field, the step of executing corresponding order include:
The operational order of the command parameter instruction is created according to the command parameter in the preset field;
The operation is executed according to the operational order created.
3. the display icon resolution response method of electronic device according to claim 2, which is characterized in that described according to institute
Stating the corresponding action command of preset field and creating the movement of the action command instruction includes: creation start-up operation
The movement of startActivity and/or the movement of creation starting server startService and/or creation hair broadcast
The movement of sendBroadcast.
4. the display icon resolution response method of electronic device according to claim 2, which is characterized in that described according to institute
After stating the step of command parameter in preset field creates the operational order of command parameter instruction further include:
When the movement for creating the action command instruction according to the action command occurs abnormal, the default of the application is responded
Corresponding exception handling in field.
5. the display icon resolution response method of electronic device according to claim 4, which is characterized in that the response institute
The step of stating corresponding exception handling in the preset field of application includes that the command parameter includes exception parameter:
The exception parameter of the preset field is parsed, and the corresponding operation of exception parameter is executed according to parsing.
6. the display icon resolution response method of described in any item electronic devices according to claim 1~5, which is characterized in that
Display icon and preset field corresponding with the display icon in the acquisition user interface, the preset field include with
It is described to show that the step of icon corresponds to one or more command parameters includes:
Obtain the display icon in user interface;
According to the one or more command parameters corresponding with the display icon of display icon creation;
Preset field is assembled into according to one or more of command parameters corresponding with the display icon.
7. the display icon resolution response method of described in any item electronic devices according to claim 1~5, which is characterized in that
The command parameter includes: packagename, versioncode, params, dowhat, bywhat, byvalue parameter.
8. a kind of TV, which is characterized in that the TV includes: memory, processor and is stored on the memory and can
The display icon resolution response program of the electronic device run on the processor, the display icon parsing of the electronic device
The step of responder realizes the method according to claim 1 to 7 when being executed by the processor.
9. a kind of computer readable storage medium, which is characterized in that be stored with electronics dress on the computer readable storage medium
The display icon resolution response program set, realization when the display icon resolution response program of the electronic device is executed by processor
As the described in any item electronic devices of claim 1-7 display icon resolution response method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710567205.1A CN107357486B (en) | 2017-07-12 | 2017-07-12 | Show icon resolution response method, TV and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710567205.1A CN107357486B (en) | 2017-07-12 | 2017-07-12 | Show icon resolution response method, TV and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107357486A CN107357486A (en) | 2017-11-17 |
CN107357486B true CN107357486B (en) | 2019-11-19 |
Family
ID=60292516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710567205.1A Active CN107357486B (en) | 2017-07-12 | 2017-07-12 | Show icon resolution response method, TV and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357486B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151591A (en) * | 2018-11-20 | 2019-01-04 | 四川长虹电器股份有限公司 | The method of smart television application starting |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533432A (en) * | 2013-04-19 | 2014-01-22 | Tcl集团股份有限公司 | Method and system for starting television application |
CN104090975A (en) * | 2014-07-18 | 2014-10-08 | 广州金山网络科技有限公司 | Application management method and device |
CN105808276A (en) * | 2014-12-30 | 2016-07-27 | 乐视致新电子科技(天津)有限公司 | Application management method and apparatus |
-
2017
- 2017-07-12 CN CN201710567205.1A patent/CN107357486B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533432A (en) * | 2013-04-19 | 2014-01-22 | Tcl集团股份有限公司 | Method and system for starting television application |
CN104090975A (en) * | 2014-07-18 | 2014-10-08 | 广州金山网络科技有限公司 | Application management method and device |
CN105808276A (en) * | 2014-12-30 | 2016-07-27 | 乐视致新电子科技(天津)有限公司 | Application management method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107357486A (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111045655B (en) | Page rendering method and device, rendering server and storage medium | |
US20020165993A1 (en) | System and method of partitioning software components of a monolithic component-based application program to separate graphical user interface elements for local execution at a client system in conjunction with remote execution of the application program at a server system | |
CN106997298B (en) | Application resource acquisition method and device | |
US11341589B2 (en) | Method and system for providing a cooperative working environment that facilitates management of property | |
US9646103B2 (en) | Client-side template engine and method for constructing a nested DOM module for a website | |
US11481948B2 (en) | Method, device and storage medium for generating animation group by synthesizing animation layers based on tree structure relation between behavior information and sub-behavior information | |
US9122763B2 (en) | Consistent web application presentation | |
CN105955731B (en) | Method and system for quickly compiling mobile game | |
US20160012144A1 (en) | Javascript-based, client-side template driver system | |
CN102426685A (en) | Interactive internet video advertisement broadcasting method | |
WO2016005885A2 (en) | Asynchronous initialization of document object model (dom) modules | |
CN108021583A (en) | Page loading method, the processing method and client of page operation instruction | |
US20130254806A1 (en) | System and Method for Displaying a Media Program Stream on Mobile Devices | |
Firtman | High Performance Mobile Web: Best Practices for Optimizing Mobile Web Apps | |
US9614900B1 (en) | Multi-process architecture for a split browser | |
CN107357486B (en) | Show icon resolution response method, TV and computer readable storage medium | |
WO2016005886A2 (en) | Self-referencing of running script elements in asychronously loaded dom modules | |
US20130254822A1 (en) | System for Creating and Displaying a Media Program Stream | |
CN107391175B (en) | Control data configuration method and computer readable storage medium | |
CN104102536B (en) | The methods of exhibiting and system of a kind of data | |
CN112487322B (en) | Third party application Loading page loading method and display device | |
CN109522066A (en) | In a kind of information list can interactive graphics (IG) methods of exhibiting | |
CN114281446A (en) | Abnormal event display method and device, storage medium and electronic device | |
US20160012146A1 (en) | Client Web Browser and Method for Constructing a Website DOM Module With Client-Side Functional Code | |
CN107589978B (en) | Method and device for refreshing page in Flash |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Patentee after: Shenzhen Kukai Network Technology Co.,Ltd. Address before: 518108 room 1502, block a, South Skyworth building, Shennan Avenue, Nanshan District, Shenzhen City, Guangdong Province Patentee before: Shenzhen Coocaa Network Technology Co.,Ltd. |
|
CP03 | Change of name, title or address |