CN105446853A - Application management method and terminal - Google Patents

Application management method and terminal Download PDF

Info

Publication number
CN105446853A
CN105446853A CN201510743092.7A CN201510743092A CN105446853A CN 105446853 A CN105446853 A CN 105446853A CN 201510743092 A CN201510743092 A CN 201510743092A CN 105446853 A CN105446853 A CN 105446853A
Authority
CN
China
Prior art keywords
application
broadcast
network type
network
terminal
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
CN201510743092.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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510743092.7A priority Critical patent/CN105446853A/en
Publication of CN105446853A publication Critical patent/CN105446853A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiments of the present invention provide an application management method and a terminal. The method comprises: monitoring a broadcast message that a network of the terminal is changed; acquiring an application response list according to the monitored broadcast message, wherein the application response list is a set of applications which subscribe for the broadcast message; detecting whether a network type corresponding to a target application in the application response list is consistent with a network type corresponding to the broadcast message, wherein the network type corresponding to the broadcast message is a network type of the changed network of the terminal; and if yes, sending the broadcast message to the target application. By means of the application management method and the terminal which are provided by the present invention, when the network of the terminal is changed, self-starting of the unnecessary applications can be avoided, occupation on a terminal memory in the application operating process is reduced, and meanwhile, power consumption brought during application operation is also reduced.

Description

A kind of application management method and terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of application management method and terminal.
Background technology
At present, the intelligent electronic device such as smart mobile phone, panel computer has become indispensable electronic equipment in people's work and life, in usual intelligent electronic device, various application program is installed, program is wherein widely applied to be that backstage is from opening application program, so-called backstage refers to from opening application program, these application programs can when event triggers to open and at running background, even if user does not start this application program in advance.Such as, time cell phone network changes, as connected WIFI (Wireless-Fidelity, Wireless Fidelity) focus success, mobile phone will send one and be broadcast to the APP (Application, application program) monitoring this broadcast, for APP out of service, this broadcast can trigger such APP and restart operation, mobile phone is as a mobile device, and the change of network is very frequent, and all APP monitoring this broadcast therefore can be caused constantly to carry out self-starting.Under normal circumstances, these application programs are from opening and be the user intention of running counter to electronic equipment at running background, and application program self-starting also can take the resources such as Installed System Memory at running background, and this also can impact the overall performance of intelligent electronic device.
Summary of the invention
Embodiments provide a kind of application management method and terminal, when the network of terminal changes, the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
First aspect, embodiments provides a kind of application management method, comprising:
The broadcast that the network of monitor terminal changes;
Described broadcast according to listening to obtains application response list, and described application response list is the pool of applications that have subscribed described broadcast;
Whether the network type detecting network type corresponding to destination application in described application response list corresponding with described broadcast is consistent, wherein, the network type that described broadcast is corresponding is the network type after the network of described terminal changes;
If so, then described broadcast is sent to described destination application.
Second aspect, embodiments provides a kind of terminal, comprising:
Monitoring unit, the broadcast that the network for monitor terminal changes;
First acquiring unit, for obtaining application response list according to the described broadcast listened to, described application response list is the pool of applications that have subscribed described broadcast;
First detecting unit, whether the network type for detecting network type corresponding to destination application in described application response list corresponding with described broadcast is consistent, wherein, the network type that described broadcast is corresponding is the network type after the network of described terminal changes;
Administrative unit, if the network type that the network type that the destination application detected in described application response list for described first detecting unit is corresponding is corresponding with described broadcast is consistent, then described broadcast is sent to described destination application.
By implementing the embodiment of the present invention, the broadcast that the network of this terminal of terminal monitoring changes, if after the broadcast that the network listening to this terminal occurs, obtain application response list, whether the network type detecting network type corresponding to destination application in this application response list corresponding with this broadcast is consistent, if consistent, then this broadcast is sent to this destination application, if inconsistent, then this broadcast is not sent to this destination application, therefore when the network of terminal changes, the inconsistent backstage of the network type of network type and broadcast is made to lose and reach backstage from the ability that opens from opening application program by responding this broadcast, therefore the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of application management method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Figure 10 is the structural representation of the another kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, terminal can include but not limited to: mobile phone, PAD (panel computer), notebook computer, intelligent wearable device etc.The system of terminal refers to the operating system of terminal, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation) system etc.It should be noted that, Android terminal refers to the terminal of android system, and Saipan terminal refers to the terminal of Saipan system, etc.
Android system has that four large application component: Activity are movable, Service service, BroadcastReceiver radio receiver and ContentProvider content supplier, this four large assembly all can manage by ActivityManagerService (campaign management services device).Can be performed by ActivityManagerService by during self-starting in application program.
Below in conjunction with accompanying drawing 1-accompanying drawing 4, the application management method that the embodiment of the present invention provides is described in detail.
Referring to Fig. 1, is the schematic flow sheet of a kind of application management method that the embodiment of the present invention provides.As shown in Figure 1, this application management method can include but not limited to following steps.
The broadcast that the network of S101, monitor terminal changes.
In the embodiment of the present invention, the broadcast that terminal monitoring network changes, when the network of terminal changes, system can send the broadcast that a network changes, and terminal can listen to the broadcast that system sends.Concrete, for certain Android terminal, when network changes, android system can send the broadcast that a network changes, and the campaign management services device ActivityManagerService in android system will monitor and receive the broadcast that changes of network that android system sends.Such as, when terminal connects WIFI (WirelessFidelity, wireless network) focus success time, or when the WIFI of terminal connects disconnection, or when GPRS (GeneralPacketRadioService, the GPRS (General Packet Radio Service)) successful connection of terminal, or when the network of current connection becomes GPRS from WIFI, etc., system all can send broadcast CONNECTIVITY_CHANGE that a network changes to ActivityManagerService.When ActivityManagerService listens to this broadcast, need to judge that current network is available or down state, and can obtain more current network information by run time version, such as current network is WIFI or GPRS etc.The network information corresponding to this broadcast can include but not limited to: wireless network successful connection, wireless network suspension, mobile network's successful connection, mobile network's networking, etc., wherein, wireless network can include but not limited to: WIFI etc., mobile network can include but not limited to: GPRS, EGPRS (EnhancedGlobalPacketRadioService, the GPRS (General Packet Radio Service) of evolution), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)) etc.
Such as, for certain Android terminal, terminal is current is in the state not having network to connect (WIFI network and GPRS network etc. are all unavailable), the WIFI switch that user opens a terminal, the broadcast that ActivityManagerService monitoring system sends, when terminal connects certain WIFI hot spot success, terminal system starts to send CONNECTIVITY_CHANGE broadcast, ActivityManagerService will receive this broadcast, and to get current network be connection status, and network type is WIFI.
The broadcast that S103, basis listen to obtains application response list, and application response list is the pool of applications that have subscribed broadcast.
In the embodiment of the present invention, after the broadcast that terminal monitoring changes to network, check which application program (Application in systems in which, APP) have subscribed this broadcast, thus the application response list corresponding with this broadcast stored in acquisition system, all application programs in this application response list are the application program that have subscribed this broadcast, subscription in the embodiment of the present invention refer to can receiving terminal send broadcast, and realize self-starting in response to the broadcast that terminal sends, as long as namely application program listens to the broadcast just startup automatically that terminal sends.
In specific implementation, for certain APP, as long as the radio receiver that registered in advance one is corresponding with this APP in system program (such as can register NetworkReceiver (mark of radio receiver) in AndroidManifest.xml configures, this radio receiver is an application component in APP), and add in the IntentFilter (intention filtrator) and to filter accordingly and (namely state the type that broadcast that this radio receiver is monitored is corresponding, such as radio receiver only monitors the broadcast etc. that network changes), like this once the network of terminal changes, the broadcast that the network listened to changes just can be sent to this radio receiver by terminal (being specifically as follows ActivityManagerService), and then this APP just can make response to this broadcast.Therefore, after in terminal, each APP has carried out the registration of above-mentioned radio receiver, terminal just can judge according to the log-on message of each APP the broadcast which APP have subscribed network and changes, and then the information (such as APP title etc.) of these APP is saved in application response list, when terminal network changes, the broadcast that the network listened to just can change according to this application response list by terminal (being specifically as follows ActivityManagerService) is sent to the APP that each have subscribed this broadcast one by one.
Concrete, (when certain APP is installed to terminal by such as user) can registered in advance radio receiver in the realization of APK (AndroidPackage, installation kit) for certain APP, and statement is monitored the network change of terminal, such as, run time version is as follows:
Wherein, NetworkReceiver is the mark of the radio receiver that this APP is corresponding, when system sends the broadcast of network change, radio receiver is responsible for receiving this broadcast, after radio receiver receives this broadcast, this APP just can respond this broadcast, such as, if this APP is in non-starting state, after then radio receiver listens to this broadcast, this APP can realize self-starting, and performs corresponding operation, such as, down-load music etc.
Such as, after radio receiver listens to CONNECTIVITY_CHANGE broadcast, the application response list of corresponding this broadcast of CONNECTIVITY_CHANGE in acquisition system, gets Response List and comprises application A and application program B.
Whether S105, the network type that the network type that the destination application detected in application response list is corresponding is corresponding with broadcast be consistent, if unanimously, performs step S107, if inconsistent, and process ends.
In the embodiment of the present invention, network type corresponding to broadcast is the network type after the network of terminal changes, i.e. the type of the network of the current connection of terminal.User can pre-set network type corresponding to application program, this network type can include but not limited to: wireless network type, mobile network's type etc., this wireless network type can include but not limited to: WIFI network type, and this mobile network's type can include but not limited to: GPRS network type, EGPRS network type, WCDMA network type etc.
In specific implementation, each APP can state in advance and monitor the network change of terminal in the realization of APK, and it can be specified to need the network type monitored when stating, such as, run time version is as follows:
Wherein, the value 0 inside android:type=" 0 " this attribute can certain network type in corresponding A ndroid system, such as mobile network type, i.e. mobile network's type, in like manner, 1 represents another network type in android system, such as WIFI network type.This statement means the broadcast that this APP receives only mobile network and changes.
Therefore, after each APP has carried out above-mentioned statement, all APP stated network change is monitored have been kept in application response list by system, and in this application response list, preserve the network type of each APP monitoring.
Such as, after radio receiver listens to CONNECTIVITY_CHANGE broadcast, judge that the current network type corresponding to this broadcast is WIFI network type, then be respectively mobile network's type and WIFI network type according to the application response list network type got corresponding to application A and application program B, therefore detect that the network type that network type corresponding to application A is corresponding with this broadcast is inconsistent, the network type that the network type that application program B is corresponding is corresponding with this broadcast is consistent.
S107, broadcast is sent to destination application.
In the embodiment of the present invention, if terminal detects that the network type that the network type that destination application is corresponding is corresponding with the broadcast listened to is consistent, then this broadcast is sent to destination application by terminal, destination application is after receiving this broadcast, this broadcast can be responded, carry out self-starting, and perform corresponding operation, such as, some APP needs the uploading data etc. when there being WIFI network.If terminal detects that the network type that the network type that destination application is corresponding is corresponding with the broadcast listened to is inconsistent, then this broadcast can not be sent to destination application by terminal, therefore, destination application can not receive this broadcast and then realize self-starting etc., therefore, when the network of terminal changes, the self-starting of some application program can be reduced, reduce Installed System Memory to take, save system resource.
Visible, in the method described by Fig. 1, the broadcast that the network of this terminal of terminal monitoring changes, if after the broadcast that the network listening to this terminal occurs, obtain application response list, whether the network type detecting network type corresponding to destination application in this application response list corresponding with this broadcast is consistent, if consistent, then this broadcast is sent to this destination application, if inconsistent, then this broadcast is not sent to this destination application, therefore when the network of terminal changes, the inconsistent backstage of the network type of network type and broadcast is made to lose and reach backstage from the ability that opens from opening application program by responding this broadcast, therefore the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
Referring to Fig. 2, is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides.As shown in Figure 2, this application management method can include but not limited to following steps.
The configuration file of each application program in S201, acquisition application response list.
In the embodiment of the present invention, after each application program completes registration in system program, terminal can obtain the configuration file of each application program.
As a kind of feasible embodiment, the configuration file obtaining each application program in application response list is specially: search the packet that each application program in application response list is corresponding, obtained the configuration file of each application program by packet.
In the embodiment of the present invention, in terminal, the packet of each application program is that package manager PackageManager, PackageManager are used for management package, and PackageManager can obtain the various information of application program, comprising configuration file.For each application program in terminal, can get by the context of application program the package manager that terminal system provides for application program.
In the embodiment of the present invention, first can be got the PackageManager of corresponding each application program respectively by the context of each application program, the PackageManager then by getting can inquire the configuration file of each application program.To use the terminal of android system, the run time version of a kind of PackageManager of acquisition in android system is:
PackageManagerpm=this.getApplicationContext().getPackageManager()
S203, parsing configuration file, to determine each self-corresponding network type of each application program, and preserve each self-corresponding network type of each application program.
In the embodiment of the present invention, after terminal gets the configuration file of each application program in application response list, the network type can stated to each application program by the Code obtaining of resolving in configuration file, and then the network type that each application program is stated is preserved, such as, be saved in application response list.
The broadcast that the network of S205, monitor terminal changes.
The broadcast that S207, basis listen to obtains application response list, and application response list is the pool of applications that have subscribed broadcast.
S205 and S207 in the embodiment of the present invention can S101 and S103 of embodiment shown in Figure 1, repeats no more herein.
The network type that destination application in S209, inquiry application Response List is corresponding, and judge that whether the network type that network type that the destination application that inquires is corresponding is corresponding with broadcast is consistent, and if unanimously, execution step S211, if inconsistent, process ends.
In the embodiment of the present invention, terminal by network type corresponding to application response list query destination application, and then judges that whether the network type that network type that destination application is corresponding is corresponding with broadcast is consistent.
S211, broadcast is sent to destination application.
S211 in the embodiment of the present invention can the S107 of embodiment shown in Figure 1, repeats no more herein.
Visible, in the method described by Fig. 2, terminal obtains the configuration file of each application program in advance, network type corresponding to each application program is obtained according to configuration file, and then in application response list, preserve network type corresponding to each application program, when the broadcast that terminal monitoring changes to network, judge that whether the network type that network type that destination application in application response list is corresponding is corresponding with this broadcast is consistent, if consistent, then this broadcast is sent to this destination application, if inconsistent, then this broadcast is not sent to this destination application, therefore when the network of terminal changes, the inconsistent backstage of the network type of network type and broadcast is made to lose and reach backstage from the ability that opens from opening application program by responding this broadcast, therefore the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
Referring to Fig. 3, is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides.As shown in Figure 3, this application management method can include but not limited to following steps.
The broadcast that the network of S301, monitor terminal changes.
The broadcast that S303, basis listen to obtains application response list, and application response list is the pool of applications that have subscribed broadcast.
Whether S305, the network type that the network type that the destination application detected in application response list is corresponding is corresponding with broadcast be consistent, if so, performs step S307, if not, and process ends.
S301-S305 in the embodiment of the present invention can the S101-105 of embodiment shown in Figure 1, repeats no more herein.
Whether S307, the network change type detecting network change type corresponding to destination application corresponding with broadcast be consistent, if unanimously, performs step S309; If not, process ends.
In the embodiment of the present invention, if terminal detects that the network type that network type that destination application is corresponding is corresponding with the broadcast that network changes is consistent, then whether this terminal network change type of detecting network change type corresponding to destination application further corresponding with this broadcast is consistent, if consistent, then perform step S309, if inconsistent, then this broadcast can not be sent to destination application by terminal.Wherein, network change type includes but not limited to: successful connection, connection disconnect.In specific implementation, each APP can state in advance and monitor the network change of terminal in the realization of APK, and it can be specified the network type monitored is needed when stating, and can specify its required network change type monitored, and network change type corresponding for application program can be kept in application response list by terminal.Such as, what application A was stated is mobile network's type, and network change type is successful connection, what application program B stated is WIFI network type, and network change type disconnects for connecting, then after radio receiver receives the broadcast of WIFI successful connection of terminal, according to application response list, detect that the network type that network type corresponding to application program B is corresponding with this broadcast that radio receiver receives is consistent, be WIFI network, but network change Type-Inconsistencies, therefore, radio receiver does not send this broadcast to application program B.
S309, broadcast is sent to destination application.
S309 in the embodiment of the present invention can the S107 of embodiment shown in Figure 1, repeats no more herein.
Visible, in the method described by Fig. 3, the broadcast that the network of this terminal of terminal monitoring changes, if after the broadcast that the network listening to this terminal occurs, obtain application response list, whether the network type detecting network type corresponding to destination application in this application response list corresponding with this broadcast is consistent, if consistent, then whether the terminal network change type that detects network change type corresponding to destination application further corresponding with this broadcast is consistent, if consistent, then this broadcast is sent to this destination application, if inconsistent, then this broadcast can not be sent to this destination application by terminal, therefore when the network of terminal changes, the inconsistent backstage of the network type of network type and broadcast is lost from the background application of the network change Type-Inconsistencies opening application program and network change type and broadcast and reaches backstage from the ability opened by responding this broadcast, therefore the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
Referring to Fig. 4, is the schematic flow sheet of the another kind of application management method that the embodiment of the present invention provides.As shown in Figure 4, this application management method can include but not limited to following steps.
The broadcast that the network of S401, monitor terminal changes.
The broadcast that S403, basis listen to obtains application response list, and application response list is the pool of applications that have subscribed broadcast.
Whether S405, the network type that the network type that the destination application detected in application response list is corresponding is corresponding with broadcast be consistent, if so, performs step S407, if not, and process ends.
S401-S405 in the embodiment of the present invention can the S101-105 of embodiment shown in Figure 1, repeats no more herein.
Whether the current Installed System Memory of S407, sense terminals is more than or equal to default memory threshold, if so, performs step S409; If not, process ends.
In the embodiment of the present invention, if terminal detects that the network type that network type that destination application is corresponding is corresponding with the broadcast that network changes is consistent, whether the Installed System Memory that then the further sense terminals of this terminal is current is more than or equal to default memory threshold, wherein, default memory threshold can by terminal system default setting, independently can be arranged by user, the embodiment of the present invention does not do concrete restriction yet.If detect, the current Installed System Memory of terminal is more than or equal to default memory threshold, then this broadcast is sent to destination application by terminal, if detect, the current Installed System Memory of terminal is less than default memory threshold, then this broadcast can not be sent to destination application by terminal, therefore, destination application can not receive this broadcast and then realize self-starting etc., therefore, if the Installed System Memory of present terminal is not enough, then when the network of terminal changes, the self-starting of some application program can be reduced, reduce Installed System Memory to take, save system resource.
S409, broadcast is sent to destination application.
S409 in the embodiment of the present invention can the S107 of embodiment shown in Figure 1, repeats no more herein.
It should be noted that, above-mentioned Fig. 2 and embodiment illustrated in fig. 3ly can be combined into a kind of feasible embodiment, and above-mentioned Fig. 2 and embodiment illustrated in fig. 4ly also can be combined into another kind of feasible embodiment.
Below in conjunction with accompanying drawing 5-accompanying drawing 10, a kind of terminal that the embodiment of the present invention provides is described in detail.It should be noted that, the terminal of accompanying drawing 5-accompanying drawing 10 can be applicable to perform the method shown in above-mentioned accompanying drawing 1-accompanying drawing 4.
Referring to Fig. 5, is the structural representation of a kind of terminal that the embodiment of the present invention provides.This terminal 50 can comprise: monitoring unit 501, first acquiring unit 503, first detecting unit 505 and administrative unit 507, wherein,
Monitoring unit 501, the broadcast that the network for monitor terminal changes;
First acquiring unit 503, for obtaining application response list according to the broadcast listened to, application response list is the pool of applications that have subscribed broadcast;
First detecting unit 505, whether the network type for detecting network type corresponding to destination application in application response list corresponding with broadcast is consistent, wherein, the network type that broadcast is corresponding is the network type after the network of terminal changes;
Administrative unit 507, if network type corresponding to the destination application detected in application response list for the first detecting unit 505 network type corresponding with broadcast is consistent, is then sent to destination application by broadcast.
Will be understood that, the function of each functional unit of the terminal 50 of the present embodiment according to the method specific implementation of above-mentioned Fig. 1 embodiment of the method, can repeat no more herein.
Seeing also Fig. 6, is the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal 50 shown in Fig. 6 is that terminal 50 is as shown in Figure 5 optimized and obtains.Compared with Fig. 5, the terminal 50 shown in Fig. 6 can also comprise: second acquisition unit 509 and storage unit 511, wherein,
Second acquisition unit 509, for obtaining the configuration file of each application program in application response list;
Storage unit 511, for resolving configuration file, to determine each self-corresponding network type of each application program, and preserves each self-corresponding network type of each application program.
First detecting unit 505 comprises:
Query unit 5051, for the network type that the destination application in inquiry application Response List is corresponding;
Judging unit 5053, whether consistent for judging the network type that network type that the destination application that inquires is corresponding is corresponding with broadcast.
Seeing also Fig. 7, is the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal 50 shown in Fig. 7 is that terminal 50 is as shown in Figure 6 optimized and obtains.Compared with Fig. 6, the second acquisition unit 509 in Fig. 7 comprises:
Packet searches unit 5091, for searching packet corresponding to each application program in application response list;
Configuration file acquiring unit 5093, for obtaining the configuration file of each application program by packet.
Will be understood that, the function of each functional unit of the terminal 50 of the present embodiment according to the method specific implementation of above-mentioned Fig. 2 embodiment of the method, can repeat no more herein.
Seeing also Fig. 8, is the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal 50 shown in Fig. 8 is that terminal 50 is as shown in Figure 5 optimized and obtains.Compared with Fig. 5, the terminal 50 shown in Fig. 8 can also comprise:
Second detecting unit 513, if the network type that the network type that the destination application detected in application response list for the first detecting unit 505 is corresponding is corresponding with broadcast is consistent, then whether the network change type detecting network change type corresponding to destination application corresponding with broadcast is consistent;
Administrative unit 507, if detect that network change type that destination application the is corresponding network change type corresponding with broadcast is consistent specifically for the second detecting unit 513, is then sent to destination application by broadcast.
Will be understood that, the function of each functional unit of the terminal 50 of the present embodiment according to the method specific implementation of above-mentioned Fig. 3 embodiment of the method, can repeat no more herein.
Seeing also Fig. 9, is the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal 50 shown in Fig. 9 is that terminal 50 is as shown in Figure 5 optimized and obtains.Compared with Fig. 5, the terminal 50 shown in Fig. 9 can also comprise:
3rd detecting unit 515, if the network type that the network type that the destination application detected in application response list for the first detecting unit 505 is corresponding is corresponding with broadcast is consistent, then whether the Installed System Memory that sense terminals is current is more than or equal to default memory threshold;
Administrative unit 507, if detect that the current Installed System Memory of terminal is more than or equal to default memory threshold specifically for the 3rd detecting unit 515, is then sent to destination application by broadcast.
Will be understood that, the function of each functional unit of the terminal 50 of the present embodiment according to the method specific implementation of above-mentioned Fig. 4 embodiment of the method, can repeat no more herein.
Referring to Figure 10, is the structural representation of another kind of terminal provided by the invention.Wherein, as shown in Figure 10, terminal 100 can comprise: at least one processor 1001, such as CPU, at least one bus 1002, at least one input media 1003 and at least one output unit 1004, storer 1005.Wherein, bus 1002 is for realizing the communication connection between these assemblies; Input media 1003 specifically can be the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel; Output unit 1004 can comprise the display screen (Display) of terminal, for exporting, showing image or data; Storer 1005 can be high-speed RAM display, also can be non-labile display (non-volatilememory), such as at least one disk display, storer 1005 can also be optionally that at least one is positioned at the display device away from aforementioned processor 1001.As shown in Figure 10, operating system, network communication module, Subscriber Interface Module SIM and application program manager can be comprised in the storer 1005 as a kind of Computer display medium.
In the terminal 100 shown in Figure 10, processor 1001 may be used for the application program manager stored in run memory 1005, and performs following operation:
The broadcast that the network of monitor terminal changes;
Obtain application response list according to the broadcast listened to, application response list is the pool of applications that have subscribed broadcast;
Whether the network type detecting network type corresponding to destination application in application response list corresponding with broadcast is consistent, and wherein, network type corresponding to broadcast is the network type after the network of terminal changes;
If so, then broadcast is sent to destination application.
Further, before the broadcast that the network of processor 1001 monitor terminal changes, processor 1001 is also for obtaining the configuration file of each application program in application response list;
Resolve configuration file, to determine each self-corresponding network type of each application program, and preserve each self-corresponding network type of each application program;
Processor 1001 detects whether network type corresponding to destination application in the application response list network type corresponding with broadcast be consistent is specially:
The network type that destination application in inquiry application Response List is corresponding, and judge that whether the network type that network type that the destination application that inquires is corresponding is corresponding with broadcast is consistent.
Further, the configuration file of each application program that processor 1001 obtains in application response list is specially:
Search the packet that each application program in application response list is corresponding, obtained the configuration file of each application program by packet.
Further, processor 1001 detect network type corresponding to destination application in the application response list network type corresponding with broadcast whether consistent after, processor 1001 also for:
The network type that the network type that destination application in application response list is corresponding if detect is corresponding with broadcast is consistent, whether the network change type then detecting network change type corresponding to destination application corresponding with broadcast is consistent, if so, then broadcast is sent to destination application.
Further, processor 1001 detect network type corresponding to destination application in the application response list network type corresponding with broadcast whether consistent after, processor 1001 also for:
The network type that the network type that destination application in application response list is corresponding if detect is corresponding with broadcast is consistent, whether the Installed System Memory that then sense terminals is current is more than or equal to default memory threshold, if so, then broadcast is sent to destination application.
Will be understood that, the execution step of processor 1001 specifically see the content of Fig. 1 or Fig. 2 or Fig. 3 or Fig. 4 embodiment, can repeat no more here.
In sum, by implementing the embodiment of the present invention, the broadcast that the network of this terminal of terminal monitoring changes, if after the broadcast that the network listening to this terminal occurs, obtain application response list, whether the network type detecting network type corresponding to destination application in this application response list corresponding with this broadcast is consistent, if consistent, then this broadcast is sent to this destination application, if inconsistent, then this broadcast is not sent to this destination application, therefore when the network of terminal changes, the inconsistent backstage of the network type of network type and broadcast is made to lose and reach backstage from the ability that opens from opening application program by responding this broadcast, therefore the self-starting of unnecessary application program can be reduced, reduce taking tag memory when application program is run, also reduce the power consumption brought when application program is run simultaneously.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention mobile terminal can carry out merging, divide and deleting according to actual needs.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. an application management method, is characterized in that, comprising:
The broadcast that the network of monitor terminal changes;
Described broadcast according to listening to obtains application response list, and described application response list is the pool of applications that have subscribed described broadcast;
Whether the network type detecting network type corresponding to destination application in described application response list corresponding with described broadcast is consistent, wherein, the network type that described broadcast is corresponding is the network type after the network of described terminal changes;
If so, then described broadcast is sent to described destination application.
2. method according to claim 1, is characterized in that, before the broadcast that the network of described monitor terminal changes, also comprises:
Obtain the configuration file of each application program in described application response list;
Resolve described configuration file, to determine each self-corresponding network type of described each application program, and preserve each self-corresponding network type of described each application program;
Whether the network type that the network type that the destination application in described detection described application response list is corresponding is corresponding with described broadcast is consistent, comprising:
Inquire about the network type that destination application in described application response list is corresponding, and judge that whether the network type that network type that the described destination application that inquires is corresponding is corresponding with described broadcast is consistent.
3. method according to claim 2, is characterized in that, the configuration file of each application program in described acquisition described application response list, comprising:
Search the packet that each application program in described application response list is corresponding, obtained the configuration file of described each application program by described packet.
4. the method according to any one of claim 1-3, is characterized in that, after whether the network type that the network type that the destination application in described detection described application response list is corresponding is corresponding with described broadcast is consistent, also comprises:
The network type that the network type that destination application in described application response list is corresponding if detect is corresponding with described broadcast is consistent, whether the network change type then detecting network change type corresponding to described destination application corresponding with described broadcast is consistent, if so, then described broadcast is sent to described destination application.
5. the method according to any one of claim 1-3, is characterized in that, after whether the network type that the network type that the destination application in described detection described application response list is corresponding is corresponding with described broadcast is consistent, also comprises:
The network type that the network type that destination application in described application response list is corresponding if detect is corresponding with described broadcast is consistent, then detect the current Installed System Memory of described terminal and whether be more than or equal to default memory threshold, if so, then described broadcast is sent to described destination application.
6. a terminal, is characterized in that, comprising:
Monitoring unit, the broadcast that the network for monitor terminal changes;
First acquiring unit, for obtaining application response list according to the described broadcast listened to, described application response list is the pool of applications that have subscribed described broadcast;
First detecting unit, whether the network type for detecting network type corresponding to destination application in described application response list corresponding with described broadcast is consistent, wherein, the network type that described broadcast is corresponding is the network type after the network of described terminal changes;
Administrative unit, if the network type that the network type that the destination application detected in described application response list for described first detecting unit is corresponding is corresponding with described broadcast is consistent, then described broadcast is sent to described destination application.
7. terminal according to claim 6, is characterized in that, also comprises:
Second acquisition unit, for obtaining the configuration file of each application program in described application response list;
Storage unit, for resolving described configuration file, to determine each self-corresponding network type of described each application program, and preserves each self-corresponding network type of described each application program;
Described first detecting unit comprises:
Query unit, for inquiring about network type corresponding to destination application in described application response list;
Judging unit, whether consistent for judging the network type that network type that the described destination application that inquires is corresponding is corresponding with described broadcast.
8. terminal according to claim 7, is characterized in that, described second acquisition unit comprises:
Packet searches unit, for searching packet corresponding to each application program in described application response list;
Configuration file acquiring unit, for obtaining the configuration file of described each application program by described packet.
9. the terminal according to any one of claim 6-8, is characterized in that, also comprises:
Second detecting unit, if the network type that the network type that the destination application detected in described application response list for described first detecting unit is corresponding is corresponding with described broadcast is consistent, then whether the network change type detecting network change type corresponding to described destination application corresponding with described broadcast is consistent;
If specifically for described second detecting unit, described administrative unit detects that network change type that described destination application the is corresponding network change type corresponding with described broadcast is consistent, then described broadcast is sent to described destination application.
10. the terminal according to any one of claim 6-8, is characterized in that, also comprises:
3rd detecting unit, if the network type that the network type that the destination application detected in described application response list for described first detecting unit is corresponding is corresponding with described broadcast is consistent, then detects the current Installed System Memory of described terminal and whether be more than or equal to default memory threshold;
If specifically for described 3rd detecting unit, described administrative unit detects that the current Installed System Memory of described terminal is more than or equal to described default memory threshold, then described broadcast is sent to described destination application.
CN201510743092.7A 2015-11-03 2015-11-03 Application management method and terminal Pending CN105446853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510743092.7A CN105446853A (en) 2015-11-03 2015-11-03 Application management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510743092.7A CN105446853A (en) 2015-11-03 2015-11-03 Application management method and terminal

Publications (1)

Publication Number Publication Date
CN105446853A true CN105446853A (en) 2016-03-30

Family

ID=55557085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510743092.7A Pending CN105446853A (en) 2015-11-03 2015-11-03 Application management method and terminal

Country Status (1)

Country Link
CN (1) CN105446853A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
WO2017219488A1 (en) * 2016-06-23 2017-12-28 中兴通讯股份有限公司 Method and apparatus for application to receive information
CN109765983A (en) * 2017-11-01 2019-05-17 中国电信股份有限公司 Run procedure management method, device and mobile terminal
CN109918215A (en) * 2019-03-05 2019-06-21 上海联影医疗科技有限公司 A kind of Way of Process Communication, system, terminal and storage medium
CN112269710A (en) * 2020-09-18 2021-01-26 天地互联科技(广州)有限公司 Airborne monitoring system and monitoring method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1517489A2 (en) * 2003-09-16 2005-03-23 Nokia Corporation Application control in peer-to-peer ad-hoc communication networks
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs
CN104991803A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 System and method for managing and controlling self-startup of android application under specific conditions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1517489A2 (en) * 2003-09-16 2005-03-23 Nokia Corporation Application control in peer-to-peer ad-hoc communication networks
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs
CN104991803A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 System and method for managing and controlling self-startup of android application under specific conditions

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017219488A1 (en) * 2016-06-23 2017-12-28 中兴通讯股份有限公司 Method and apparatus for application to receive information
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
CN109765983A (en) * 2017-11-01 2019-05-17 中国电信股份有限公司 Run procedure management method, device and mobile terminal
CN109918215A (en) * 2019-03-05 2019-06-21 上海联影医疗科技有限公司 A kind of Way of Process Communication, system, terminal and storage medium
CN112269710A (en) * 2020-09-18 2021-01-26 天地互联科技(广州)有限公司 Airborne monitoring system and monitoring method thereof

Similar Documents

Publication Publication Date Title
CN105446853A (en) Application management method and terminal
EP3337245B1 (en) Method and apparatus for handling abnormality of network communication function and storage medium
CN102831035B (en) The method of backup information and device
US9532359B2 (en) Resource allocation method and device
CN106878368B (en) Method and device for realizing information push
CN108886830A (en) Information processing method and relevant device and computer program
CN110493892B (en) Network connection method and device, storage medium and communication terminal
CN111258921B (en) Garbage memory recycling method and device, electronic equipment and storage medium
CN105511985A (en) Data backup method and terminal
CN103838648A (en) Terminal and data backup method
EP3304862B1 (en) Systems, methods, and computer-readable media for tracking udates and loading data
CN105704802A (en) Mobile terminal and communication method
CN111683359A (en) BLE communication method, device, equipment and storage medium
CN104159262A (en) Method of accessing long term evolution (LTE) network again, and device of accessing LTE network again
CN105490917A (en) Sharing method and device in application
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105357049A (en) Network communication functional abnormity processing method, application processor and mobile terminal
CN104899275A (en) Cell search method and terminal
CN110710287B (en) Method and device for configuring RA information and frequency priority information, and storage medium
CN113242542B (en) Network searching control method and device of mobile terminal and mobile terminal
CN105278931A (en) Android system application program backstage self-start forbidden method and terminal
CN111857324A (en) Method and device for reducing power consumption of terminal, mobile terminal and storage medium
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376777A (en) Processing method of network communication function abnormity and mobile terminal
CN108347740B (en) Processing method for network communication function abnormity and application processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160330

RJ01 Rejection of invention patent application after publication