A kind of method and device of ordered broadcast priority reorientation
Technical field
The invention belongs to the method and device of field of mobile terminals, more particularly to a kind of reorientation of ordered broadcast priority.
Background technology
The broadcast of existing Android phone operating system is divided to two classes:Common broadcast, ordered broadcast.Wherein common broadcast
It as long as any application or module have registered the broadcast, can be carried out receiving, simply existed successively when broadcast is received
Sequencing problem.And ordered broadcast, it is that broadcast is sent according to priority, the high application of priority or module can be received first extensively
Broadcast, while broadcast can be abandoned by receiving the recipient of broadcast, the application of so follow-up low priority or module can not just connect
Receive the broadcast.Because many applications or module can all register some ordered broadcasts, such as short message etc., but their definition is excellent
First level is different, and can not predict the order that system finally sends broadcast, leads to not receive broadcast.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method and device of ordered broadcast priority reorientation, by sweeping
Retouch and obtain all kinds of ordered broadcasts, and obtain receiving the recipient of the ordered broadcast, by receiving user to recipient's priority
Adjustment changes reception of the recipient to ordered broadcast, it is to avoid caused confusion when receiving ordered broadcast.
The embodiment of the present invention is achieved in that a kind of method of ordered broadcast priority reorientation, and methods described includes
Following step:
Ordered broadcast species in lookup system, and find out the recipient of the ordered broadcast of the various species;
The ordered broadcast for receiving user's selection receives order;
The ordered broadcast selected according to user receives time ordered pair ordered broadcast priority and relocated, and according to reorientation
The various ordered broadcasts of priority processing afterwards.
Further, the ordered broadcast species in the lookup system, and find out the ordered broadcast of the various species
Recipient the step of include:
Ordered broadcast species in scanning system file directory, lookup system;
The recipient of the ordered broadcast of the various species is found out according to the ordered broadcast species found out.
Further, the step of ordered broadcast for receiving user's selection receives order includes:
The priority that ordered broadcast recipient gives tacit consent to selection is listed, user is received to the preferential grading of ordered broadcast recipient
Capable replacement;
The ordered broadcast for preserving user's selection receives order.
Further, the ordered broadcast selected according to user receives time ordered pair ordered broadcast priority and reset
Position, and the step of ordered broadcast various according to priority processing after reorientation includes:
The ordered broadcast selected according to user receives time priority of ordered pair ordered broadcast and relocated, and adjustment broadcast connects
The priority of receipts person;
According to the various ordered broadcasts of priority processing of the ordered broadcast recipient after reorientation.
Further, the ordered broadcast recipient includes:System module and application program.
The another object of the embodiment of the present invention is to provide a kind of device of ordered broadcast priority reorientation, described device
Including:
Searching unit, for the ordered broadcast species in lookup system, and finds out the ordered broadcast of the various species
Recipient;
Order receipt unit, the ordered broadcast for receiving user's selection receives order;
Bit location is reset, the ordered broadcast for being selected according to user receives time ordered pair ordered broadcast priority and reset
Position, and according to the various ordered broadcasts of priority processing after reorientation.
Further, the searching unit of described device includes:
Document scanning unit, for scanning system file directory, the ordered broadcast species in lookup system;
Recipient's searching unit, the ordered broadcast species for being found out according to finds out having for the various species
The recipient of sequence broadcast.
Further, the order receipt unit includes:
List cell, the priority of selection is given tacit consent to for listing ordered broadcast recipient, receives user and ordered broadcast is connect
The replacement that the priority of receipts person is carried out;
Storage unit, the ordered broadcast for preserving user's selection receives order.
Further, described device resets bit location and included:
Priority adjustment unit, the ordered broadcast for being selected according to user receives the preferential grading of time ordered pair ordered broadcast
Row reorientation, adjusts the priority of broadcast recipients;
Processing unit, for the various ordered broadcasts of priority processing according to the ordered broadcast recipient after reorientation.
Further, the ordered broadcast recipient includes:System module and application program.
The method and device that the embodiment of the present invention is relocated by a kind of ordered broadcast priority, by lookup system
Ordered broadcast species, and the ordered broadcast of various species recipient;The ordered broadcast for receiving user's selection afterwards receives secondary
Sequence;The ordered broadcast selected finally according to user receives time ordered pair ordered broadcast priority and relocated, and according to reorientation
The various ordered broadcasts of priority processing afterwards, it is to avoid be mounted with to receive caused abnormal or chaotic during the application of identical ordered broadcast
The problem of, while by the priority for setting ordered broadcast to handle, adjusting ordered broadcast handling process, reduce third-party application
Harassing and wrecking, bring more preferable experience.
Brief description of the drawings
Fig. 1 is a kind of implementation process of the method for ordered broadcast priority reorientation that first embodiment of the invention is provided
Figure;
Fig. 2 is a kind of implementation process of the method for ordered broadcast priority reorientation that second embodiment of the invention is provided
Figure;
Fig. 3 is a kind of structure chart of the device for ordered broadcast priority reorientation that third embodiment of the invention is provided;With
And
Fig. 4 is a kind of structure chart of the device for ordered broadcast priority reorientation that fourth embodiment of the invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Implementing for the present invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows a kind of realization stream of the method for ordered broadcast priority reorientation that first embodiment of the invention is provided
Journey, details are as follows:
Ordered broadcast species in S101, lookup system, and find out the recipient of the ordered broadcast of the various species.
By the file directory of scanning cell phone system, the ordered broadcast species defined in system, such as short message class are found out,
And find out the recipient for the ordered broadcast for receiving various species, wherein the module of the recipient of ordered broadcast including system and
Application program, wherein application program include the application program that third-party application program and system are carried.
S102, the ordered broadcast for receiving user's selection receives order.
The reception order that user is set to the recipient of ordered broadcast is received, and preserves connecing for the ordered broadcast that user selects
Receive order.
S103, the ordered broadcast selected according to user receives time ordered pair ordered broadcast priority and relocated, and according to
The various ordered broadcasts of priority processing after reorientation.
The reception order to ordered broadcast selected according to user, the priority to ordered broadcast is repositioned, and
According to the various ordered broadcasts of priority processing after reorientation.
The embodiment of the present invention is by the above-mentioned means, a kind of method of ordered broadcast priority reorientation, is obtained by scanning
All kinds of ordered broadcasts, and obtain receiving the recipient of the ordered broadcast, changed by receiving adjustment of the user to recipient's priority
Become reception of the recipient to ordered broadcast, by carrying out mixing when reorientation avoids reception ordered broadcast to ordered broadcast
Disorderly.
Embodiment two:
Fig. 2 shows a kind of realization stream of the method for ordered broadcast priority reorientation that second embodiment of the invention is provided
Journey, details are as follows:
Ordered broadcast species in S201, scanning system file directory, lookup system.
The catalogue file of Android system is scanned, such as scanning/system/framework catalogues check system institute
The ordered broadcast species being defined, such as:Short message class has Intents.SMS_CB_RECEIVED_
ACTIONIntents.SMS_EMERGENCY_CB_RECEIVED_ACTIONIntents.SMS_RECEIVED_
ACTIONIntents.DATA_SMS_RECEIVED_ACTION。
S202, the reception of the ordered broadcast of the various species is found out according to the ordered broadcast species found out
Person.
The recipient for receiving ordered broadcast, wherein ordered broadcast are found out according to the ordered broadcast species found out
Recipient includes the module and application program of system, and wherein application program is carried including third-party application program and system
Application program.
S203, lists the priority that ordered broadcast recipient gives tacit consent to selection, receives user to the excellent of ordered broadcast recipient
The replacement that first level is carried out.
The recipient of all ordered broadcasts is listed by list, and shows the recipient's acquiescence choosing for receiving ordered broadcast
The priority selected, user can be configured to the priority of recipient, including the operation such as cancellation and replacement.
S204, the ordered broadcast for preserving user's selection receives order.
Preserve the reception order to ordered broadcast recipient that user is set.
S205, the ordered broadcast selected according to user receives time priority of ordered pair ordered broadcast and relocated, and adjusts
The priority of broadcast recipients.
The priority of the reception time ordered pair ordered broadcast of the ordered broadcast selected according to user is relocated, wherein to excellent
The expansion application programming interface for the PackageManagerService systems that the reorientation of first level passes through Android system
API(Application Programming Interface)It is adjusted, wherein expanding application programming interface Zhi Chichong
The new interface for defining ordered broadcast priority, it is allowed to self-defined reception order.
S206, according to the various ordered broadcasts of priority processing of the ordered broadcast recipient after reorientation.
According to the various ordered broadcasts of the priority processing of the recipient of the ordered broadcast after reorientation, set according to user
Reception processing to ordered broadcast.
The embodiment of the present invention is by the above-mentioned means, a kind of method of ordered broadcast priority reorientation, passes through the system of searching
In ordered broadcast species, and the ordered broadcast of various species recipient;The ordered broadcast for receiving user's selection afterwards connects
Receive order;The ordered broadcast selected finally according to user receives time ordered pair ordered broadcast priority and relocated, and according to weight
The various ordered broadcasts of priority processing after positioning, it is to avoid be mounted with to receive it is caused abnormal during the application of identical ordered broadcast or
Chaotic the problem of, while by the priority for setting ordered broadcast to handle, ordered broadcast handling process can be adjusted, reduce the 3rd
Fang Yingyong harassing and wrecking, are that user brings more preferable usage experience.
Embodiment three:
Fig. 3 shows a kind of structure of the device for ordered broadcast priority reorientation that third embodiment of the invention is provided
Figure, for convenience of description, illustrate only the part related to the embodiment of the present invention.
Searching unit 31, for the ordered broadcast species in lookup system, and finds out the orderly wide of the various species
The recipient broadcast.
Searching unit finds out the ordered broadcast species defined in system by the file directory of scanning cell phone system, than
Such as short message class, and the recipient for the ordered broadcast for receiving various species is found out, the wherein recipient of ordered broadcast includes system
Module and application program, wherein application program includes the application program that carries of third-party application program and system.
Order receipt unit 32, the ordered broadcast for receiving user's selection receives order.
Order receipt unit receives the reception order that user is set to the recipient of ordered broadcast, and preserves user's selection
The reception order of ordered broadcast.
Bit location 33 is reset, the ordered broadcast for being selected according to user receives time ordered pair ordered broadcast priority and weighed
Positioning, and according to the various ordered broadcasts of priority processing after reorientation.
The reception order to ordered broadcast that bit location is selected according to user is reset, the priority to ordered broadcast is weighed
New definition, and according to the various ordered broadcasts of priority processing after reorientation.
The embodiment of the present invention is by the above-mentioned means, a kind of device of ordered broadcast priority reorientation, is obtained by scanning
All kinds of ordered broadcasts, and obtain receiving the recipient of the ordered broadcast, changed by receiving adjustment of the user to recipient's priority
Become reception of the recipient to ordered broadcast, by carrying out mixing when reorientation avoids reception ordered broadcast to ordered broadcast
Disorderly.
Example IV:
Fig. 4 shows a kind of structure of the device for ordered broadcast priority reorientation that fourth embodiment of the invention is provided
Figure, for convenience of description, illustrate only the part related to the embodiment of the present invention.
Document scanning unit 41, for scanning system file directory, the ordered broadcast species in lookup system.
The catalogue file of document scanning unit scanning Android system, such as scanning/system/framework catalogues,
The ordered broadcast species that the system of checking is defined.
Recipient's searching unit 42, the ordered broadcast species for being found out according to finds out the various species
The recipient of ordered broadcast.
The ordered broadcast species that recipient's searching unit is found out according to finds out the recipient for receiving ordered broadcast,
Wherein the recipient of ordered broadcast includes the module and application program of system, and wherein application program includes third-party application journey
The application program that sequence and system are carried.
List cell 43, the priority of selection is given tacit consent to for listing ordered broadcast recipient, receives user to ordered broadcast
The replacement that the priority of recipient is carried out.
List cell lists the recipient of all ordered broadcasts by list, and shows the reception for receiving ordered broadcast
Person gives tacit consent to the priority of selection, and user can be configured to the priority of recipient, including the operation such as cancellation and replacement.
Storage unit 44, the ordered broadcast for preserving user's selection receives order.
Storage unit preserves the reception order to ordered broadcast recipient that user is set.
Priority adjustment unit 45, the ordered broadcast for being selected according to user receives time priority of ordered pair ordered broadcast
Relocated, adjust the priority of broadcast recipients.
The priority of the reception time ordered pair ordered broadcast for the ordered broadcast that priority adjustment unit is selected according to user is carried out
Reorientation, wherein the expansion for the PackageManagerService systems that the reorientation to priority passes through Android system should
Use Program Interfaces API(Application Programming Interface)It is adjusted, wherein expanding application program
DLL is supported to redefine the interface of ordered broadcast priority, it is allowed to self-defined reception order.
Processing unit 46, for the various ordered broadcasts of priority processing according to the ordered broadcast recipient after reorientation.
Processing unit according to the various ordered broadcasts of priority processing of the recipient of the ordered broadcast after reorientation, according to
The reception processing to ordered broadcast that family is set.
The embodiment of the present invention is by the above-mentioned means, a kind of device of ordered broadcast priority reorientation, passes through the system of searching
In ordered broadcast species, and the ordered broadcast of various species recipient;The ordered broadcast for receiving user's selection afterwards connects
Receive order;The ordered broadcast selected finally according to user receives time ordered pair ordered broadcast priority and relocated, and according to weight
The various ordered broadcasts of priority processing after positioning, it is to avoid be mounted with to receive it is caused abnormal during the application of identical ordered broadcast or
Chaotic the problem of, while by the priority for setting ordered broadcast to handle, ordered broadcast handling process can be adjusted, reduce the 3rd
Fang Yingyong harassing and wrecking, are that user brings more preferable usage experience.
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is
The hardware of correlation is instructed to complete by program, described program can be stored in computer read/write memory medium, institute
The storage medium stated, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.