CN106936996B - Method, device and terminal for sending shutdown broadcast - Google Patents

Method, device and terminal for sending shutdown broadcast Download PDF

Info

Publication number
CN106936996B
CN106936996B CN201710144284.5A CN201710144284A CN106936996B CN 106936996 B CN106936996 B CN 106936996B CN 201710144284 A CN201710144284 A CN 201710144284A CN 106936996 B CN106936996 B CN 106936996B
Authority
CN
China
Prior art keywords
shutdown
broadcast
broadcast message
priority
broadcast receiver
Prior art date
Application number
CN201710144284.5A
Other languages
Chinese (zh)
Other versions
CN106936996A (en
Inventor
裴润升
付亮晶
吴汝煜
林志泳
张俊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201710144284.5A priority Critical patent/CN106936996B/en
Publication of CN106936996A publication Critical patent/CN106936996A/en
Application granted granted Critical
Publication of CN106936996B publication Critical patent/CN106936996B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72597Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status wherein handling of applications is triggered by incoming communication events
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention discloses a method, a device and a terminal for sending shutdown broadcast. The method comprises the following steps: monitoring a shutdown broadcast message sent by a system; when a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message; determining a priority of the broadcast receiver to receive the power-off broadcast message; and sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority. The invention realizes that the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority order of the broadcast receiver receiving the shutdown broadcast message, solves the problem of high system performance caused by sending the shutdown broadcast message to all the broadcast receivers receiving the shutdown broadcast message at the same time, reduces the system performance overhead and improves the processing speed of the shutdown broadcast.

Description

method, device and terminal for sending shutdown broadcast

Technical Field

the present invention relates to system broadcast technologies, and in particular, to a method, an apparatus, and a terminal for sending a shutdown broadcast.

Background

The Android (Android) system is an operating system of a mobile phone and other terminals which are widely applied at present. In the Android system, a plurality of different application programs exist, in order to rapidly transmit information in the different application programs, the Android system is realized by using a broadcasting mechanism, and when a message needs to be notified to the different application programs, the message is sent to the different application programs through broadcasting.

when the Android system is powered off, a power-off broadcast message is sent, an application program needing to receive the power-off broadcast message can receive the broadcast, and then some processing work before the power-off is performed. If many application programs register to receive the shutdown broadcast message, when the system is to be shut down and send the shutdown broadcast message, the registered and received application programs can be triggered to be shut down at the same time, which causes very high system performance overhead and influences the processing speed of the shutdown broadcast.

disclosure of Invention

the embodiment of the invention provides a method, a device and a terminal for sending shutdown broadcast, which can reduce the system performance overhead and improve the processing speed of the shutdown broadcast.

in a first aspect, an embodiment of the present invention provides a method for sending a shutdown broadcast, where the method includes:

monitoring a shutdown broadcast message sent by a system;

When a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message;

Determining a priority of the broadcast receiver to receive the power-off broadcast message;

and sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

In a second aspect, an embodiment of the present invention further provides an apparatus for sending a shutdown broadcast, where the apparatus includes:

The shutdown broadcast monitoring module is used for monitoring shutdown broadcast messages sent by the system;

The broadcast receiver determining module is used for determining a broadcast receiver receiving the shutdown broadcast message when the shutdown broadcast message is monitored;

a priority determination module for determining a priority of the broadcast receiver for receiving the power-off broadcast message;

and the shutdown broadcast sending module is used for sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

In a third aspect, an embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:

monitoring a shutdown broadcast message sent by a system;

When a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message;

Determining a priority of the broadcast receiver to receive the power-off broadcast message;

And sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

according to the technical scheme of the embodiment of the invention, when the shutdown broadcast message sent by the system is monitored, the broadcast receiver receiving the shutdown broadcast message is determined, the priority of the broadcast receiver receiving the shutdown broadcast message is determined, and the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority, so that the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority sequence of the broadcast receiver receiving the shutdown broadcast message, the problem of high system performance caused by sending the shutdown broadcast message to all the broadcast receivers receiving the shutdown broadcast message at the same time is solved, the system performance overhead is reduced, and the processing speed of the shutdown broadcast is increased.

drawings

Fig. 1 is a flowchart of a method for transmitting a shutdown broadcast according to an embodiment of the present invention;

fig. 2 is a flowchart of a method for transmitting a shutdown broadcast according to an embodiment of the present invention;

Fig. 3 is a flowchart of a method for transmitting a shutdown broadcast according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of an apparatus for transmitting a shutdown broadcast according to an embodiment of the present invention;

Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.

before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.

fig. 1 is a flowchart of a method for sending a shutdown broadcast according to an embodiment of the present invention, where the method is applicable to a case where a shutdown broadcast is sent according to a priority of a broadcast receiver, and the method may be implemented by an apparatus for sending a shutdown broadcast, where the apparatus may be implemented by software and/or hardware, the apparatus may be integrated in a terminal, and the terminal may be a smart phone, a tablet computer, or the like, and the method includes the following steps:

step 110, a shutdown broadcast message sent by the system is monitored.

When the user presses the power key of the terminal to shut down, the system receives the shutdown instruction and sends a corresponding shutdown broadcast message.

The broadcast mechanism is essentially a communication method between components in the operating system of the terminal, and is a mechanism widely used for transmitting messages between application programs. For example, under the android system of the terminal, after some operations are completed, a broadcast message is sent. The broadcast message may be various event message data generated in the operating system, for example, a short message is sent or a call is made, and the broadcast is sent, and when an application program receives the broadcast, corresponding processing can be performed. The broadcast sender may be system and application software. The application software may be third-party application software installed in a terminal such as a mobile phone or an application program carried by the system, for example: the third-party application software installed on the terminal can comprise a WeChat client, a QQ client, a Taobao client, a Paobao client and the like, and the application programs carried by the system can comprise a calendar, a clock, weather, notes and the like. The broadcast message may be a system broadcast, which may include a bright screen broadcast, a clear screen broadcast, an unlock broadcast, a network status change broadcast, a bluetooth status change broadcast, a switching language broadcast, a switching theme broadcast, etc., and an application broadcast, which may be a broadcast issued by application software.

When the user presses the power key of the terminal to shut down, the system receives the shutdown instruction and sends a corresponding shutdown broadcast message. The dynamic state of the system can be monitored through a broadcast management module (such as an activitymanagervervice) in the terminal, and whether the system sends a shutdown broadcast message or not is detected. The ActivityManagerService plays a role of a broadcast center in a broadcast mechanism of an Android system and is responsible for registration and release operations of all broadcasts in the system, wherein the registration of the broadcasts refers to a process of registering a broadcast receiver in the ActivityManagerService by an application program. The distribution of the broadcast includes that a broadcast sender sends the broadcast to an activiymanagervice, the activiymanagervice receives the broadcast and checks which broadcast receivers subscribe to the broadcast in a registration center of the activiymanagervice, and then the broadcast is sent to the broadcast receivers one by one. In the Android system, a shutdown broadcast message sent by a monitoring system monitors whether the system sends the shutdown broadcast message to an activiymanagervice through the activiymanagervice, and when the shutdown broadcast message is sent to the activiymanagervice through the activiymanagervice monitoring system, the monitoring system is determined to send the shutdown broadcast message.

step 120, when the shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message.

Upon listening to a shutdown broadcast message, a broadcast receiver registered to receive the shutdown broadcast message is queried to determine a broadcast receiver receiving the shutdown broadcast message.

for example, in the Android system, a broadcast sender sends a broadcast message to be published to an activtymanagervice, which receives the broadcast message and then checks in a registry which broadcast receivers subscribe to the broadcast, and it is possible to determine which broadcast receivers are registered to receive the broadcast message (i.e., a broadcast receiving process), and to determine a broadcast receiver (an application or a system) to receive the broadcast message through the broadcast receiver.

step 130, determining the priority of the broadcast receiver to receive the shutdown broadcast message.

After determining the broadcast receiver of the shutdown broadcast message, the priority of the broadcast receiver for receiving the shutdown broadcast message may be determined according to the importance degree of the broadcast receiver, for example, if the broadcast receiver is a system application, the priority of the broadcast message is determined to be a higher priority; if the broadcast recipient is a third party application, the priority of the broadcast message is determined to be a lower priority. Or the priority of the application program currently operated by the user for receiving the shutdown broadcast message is set as the highest priority, so that the information of the application program is conveniently stored.

In one embodiment, determining the priority of the broadcast receiver to receive the power-off broadcast message optionally includes:

Acquiring a corresponding relation between the application attribute established in advance and the priority;

Determining an application attribute of the broadcast receiver;

And determining the priority of the broadcast receiver for receiving the shutdown broadcast message according to the application attribute and the corresponding relation.

The application attribute is an attribute of an application program that receives the shutdown broadcast message in the shutdown phase, such as an application that needs to be edited by a user, a system basic application, a system important application, and the like, and the priority of receiving the shutdown broadcast message by the application that needs to be edited by the user can be set higher, so that important information of the user can be prevented from being lost.

the corresponding relation between the application attribute of the broadcast receiver receiving the shutdown broadcast message and the priority of receiving the shutdown broadcast message can be pre-established, so that the application attribute of the broadcast receiver is determined firstly when the priority of receiving the shutdown broadcast message by the broadcast receiver is determined, the priority of receiving the shutdown broadcast message by the broadcast receiver can be determined according to the application attribute of the broadcast receiver and the corresponding relation, the speed of determining the priority is improved, and the processing speed of the shutdown broadcast message is accelerated.

step 140, sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

and according to the priority, sending the shutdown broadcast message to the corresponding broadcast receiver according to the priority order of the broadcast receiver. That is, the power-off broadcast message is first transmitted to the broadcast receiver having the highest priority and then transmitted to the broadcast receiver having the next highest priority until all broadcast receivers are transmitted.

for example, the priority setting of receiving the shutdown broadcast message by the application program currently operated by the user is higher, so that the operation state of the user and the current information of the application program can be saved when the system is shutdown, for example, if the user currently operates a word document, the shutdown broadcast message is sent to the word document first, which is convenient for the word document to save the current information, and the content newly edited by the user is prevented from being lost.

according to the technical scheme of the embodiment, when the shutdown broadcast message sent by the system is monitored, the broadcast receiver receiving the shutdown broadcast message is determined, the priority of the broadcast receiver receiving the shutdown broadcast message is determined, and the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority, so that the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority sequence of the broadcast receiver receiving the shutdown broadcast message, the problem of high system performance caused by the fact that all the broadcast receivers receiving the shutdown broadcast message send the shutdown broadcast message at the same time is solved, the system performance overhead is reduced, and the processing speed of the shutdown broadcast is improved.

Fig. 2 is a flowchart of a method for sending a shutdown broadcast according to an embodiment of the present invention, where the method includes the following steps:

Step 210, a shutdown broadcast message sent by the system is monitored.

Step 220, when the shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message.

Step 230, determining the priority of the broadcast receiver to receive the shutdown broadcast message.

Step 240, sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

Step 250, recording the current status information of the broadcast receiver, and closing the broadcast receiver.

the current state information may be a current content state of a document operated by a user, a current progress state of a game, a viewing progress of a video, or the like.

After the shutdown broadcast message is sent to the broadcast receiver with the corresponding priority, the current state information of the broadcast receiver is recorded, and then the broadcast receiver is closed, so that the loss of important information caused by direct shutdown can be avoided.

According to the technical scheme of the embodiment, after the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority, the current state information of the broadcast receiver is recorded, and the broadcast receiver is closed, so that the broadcast receivers with different priorities are closed according to the priority, the problem of high system overhead caused by simultaneous triggering of all the broadcast receivers is solved, the system performance overhead is reduced, the processing speed of shutdown broadcast is improved, and important information can be prevented from being lost by recording the current state information of the broadcast receiver.

fig. 3 is a flowchart of a method for sending a shutdown broadcast according to an embodiment of the present invention, where the method includes the following steps:

Step 310, a shutdown broadcast message sent by the system is monitored.

Step 320, when the shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message.

step 330, timing is performed when the shutdown broadcast message is monitored.

The timing is started when the shutdown broadcast message is monitored, so that the situation that shutdown cannot be performed due to long time for processing the shutdown broadcast message is avoided. The timing method can be realized by calling a system clock or adopt a timer to time.

In one embodiment, timing when the shutdown broadcast message is monitored optionally includes:

And starting a timer to time when the shutdown broadcast message is monitored.

When the shutdown broadcast message is monitored, the timer is started to time, so that the timing accuracy can be improved.

Step 340, determining the priority of the broadcast receiver to receive the shutdown broadcast message.

Step 350, according to the priority, sending the shutdown broadcast message to a corresponding broadcast receiver.

And step 360, if the timing exceeds the preset overtime, interrupting the processing of the shutdown broadcast message and powering off the shutdown.

and setting a preset timeout, if the timing exceeds the preset timeout in the process of processing the shutdown broadcast message and the shutdown broadcast message is not processed completely, interrupting the processing of the shutdown broadcast message and directly shutting down the power supply so as to avoid the problem that the shutdown broadcast message cannot be shut down due to the pause phenomenon when the system processes the shutdown broadcast message.

For example: the priority of the broadcast receiver to receive the power-off broadcast message has three priorities: the highest priority, the second priority and the lowest priority, if the timing exceeds the preset overtime in the process of sending the shutdown broadcast message to the broadcast receiver with the second priority, the processing of the shutdown broadcast message is interrupted at the moment, namely the shutdown broadcast message is not sent continuously, and the shutdown is directly powered off.

according to the technical scheme of the embodiment, the shutdown broadcast message is timed when the shutdown broadcast message is monitored, and the shutdown broadcast message is sent to the corresponding broadcast receiver according to the priority order of the shutdown broadcast message received by the broadcast receiver of the shutdown broadcast message, so that the problem of high system performance caused by sending the shutdown broadcast message to all the broadcast receivers receiving the shutdown broadcast message at the same time is solved, the system performance overhead is reduced, the processing speed of the shutdown broadcast is improved, and the condition that the system cannot be shut down due to the pause phenomenon when the system processes the shutdown broadcast message is avoided by utilizing an overtime processing mechanism of the shutdown broadcast message.

fig. 4 is a schematic structural diagram of an apparatus for sending shutdown broadcast according to an embodiment of the present invention, and as shown in fig. 4, the apparatus for sending shutdown broadcast according to this embodiment includes: a shutdown broadcast listening module 410, a broadcast receiver determining module 420, a priority determining module 430, and a shutdown broadcast transmitting module 440.

The shutdown broadcast monitoring module 410 is configured to monitor a shutdown broadcast message sent by the system;

A broadcast receiver determining module 420, configured to determine, when a shutdown broadcast message is monitored, a broadcast receiver that receives the shutdown broadcast message;

a priority determining module 430 for determining a priority of the broadcast receiver for receiving the power-off broadcast message;

a shutdown broadcast sending module 440, configured to send the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

Optionally, the priority determining module includes:

A corresponding relation obtaining unit, configured to obtain a corresponding relation between a pre-established application attribute and the priority;

an application attribute determining unit for determining an application attribute of the broadcast receiver;

a priority determining unit, configured to determine, according to the application attribute and the correspondence, a priority of the broadcast receiver for receiving the shutdown broadcast message.

Optionally, the method further includes:

and the broadcast receiver closing module is used for recording the current state information of the broadcast receiver and closing the broadcast receiver after the shutdown broadcast message is sent to the corresponding broadcast receiver.

Optionally, the method further includes:

the timing module is used for timing when the shutdown broadcast message is monitored;

And the overtime processing module is used for interrupting the processing of the shutdown broadcast message and powering off the shutdown if the timing exceeds the preset overtime.

optionally, the timing module is specifically configured to:

And starting a timer to time when the shutdown broadcast message is monitored.

the device for sending the shutdown broadcast can execute the method for sending the shutdown broadcast provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that is not described in detail in this embodiment, reference may be made to a method for sending a shutdown broadcast provided in any embodiment of the present invention.

the embodiment of the invention also provides a terminal, which can comprise the device for sending the shutdown broadcast provided by any embodiment of the invention. Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 5, the terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 501 and operable on the processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 501 is used for storing a computer program which can run on the processor; the CPU402 reads and executes the computer program stored in the memory 501.

the terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.

it should be understood that the illustrated terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

The following describes in detail the terminal for sending off broadcast provided in this embodiment, which takes a mobile phone as an example.

a memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.

a peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.

An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 (equivalent to the screen in the above embodiment) and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.

the display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.

the RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.

the audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.

The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.

And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.

The CPU502 provided in the embodiment of the present invention implements the following steps when executing the computer program stored in the memory 501:

Monitoring a shutdown broadcast message sent by a system;

when a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message;

determining a priority of the broadcast receiver to receive the power-off broadcast message;

And sending the shutdown broadcast message to a corresponding broadcast receiver according to the priority.

The terminal can execute the method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.

it is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method of transmitting a power-off broadcast, the method comprising:
Monitoring a shutdown broadcast message sent by a system;
when a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message;
determining a priority of the broadcast receiver to receive the power-off broadcast message;
According to the priority, the shutdown broadcast message is sent to a corresponding broadcast receiver;
Wherein determining the priority of the broadcast receiver to receive the power-off broadcast message comprises:
Acquiring a corresponding relation between the application attribute established in advance and the priority;
Determining an application attribute of the broadcast receiver;
Determining the priority of the broadcast receiver for receiving the shutdown broadcast message according to the application attribute and the corresponding relation;
The application attributes comprise applications needing to be edited by a user, system basic applications and system important applications.
2. The method of claim 1, after transmitting the shutdown broadcast message to a corresponding broadcast receiver, further comprising:
recording the current state information of the broadcast receiver, and closing the broadcast receiver.
3. The method of claim 1 or 2, further comprising:
Timing when the shutdown broadcast message is monitored;
and if the timing exceeds the preset overtime, interrupting the processing of the shutdown broadcast message and powering off the shutdown.
4. the method of claim 3, wherein timing when the shutdown broadcast message is monitored comprises:
And starting a timer to time when the shutdown broadcast message is monitored.
5. An apparatus for transmitting a power-off broadcast, the apparatus comprising:
The shutdown broadcast monitoring module is used for monitoring shutdown broadcast messages sent by the system;
the broadcast receiver determining module is used for determining a broadcast receiver receiving the shutdown broadcast message when the shutdown broadcast message is monitored;
a priority determination module for determining a priority of the broadcast receiver for receiving the power-off broadcast message;
a shutdown broadcast sending module, configured to send the shutdown broadcast message to a corresponding broadcast receiver according to the priority;
wherein the priority determination module comprises:
A corresponding relation obtaining unit, configured to obtain a corresponding relation between a pre-established application attribute and the priority;
An application attribute determining unit for determining an application attribute of the broadcast receiver;
a priority determining unit, configured to determine, according to the application attribute and the correspondence, a priority of the broadcast receiver for receiving the shutdown broadcast message;
The application attributes comprise applications needing to be edited by a user, system basic applications and system important applications.
6. the apparatus of claim 5, further comprising:
and the broadcast receiver closing module is used for recording the current state information of the broadcast receiver and closing the broadcast receiver after the shutdown broadcast message is sent to the corresponding broadcast receiver.
7. The apparatus of claim 5 or 6, further comprising:
The timing module is used for timing when the shutdown broadcast message is monitored;
and the overtime processing module is used for interrupting the processing of the shutdown broadcast message and powering off the shutdown if the timing exceeds the preset overtime.
8. The apparatus of claim 7, wherein the timing module is specifically configured to:
And starting a timer to time when the shutdown broadcast message is monitored.
9. a terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
monitoring a shutdown broadcast message sent by a system;
When a shutdown broadcast message is monitored, determining a broadcast receiver receiving the shutdown broadcast message;
determining a priority of the broadcast receiver to receive the power-off broadcast message;
according to the priority, the shutdown broadcast message is sent to a corresponding broadcast receiver;
Wherein determining the priority of the broadcast receiver to receive the power-off broadcast message comprises:
Acquiring a corresponding relation between the application attribute established in advance and the priority;
determining an application attribute of the broadcast receiver;
determining the priority of the broadcast receiver for receiving the shutdown broadcast message according to the application attribute and the corresponding relation;
The application attributes comprise applications needing to be edited by a user, system basic applications and system important applications.
CN201710144284.5A 2017-03-10 2017-03-10 Method, device and terminal for sending shutdown broadcast CN106936996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710144284.5A CN106936996B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending shutdown broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710144284.5A CN106936996B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending shutdown broadcast

Publications (2)

Publication Number Publication Date
CN106936996A CN106936996A (en) 2017-07-07
CN106936996B true CN106936996B (en) 2019-12-06

Family

ID=59432202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710144284.5A CN106936996B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending shutdown broadcast

Country Status (1)

Country Link
CN (1) CN106936996B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270763A (en) * 2014-10-27 2015-01-07 中国建设银行股份有限公司 Message protection method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101967721B1 (en) * 2011-08-10 2019-04-10 삼성전자 주식회사 Method and appratus of applying extended access barring in mobile communication system
CN103491507B (en) * 2013-09-05 2017-08-01 广东欧珀移动通信有限公司 A kind of method and device of ordered broadcast priority reorientation
US10142803B2 (en) * 2015-06-29 2018-11-27 Qualcomm Incorporated Packet priority for evolved multimedia broadcast multicast (EMBMS) service relays
CN105407484B (en) * 2015-10-20 2018-11-16 广东欧珀移动通信有限公司 Broadcast message processing method based on intelligent terminal system, apparatus and system
CN105897438A (en) * 2016-03-22 2016-08-24 上海斐讯数据通信技术有限公司 Broadcast sending method and apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270763A (en) * 2014-10-27 2015-01-07 中国建设银行股份有限公司 Message protection method and system

Also Published As

Publication number Publication date
CN106936996A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US20160283059A1 (en) Terminal and method for setting menu environments in the terminal
KR101812044B1 (en) Method and apparatus for reducing power consumption in a mobile electronic device
US10326861B2 (en) Method for controlling cooperation of multiple intelligent devices and apparatus thereof
RU2584549C1 (en) Method and mobile terminal for implementation of alarm in off state
KR101535365B1 (en) Power saving application update in a portable electronic device
ES2739024T3 (en) Procedure and apparatus for intelligent terminal activation control
RU2564989C2 (en) Providing power to accessory during portable computing device hibernation
US8285345B2 (en) Mobile terminal and method for switching states thereof
US7386303B2 (en) Multi-function, multi-state input control device
CN104243671B (en) Volume adjusting method, device and electronic equipment
TWI279721B (en) Methods and apparatus for operating a wireless electronic device based on usage pattern
KR20150026652A (en) Method and apparatus for offering received information to user in a electronic device
KR101832492B1 (en) Device and method for confirming remaining amount of battery in wireless terminal
CN1925652B (en) Multi-tasking apparatus and method in portable terminal
TWI548254B (en) Operating mode switching method
KR100700951B1 (en) Apparatus and method for multi task management in mobile communication system
EP2749988B1 (en) Method and device for application program operation, mobile terminal
US9106553B2 (en) System and method for sharing resources and interfaces amongst connected computing devices
KR20080068945A (en) Mobile communication device and control method thereof
KR20130086700A (en) Apparatus and method for transmitting packet in mobile terminal
US20100173679A1 (en) Apparatus and method for controlling turning on/off operation of display unit in portable terminal
US8738094B2 (en) Automatically enabling wireless communication
CN103002148A (en) Music switching method based on mobile terminal in screen extinguishment mode and mobile terminal
KR101691482B1 (en) Portable Device For Adaptive Data Communication Control And Method thereof
CN100469115C (en) Digital TV set with blue tooth transmission audio frequency function and blue tooth transmission method

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant