CN103747309B - The method and apparatus that the Widget for controlling third-party server to provide is applied - Google Patents
The method and apparatus that the Widget for controlling third-party server to provide is applied Download PDFInfo
- Publication number
- CN103747309B CN103747309B CN201310656493.XA CN201310656493A CN103747309B CN 103747309 B CN103747309 B CN 103747309B CN 201310656493 A CN201310656493 A CN 201310656493A CN 103747309 B CN103747309 B CN 103747309B
- Authority
- CN
- China
- Prior art keywords
- party server
- control
- widget application
- user
- sub
- 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
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000000694 effects Effects 0.000 claims description 63
- 238000012545 processing Methods 0.000 claims description 32
- 230000008569 process Effects 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 6
- 230000002452 interceptive effect Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000003860 storage Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Landscapes
- Telephonic Communication Services (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of method and apparatus of the Widget for controlling third-party server to provide applications, the control to the Widget that third-party server the provides views applied is realized.Method includes:Receive and parse through the first instruction that user is sent by remote control to order, ordered according to the first instruction, be switched to the Widget applications of user's current selected, from third-party server, obtain the view provided by third-party server and the display of Widget applications;Receive and parse through at least one second instruction that user is sent by remote control to order, ordered according to the second instruction, the child control selected in the view provided by third-party server that user applies from the Widget is provided;Receive and parse through the 3rd instruction that user is sent by remote control to order, ordered according to the 3rd instruction, from third-party server, obtain the view provided by third-party server and the display of currently selected child control.
Description
Technical Field
The invention relates to the technical field of digital televisions, in particular to a method and a device for controlling a Widget application provided by a third-party server in an intelligent television.
Background
With the rapid development of intelligent devices, smart televisions have entered the daily lives of thousands of households, and rich personalized experience is continuously brought to users. The smart television has a fully-open platform, is loaded with an operating system (such as an Android operating system), can be used for installing and uninstalling application programs such as software and games provided by third-party service providers by a user, continuously expands the functions of the television through the application programs, and can realize the experience of surfing the internet through a network cable and a wireless network.
At present, interactive interfaces of smart televisions are generally developed in the same process based on an Android UI (User Interface) architecture, and a content aggregation scheme of the smart televisions mainly achieves the interactive interfaces by acquiring content provided by a third-party service provider. This solution has the following drawbacks: firstly, as the development content of the third-party service provider belongs to the core value of the third-party service provider, not all the cooperative third-party service providers are willing to provide the development content to the manufacturers of the intelligent televisions; secondly, as the development content of the third-party service provider is directly obtained, the intelligent television needs to be maintained for a long time, and huge expense is brought; finally, the efficiency of function migration and updating of the interactive interface realized by adopting the scheme is low.
Widget (Widget or Widget in chinese) refers to an application program running in a user computer or mobile device in an internet environment and based on a Web browser/Widget engine, which can update and display data from local or internet, and aims to assist a user to enjoy various applications and network services. The application interface developed by the third-party service provider can be displayed and interacted on a launcher (desktop launcher) customized by a terminal manufacturer through a Widget (namely, an Appwidget) control of an operating system (such as Android) of the smart television. For third-party service providers, the development of the Widget application is relatively simple and convenient to maintain.
At present, the smart television is still controlled by a remote controller, and a user can operate the smart television through the remote controller so as to obtain various personalized experiences provided by a third-party service provider for the user. However, the operating system of the existing smart tv generally does not support the focus movement of the Widget control controlled by the remote controller, so that the user cannot control the Widget control on the launcher of the smart tv through the remote controller.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling a Widget application provided by a third-party server, which realize the control of a view provided by the third-party server of the Widget application acquired from the third-party server in an intelligent television through a remote controller.
The embodiment of the invention provides a method for controlling a Widget application provided by a third-party server, which comprises the following steps:
receiving and analyzing a first instruction command sent by a user through a remote controller, switching to a Widget application currently selected by the user according to the first instruction command, and acquiring and displaying a view provided by a third-party server of the Widget application from the third-party server providing the Widget application;
receiving and analyzing at least one second instruction command sent by a user through a remote controller, and switching to a sub-control selected by the user from a view provided by the third-party server in the Widget application according to the second instruction command;
and receiving and analyzing a third instruction command sent by a user through a remote controller, and acquiring and displaying the view of the selected sub-control provided by the third-party server from the third-party server according to the third instruction command.
In implementation, the obtaining and displaying the view provided by the third-party server of the Widget application from the third-party server providing the Widget application specifically includes:
acquiring attribute information of the Widget application from the third-party server;
establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and the number of the first and second groups,
and acquiring the view of the Widget application provided by the third-party server from the third-party server, and storing and displaying the acquired view in an established container.
In implementation, as a preferred implementation manner, after switching to a child control selected by a user from a view provided by the third-party server of the Widget application according to the second instruction command, the method further includes:
judging that the currently selected sub-control carries mark information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application;
and if the second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application.
As another preferred implementation manner, after switching to a sub-control selected by a user from a view provided by the third-party server in the Widget application according to the second instruction command, the method further includes:
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application;
if the second indication command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the currently selected sub-control is located at the edge position of the view provided by the third-party server of the Widget application; and the number of the first and second groups,
and receiving and analyzing a fourth instruction command sent by the user through a remote controller, switching out the view of the Widget application provided by the third-party server according to the fourth instruction command, and switching to the Widget application reselected by the user.
Based on the two preferable implementation manners, further, the method further includes:
judging that the currently selected sub-control does not carry marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command;
or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; and if the second instruction command sent by the user through the remote controller is received and the second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server for the Widget application according to the second instruction command.
In implementation, the obtaining and displaying, from the third-party server, the view of the selected child control provided by the third-party server specifically includes:
acquiring a view of the currently selected sub-control provided by the third-party server and display effect information of the view of the sub-control from the third-party server; and the number of the first and second groups,
and acquiring the view of the currently selected sub-control meeting the display effect information according to the display effect information, and displaying the view of the currently selected sub-control.
By adopting the method provided by the embodiment of the invention, the view provided by the third-party server of the Widget application acquired from the third-party server in the smart television can be controlled through the keys of the remote controller, and the user experience is improved.
The embodiment of the invention also provides a device for controlling the Widget application provided by the third-party server, which comprises:
the first processing module is used for receiving and analyzing a first instruction command sent by a user through a remote controller, switching to a Widget application currently selected by the user according to the first instruction command, and acquiring and displaying a view provided by a third-party server of the Widget application from the third-party server providing the Widget application;
the second processing module is used for receiving and analyzing at least one second instruction command sent by a user through a remote controller, and switching to a sub-control selected by the user from a view provided by the third-party server in the Widget application according to the second instruction command;
and the third processing module is used for receiving and analyzing a third instruction command sent by a user through a remote controller, and acquiring and displaying the view of the currently selected sub-control provided by the third-party server from the third-party server according to the third instruction command.
In an implementation, the first processing module is specifically configured to:
acquiring attribute information of the Widget application from a third-party server; establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and acquiring the view of the Widget application, which is provided by the third-party server, from the third-party server, and storing and displaying the acquired view in the established container.
In implementation, after the second processing module switches to the sub-control selected by the user from the view provided by the third-party server of the Widget application according to the second instruction command, the second processing module is further configured to:
judging that the currently selected sub-control carries mark information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application;
or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second indication command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the currently selected sub-control is located at the edge position of the view provided by the third-party server of the Widget application; and receiving and analyzing a fourth instruction command sent by the user through the remote controller, switching out the view provided by the third-party server of the Widget application according to the fourth instruction command, and switching to the Widget application reselected by the user.
Further, the second processing module is further configured to:
judging that the currently selected sub-control does not carry marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command;
or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; and if the second instruction command sent by the user through the remote controller is received and the second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server for the Widget application according to the second instruction command.
In an implementation, the third processing module is specifically configured to:
acquiring a view of the currently selected sub-control provided by the third-party server and display effect information of the view of the sub-control from the third-party server; and acquiring the view of the currently selected sub-control meeting the display effect information according to the display effect information, and displaying the view of the currently selected sub-control.
By adopting the device provided by the embodiment of the invention, the view provided by the third-party server of the Widget application acquired from the third-party server in the smart television can be controlled through the keys of the remote controller, so that the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a method for controlling a Widget application provided by a third-party server according to the present invention;
FIG. 2 is a schematic diagram of a first embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for controlling a Widget application provided by a third-party server according to the present invention.
Detailed Description
According to the method and the device, the instruction command sent by the user through the remote controller is received and analyzed, so that the view provided by the third-party server of the Widget application acquired from the third-party server in the smart television is controlled, and the user experience is improved.
In the embodiment of the invention, a Widget control (namely, AppWidget) development framework in an android operating system is used, Widget applications developed by a third-party provider can be displayed on a Launcher (desktop Launcher) customized by a smart television manufacturer, and interaction can be carried out with the third-party provider. The AppWidget can realize that a request initiating terminal (namely a smart television) binds Widget application developed by a third-party provider for a carrier through remoteview, and the purpose of acquiring page information of the third-party provider is realized. The Appwit does not limit the size of the remoteview, so that the display of the page of the third-party provider can be realized by using the technology under the application scene of the large-size interface of the smart television. The Launcher can load the data of the Widget application acquired from the third-party provider into the container constructed by the Launcher by analyzing the remoteview construction returned by the AppWidget to store the container of the Widget application developed by the third-party provider. In addition, the third-party provider is relatively simple to develop the Widget application, and the third-party provider is convenient to maintain and protect the content copyright. By the method, the content of the Widget application of a plurality of third-party providers can be aggregated in the smart television, so that the individual experience of a user is greatly met.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto. It is to be understood that the embodiments described herein are merely illustrative and explanatory of the invention and are not restrictive thereof.
The embodiment of the invention provides a method for controlling a Widget application provided by a third-party server, and as shown in figure 1, the method comprises the following steps:
and step 11, receiving and analyzing a first instruction command sent by a user through a remote controller, switching to the Widget application currently selected by the user according to the first instruction command, and acquiring and displaying the view provided by the third-party server of the Widget application from the third-party server providing the Widget application.
In this step, when a user needs to switch to a Widget application, the user instructs the smart television to switch the current display interface to the view of the Widget application through keys (such as an up key, a down key, a left key and a right key in the remote controller) on the remote controller; and the smart television receives and analyzes a first instruction command sent by a user through a remote controller, acquires a view provided by a third-party server of the Widget application from the third-party server of the Widget application, and displays a main view of the Widget application.
And step 12, receiving and analyzing at least one second indication command sent by the user through the remote controller, and switching to a sub-control selected by the user from the view provided by the third-party server of the Widget application according to the second indication command.
Each Widget application comprises at least one sub-control, and each sub-control is used for providing different television contents for a user.
In this step, after the user switches to the view of the selected Widget application, the smart television displays the view of the Widget application provided by the third server for the user, so that the user can select a required sub-control from the view of the Widget application provided by the third server, and the user instructs the smart television to switch between the sub-controls in the view of the Widget application provided by the third server through keys (such as up, down, left and right keys in a remote controller) on the remote controller, thereby realizing focus movement of the sub-controls of the Widget application through the remote controller.
Preferably, during the switching process (i.e. during the focus moving process), the icon of the currently switched sub-control (i.e. the currently focused sub-control) is displayed with a set display effect to prompt the user that the sub-control is currently switched to. For example, the icon of the sub-control currently switched to is adopted to be displayed in a highlight effect, and the like.
And step 13, receiving and analyzing a third instruction command sent by the user through the remote controller, and acquiring and displaying the view provided by the third-party server of the selected child control from the third-party server according to the third instruction command.
In this step, the user instructs the smart tv to switch between the child controls in the view provided by the third-party server of the Widget application through keys (e.g., an up key, a down key, a left key, and a right key in the remote controller), and when the user switches to the child control required by the user, the user instructs the smart tv to display the view provided by the third-party server of the child control through keys (e.g., a confirmation key in the remote controller) on the remote controller. Correspondingly, the smart television receives and analyzes a third instruction command sent by the user through the remote controller, and obtains and displays the view, provided by the third-party server, of the sub-control currently selected by the user from the third-party server according to the third instruction command, so that the display of the view, provided by the third-party server, of the sub-control of the Widget application is realized through the remote controller.
Because the view of the Widget application in the smart television and the view of the child control of the Widget application are provided by the third-party server and are not developed by the developer of the smart television, the view of the Widget application provided by the third-party server cannot be controlled by the remote controller in the conventional smart television. In the embodiment of the invention, a first instruction command sent by a user through a remote controller is received and analyzed, the Widget application currently selected by the user is switched to according to the first instruction command, and a view provided by a third-party server of the Widget application is obtained and displayed from the third-party server providing the Widget application; receiving and analyzing at least one second instruction command sent by a user through a remote controller, and switching to a sub-control selected by the user from a view provided by a third-party server of the Widget application according to the second instruction command; and receiving and analyzing a third instruction command sent by the user through the remote controller, and acquiring and displaying view data provided by the third-party server of the child control currently selected by the user from the third-party server according to the third instruction command.
In the implementation, in step 11, obtaining and displaying a view of the Widget application, which is provided by a third-party server, from the third-party server that provides the Widget application, specifically includes:
acquiring attribute information of the Widget application from a third-party server;
establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and the number of the first and second groups,
and acquiring the view of the Widget application provided by the third-party server from the third-party server, and storing and displaying the acquired view in the established container.
In the above step, the attribute information of the Widget application at least includes: the size of the view of the Widget application (length, width of the view), and the number of child controls that the Widget application contains.
Specifically, the Launcher binds the app Widget service when starting, analyzes the first instruction command when receiving the first instruction command sent by the user through the remote controller, obtains that the user is currently switched to a Widget application (i.e., a Widget application provided by a third-party provider), and the Launcher applies for an app Widget id for the Widget application, and obtains the Hostview (main view) of the Widget application from the provider of the Widget application (i.e., a third-party provider providing the Widget application) through the app Widget id and the entry of the Widget application. Further, the Launcher acquires the attribute information of the Widget application according to the Hostview object; after the Launcher verifies that the Widget application is a legal Widget application and has enough space to store all data of the Widget application, the Launcher loads view data of the Widget application so as to display the main view of the Widget application provided by a third-party provider on a current interface.
In implementation, in step 11, the loading process of the view data provided by the third-party server for the Widget application currently selected by the user may be implemented by the following program codes:
in the above code, once the Launcher determines that the user switches to a Widget Application, the Launcher calls a getHostView method to load data of the Widget Application, where an appwidhostview object is an object for the Launcher to establish communication with an Application (APP) of a third-party provider.
It should be noted that the View class presents the most basic UI building blocks, one View occupies a square area on the screen and is responsible for rendering and event handling. View is the base class of widgets, commonly used to create interactive Graphical User Interfaces (GUIs).
In an implementation manner, as a preferred implementation manner, in step 12, after switching to a child control selected from a view provided by a third-party server of the Widget application according to the received second instruction command, the method further includes:
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; and the number of the first and second groups,
and if a second instruction command sent by the user through the remote controller is received, switching out the view provided by the third-party server of the Widget application.
Specifically, after switching to a sub-control in a view provided by a third-party server of the Widget application by a user according to a received second instruction command, judging whether the currently selected sub-control carries marking information for indicating that the sub-control is located at an edge position of the view provided by the third-party server of the Widget application; and when judging that the currently selected child control carries the marking information, executing the following processing:
if a second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application;
and if the received second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command.
Further, when it is determined that the currently switched sub-control does not carry the mark information, if a second instruction command sent by the user through the remote controller is received, switching to a next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command.
The set boundary switching condition is that the switching direction indicated by the second instruction command is the same as the direction of the edge position of the sub-control in the view provided by the third server of the Widget application, for example, the sub-control is located at the lower edge position in the view provided by the third server of the Widget application, and the second instruction command indicates downward switching, and at this time, the set boundary switching condition is satisfied; for another example, the child Widget is located at the right edge and the upper edge of the view provided by the third server of the Widget application, and the second indication command indicates to switch to the right or switch to the down, where the set boundary switching condition is satisfied.
For example, assuming that the currently switched sub-control carries mark information indicating that the sub-control is located at the left edge and the upper edge of the view provided by the third-party server of the Widget application, if a second indication command sent by a user through remote control to indicate downward switching is received at this time, the sub-control is switched to a sub-control adjacent to the sub-control and located below the sub-control; and if a second indication command which is sent by the user through remote control and used for indicating left switching is received, switching out the view provided by the third-party server of the currently selected Widget application.
As another preferred implementation manner, in step 12, after switching to a child control selected by the user from the view provided by the third-party server of the Widget application according to the received second instruction command, the method further includes:
judging that the currently selected child control carries marking information for indicating that the child control is located at the edge position of the view provided by the third-party server of the Widget application;
if a second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the currently selected sub-control of the user is located at the edge position of the view provided by the third-party server of the Widget application; and the number of the first and second groups,
and receiving and analyzing a fourth instruction command sent by the user, switching out the view of the Widget application currently selected by the user and provided by the third-party server according to the fourth instruction command, and switching to the Widget application newly selected by the user.
In this way, when a second instruction command sent by the user through the remote controller is received and the second instruction command meets the set boundary switching condition, that is, when the view provided by the third-party server of the Widget application currently selected by the user needs to be switched, the user is prompted that the currently selected sub-control is located at the edge position of the view provided by the third-party server of the Widget application, and the Widget application newly selected by the user is switched according to a fourth instruction command of the user.
Specifically, after switching to a child control in a view provided by a third-party server of the Widget application currently selected by a user according to a received second instruction command, judging whether the currently switched child control carries marking information for indicating that the child control is located at an edge position of the view provided by the third-party server of the Widget application; and when judging that the current switched sub-control carries the mark information, executing the following processing:
if a second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, switching a view provided by a third-party server of the Widget application currently selected by the user according to a fourth instruction command sent by the user through the remote controller, and switching to the Widget application newly selected by the user;
and if the received second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command.
Further, when it is determined that the currently switched sub-control does not carry the mark information, if a second instruction command sent by the user through the remote controller is received, switching to a next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command.
In implementation, in step 12, the process that the user controls the focus movement of the currently selected child control in the Widget application through a button of the remote controller may be implemented by the following program codes:
in the above code, a next focused child control is found through the getnextfocusdown id object in the dispatchekeyevent function, and then it is determined whether the child control has a tag mark for marking a boundary, if the child control marks the tag, it is considered that the focus has moved to the boundary of the view provided by the third-party server at this time, and the view provided by the third-party server of the currently selected Widget application needs to be jumped out. By the method, the Widget container and the Launcher can finish interactive control through the remote controller.
The embodiment of the invention realizes a mechanism for controlling the focus change inside the Widget application through a remote controller by combining a drawing mechanism of an Android GUI framework and an AppWidget HostView. Firstly, a displatckeyEvent event is monitored in a parent container (a Launcher container) to judge a direction key value pressed by a current user through a remote controller, if the direction key value is pressed downwards, whether a currently focused child control is on the edge of the container needs to be judged, and if the direction key value is pressed downwards, a focus is removed from a container corresponding to a Widget application; if not, the dispatckeyEvent is transferred to the next child control of the Widget application, so that the focus of the Widget application can be moved according to the keyEvent. The detection of the focus boundary is that a set of specifications is agreed between a developer of the smart television and a provider of the Widget, and whether a boundary switching condition is met is detected in the dispatckeyevent.
In implementation, in step 13, obtaining and displaying a view provided by the third-party server of the child control currently selected by the user from the third-party server, specifically including:
acquiring a view provided by the third-party server of the currently selected sub-control and display effect information of the view of the sub-control from the third-party server; and the number of the first and second groups,
and acquiring the view of the sub-control meeting the display effect information according to the acquired display effect information, and displaying the view of the sub-control.
The display effect information of the view of the sub-control describes the information of the display effect which needs to be satisfied by the view of the sub-control. Such as a magnification effect, a fade effect, etc.
Specifically, after the obtained display effect information of the sub-control is obtained, if the display effect indicated by the display effect information is a change of a User Interface (UI), the smart television processes the display effect information according to the display effect information to obtain a view meeting the display effect information, and displays the view of the sub-control; and if the display effect indicated by the display effect information needs to be processed by the service logic of the Widget application, the smart television sends request information to the provider of the Widget application according to the display effect information, and after the provider of the Widget application processes the request information, the provider of the Widget application returns the processed view of the child Widget, which meets the display effect information, to the Launcher and displays the view.
In implementation, in step 13, according to the obtained display effect information, obtaining a view of the child control that meets the display effect information, and displaying the view of the child control may be implemented by the following program codes:
the program realizes the display effects of controlling the amplification, gradual change and the like of the child controls of the Widget application in the Launcher container, so that the display effects can be consistent with the overall effect of the Launcher. The Launcher can know which child control is currently focused on by monitoring a requestchild focus method in the Launcher container, and on the basis, the display effect information of the child control is read to realize the special effect of the view (view) of the child control. The effect implementation is completed by two parts, if the change of the UI is processed by a container constructed by the Launcher for the Widget application; and if the service logic of the Widget application is required to be completed in an assisted manner, notifying a provider of the Widget application of the display effect of the view of the child control required to be completed by sending a specific broadcast message. In this way, the provider of the Widget application can complete various customized display effects of the view of the child Widget by itself.
The method provided by the present invention is described in detail below with reference to a specific example.
In the first embodiment, referring to fig. 2, the method of the present embodiment includes the following steps:
step 21, determining a view provided by a third-party server of the currently focused child control;
step 22, obtaining the Tag value of the child control;
step 23, determining whether the obtained Tag value is a given value, that is, determining whether the Tag value is a Tag value used for indicating that the child control is located at an edge position of a view provided by a third-party server of the Widget application;
in this embodiment, it is determined whether the Tag value is a Tag value used to indicate that the child control is located at a lower edge of a view provided by a third-party server of the Widget application;
if yes, go to step 24;
if not, executing step 25;
step 24, calling a method for monitoring a command sent by a user through a remote controller, namely calling a dispatchKeyEvent method;
step 25, calling the existing processing method of the system without additional processing;
step 26, judging whether the received key sent by the user through the remote controller is a down key;
if yes, the set boundary switching condition is met, and step 27 is executed;
if not, executing step 25;
step 27, judging whether the next focused view is the view of the Widget application selected by the user and provided by the third-party server;
if yes, go to step 28;
if not, go to step 25.
And step 28, moving the focus to the view of the Widget application selected by the user and provided by the third-party server, and ending the process.
The above method process flow may be implemented by a software program, which may be stored in a storage medium, and when the stored software program is called, the above method steps are performed.
Based on the same inventive concept, the embodiment of the present invention further provides a device for controlling a Widget application provided by a third-party server, and because the principle of the device for solving the problem is similar to the method for controlling the Widget application provided by the third-party server, the implementation of the device may refer to the implementation of the method, and repeated details are omitted.
Referring to fig. 3, an apparatus for controlling a Widget application provided by a third server according to this embodiment includes:
the first processing module 31 is configured to receive and analyze a first instruction command sent by a user through a remote controller, switch to a Widget application currently selected by the user according to the first instruction command, and obtain and display a view, provided by a third-party server, of the Widget application from the third-party server providing the Widget application;
the second processing module 32 is configured to receive and analyze at least one second instruction command sent by the user through the remote controller, and switch to a child control selected by the user from a view provided by the third-party server of the Widget application according to the second instruction command;
and the third processing module 33 is configured to receive and analyze a third instruction command sent by the user through the remote controller, and obtain and display a view, provided by the third-party server, of the currently selected child control from the third-party server according to the third instruction command.
In implementation, the first processing module 31 is specifically configured to:
acquiring attribute information of the Widget application from a third-party server; establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and acquiring the view of the Widget application, which is provided by the third-party server, from the third-party server, and storing and displaying the acquired view in the established container.
In implementation, after the second processing module 32 switches to the sub-control selected by the user from the view provided by the third-party server of the Widget application according to the second instruction command, the second processing module is further configured to:
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application;
or,
judging that the currently selected child control carries marking information for indicating that the child control is located at the edge position of the view provided by the third-party server of the Widget application; if a second instruction command sent by a user through a remote controller is received and meets a set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the currently selected sub-control is located at the edge position of a view provided by a third-party server of the Widget application; and receiving and analyzing a fourth instruction command sent by the user through the remote controller, switching out the view provided by the third-party server of the Widget application according to the fourth instruction command, and switching to the Widget application reselected by the user.
Further, the second processing module 32 is further configured to:
judging that the currently selected child control does not carry marking information for indicating that the child control is located at the edge position of the view provided by the third-party server of the Widget application; if a second instruction command sent by the user through the remote controller is received, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command;
or,
judging that the currently selected child control carries marking information for indicating that the child control is located at the edge position of the view provided by the third-party server of the Widget application; and if a second instruction command sent by the user through the remote controller is received and the second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command.
In implementation, the third processing module 33 is specifically configured to:
acquiring a view provided by the third-party server of the currently selected sub-control and display effect information of the view of the sub-control from the third-party server; and acquiring the view of the sub-control meeting the display effect information according to the display effect information of the view of the sub-control, and displaying the view of the sub-control.
The device provided by the embodiment of the invention can realize the control of the Widget application acquired from the Widget application provider through the keys of the remote controller, thereby improving the user experience.
Based on the same inventive concept, the embodiment of the invention also provides the intelligent television, and the intelligent television comprises any device for controlling the Widget application provided by the third-party server.
The smart television provided by the embodiment of the invention can realize control on the Widget application acquired from the Widget application provider through the keys of the remote controller, thereby improving user experience.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
1. A method for controlling a Widget application provided by a third-party server is characterized by comprising the following steps:
receiving and analyzing a first instruction command sent by a user through a remote controller, switching to a Widget application currently selected by the user according to the first instruction command, and acquiring and displaying a view provided by a third-party server of the Widget application from the third-party server providing the Widget application;
receiving and analyzing at least one second instruction command sent by a user through a remote controller, and switching to a sub-control selected by the user from a view provided by the third-party server in the Widget application according to the second instruction command;
receiving and analyzing a third instruction command sent by a user through a remote controller, acquiring a view provided by the third-party server of the currently selected sub-control and display effect information of the view of the sub-control from the third-party server according to the third instruction command, acquiring the view of the currently selected sub-control meeting the display effect information according to the display effect information, and displaying the view of the currently selected sub-control; the display effect indicated by the display effect information comprises the change of a User Interface (UI) or the display effect which needs the service logic of the Widget application to process;
if the display effect indicated by the display effect information is the change of the UI, processing according to the display effect information to obtain a view meeting the display effect information, and displaying the view of the sub-control; and if the display effect indicated by the display effect information needs to be processed by the service logic of the Widget application, sending request information to the third-party server according to the display effect information, and receiving and displaying the view of the sub-control, which is processed by the third-party server according to the request information and meets the display effect information, of the sub-control.
2. The method of claim 1, wherein obtaining and displaying the view of the Widget application provided by a third-party server from the third-party server providing the Widget application specifically comprises:
acquiring attribute information of the Widget application from the third-party server;
establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and the number of the first and second groups,
and acquiring the view of the Widget application provided by the third-party server from the third-party server, and storing and displaying the acquired view in an established container.
3. The method of claim 1, wherein after switching to a child control selected by a user from a view of the Widget application provided by the third-party server according to the second indication command, the method further comprises:
judging that the currently selected sub-control carries mark information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application;
and if the second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application.
4. The method of claim 1, wherein after switching to a child control selected by a user from a view of the Widget application provided by the third-party server according to the second indication command, the method further comprises:
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application;
if the second indication command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the sub-control currently selected by the user is located at the edge position of the view provided by the third-party server of the Widget application; and the number of the first and second groups,
and receiving and analyzing a fourth instruction command sent by the user through a remote controller, switching out the view of the Widget application provided by the third-party server according to the fourth instruction command, and switching to the Widget application reselected by the user.
5. The method of claim 3 or 4, further comprising:
judging that the currently selected sub-control does not carry marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command; or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; and if the second instruction command sent by the user through the remote controller is received and the second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server for the Widget application according to the second instruction command.
6. An apparatus for controlling a Widget application provided by a third-party server, the apparatus comprising:
the first processing module is used for receiving and analyzing a first instruction command sent by a user through a remote controller, switching to a Widget application currently selected by the user according to the first instruction command, and acquiring and displaying a view provided by a third-party server of the Widget application from the third-party server providing the Widget application;
the second processing module is used for receiving and analyzing at least one second instruction command sent by a user through a remote controller, and switching to a sub-control selected by the user from a view provided by the third-party server in the Widget application according to the second instruction command;
the third processing module is used for receiving and analyzing a third instruction command sent by a user through a remote controller, acquiring the view of the currently selected sub-control provided by the third-party server and the display effect information of the view of the sub-control from the third-party server according to the third instruction command, acquiring the view of the currently selected sub-control meeting the display effect information according to the display effect information, and displaying the view of the currently selected sub-control;
wherein the third processing module is specifically configured to: if the display effect indicated by the display effect information is the change of the UI, processing according to the display effect information to obtain a view meeting the display effect information, and displaying the view of the sub-control; and if the display effect indicated by the display effect information needs to be processed by the service logic of the Widget application, sending request information to the third-party server according to the display effect information, and receiving and displaying the view of the sub-control, which is processed by the third-party server according to the request information and meets the display effect information, of the sub-control.
7. The apparatus of claim 6, wherein the first processing module is specifically configured to:
acquiring attribute information of the Widget application from the third-party server; establishing a container for storing the view provided by the third-party server of the Widget application according to the attribute information of the Widget application; and acquiring the view provided by the third-party server of the Widget application from the third-party server, and storing and displaying the acquired view in the established container.
8. The apparatus of claim 6, wherein the second processing module, after switching to a child control selected by a user from a view provided by the third-party server of the Widget application according to the second instruction command, is further configured to:
judging that the currently selected sub-control carries mark information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received and meets the set boundary switching condition, switching out the view provided by the third-party server of the Widget application;
or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second indication command sent by the user through the remote controller is received and meets the set boundary switching condition, sending prompt information to the user, wherein the prompt information is used for prompting that the currently selected sub-control is located at the edge position of the view provided by the third-party server of the Widget application; and receiving and analyzing a fourth instruction command sent by the user through the remote controller, switching out the view provided by the third-party server of the Widget application according to the fourth instruction command, and switching to the Widget application reselected by the user.
9. The apparatus of claim 8, wherein the second processing module is further to:
judging that the currently selected sub-control does not carry marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; if the second instruction command sent by the user through the remote controller is received, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server of the Widget application according to the second instruction command; or,
judging that the currently selected sub-control carries marking information for indicating that the sub-control is positioned at the edge position of the view provided by the third-party server of the Widget application; and if the second instruction command sent by the user through the remote controller is received and the second instruction command does not meet the set boundary switching condition, switching to the next sub-control adjacent to the currently selected sub-control in the view provided by the third-party server for the Widget application according to the second instruction command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310656493.XA CN103747309B (en) | 2013-12-06 | 2013-12-06 | The method and apparatus that the Widget for controlling third-party server to provide is applied |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310656493.XA CN103747309B (en) | 2013-12-06 | 2013-12-06 | The method and apparatus that the Widget for controlling third-party server to provide is applied |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103747309A CN103747309A (en) | 2014-04-23 |
CN103747309B true CN103747309B (en) | 2018-02-02 |
Family
ID=50504291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310656493.XA Active CN103747309B (en) | 2013-12-06 | 2013-12-06 | The method and apparatus that the Widget for controlling third-party server to provide is applied |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103747309B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151588B (en) * | 2018-10-08 | 2020-10-23 | 四川长虹电器股份有限公司 | Method for applying Android small parts on smart television |
US10743057B2 (en) * | 2018-11-23 | 2020-08-11 | Sony Corporation | Broadcaster application remote control key handling |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917573A (en) * | 2010-09-15 | 2010-12-15 | 青岛海信电器股份有限公司 | Implementation method of Widget system and television using the system |
US8181120B2 (en) * | 2009-04-02 | 2012-05-15 | Sony Corporation | TV widget animation |
CN103049258A (en) * | 2012-12-10 | 2013-04-17 | 乐视网信息技术(北京)股份有限公司 | Method and system for controlling video playing based on android operating system |
CN103309555A (en) * | 2012-10-31 | 2013-09-18 | 中兴通讯股份有限公司 | Focus switching method and device based on multiple windows |
-
2013
- 2013-12-06 CN CN201310656493.XA patent/CN103747309B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8181120B2 (en) * | 2009-04-02 | 2012-05-15 | Sony Corporation | TV widget animation |
CN101917573A (en) * | 2010-09-15 | 2010-12-15 | 青岛海信电器股份有限公司 | Implementation method of Widget system and television using the system |
CN103309555A (en) * | 2012-10-31 | 2013-09-18 | 中兴通讯股份有限公司 | Focus switching method and device based on multiple windows |
CN103049258A (en) * | 2012-12-10 | 2013-04-17 | 乐视网信息技术(北京)股份有限公司 | Method and system for controlling video playing based on android operating system |
Also Published As
Publication number | Publication date |
---|---|
CN103747309A (en) | 2014-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9405463B2 (en) | Device and method for gesturally changing object attributes | |
RU2673697C2 (en) | Seamless call transitions | |
CN106970735B (en) | Information processing method and electronic equipment | |
CN103607660A (en) | Intelligent television interface switching control method and control apparatus | |
CN103561338B (en) | Instruction mode switching method and device based on intelligent television interface | |
AU2014258079B2 (en) | Screen control method and electronic device thereof | |
US20170293421A1 (en) | Interface Display Method and Apparatus | |
EP2767905A1 (en) | Terminal apparatus, server, browser of terminal apparatus operating system and method of operating browser | |
CN106921892B (en) | Online video playing method and device | |
CN103135879B (en) | Display packing, display device and electronic equipment | |
CN103648040A (en) | Fast switching method and apparatus for application program option of intelligent television | |
CN104168515A (en) | Intelligent television terminal and screen control method thereof | |
CN105739808B (en) | The mobile display methods of cursor and its device on terminal device | |
CN103440402A (en) | Method and device for controlling electronic game basing on middleware | |
CN104333814A (en) | Smart television desktop switching method and smart television | |
CN105573484A (en) | Projection method and terminal | |
CN104484098A (en) | Control method of mobile terminal touch screen operation and mobile terminal | |
KR20160003400A (en) | user terminal apparatus and control method thereof | |
CN105487759A (en) | Icon display control method, icon display control device and terminal | |
CN104219553A (en) | Method and device for remote control of intelligent set top box | |
CN105005607A (en) | Page information loading method and page information loading device | |
CN105100851A (en) | Intelligent television remote controller operation instruction method and device | |
CN105700872A (en) | Control method and system for upgrading of application of intelligent terminal | |
CN103747309B (en) | The method and apparatus that the Widget for controlling third-party server to provide is applied | |
CN112199124B (en) | Project opening method and device and display equipment |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee after: Hisense Visual Technology Co., Ltd. Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |