CN109951732B - Method for preventing startup LOGO and application from switching to black screen for Android smart television - Google Patents
Method for preventing startup LOGO and application from switching to black screen for Android smart television Download PDFInfo
- Publication number
- CN109951732B CN109951732B CN201910197652.1A CN201910197652A CN109951732B CN 109951732 B CN109951732 B CN 109951732B CN 201910197652 A CN201910197652 A CN 201910197652A CN 109951732 B CN109951732 B CN 109951732B
- Authority
- CN
- China
- Prior art keywords
- application
- management service
- starting
- home application
- started
- 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
Images
Abstract
The invention discloses a method for preventing startup LOGO and application switching from being blacked screen for an Android smart television, which comprises the following steps of 1: customizing a system initialization program, and canceling the starting of a starting animation program; step 2: through state control between the layer management service and the application management service, and through detecting whether the Home application starts to carry out display updating control of frame cache, black screen in the covering initialization process finished by the starting animation program is replaced. After the Android smart television is started and the starting LOGO is displayed, customizing layer management service and application management service of the system, and controlling frame buffer refreshing requests of each module and each application of the system according to the starting state of the Home application; meanwhile, as the bootinformation animation program is not started, the CPU resource is released, and more CPU resources are allocated to other modules of the system, so that the processing speed of the CPU is faster when the system is started, and the system starting time is effectively reduced.
Description
Technical Field
The invention relates to the technical field of smart televisions, in particular to a method for preventing startup LOGO and application switching from being blacked.
Background
The Android smart television is started mainly in three stages: a bootstrap phase, an operating system phase and a Home application starting phase.
Starting up LOGO, wherein one display is carried out at the stage of a bootstrap program; one method is to display the image when the operating system is initialized and then perform other initialization, and both methods are to output the startup LOGO image to the video memory and display the image on the screen.
However, after the display of the boot LOGO is completed, the initialization of the operating system is not completed, and when other modules are initialized, particularly the initialization of a hardware module related to the memory, the memory can be refreshed and controlled again, so that the image data of the boot LOGO in the memory is refreshed, the boot LOGO image disappears, the Home application is not started at this time, no image output of an application interface exists, and the screen can be in a black screen state.
Android to this problem, the current solution is: in the initialization stage of an operating system of an Android system, a starting animation program is started, the starting animation program outputs a picture frame sequence to a video memory at a high speed through frame buffer circulation, and an animation process is simulated and used for covering a black screen. And when the completion of the start of the Home application is detected, the system forces the boot animation program to exit, and at the moment, the application interface of the Home application is displayed.
However, although the black screen can be covered by the boot animation program, in the process of executing the animation program, since the actions such as picture decoding, image output and the like are executed at a high speed and circularly, a small amount of CPU resources are occupied, the CPU resources are in shortage during system startup in a certain time, the startup speed and efficiency of other modules are affected, and the system startup time is increased.
Disclosure of Invention
The invention aims to provide a method for preventing startup LOGO and application switching black screen of an Android intelligent television, which is used for solving the problems that in the prior art, the Android intelligent television has black screen when being started, and in the execution process of an animation program, due to the fact that actions such as picture decoding and image output are executed at high speed and circularly, small CPU resources are occupied, the CPU resources are in shortage during system startup in a certain time, the startup speed and efficiency of other modules are influenced, and the system startup time is increased.
The invention solves the problems through the following technical scheme:
a method for preventing startup LOGO and application switching from being blacked out for an Android smart television comprises the following steps:
step 1: customizing a system initialization program, and canceling the starting of a starting animation program;
step 2: through state control between the layer management service and the application management service, and through detecting whether the Home application starts to carry out display updating control of frame cache, black screen in the covering initialization process finished by the starting animation program is replaced.
According to the method, after the Android smart television is started and the starting LOGO is displayed, the layer management service and the application management service of the system are customized, and the frame buffer refreshing requests of all modules and all applications of the system are controlled according to the starting state of the Home application, so that the switching between the starting LOGO and the application interface of the Home application is realized without a black screen, and the visual experience of a user is improved; meanwhile, as the bootinformation animation program is not started, the CPU resource is released, and more CPU resources are allocated to other modules of the system, so that the processing speed of the CPU is faster when the system is started, and the system starting time is effectively reduced.
Preferably, the process of detecting whether the Home application starts to perform the display update control of the frame cache in step 2 includes the following steps:
step 2.1: customizing an application management service, and notifying the layer management service of the name of the Home application in a system attribute mode after the Home application is started;
step 2.2: customizing the layer management service, acquiring the name of the application through the system attribute provided by the application management service when receiving a frame cache updating request, and detecting whether a requester is the Home application;
step 2.3: if the Home application is detected in the step 3, updating the image to a video memory through an updating request and frame caching; if the application is not the Home application, the update request is refused, and the frame cache keeps the original state.
Preferably, when it is detected that the Home application is started and an update request is made, when the layer management service receives the frame cache update request, the layer management service does not judge whether the update request is the Home application, defaults to pass through all the update requests, and when the Home application is started and an update request is made, the process of judging the started update request is omitted, and the time for starting the system is effectively shortened.
Compared with the prior art, the invention has the following advantages and beneficial effects:
(1) according to the method, after the Android smart television is started and the starting LOGO is displayed, the layer management service and the application management service of the system are customized, and the frame buffer refreshing requests of all modules and all applications of the system are controlled according to the starting state of the Home application, so that the switching between the starting LOGO and the application interface of the Home application is realized without a black screen, and the visual experience of a user is improved; meanwhile, as the bootinformation animation program is not started, the CPU resource is released, and more CPU resources are allocated to other modules of the system, so that the processing speed of the CPU is faster when the system is started, and the system starting time is effectively reduced.
(2) When detecting that the Home application is started and has an update request, the layer management service does not judge whether the update request is the Home application when receiving the frame cache update request, defaults to pass all the update requests, and omits the process of judging the started update request when the Home application is started and has the update request, thereby effectively shortening the starting time of the starting system.
Drawings
Fig. 1 is a flowchart of a method for preventing startup LOGO and application from switching to a black screen of a smart television according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples, but the embodiments of the present invention are not limited thereto.
Example 1:
with reference to fig. 1, a method for preventing startup LOGO and application from switching to a black screen for an Android smart television is characterized by comprising the following steps:
step 1: customizing a system initialization program, and canceling the starting of a starting animation program;
step 2: through state control between the layer management service and the application management service, and through detecting whether the Home application starts to carry out display updating control of frame cache, black screen in the covering initialization process finished by the starting animation program is replaced. The process of detecting whether the Home application starts to carry out the display updating control of the frame cache comprises the following steps:
step 2.1: customizing an application management service, and notifying the layer management service of the name of the Home application in a system attribute mode after the Home application is started; when the Home application is detected to be started and an updating request is generated, the layer management service does not judge whether the updating request is the Home application when receiving the frame cache updating request, defaults to pass all the updating requests, omits a process of judging the started updating request and effectively shortens the starting time of a starting system;
step 2.2: customizing the layer management service, acquiring the name of the application through the system attribute provided by the application management service when receiving a frame cache updating request, and detecting whether a requester is the Home application;
step 2.3: if the Home application is detected in the step 3, updating the image to a video memory through an updating request and frame caching; if the application is not the Home application, the update request is refused, and the frame cache keeps the original state.
The following is illustrated with reference to specific examples:
step one, adding a name application package name attribute:
home app package name is a string with a default value of NULL, indicating that the home application is unknown, and is not NULL, indicating the package name of the home application.
Secondly, after the television is started, a boot program or an operating system outputs a startup LOGO image to a video memory;
when the operating system starts the system initialization program, the layer management service and the application management service are started in sequence, and the starting of the starting animation program is closed;
step four, in the layer management service: adding a global variable, bol mlackerctart, with default value of false; the method is used for judging whether the home application is started or not; adding judgment in a graph update request processing function handleMessageRefresh ():
if mLauncher Start is false, rejecting the graph updating request and terminating the graph updating process; if mLauncher Start is true, continuing the graph updating process through the graph updating request;
in the graphical display control processing function handlePageFlip (), when a graphical interface display application message of an application program is received, control is performed according to the state of mlackertstart:
when mlackerctart ═ false, the system attribute sys.homeapp.packagemame is obtained, a check is made to show whether the name of the application matches sys.homeapp.packagemame:
if so, applying for display through the application, and setting mLauncher Start to true; if not, rejecting the display application of the application;
when mlackerctart is true, performing display processing according to the original flow through all display applications;
finally, in the application management service, in a starthomeactivelycocked () function for starting the home application, the packet name of the home application is written into the system attribute sys.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.
Claims (2)
1. A method for preventing startup LOGO and application switching from being blacked is characterized by comprising the following steps:
step 1: customizing a system initialization program, and canceling the starting of a starting animation program;
step 2: replacing a black screen in a covering initialization process finished by a starting animation program by detecting whether a Home application starts to perform display updating control of frame caching through state control between layer management service and application management service; the process of detecting whether the Home application starts to carry out the display updating control of the frame cache comprises the following steps:
step 2.1: customizing an application management service, and notifying the layer management service of the name of the Home application in a system attribute mode after the Home application is started;
step 2.2: customizing the layer management service, acquiring the name of the application through the system attribute provided by the application management service when receiving a frame cache updating request, and detecting whether a requester is the Home application;
step 2.3: if the Home application is detected in the step 3, updating the image to a video memory through an updating request and frame caching; if the application is not the Home application, the update request is refused, and the frame cache keeps the original state.
2. The method for preventing startup LOGO and application from switching black screens of the Android smart television set according to claim 1, wherein when detecting that the Home application is started and has an update request, the layer management service does not judge whether the update request is the Home application any longer when receiving the frame cache update request, and defaults to passing all the update requests.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910197652.1A CN109951732B (en) | 2019-03-15 | 2019-03-15 | Method for preventing startup LOGO and application from switching to black screen for Android smart television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910197652.1A CN109951732B (en) | 2019-03-15 | 2019-03-15 | Method for preventing startup LOGO and application from switching to black screen for Android smart television |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951732A CN109951732A (en) | 2019-06-28 |
CN109951732B true CN109951732B (en) | 2020-06-30 |
Family
ID=67009048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910197652.1A Active CN109951732B (en) | 2019-03-15 | 2019-03-15 | Method for preventing startup LOGO and application from switching to black screen for Android smart television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951732B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111629249B (en) * | 2020-05-15 | 2022-02-22 | 海信视像科技股份有限公司 | Method for playing startup picture and display device |
CN113051001B (en) * | 2021-03-17 | 2023-04-14 | Vidaa(荷兰)国际控股有限公司 | Acceleration method for display of startup user interface and display equipment |
CN113691871B (en) * | 2021-08-19 | 2023-04-14 | 杭州国芯科技股份有限公司 | Method for optimizing startup picture display of set top box |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120036209A (en) * | 2010-10-07 | 2012-04-17 | 삼성전자주식회사 | Method for optimization of snapshot boot image construction based on process class and library dependency |
CN103049257B (en) * | 2012-12-07 | 2016-08-24 | 深圳天珑无线科技有限公司 | A kind of method of display animation of starting shooting and electronic equipment |
CN104202645B (en) * | 2014-08-27 | 2017-07-25 | 海信集团有限公司 | A kind of method for controlling start-up picture to play and user equipment |
CN104469504A (en) * | 2014-12-09 | 2015-03-25 | 四川长虹电器股份有限公司 | Method for rapidly starting Android smart television |
CN108255524A (en) * | 2016-12-28 | 2018-07-06 | 中科创达软件股份有限公司 | A kind of booting Logo display methods, device and embedded device |
CN107566902A (en) * | 2017-09-19 | 2018-01-09 | 青岛海信电器股份有限公司 | The method and display device of a kind of display device starting-up |
CN107748687B (en) * | 2017-10-10 | 2019-12-31 | 晶晨半导体(上海)股份有限公司 | Method for controlling startup display picture of intelligent equipment and intelligent equipment |
CN107979774B (en) * | 2017-12-12 | 2020-12-08 | 深圳创维数字技术有限公司 | Terminal starting method, terminal and storage medium |
-
2019
- 2019-03-15 CN CN201910197652.1A patent/CN109951732B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109951732A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11409547B2 (en) | Method for rendering user interface and terminal | |
CN109951732B (en) | Method for preventing startup LOGO and application from switching to black screen for Android smart television | |
US9621477B2 (en) | System and method of offloading browser computations | |
CN107748687B (en) | Method for controlling startup display picture of intelligent equipment and intelligent equipment | |
CN109542614B (en) | Resource allocation method, device, terminal and storage medium | |
CN108600800B (en) | Smart television and starting method thereof | |
US20230054174A1 (en) | Preloading of applications and in-application content in user devices | |
CN108965471B (en) | Method for improving browser memory on smart television | |
US10631051B2 (en) | Method and system for starting smart television | |
US10949226B2 (en) | Display method of multi-application based on Android system, and terminal device | |
CN107122176B (en) | Graph drawing method and device | |
US11461116B2 (en) | Graphical user interface redrawing method. Terminal device and computer readable storage medium | |
CN108174255A (en) | Smart television starting-up method, smart television and computer readable storage medium | |
CN107621982B (en) | Method for adjusting performance parameters of processor and mobile terminal | |
CN103514924A (en) | Method and device for playing videos in mobile terminal Widget, and player | |
CN109218817B (en) | Method and device for displaying virtual gift prompting message | |
CN110636364A (en) | Image quality processing method, smart television and storage medium | |
CN112714341B (en) | Information acquisition method, cloud set top box system, entity set top box and storage medium | |
CN103297516B (en) | The polymorphic type of a kind of application provides method, system and device | |
US9594422B2 (en) | Terminal apparatus and method for controlling thereof | |
CN107979774B (en) | Terminal starting method, terminal and storage medium | |
JP2006528810A (en) | Display management apparatus and management method | |
CN112988357B (en) | Panoramic image display method, computer storage medium and electronic device | |
CN110515674B (en) | Application loading method and device | |
CN108040279B (en) | Video acceleration method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |