CN111356020A - Window mutual exclusion function implementation method of Android smart television - Google Patents
Window mutual exclusion function implementation method of Android smart television Download PDFInfo
- Publication number
- CN111356020A CN111356020A CN202010161829.5A CN202010161829A CN111356020A CN 111356020 A CN111356020 A CN 111356020A CN 202010161829 A CN202010161829 A CN 202010161829A CN 111356020 A CN111356020 A CN 111356020A
- Authority
- CN
- China
- Prior art keywords
- window
- mutually exclusive
- mutual exclusion
- applications
- broadcast
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- 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
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Digital Computer Display Output (AREA)
Abstract
The invention discloses a method for realizing a window mutual exclusion function of an Android smart television, and belongs to the technical field of Android smart televisions. The method comprises the following steps: step 1: setting a characteristic symbol for each mutually exclusive window of all applications realizing window mutual exclusion; step 2: when a mutually exclusive window is called out, sending out unordered broadcast, and attaching a characteristic symbol of the mutually exclusive window in the broadcast; and step 3: and all applications of the mutually exclusive windows receive the unordered broadcast, analyze the characteristic symbols attached in the broadcast and perform mutually exclusive processing. The invention can make the windows of a plurality of applications have mutual exclusion effect through the change of the applications. When one mutually exclusive window is called out, all other mutually exclusive windows are removed, and it is application-controllable to which particular windows implement the mutual exclusion. Therefore, only the applications which can be overlapped and shielded are adjusted to enable the windows of the applications to be mutually exclusive, and the user can only see one interface when using the application every time, so that the experience of the user is optimized.
Description
Technical Field
The invention relates to the technical field of Android smart televisions, in particular to a method for realizing a window mutual exclusion function of an Android smart television.
Background
In the Android smart television, many applications containing Service display their functional interfaces in a manner of directly adding windows. Windows added in this way will not be removed when new windows appear, but will continue to exist; therefore, the function interfaces of a plurality of applications can be overlapped and shielded on the television screen, which causes troubles to the use of users and influences the user experience.
At present, a method for changing Android window management service to realize mutual exclusion of suspended windows of an Android smart television exists, but the method needs to change Android system codes and is not suitable for common application developers. Aiming at the situation, the invention realizes the window mutual exclusion through the unordered broadcast, and is more suitable for application developers.
Disclosure of Invention
The invention aims to provide a method for realizing a window mutual exclusion function of an Android smart television, which is used for solving the problem of inconvenience in use of a user caused by overlapping and shielding of a plurality of application function interfaces in the use of the Android television.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for realizing a window mutual exclusion function of an Android smart television comprises the following steps:
step 1: setting a characteristic symbol for each mutually exclusive window of all applications realizing window mutual exclusion;
step 2: when a mutually exclusive window is called out, sending out unordered broadcast, and attaching a characteristic symbol of the mutually exclusive window in the broadcast;
and step 3: and all applications of the mutually exclusive windows receive the unordered broadcast, analyze the characteristic symbols attached in the broadcast and perform mutually exclusive processing.
Further, the step 3 specifically includes:
step 3.1: judging each mutually exclusive window of the application realizing the window mutual exclusion, if the mutually exclusive window is displayed, entering the step 3.2, otherwise, entering the step 3.4;
step 3.2: judging whether the characteristic symbol of the exclusive window is consistent with the characteristic symbol attached in the broadcast, if so, entering a step 3.4, otherwise, entering a step 3.3;
step 3.3: removing the mutually exclusive window;
step 3.4: no treatment is done.
Compared with the prior art, the invention has the beneficial effects that:
the invention can make the windows of a plurality of applications have mutual exclusion effect through the change of the applications. When one mutually exclusive window is called out, all other mutually exclusive windows are removed, and it is application-controllable to which particular windows implement the mutual exclusion. Therefore, only the applications which can be overlapped and shielded are adjusted to enable the windows of the applications to be mutually exclusive, and the user can only see one interface when using the application every time, so that the experience of the user is optimized. The method of the invention does not change system codes and is relatively more flexible.
Drawings
Fig. 1 is a work flow chart of a method for implementing a window mutual exclusion function of an Android smart television.
Detailed Description
The present invention will be further described with reference to the following examples, which are intended to illustrate only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, other embodiments used by those skilled in the art without any creative effort belong to the protection scope of the present invention.
Example 1:
as shown in fig. 1, a method for implementing a window mutual exclusion function of an Android smart television includes the following steps:
step 1: setting a characteristic symbol for each mutually exclusive window of all applications realizing window mutual exclusion; the mutually exclusive window is a window to realize the mutually exclusive function of the window, which is called the mutually exclusive window for short. The window identifier needs to be able to uniquely represent the window, and can generally take the form of a packet name plus a sequence number.
Step 2: when a mutually exclusive window is called out, the application to which the window belongs sends out an unordered broadcast, and attaches the characteristic symbol of the mutually exclusive window to the broadcast. In the android system, a broadcast sender can use the putExtra method of the Intent class to attach a characteristic symbol in the broadcast, such as: entr.putextra ("mutex"), a feature);
and step 3: all applications containing the mutually exclusive window receive the unordered broadcast, and after receiving the Intent class object, the applications call a getExtra method to obtain the characteristic symbols attached to the broadcast, such as: getextra ("mutex"). And then performs mutual exclusion processing.
The mutual exclusion processing in step 3 specifically includes:
step 3.1: judging each mutually exclusive window of the application realizing the window mutual exclusion, if the mutually exclusive window is displayed, entering the step 3.2, otherwise, entering the step 3.4;
step 3.2: judging whether the characteristic symbol of the exclusive window is consistent with the characteristic symbol attached in the broadcast, if so, entering a step 3.4, otherwise, entering a step 3.3;
step 3.3: removing the mutually exclusive window and releasing the related resources;
step 3.4: no treatment is done.
After the above processing, only the mutex window being called out can be displayed, and other mutex windows are not displayed or removed, so that the mutex of the mutex window is ensured. The windows which are overlapped and shielded are set as the mutually exclusive windows through the method, so that only one window can be ensured to be displayed at most each time, the problem of application interface superposition is solved, and the user experience is improved.
The method can realize the window mutual exclusion of the Android smart television on the premise of not changing system codes, and the mutually exclusive window is controllable, easy to delete and add and high in flexibility.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (2)
1. A method for realizing a window mutual exclusion function of an Android smart television is characterized by comprising the following steps:
step 1: setting a characteristic symbol for each mutually exclusive window of all applications realizing window mutual exclusion;
step 2: when a mutually exclusive window is called out, sending out unordered broadcast, and attaching a characteristic symbol of the mutually exclusive window in the broadcast;
and step 3: and all applications of the mutually exclusive windows receive the unordered broadcast, analyze the characteristic symbols attached in the broadcast and perform mutually exclusive processing.
2. The method for implementing the window mutual exclusion function of the Android smart television as claimed in claim 1, wherein the step 3 specifically includes:
step 3.1: judging each mutually exclusive window of the application realizing the window mutual exclusion, if the mutually exclusive window is displayed, entering the step 3.2, otherwise, entering the step 3.4;
step 3.2: judging whether the characteristic symbol of the exclusive window is consistent with the characteristic symbol attached in the broadcast, if so, entering a step 3.4, otherwise, entering a step 3.3;
step 3.3: removing the mutually exclusive window;
step 3.4: no treatment is done.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010161829.5A CN111356020A (en) | 2020-03-10 | 2020-03-10 | Window mutual exclusion function implementation method of Android smart television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010161829.5A CN111356020A (en) | 2020-03-10 | 2020-03-10 | Window mutual exclusion function implementation method of Android smart television |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111356020A true CN111356020A (en) | 2020-06-30 |
Family
ID=71197985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010161829.5A Pending CN111356020A (en) | 2020-03-10 | 2020-03-10 | Window mutual exclusion function implementation method of Android smart television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111356020A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115665464A (en) * | 2022-10-21 | 2023-01-31 | 四川长虹电器股份有限公司 | Method for mutually exclusive separation of touch television control center and notification center |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984404A (en) * | 2010-11-04 | 2011-03-09 | 东莞宇龙通信科技有限公司 | Method and device for controlling parallel running of application programs and terminal having device |
CN103634636A (en) * | 2013-11-13 | 2014-03-12 | Tcl集团股份有限公司 | Application shortcut operation and control method and system of Android intelligent television |
CN103729240A (en) * | 2013-12-02 | 2014-04-16 | 青岛海信电器股份有限公司 | Application program control method |
US20140122449A1 (en) * | 2011-01-25 | 2014-05-01 | Quantum Corporation | Manipulating The Actual or Effective Window Size In A Data-Dependant Variable-Length Sub-Block Parser |
CN104038806A (en) * | 2014-06-11 | 2014-09-10 | 深圳市九洲电器有限公司 | Application interface display method and set top box |
CN105516782A (en) * | 2015-12-10 | 2016-04-20 | 四川长虹电器股份有限公司 | Method and system for implementing suspension interface mutual exclusion function of smart television with Android system |
CN106020601A (en) * | 2016-05-16 | 2016-10-12 | 乐视控股(北京)有限公司 | Interface display management method and device |
-
2020
- 2020-03-10 CN CN202010161829.5A patent/CN111356020A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984404A (en) * | 2010-11-04 | 2011-03-09 | 东莞宇龙通信科技有限公司 | Method and device for controlling parallel running of application programs and terminal having device |
US20140122449A1 (en) * | 2011-01-25 | 2014-05-01 | Quantum Corporation | Manipulating The Actual or Effective Window Size In A Data-Dependant Variable-Length Sub-Block Parser |
CN103634636A (en) * | 2013-11-13 | 2014-03-12 | Tcl集团股份有限公司 | Application shortcut operation and control method and system of Android intelligent television |
CN103729240A (en) * | 2013-12-02 | 2014-04-16 | 青岛海信电器股份有限公司 | Application program control method |
CN104038806A (en) * | 2014-06-11 | 2014-09-10 | 深圳市九洲电器有限公司 | Application interface display method and set top box |
CN105516782A (en) * | 2015-12-10 | 2016-04-20 | 四川长虹电器股份有限公司 | Method and system for implementing suspension interface mutual exclusion function of smart television with Android system |
CN106020601A (en) * | 2016-05-16 | 2016-10-12 | 乐视控股(北京)有限公司 | Interface display management method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115665464A (en) * | 2022-10-21 | 2023-01-31 | 四川长虹电器股份有限公司 | Method for mutually exclusive separation of touch television control center and notification center |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102855148A (en) | Android-based startup management method | |
CN107094136B (en) | A kind of method and system for updating online number in being broadcast live | |
US8880628B2 (en) | Smarter mechanism to implement push email on handheld devices | |
WO2020250004A1 (en) | Method and apparatus for enforcement of maximum number of protocol data unit sessions per network slice in a communication system | |
CN105892796A (en) | System updating method and device of smart mobile phone | |
CN111356020A (en) | Window mutual exclusion function implementation method of Android smart television | |
CN112231017B (en) | Virtual keyboard and mouse method and device compatible with Android running environment running on Linux | |
CN105813148A (en) | Network switching apparatus and method | |
CN108462894B (en) | Live broadcast room broadcast processing method and device and readable storage medium | |
CN103051733A (en) | Method, terminal and system for downloading data | |
CN106911937B (en) | The configuration method and system of present banner background colour in a kind of live streaming | |
CN108683588A (en) | A kind of information management method, message management apparatus and mobile terminal | |
CN107926027A (en) | Transmitting and scheduling based on burst in a wireless communication system | |
CN103679830B (en) | Mobile terminal, server and system of registering | |
CN103002446A (en) | Method and device for intercepting call | |
CN107018224A (en) | Contact person's adding method and device during a kind of O2O transaction | |
CN105159689A (en) | Long-time press gesture operation based intelligent terminal third-party software management system and method | |
CN104836892A (en) | Information display method, information display device and information display terminal | |
WO2013063780A1 (en) | Method and apparatus for transmitting machine type communication data via a packet downlink control channel | |
CN105404557A (en) | Interprocess communication method based on message queue | |
CN104010078A (en) | Method and device for processing intercepted information through terminal | |
US20120324117A1 (en) | Electronic device and method for providing network connections using the electronic device | |
CN103607324A (en) | Data processing method, Java information client and server for Java information service | |
CN104754541A (en) | Smart cost-saving message sending method and device | |
CN103118345B (en) | A kind of message issuing method and equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200630 |