CN114077451A - Method for realizing screen burn-in prevention based on application self-management - Google Patents

Method for realizing screen burn-in prevention based on application self-management Download PDF

Info

Publication number
CN114077451A
CN114077451A CN202111419994.7A CN202111419994A CN114077451A CN 114077451 A CN114077451 A CN 114077451A CN 202111419994 A CN202111419994 A CN 202111419994A CN 114077451 A CN114077451 A CN 114077451A
Authority
CN
China
Prior art keywords
application
view
management
burn
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111419994.7A
Other languages
Chinese (zh)
Inventor
霍镜安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202111419994.7A priority Critical patent/CN114077451A/en
Publication of CN114077451A publication Critical patent/CN114077451A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of software, and discloses a method for realizing screen burn-in prevention based on application self-management, which effectively solves the screen burn-in problem, prolongs the service life of a screen, and improves the use experience of a user. The scheme of the invention comprises the following steps: when the application is initialized, creating a manager for managing the global static view, adding the view to be managed into the manager, and starting a timer to record the current system timestamp; when the application is used, the recorded system time stamp and the current time are judged, and the added view is dynamically displayed or hidden in an attribute animation mode, so that a screen is prevented from displaying a static picture for a long time.

Description

Method for realizing screen burn-in prevention based on application self-management
Technical Field
The invention relates to the technical field of software, in particular to a method for realizing screen burn-in prevention based on application self-management.
Background
The burn-in problem refers to the screen display ghost image caused by the fact that the screen displays a static picture for a long time. Burn-in can affect the life of screen, also can influence user's use experience. At present, the screen burning problem in the industry cannot be solved fundamentally. The most common solution is that the system monitors the content change of the screen at regular time, and executes a preset screen burn-in prevention strategy when the user operation is not monitored, but the screen burn-in prevention strategy is not triggered for the application which stays in the foreground for playing the video or music for a long time even if no operation exists.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for preventing screen burn-in based on application self-management is provided, the screen burn-in problem is effectively solved, the service life of the screen is prolonged, and the use experience of a user is improved.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for realizing burn-in prevention based on application self-management comprises the following steps:
when the application is initialized, creating a manager for managing the global static view, adding the view to be managed into the manager, and starting a timer to record the current system timestamp; when the application is used, the recorded system time stamp and the current time are judged, and the added view is dynamically displayed or hidden in an attribute animation mode, so that a screen is prevented from displaying a static picture for a long time.
As a further optimization, the administrator is associated with the lifecycle state of the application and the player.
As a further optimization, the implementation of the administrator in association with the lifecycle states of the applications and players includes:
player and application lifecycle are related by the onPause and onResume methods that expose property animation objects.
As a further optimization, the dynamically displaying or hiding the added view in a manner of attribute animation specifically includes: the view is displayed or hidden by way of transparency fading operation on the managed view.
As a further optimization, the administrator deposits the added views by maintaining a hash table.
As a further optimization, the judging of the recorded system timestamp and the current time specifically includes:
the current timestamp is recorded in the play-on state of the player and compared with the original system timestamp recorded in the administrator to determine whether the current timestamp is greater than a default time threshold.
As a further optimization, the method further comprises: for the application of circularly playing the video, the playing time of the attribute animation is dynamically controlled according to the video duration.
As a further optimization, the method for dynamically managing and controlling the playing time of the attribute animation according to the video duration includes:
dividing the attribute animation into a plurality of parts according to the video duration, wherein each part corresponds to a video with a duration, and setting the transparency of the view to be 0 at the end of the video time with the duration, namely hiding the view; and when the attribute animation is finished, setting the transparency of the view to be 1 again, namely displaying the view.
The invention has the beneficial effects that:
the scheme realizes effective protection of the screen on the aspect of application software, managed view addition and judgment of time intervals can be customized, and executed animation logic and effect can be modified according to requirements. The invention manages the application which needs to be displayed on the foreground for a long time and has relatively static content from the application angle, does not need to manually switch pictures to protect the screen, is very friendly to the old or the young and other users which have unclear screen principles, and can solve the problem of screen burning phenomenon caused by long-term and static display of a television application program on the screen to a certain extent.
Drawings
Fig. 1 is a flowchart of implementing a burn-in prevention function on an application in an embodiment.
Detailed Description
The invention aims to provide a method for realizing screen burn-in prevention based on application self-management, which effectively solves the screen burn-in problem, prolongs the service life of a screen and improves the use experience of a user. The core idea is as follows: when the application is used, the added view is displayed or hidden in an attribute animation mode, so that the screen burning problem caused by long-time static display of a screen is solved. According to the scheme, after the video playing reaches the threshold value, a manager can automatically hide or display the managed view, automatically match the time length of the fade-in and fade-out animation in proportion according to the time length of the video, and automatically reset the view state when the video is played and finished.
In order to implement the method for implementing anti-burn-in based on application self-management according to the present invention, we need to solve the following problems:
(1) for an application which is in the foreground for a long time and has a relatively fixed interface, it is desirable to manage the relatively fixed interface in the application by itself, and for this, a globally unique manager needs to be established to implement global management.
(2) For the application itself, the information used by the application can be dynamically perceived, including the use time and the application state (such as whether the application is a foreground application).
(3) Views that need custom administration in the application can be dynamically added.
(4) For applications that can repeat loop actions and have different time spans (such as different adaptation of repeated playing time lengths), the views to be managed can be dynamically switched between states with different time consumption according to different time consumption of continuous actions.
In order to solve the above problems, the present invention proposes the following corresponding solutions:
(1) firstly, a manager of a global scope needs to be created, the manager manages the interface of the whole application in an external exposure method mode, and the fixed view is displayed or hidden to achieve the purpose of preventing screen burn by adopting an attribute animation mode and a mode of performing transparency gradual change operation on the managed view.
(2) The method includes the steps that a timestamp variable is maintained in a manager, the application can record the service time of the application through an external exposure method, the view of the management is dynamically removed or added through judgment of the service time, the screen is protected, the screen burning is prevented, and the timestamp in the manager is reset on reasonable occasions of different life cycles of the application, so that the purpose of sensing the service state of the application is achieved.
(3) For views or objects needing to be dynamically added, a hash table is desirably maintained in a manager, and a method for adding members to the table is exposed to the outside, so that views are dynamically added and deleted, and the purpose of management is achieved. And the developer adds the view object to be managed into the manager at a proper application time.
(4) For the application of circularly playing videos, the videos can be repeatedly played under a specific condition, the operation cannot trigger a screen saver program, in this condition, the function of realizing the screen saver by the application is needed, for the videos with different time lengths, how to realize the fade-in and fade-out time of the dynamic control view is realized, therefore, the time length of the video needs to be obtained firstly, then the attribute animation is divided into a plurality of parts by taking a second as a unit, the transparency of the first two parts (namely the first two seconds) is not changed, the transparency of the third second is changed into 0, the view is hidden, finally, the view is displayed in the last second of the video time length, and the process can be repeated for the circularly played videos all the time to achieve the purpose of preventing screen burn.
Example (b):
taking the implementation of the burn-in prevention function on the application as an example, the operation flow from creating the manager, adding the managed view, associating the lifecycle, and then conditionally executing the hidden or displayed view is shown in fig. 1, and is specifically described as follows:
firstly, creating a single-case global manager, maintaining a hash table storage view, managing the view by adopting a mode of setting transparency animation of attribute animation, recording a timestamp variable and a custom global unique constant to serve as conditions for judging whether to execute the attribute animation, exposing the setting and a method for obtaining the timestamp, so that the manager can sense the current state of application, then expose the life cycle of an onPause and an onResume method associated player and application of an attribute animation object, and finally expose a method for setting transparency and configuring the attribute animation object for the view in the hash table.
Secondly, calling an addview method of a manager when the application is initialized, adding a view to be managed into a hash table of the manager, resetting a timestamp in an onResume and a key monitoring method, recording the timestamp of the current system in the playing start state of the player, comparing the timestamp with an original timestamp in the manager, and performing transparency change operation of an interface when the timestamp is greater than a default time threshold; and stopping the animation when the playing is stopped.
Thirdly, dynamically controlling the playing time of the attribute animation is realized by judging the video time; to realize the function, firstly, the attribute animation can be executed in a plurality of shares, the minimum execution time is 3 seconds, the transparency of the views in the hash table is modified in sequence when the transparency animation is executed, the video time is taken as a parameter and is transmitted into the method, the transparency of the first two seconds is kept to be 1 (visible), the transparency of the third second is set to be 0 (invisible), when the time is longer than 3 seconds, the attribute animation is divided into the number of shares of the time size to be executed, the transparency is changed to be 1 in the last second, and an onantiationCancel callback method in an animaliderinerrAdadapter of the attribute animation is set, when the animation is ended, all the transparency of the views is set to be 1, so that the effect that after the set playing of the specified time, the transparency is gradually changed for each time of the video, and after the video playing is ended, the transparency is restored, if no user operation is available, the operation is always circulated to achieve the purpose of protecting the screen.

Claims (8)

1. A method for realizing screen burn-in prevention based on application self-management is characterized by comprising the following steps:
when the application is initialized, creating a manager for managing the global static view, adding the view to be managed into the manager, and starting a timer to record the current system timestamp; when the application is used, the recorded system time stamp and the current time are judged, and the added view is dynamically displayed or hidden in an attribute animation mode, so that a screen is prevented from displaying a static picture for a long time.
2. The method for implementing burn-in prevention based on application self-management as claimed in claim 1,
the administrator is associated with the lifecycle states of the application and the player.
3. The method for implementing burn-in prevention based on application self-management as claimed in claim 2,
the implementation manner of the manager associated with the life cycle state of the application and the player comprises the following steps:
player and application lifecycle are related by the onPause and onResume methods that expose property animation objects.
4. The method for implementing burn-in prevention based on application self-management as claimed in claim 1,
the dynamically displaying or hiding the added view in an attribute animation mode specifically comprises the following steps: the view is displayed or hidden by way of transparency fading operation on the managed view.
5. The method for implementing burn-in prevention based on application self-management as claimed in claim 1,
the administrator deposits the added views by maintaining a hash table.
6. The method for implementing screen burn-in prevention based on application self-management as claimed in claim 1, wherein the judging of the recorded system timestamp and the current time specifically comprises:
the current timestamp is recorded in the play-on state of the player and compared with the original system timestamp recorded in the administrator to determine whether the current timestamp is greater than a default time threshold.
7. The method for implementing burn-in prevention based on application self-management as claimed in claim 1,
the method further comprises the following steps: for the application of circularly playing the video, the playing time of the attribute animation is dynamically controlled according to the video duration.
8. The method for implementing burn-in prevention based on application self-management as claimed in claim 7, wherein the method for dynamically managing and controlling the playing time of the attribute animation according to the video duration comprises:
dividing the attribute animation into a plurality of parts according to the video duration, wherein each part corresponds to a video with a duration, and setting the transparency of the view to be 0 at the end of the video time with the duration, namely hiding the view; and when the attribute animation is finished, setting the transparency of the view to be 1 again, namely displaying the view.
CN202111419994.7A 2021-11-26 2021-11-26 Method for realizing screen burn-in prevention based on application self-management Pending CN114077451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111419994.7A CN114077451A (en) 2021-11-26 2021-11-26 Method for realizing screen burn-in prevention based on application self-management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111419994.7A CN114077451A (en) 2021-11-26 2021-11-26 Method for realizing screen burn-in prevention based on application self-management

Publications (1)

Publication Number Publication Date
CN114077451A true CN114077451A (en) 2022-02-22

Family

ID=80284349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111419994.7A Pending CN114077451A (en) 2021-11-26 2021-11-26 Method for realizing screen burn-in prevention based on application self-management

Country Status (1)

Country Link
CN (1) CN114077451A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777315A (en) * 2009-01-13 2010-07-14 深圳Tcl新技术有限公司 Method for avoiding image retention of liquid crystal display
CN111050224A (en) * 2019-12-27 2020-04-21 深圳创维-Rgb电子有限公司 Processing method for preventing residual image of television, television and storage medium
CN111294651A (en) * 2020-02-05 2020-06-16 深圳创维-Rgb电子有限公司 Still picture anti-afterimage method and device based on play data stream and storage medium
CN111933065A (en) * 2020-08-13 2020-11-13 北京字节跳动网络技术有限公司 Burn-in protection method, device, equipment and storage medium
CN112463237A (en) * 2020-12-02 2021-03-09 北京小米移动软件有限公司 Screen burning prevention method, device, equipment and storage medium
CN113301419A (en) * 2021-05-14 2021-08-24 海信视像科技股份有限公司 Display device and display control method for preventing screen burn-in

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777315A (en) * 2009-01-13 2010-07-14 深圳Tcl新技术有限公司 Method for avoiding image retention of liquid crystal display
CN111050224A (en) * 2019-12-27 2020-04-21 深圳创维-Rgb电子有限公司 Processing method for preventing residual image of television, television and storage medium
CN111294651A (en) * 2020-02-05 2020-06-16 深圳创维-Rgb电子有限公司 Still picture anti-afterimage method and device based on play data stream and storage medium
CN111933065A (en) * 2020-08-13 2020-11-13 北京字节跳动网络技术有限公司 Burn-in protection method, device, equipment and storage medium
CN112463237A (en) * 2020-12-02 2021-03-09 北京小米移动软件有限公司 Screen burning prevention method, device, equipment and storage medium
CN113301419A (en) * 2021-05-14 2021-08-24 海信视像科技股份有限公司 Display device and display control method for preventing screen burn-in

Similar Documents

Publication Publication Date Title
US7804503B2 (en) Animating objects using metadata
WO2012037165A2 (en) Add-on management
KR20080047847A (en) Apparatus and method for playing moving image
US10319411B2 (en) Device and method for playing an interactive audiovisual movie
CN115480852A (en) Page display method and device of application program and electronic equipment
JP2013137791A (en) Queuing for event in interactive media environment
WO2019042183A1 (en) Virtual scene display method and device, and storage medium
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
WO2021196917A1 (en) Method for displaying frames in game application program, apparatus, terminal, and storage medium
US8844052B1 (en) Double sand-boxing for flash library
TW200937176A (en) Erasing and restoring factory settings in computer systems
CN114077451A (en) Method for realizing screen burn-in prevention based on application self-management
CN109831688A (en) A kind of video suspension playback method and device based on iOS system
CN108882041B (en) Player state acquisition method and device
JP2006079552A5 (en)
WO2017076011A1 (en) Live program watch-back method and system
WO2023078262A1 (en) Application processing method and apparatus, and electronic device
JP2012226107A (en) Information processing apparatus, information processing method and program
WO2019184142A1 (en) Information prompting method, electronic apparatus, terminal device, and storage medium
CN114020376A (en) Processing method and equipment
CN110198459B (en) Method, device, server and storage medium for playing display information
TW201800907A (en) Display method and document purging method, device, display equipment and electronic device capable of being visually intuitive
CN113282362A (en) Application program management method, device, storage medium and terminal
KR20100095057A (en) Method of managing java application and computer-readable medium having thereon program performing function embodying the same
CN113377474B (en) Screen saver display method and related device

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

Application publication date: 20220222