CN105867583A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105867583A
CN105867583A CN201610159067.9A CN201610159067A CN105867583A CN 105867583 A CN105867583 A CN 105867583A CN 201610159067 A CN201610159067 A CN 201610159067A CN 105867583 A CN105867583 A CN 105867583A
Authority
CN
China
Prior art keywords
electronic device
state
network connection
detection result
unit
Prior art date
Application number
CN201610159067.9A
Other languages
Chinese (zh)
Inventor
张钦波
刘俊峰
陈亨
翟富强
王亮亮
Original Assignee
联想(北京)有限公司
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 联想(北京)有限公司 filed Critical 联想(北京)有限公司
Priority to CN201610159067.9A priority Critical patent/CN105867583A/en
Publication of CN105867583A publication Critical patent/CN105867583A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Abstract

Embodiments of the invention disclose an information processing method and an electronic device. The method includes: the electronic device detects the network connection state of the electronic device, and a first detection result is obtained; when the first detection result indicates that the electronic device is in a network connection unavailable state, a first instruction is generated; and the first instruction is executed in order to control an application in a first operation state to terminate a corresponding task process.

Description

_种信息处理方法及电子设备 _ Information processing method, and electronic equipment

技术领域 FIELD

[0001]本发明涉及信息处理技术,具体涉及一种信息处理方法及电子设备。 [0001] The present invention relates to information processing technology, particularly relates to an information processing method and an electronic device.

背景技术 Background technique

[0002]随着电子技术的不断进步,便携式电子设备(如智能手机、平板电脑等)的功能也日益提升。 [0002] With the advances in electronic technology, portable electronic devices (such as smart phones, tablet PCs, etc.) features are also rising. 由于电子设备自身操作系统的特性,电子设备中的应用程序(APP)会在后台运行,APP在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Due to the nature of the electronic device's own operating system, an electronic device application (APP) will run in the background, APP is running in the background will consume resources of electronic devices (such as memory, CPU and other resources), also regardless of the current state of the network data synchronization is available, such as a heartbeat operation. 这样既增加了系统资源的消耗,又增加了电子设备的耗电量。 This will not only increase the consumption of system resources, and increase the power consumption of electronic equipment.

发明内容 SUMMARY

[0003]为解决现有存在的技术问题,本发明实施例提供一种信息处理方法及电子设备,能够降低系统资源的消耗,降低电量消耗。 [0003] In order to solve the prior art problems, embodiments provide a method and an electronic information processing apparatus according to the present invention, it is possible to reduce the consumption of system resources and reduce power consumption.

[0004]为达到上述目的,本发明实施例的技术方案是这样实现的: [0004] To achieve the above object, the technical solution of the embodiments of the present invention is implemented as follows:

[0005]本发明实施例提供了一种信息处理方法,应用于电子设备中;所述方法包括: [0005] Example embodiments of the present invention there is provided an information processing method, applied to an electronic device; the method comprising:

[0006]电子设备检测自身的网络连接状态,获得第一检测结果; [0006] The electronic device detecting a network connection state of itself, to obtain a first detection result;

[0007]当所述第一检测结果为所述电子设备处于网络连接不可用状态时,生成第一指令; [0007] When the detection result to the first electronic device is in a state when the network connection is not available, to generate a first instruction;

[0008]执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 Application [0008] The control executes the first instruction in a first operating state corresponding to the end of the task process.

[0009]上述方案中,所述电子设备检测自身的网络连接状态之前,所述方法还包括: [0009] In the above embodiment, the electronic device prior to detecting its network connection status, the method further comprising:

[0010]所述电子设备检测自身的显示单元的显示状态,获得第二检测结果; [0010] The display state detection electronic device's own display unit, to obtain a second detection result;

[0011 ]当所述第二检测结果为所述显示单元处于关闭状态时,生成第二指令; [0011] When the second detection result to the display unit in a closed state, to generate a second instruction;

[0012]执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 Application [0012] execute the second instruction in a first operating state control task corresponding to the end of the process.

[0013]上述方案中,所述电子设备检测自身的网络连接状态,获得第一检测结果,包括: [0013] In the above embodiment, the electronic device detects the connection state of the network itself, to obtain a first detection result, comprising:

[0014]所述电子设备检测自身的射频收发单元的数据传输情况;当检测到所述射频收发单元在预设时间范围内无数据传输时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 [0014] The electronic device case of detecting a data transmission unit, a radio frequency transceiver itself; when the RF transceiver is detected within a preset unit time when no data transmission, to obtain the electronic device is first connected to a network unavailable state a detection result.

[0015]上述方案中,所述电子设备检测自身的网络连接状态,获得第一检测结果,包括: [0015] In the above embodiment, the electronic device detects its network connection status, to obtain a first detection result, comprising:

[0016]所述电子设备检测自身的运行模式,当检测到处于第一运行模式时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 The [0016] electronic device detect its own mode of operation when it is detected in the first operating mode, the electronic device is to obtain a first detection result of a state of the network connection is unavailable.

[0017]上述方案中,当所述第一检测结果为所述网络连接状态处于网络连接不可用状态时,生成第一指令,包括: [0017] In the above embodiment, when the first detection result to said network connection state in the network connection is unavailable state, generating a first instruction, comprising:

[0018]当所述第一检测结果为所述网络连接状态处于网络连接不可用状态、且所述网络连接不可用状态的持续时间达到预设阈值时,生成第一指令。 [0018] When the first detection result to said network connection status of a network connection is unavailable, and the network connection is not a state reaches a preset threshold duration, to generate a first instruction.

[0019]上述方案中,所述第一运行状态为应用程序在后台运行的状态。 [0019] In the above embodiment, the first operating state is a state of an application running in the background.

[0020]本发明实施例还提供了一种电子设备,所述电子设备包括:检测单元和执行单元;其中, [0020] Embodiments of the present invention further provides an electronic device, said electronic device comprising: a detecting unit and an execution unit; wherein,

[0021 ]所述检测单元,用于检测自身的网络连接状态,获得第一检测结果; [0021] The detection means for detecting a state of its network connection, to obtain a first detection result;

[0022]所述执行单元,用于当所述检测单元获得的第一检测结果为处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0022] The execution unit configured to, when a first detection result obtained by the detection unit is in the network connection is unavailable, to generate a first instruction; the first instruction execution control application is in the first operating state the end of the corresponding task process.

[0023] 上述方案中,所述电子设备还包括显示单元; [0023] In the above embodiment, the electronic device further includes a display unit;

[0024]所述检测单元,还用于检测自身的网络连接状态之前,检测所述显示单元的显示状态,获得第二检测结果; [0024] The detection means further before the detection itself for network connection status, detecting the status display unit, obtain a second detection result;

[0025]所述执行单元,还用于当所述检测单元获得的第二检测结果为所述显示单元处于关闭状态时,生成第二指令;执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0025] The execution unit is further configured to, when the second detection result obtained when the display unit is in a closed state, to generate a second instruction; the second instruction execution control in a first operating state application process corresponding to the end of the task.

[0026]上述方案中,所述电子设备还包括射频收发单元; [0026] In the above embodiment, the electronic device further comprises a radio frequency transceiver means;

[0027]所述检测单元,用于检测所述射频收发单元的数据传输情况;当检测到所述射频收发单元在预设时间范围内无数据传输时,获得处于网络连接不可用状态的第一检测结果O [0027] The detection means for detecting a data transmission condition of the radio frequency transceiver means; upon detection of the radio-frequency transceiver means no data transmission within a predetermined time range, a network connection is unavailable in a first state O detection results

[0028]上述方案中,所述检测单元,用于检测运行模式,当检测到处于第一运行模式时,获得处于网络连接不可用状态的第一检测结果。 [0028] In the above embodiment, the detection means for detecting the operation mode, when operating in a first mode is detected, the detection result obtained in the first network connection unavailable state.

[0029]上述方案中,所述执行单元,用于当所述第一检测结果为所述网络连接状态处于网络连接不可用状态、且所述网络连接不可用状态的持续时间达到预设阈值时,生成第一指令。 When [0029] the above-described embodiment, the execution unit when the first detection result to said network connection state in the network connection is unavailable state, and the duration of the connection network is unavailable reaches a preset threshold generating a first instruction.

[0030]上述方案中,所述第一运行状态为应用程序在后台运行的状态。 [0030] In the above embodiment, the first operating state is a state of an application running in the background.

[0031]本发明实施例提供的信息处理方法及电子设备,所述方法包括:电子设备检测自身的网络连接状态,获得第一检测结果;当所述第一检测结果为所述电子设备处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0031] The information processing method and an electronic apparatus according to an embodiment of the present invention, the method comprising: detecting a network connection state of the electronic device itself, to obtain a first detection result; when the first detection result to the electronic device in the network connection unavailable state, to generate a first instruction; the first instruction execution control application in a first operating state corresponding to the end of the task process. 如此,采用本发明实施例的技术方案,检测到电子设备处于网络连接不可用状态时结束处于第一运行状态(例如处于后台运行状态)的应用程序结束对应的任务进程,即关闭处于后台运行状态的应用程序,大大降低了系统资源的消耗,以及降低电量的消耗,延长了电子设备内置电池的使用时长,提升了用户的体验。 Thus, using the technical solutions of the embodiments of the present invention, the end of the electronic device is detected in the first operating state when a network connection unavailable state (e.g. in the background running state) corresponding to the end of the application process tasks, i.e. in the closed state of the background applications, greatly reducing the consumption of system resources, and reduce power consumption, extend the duration of use of an electronic device built-in battery, enhance the user experience.

附图说明 BRIEF DESCRIPTION

[0032]图1为本发明实施例一的信息处理方法的流程示意图; [0032] FIG. 1 is a schematic flow of the information processing method according to an embodiment of the invention;

[0033]图2为本发明实施例二的信息处理方法的流程示意图; [0033] FIG. 2 is a schematic flow of the information processing method according to a second embodiment of the present invention;

[0034]图3为本发明实施例三的信息处理方法的流程示意图; [0034] FIG. 3 is a schematic flow of the information processing method according to a third embodiment of the present invention;

[0035]图4为本发明实施例四的信息处理方法的流程示意图; [0035] FIG. 4 is a schematic flow of the information processing method according to a fourth embodiment of the present invention;

[0036]图5为本发明实施例的电子设备的组成结构示意图一; Composition structure of an electronic apparatus according to embodiment [0036] FIG. 5 is a schematic view of the invention;

[0037]图6为本发明实施例的电子设备的组成结构示意图二; [0037] FIG. 6 embodiment the composition of the structure of the electronic apparatus of the embodiment schematic view of the present invention, two;

[0038]图7为本发明实施例的电子设备的组成结构示意图三。 [0038] FIG. 7 embodiment structure of the electronic device according to the composition of the present invention, a schematic three.

具体实施方式 Detailed ways

[0039]下面结合附图及具体实施例对本发明作进一步详细的说明。 [0039] Specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings and.

[0040] 实施例一 [0040] Example a

[0041]本发明实施例提供了一种信息处理方法,所述信息处理方法应用于电子设备中。 Embodiment there is provided an information processing method [0041] of the present invention, the information processing method applied to an electronic device. 图1为本发明实施例一的信息处理方法的流程示意图;如图1所示,所述方法包括: 1 a schematic flowchart of the information processing method according to one embodiment of the present invention; FIG. 1, the method comprising:

[0042]步骤101:电子设备检测自身的网络连接状态,获得第一检测结果。 [0042] Step 101: the electronic device detects the state of its network connection, to obtain a first detection result.

[0043]步骤102:当所述第一检测结果为所述电子设备处于网络连接不可用状态时,生成第一指令。 [0043] Step 102: when the first detection result to said electronic device is a network connection is unavailable, to generate a first instruction.

[0044]步骤103:执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0044] Step 103: the first instruction execution control application in a first operating state corresponding to the end of the task process.

[0045]本发明实施例的信息处理方法应用于电子设备中,所述电子设备具体为便携式电子设备,例如手机、平板电脑等。 The information processing method of an embodiment [0045] The present invention is applied to an electronic device, the electronic device particularly a portable electronic device, such as mobile phones, tablet computers and the like.

[0046]本实施例步骤101中,所述电子设备检测自身的网络连接状态,所述网络连接状态可包括网络连接可用状态和网络连接不可用状态。 101 [0046] Step embodiment of the present embodiment, the electronic device detects its network connection status, the network connection status may include a status of network connectivity is available and the network connection is unavailable state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) wireless network technology; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention.

[0047]通常情况下,所述电子设备均是通过自身的射频收发单元(具体为射频收发天线)传输数据,达到通过无线网络与其他设备通信的目的。 [0047] Typically, the electronic device by itself are radio frequency transceiver unit (specifically, the RF transceiver antenna) to transmit data, the purpose of communicating with other devices through a wireless network. 基于此,在本实施例中,作为一种实施方式,所述电子设备检测自身的网络连接状态,可通过检测自身的射频收发单元的数据传输情况;当检测到所述射频收发单元在预设时间范围内无数据传输时,可获得所述电子设备处于网络连接不可用状态的第一检测结果。 Based on this, in the present embodiment, as an embodiment, the electronic device detects the state of the network connection itself, can detect its own RF transceiver unit that data transmission; when it is detected in the preset radio transceiving unit when no data transmission time range, the obtained detection result of the electronic device is in a first state of the network connection is unavailable.

[0048]本实施例中,当所述电子设备检测到当前处于网络连接不可用状态时,生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0048] In this embodiment, when the electronic device detects the current when the network connection is unavailable, to generate a first instruction, the first instruction for the application is closed in the first operating state. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,步骤103中,执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, in step 103, instructions to control the execution of the first application in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0049]采用本发明实施例的技术方案,检测到电子设备处于网络连接不可用状态时结束处于第一运行状态(例如处于后台运行状态)的应用程序结束对应的任务进程,即关闭处于后台运行状态的应用程序,大大降低了系统资源的消耗,以及降低电量的消耗,延长了电子设备内置电池的使用时长,提升了用户的体验。 [0049] The technical solutions in the embodiments of the present invention, the end of the electronic device is detected in the first operating state when a network connection unavailable state (e.g. in the background running state) ends corresponding to the application task processes, i.e. the background is closed state of the application, greatly reducing the consumption of system resources, and reduce power consumption, extend the duration of use of an electronic device built-in battery, enhance the user experience.

[0050] 实施例二 [0050] Second Embodiment

[0051]本发明实施例提供了一种信息处理方法,所述信息处理方法应用于电子设备中。 Embodiment there is provided an information processing method [0051] of the present invention, the information processing method applied to an electronic device. 图2为本发明实施例二的信息处理方法的流程示意图;如图2所示,所述方法包括: 2 a schematic flow chart of the information processing method according to a second embodiment of the present invention; FIG. 2, the method comprising:

[0052]步骤201:电子设备检测自身的射频收发单元的数据传输情况。 [0052] Step 201: The electronic device case of detecting a data transmission RF transceiver unit itself.

[0053]步骤202:当检测到所述射频收发单元在预设时间范围内无数据传输时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 [0053] Step 202: when the detected radio-frequency transceiver means no data transmission within a preset period of time, the electronic device is to obtain a first detection result of a state of the network connection is unavailable.

[0054]步骤203:生成第一指令,执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0054] Step 203: generate a first instruction, the first instruction execution control application running in a first state corresponding to the end of the task process.

[0055]本发明实施例的信息处理方法应用于电子设备中,所述电子设备具体为便携式电子设备,例如手机、平板电脑等。 The information processing method of an embodiment [0055] The present invention is applied to an electronic device, the electronic device particularly a portable electronic device, such as mobile phones, tablet computers and the like.

[0056]本实施例步骤201中,所述电子设备自身的射频收发单元(即射频收发天线)包括所述电子设备自身用于数据传输的所有子单元(即子天线)。 [0056] Step 201 in the present embodiment, the electronic device's own radio transceiver unit (i.e., RF transceiver antenna) comprises all sub-units of the electronic device itself for data transmission (i.e., the sub-antenna). 通常情况下,所述电子设备均是通过自身的射频收发单元(具体为射频收发天线)传输数据,达到通过无线网络连接与其他设备通信的目的。 Typically, each electronic device by the radio frequency transceiver unit itself (specifically, the RF transceiver antenna) to transmit data, in order to connect a wireless network to communicate with other devices.

[0057]本实施例中,所述网络连接状态可包括网络连接可用状态和网络连接不可用状态。 [0057] In this embodiment, the network connection status may include a status of network connectivity is available and the network connection is unavailable state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围,例如蓝牙、全球定位系统(GPS)等等。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) art wireless network; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention, such as Bluetooth, global positioning system (GPS) and the like. 基于此,本发明实施例所述的射频收发单元包括用于通过3G/4G传输数据的第一射频收发子单元、用于WiFi传输数据的第二射频收发子单元以及其他用于传输数据的第三射频收发子单元等等。 Based on this, the RF transceiver unit according to the present invention includes a first embodiment of a second subunit WiFi RF transceiver for transmitting data and the other for transmitting data for a first RF transceiver subunit 3G / 4G data transmitted through, for three RF transceiver subunit like. 本实施例中,所述电子设备检测到所述射频收发单元在一段时间内(例如预设时间范围内)无数据传输时,可确定所述电子设备处于网络连接不可用状态。 In this embodiment, the electronic device to the RF transceiver unit detects a period of time (e.g., within a predetermined time) when no data transmission, the electronic device may determine that the network connection is unavailable.

[0058]本实施例中,当所述电子设备检测到当前处于网络连接不可用状态时,生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0058] In this embodiment, when the electronic device detects the current when the network connection is unavailable, to generate a first instruction, the first instruction for the application is closed in the first operating state. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,步骤203中,执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, in step 203, instructions to control the execution of the first application is in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0059]采用本发明实施例的技术方案,检测到电子设备处于网络连接不可用状态时结束处于第一运行状态(例如处于后台运行状态)的应用程序结束对应的任务进程,即关闭处于后台运行状态的应用程序,大大降低了系统资源的消耗,以及降低电量的消耗,延长了电子设备内置电池的使用时长,提升了用户的体验。 [0059] The technical solutions in the embodiments of the present invention, the end of the electronic device is detected in the first operating state when a network connection unavailable state (e.g. in the background running state) ends corresponding to the application task processes, i.e. the background is closed state of the application, greatly reducing the consumption of system resources, and reduce power consumption, extend the duration of use of an electronic device built-in battery, enhance the user experience.

[0060] 实施例三 [0060] Example three

[0061]本发明实施例提供了一种信息处理方法,所述信息处理方法应用于电子设备中。 Embodiment there is provided an information processing method [0061] of the present invention, the information processing method applied to an electronic device. 图3为本发明实施例三的信息处理方法的流程示意图;如图3所示,所述方法包括: FIG 3 is a schematic flow of the information processing method according to a third embodiment of the present invention; FIG. 3, the method comprising:

[0062]步骤301:电子设备检测自身的运行模式。 [0062] Step 301: the electronic device detects its own operating mode.

[0063]步骤302:当检测到处于第一运行模式时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 [0063] Step 302: when it is detected in the first operating mode, the electronic device is to obtain a first detection result of a state of the network connection is unavailable.

[0064]步骤303:生成第一指令,执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0064] Step 303: generate a first instruction, the first instruction execution control application running in a first state corresponding to the end of the task process.

[0065]本发明实施例的信息处理方法应用于电子设备中,所述电子设备具体为便携式电子设备,例如手机、平板电脑等。 The information processing method of an embodiment [0065] The present invention is applied to an electronic device, the electronic device particularly a portable electronic device, such as mobile phones, tablet computers and the like.

[0066]本实施例中,所述电子设备自身的网络连接状态可包括网络连接可用状态和网络连接不可用状态。 [0066] In this embodiment, the network connection state of the electronic device itself may include a network connection and a network connection is not available state by state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) wireless network technology; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention.

[0067]通常情况下,所述电子设备均是通过自身的射频收发单元(具体为射频收发天线)传输数据,达到通过无线网络与其他设备通信的目的。 [0067] Typically, the electronic device by itself are radio frequency transceiver unit (specifically, the RF transceiver antenna) to transmit data, the purpose of communicating with other devices through a wireless network. 通常情况下,所述电子设备中预先配置功能按键,所述功能按键一方面能够控制所述射频收发单元处于开启状态或处于关闭状态;相应的,在所述电子设备的运行过程中,所述射频收发单元的状态可对应所述电子设备的运行模式,则所述功能按键另一方面可控制所述电子设备的运行模式的切换。 Typically, the electronic device preconfigured function keys, the function keys on the one hand capable of controlling the RF transceiver unit in the ON state or in the closed state; correspondingly, during operation of the electronic device, the RF transceiver unit state may correspond to the operating mode of the electronic device, then the function keys on the other hand controls the switching mode of operation of the electronic device.

[0068]基于此,本实施例中,所述电子设备可通过检测针对特定功能按键的输入操作确定自身的运行模式;所述第一运行模式例如“飞行模式”或“航空模式” ο当检测到所述电子设备处于“飞行模式”或“航空模式”时,可确定所述电子设备处于网络连接不可用状态。 [0068] Based on this, in the present embodiment, the electronic device may determine itself by detecting the input operation of the operating mode for a particular function key; the first mode of operation such as "flight mode" or "air mode" when the detection o when the electronic device is in the "flight mode" or "air mode", the electronic device may determine that the network connection is unavailable.

[0069]本实施例中,当所述电子设备检测到当前处于网络连接不可用状态时,生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0069] In this embodiment, when the electronic device detects the current when the network connection is unavailable, to generate a first instruction, the first instruction for the application is closed in the first operating state. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,步骤303中,执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, step 303, instructions to control the execution of the first application is a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0070]采用本发明实施例的技术方案,检测到电子设备处于网络连接不可用状态时结束处于第一运行状态(例如处于后台运行状态)的应用程序结束对应的任务进程,即关闭处于后台运行状态的应用程序,大大降低了系统资源的消耗,以及降低电量的消耗,延长了电子设备内置电池的使用时长,提升了用户的体验。 [0070] The technical solutions in the embodiments of the present invention, the end of the electronic device is detected in the first operating state when a network connection unavailable state (e.g. in the background running state) ends corresponding to the application task processes, i.e. the background is closed state of the application, greatly reducing the consumption of system resources, and reduce power consumption, extend the duration of use of an electronic device built-in battery, enhance the user experience.

[0071]实施例四 [0071] Fourth Embodiment

[0072]本发明实施例还提供了一种信息处理方法,所述信息处理方法应用于电子设备中。 Example [0072] The present invention also provides an information processing method, said information processing method applied to an electronic device. 图4为本发明实施例四的信息处理方法的流程示意图;如图4所示,所述方法包括: FIG 4 is a schematic flowchart of the information processing method according to a fourth embodiment of the present invention;, shown in Figure 4, the method comprising:

[0073]步骤401:电子设备检测自身的显示单元的显示状态,获得第二检测结果。 [0073] Step 401: detecting the display state of the electronic device's own display unit, to obtain a second detection result.

[0074]步骤402:当所述第二检测结果为所述显示单元处于关闭状态时,生成第二指令。 [0074] Step 402: when the second detection result to the display unit in a closed state, generating a second instruction.

[0075]步骤403:执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0075] Step 403: the second instruction execution control application in a first operating state corresponding to the end of the task process.

[0076]本发明实施例的信息处理方法应用于电子设备中,所述电子设备具体为便携式电子设备,例如手机、平板电脑等。 The information processing method of an embodiment [0076] The present invention is applied to an electronic device, the electronic device particularly a portable electronic device, such as mobile phones, tablet computers and the like.

[0077] 通常情况下,当电子设备的显示单元(例如显示屏)处于开启状态(即显示屏点亮)时,用户才可对电子设备进行操作,例如激活各种程序等等。 [0077] Normally, when the display unit (e.g., display) of the electronic device in an open state (i.e., display lights), the user before operation of the electronic device, for example, activate various programs and the like. 当所述电子设备的显示单元(例如显示屏)处于关闭状态(即显示屏熄灭)时,用户通常不会、也不便对电子设备中的任务(这里的任务可以理解为处于前台运行的应用程序以及处于后台运行的应用程序)进行操作。 When the display unit (e.g., display) of the electronic device is in a closed state (i.e., off screen), users often do not, then the electronic device is not a task (task here is to be understood that the application running in the foreground as well as in applications running in the background) to operate. 基于此,本实施例步骤401和步骤402中,所述电子设备检测自身的显示单元的显示状态,确定所述显示状态处于关闭状态时,生成第二指令;所述第二指令用于关闭处于第一运行状态的应用程序。 Based on this, for example, steps 401 and 402 in the present embodiment, the display state of the electronic apparatus detects the display unit itself, determines the display state in a closed state, to generate a second instruction; for closing the second instruction is the first application running state. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,步骤403中,执行所述第二指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, step 403, instructions to control the execution of the second application program is in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0078]采用本发明实施例的技术方案,检测到电子设备额显示单元(即显示屏)处于关闭状态时结束处于第一运行状态(例如处于后台运行状态)的应用程序结束对应的任务进程,即关闭处于后台运行状态的应用程序,大大降低了系统资源的消耗,以及降低电量的消耗,延长了电子设备内置电池的使用时长,提升了用户的体验。 [0078] The technical solutions in the embodiments of the present invention, the electronic device detects the amount of the display unit (i.e., screen) at the end of the first operating state is a closed state (e.g. in the background running state) corresponding to the end of the application process tasks, Close the application that is running in the background of state, greatly reduce the consumption of system resources, and reduce power consumption, extend the duration of use of an electronic device built-in battery, enhance the user experience.

[0079]实施例五 [0079] Embodiment V

[0080]本发明实施例还提供了一种电子设备中。 Example [0080] The present invention further provides an electronic device. 图5为本发明实施例的电子设备的组成结构示意图一;如图5所示,所述电子设备包括:检测单元51和执行单元52;其中, Composition structure of the electronic apparatus according to a schematic embodiment of the present invention, FIG. 5; FIG. 5, the electronic device comprising: a detection unit 51 and execution unit 52; wherein,

[0081]所述检测单元51,用于检测自身的网络连接状态,获得第一检测结果; [0081] The detecting unit 51 for detecting a network connection status itself, to obtain a first detection result;

[0082]所述执行单元52,用于当所述检测单元51获得的第一检测结果为处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0082] The execution unit 52, when said first detection result obtained by the detection unit 51 is connected to a network in an unusable state, to generate a first instruction; executing the first instruction in a first operating state control application process corresponding to the end of the task.

[0083]本实施例中,所述检测单元51检测自身的网络连接状态,所述网络连接状态可包括网络连接可用状态和网络连接不可用状态。 [0083] In this embodiment, the detection unit 51 detects the state of its network connection, the network connection status may include a status of network connectivity is available and the network connection is unavailable state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) wireless network technology; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention.

[0084]通常情况下,所述电子设备均是通过自身的射频收发单元53(具体为射频收发天线)传输数据,达到通过无线网络与其他设备通信的目的。 [0084] Typically, the electronic device by itself are RF transceiver unit 53 (specifically, the RF transceiver antenna) to transmit data, to achieve the purpose of communication via a wireless network with other devices. 基于此,在本实施例中,作为一种实施方式,所述检测单元51检测自身的网络连接状态,可通过检测射频收发单元53的数据传输情况;当检测到所述射频收发单元53在预设时间范围内无数据传输时,可获得处于网络连接不可用状态的第一检测结果。 Based on this, in the present embodiment, as an embodiment, the detecting means 51 detects its network connection status, data can be transmitted by detecting the RF transceiver unit 53; when detecting the RF transceiver unit 53 in the pre- when no data transmission within a set time range, the first detection result obtained in the network connection is unavailable.

[0085]本实施例中,当所述检测单元51检测到当前处于网络连接不可用状态时,生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0085] In this embodiment, when the detection unit 51 detects that the current network connection is in the unavailable state, generating a first instruction, the first instruction for the application is closed in the first operating state. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,所述执行单元52执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, the execution of the first instruction execution unit 52 to control the application program in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0086]本领域技术人员应当理解,本发明实施例的电子设备中各处理单元的功能,可参照前述信息处理方法的相关描述而理解,本发明实施例的电子设备中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。 [0086] skilled in the art will appreciate that functions of the electronic device according to each processing unit in the embodiment of the present invention may be understood with reference to the related description of the preceding information processing method, each processing unit of the electronic apparatus according to the embodiment of the present invention, by implement the functions described in the embodiment of the present invention an analog circuit is realized, can be realized by performing a function described in the software running on the intelligent terminal embodiment of the present invention.

[0087]实施例六 [0087] Sixth Embodiment

[0088]本发明实施例还提供了一种电子设备中。 [0088] Embodiments of the present invention further provides an electronic device. 如图5所示,所述电子设备包括:检测单元51和执行单元52;其中, 5, the electronic device comprising: a detection unit 51 and execution unit 52; wherein,

[0089]所述检测单元51,用于检测运行模式,当检测到处于第一运行模式时,获得处于网络连接不可用状态的第一检测结果; [0089] The detecting unit 51 for detecting the operation mode, when operating in a first mode is detected, the detection result obtained in the first network connection unavailable state;

[0090]所述执行单元52,用于当所述检测单元51获得的第一检测结果为处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0090] The execution unit 52, when said first detection result obtained by the detection unit 51 is connected to a network in an unusable state, to generate a first instruction; executing the first instruction in a first operating state control application process corresponding to the end of the task.

[0091]本实施例中,所述电子设备自身的网络连接状态可包括网络连接可用状态和网络连接不可用状态。 [0091] In this embodiment, the network connection state of the electronic device itself may include a network connection and a network connection is not available state by state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) wireless network technology; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention.

[0092]通常情况下,所述电子设备均是通过自身的射频收发单元53(具体为射频收发天线)传输数据,达到通过无线网络与其他设备通信的目的。 [0092] Typically, the electronic device by itself are RF transceiver unit 53 (specifically, the RF transceiver antenna) to transmit data, to achieve the purpose of communication via a wireless network with other devices. 通常情况下,所述电子设备中预先配置功能按键,所述功能按键一方面能够控制所述射频收发单元53处于开启状态或处于关闭状态;相应的,在所述电子设备的运行过程中,所述射频收发单元53的状态可对应所述电子设备的运行模式,则所述功能按键另一方面可控制所述电子设备的运行模式的切换。 Typically, the electronic device preconfigured function keys, the function keys on the one hand capable of controlling the RF transceiver unit 53 is in the ON state or in the closed state; correspondingly, during operation of the electronic device, the state of said RF transceiver unit 53 may correspond to the operating mode of the electronic device, said operation mode switching function key aspect of the electronic device can be controlled.

[0093]基于此,本实施例中,所述检测单元51可通过检测针对特定功能按键的输入操作确定自身的运行模式;所述第一运行模式例如“飞行模式”或“航空模式” ο当检测到所述电子设备处于“飞行模式”或“航空模式”时,可确定所述电子设备处于网络连接不可用状态。 [0093] Based on this, in the present embodiment, the detection unit 51 may determine the operating mode of its own by detecting the input operation for a specific function key; the first mode of operation such as "flight mode" or "air mode" when o when detecting that the electronic device is in the "flight mode" or "air mode", the electronic device may determine that the network connection is unavailable.

[0094]本实施例中,当所述检测单元51检测到当前处于网络连接不可用状态时,所述执行单元52生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0094] In this embodiment, when the detection unit 51 detects that the current network connection is unavailable, the execution unit 52 generates a first instruction, the first instruction for a first application running in a closed state, program. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,所述执行单元52执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, the execution of the first instruction execution unit 52 to control the application program in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0095]本领域技术人员应当理解,本发明实施例的电子设备中各处理单元的功能,可参照前述信息处理方法的相关描述而理解,本发明实施例的电子设备中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。 [0095] skilled in the art will appreciate that functions of the electronic device according to each processing unit in the embodiment of the present invention may be understood with reference to the related description of the preceding information processing method, each processing unit of the electronic apparatus according to the embodiment of the present invention, by implement the functions described in the embodiment of the present invention an analog circuit is realized, can be realized by performing a function described in the software running on the intelligent terminal embodiment of the present invention.

[0096] 实施例七 [0096] Seventh Embodiment

[0097]本发明实施例还提供了一种电子设备中。 Example [0097] The present invention further provides an electronic device. 图6为本发明实施例的电子设备的组成结构示意图二;如图6所示,所述电子设备包括:射频收发单元53、检测单元51和执行单元52;其中, Embodiment 6 FIG composition structure of an electronic device according to the present invention, a schematic view of two; shown in FIG. 6, the electronic device comprising: a radio transceiver unit 53, detection unit 51 and execution unit 52; wherein,

[0098]所述检测单元51,用于检测所述射频收发单元53的数据传输情况;当检测到所述射频收发单元53在预设时间范围内无数据传输时,获得处于网络连接不可用状态的第一检测结果; [0098] The detecting unit 51 for detecting an RF transceiver unit 53 of the data transmission condition; when the detected RF transceiver unit 53 within a preset time when no data transmission is obtained in the network connection is unavailable state a first detection result;

[0099]所述执行单元52,用于当所述检测单元51获得的第一检测结果为处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0099] The execution unit 52, when said first detection result obtained by the detection unit 51 is connected to a network in an unusable state, to generate a first instruction; executing the first instruction in a first operating state control application process corresponding to the end of the task.

[0100]本实施例中,所述电子设备自身的射频收发单元53(即射频收发天线)包括所述电子设备自身用于数据传输的所有子单元(即子天线)。 [0100] In this embodiment, the electronic device radio transceiver unit 53 itself (i.e., RF transceiver antenna) comprises all sub-units of the electronic device itself for data transmission (i.e., the sub-antenna). 通常情况下,所述电子设备均是通过自身的射频收发单元53(具体为射频收发天线)传输数据,达到通过无线网络连接与其他设备通信的目的。 Typically, the electronic device by itself are RF transceiver unit 53 (specifically, the RF transceiver antenna) to transmit data, in order to connect a wireless network to communicate with other devices.

[0101]本实施例中,所述网络连接状态可包括网络连接可用状态和网络连接不可用状态。 [0101] In this embodiment, the network connection status may include a status of network connectivity is available and the network connection is unavailable state. 在本实施例中,所述网络连接不可用状态表示所述电子设备不支持通过无线网络与其他设备通信;相应的,所述网络连接可用状态表示所述电子设备支持通过至少一种无线网络与其他设备通信;其中,所述无线网络可以为基于第三代移动通信技术(3G)或第四代移动通信技术(4G)的无线网络,所述无线网络也可以是基于无线保真(WiFi)技术的无线网络;当然,所述无线网络不限于上述类型,所有电子设备中支持的无线网络类型均属于本发明实施例的保护范围,例如蓝牙、全球定位系统(GPS)等等。 In the present embodiment, the network connection is unavailable status indicating that the electronic device does not support the communication with other wireless network devices; correspondingly, the available network connection status indicates that the electronic device supported by at least one wireless network communicate with other devices; wherein, the wireless network may be based on the third generation mobile communication technology (3G) or fourth generation mobile communication technology (4G) wireless network, the wireless network may be based on the wireless fidelity (WiFi) art wireless network; of course, the wireless network is not limited to the type described above, all electronic devices in the wireless network supports all types of embodiment fall within the scope of the present invention, such as Bluetooth, global positioning system (GPS) and the like. 基于此,本发明实施例所述的射频收发单元53包括用于通过3G/4G传输数据的第一射频收发子单元、用于WiFi传输数据的第二射频收发子单元以及其他用于传输数据的第三射频收发子单元等等。 Based on this, the embodiment of RF transceiver unit 53 of the embodiment of the present invention comprising means for 3G / 4G subunit first RF transceiver for transmitting data, a second subunit WiFi RF transceiver for transmitting data and for transmitting data to other The third sub-unit, etc. RF transceiver. 本实施例中,所述检测单元51检测到所述射频收发单元53在一段时间内(例如预设时间范围内)无数据传输时,可确定处于网络连接不可用状态。 In this embodiment, the detecting unit 51 detects the RF transceiver unit 53 (e.g., within a predetermined time) when no data transmission can be determined over time in the state of the network connection is unavailable.

[0102]本实施例中,当所述检测单元51检测到当前处于网络连接不可用状态时,所述执行单元52生成第一指令,所述第一指令用于关闭处于第一运行状态的应用程序。 [0102] In this embodiment, when the detection unit 51 detects that the current network connection is unavailable, the execution unit 52 generates a first instruction, the first instruction for a first application running in a closed state, program. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,所述执行单元52执行所述第一指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, the execution of the first instruction execution unit 52 to control the application program in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0103]本领域技术人员应当理解,本发明实施例的电子设备中各处理单元的功能,可参照前述信息处理方法的相关描述而理解,本发明实施例的电子设备中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。 [0103] skilled in the art will appreciate that functions of the electronic device according to each processing unit in the embodiment of the present invention may be understood with reference to the related description of the preceding information processing method, each processing unit of the electronic apparatus according to the embodiment of the present invention, by implement the functions described in the embodiment of the present invention an analog circuit is realized, can be realized by performing a function described in the software running on the intelligent terminal embodiment of the present invention.

[0104]实施例八 [0104] Example eight

[0105]本发明实施例还提供了一种电子设备中。 Example [0105] The present invention further provides an electronic device. 图7为本发明实施例的电子设备的组成结构示意图三;如图7所示,所述电子设备包括:显示单元54、检测单元51和执行单元52;其中, Composition structure of the electronic apparatus according to a schematic third embodiment of the present invention FIG. 7; FIG. 7, the electronic device comprising: a display unit 54, detection unit 51 and execution unit 52; wherein,

[0106]所述检测单元51,用于检测自身的网络连接状态之前,检测所述显示单元54的显示状态,获得第二检测结果; [0106] The detecting unit 51, before the detection itself for network connection status, detecting the status display unit 54, obtain a second detection result;

[0107]所述执行单元52,用于当所述检测单元51获得的第二检测结果为所述显示单元54处于关闭状态时,生成第二指令;执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 [0107] The execution unit 52, the second detection result when the detecting unit 51 is obtained when the display unit 54 in the closed state, to generate a second instruction; execute the second instruction in the first control operation application state of the end of the corresponding task process.

[0108] 通常情况下,当电子设备的显示单元54(例如显示屏)处于开启状态(即显示屏点亮)时,用户才可对电子设备进行操作,例如激活各种程序等等。 When [0108] Normally, when the display unit 54 (e.g. display) of the electronic device in an open state (i.e., display lights), the user before operation of the electronic device, for example, activate various programs and the like. 当所述电子设备的显示单元54(例如显示屏)处于关闭状态(即显示屏熄灭)时,用户通常不会、也不便对电子设备中的任务(这里的任务可以理解为处于前台运行的应用程序以及处于后台运行的应用程序)进行操作。 When the display unit 54 (e.g. display) of the electronic device is in a closed state (i.e., off screen), users often do not, then the electronic device is not a task (task here is to be understood that an application running in the foreground program and the application is running in the background) to operate. 基于此,所述检测单元51检测自身的显示单元54的显示状态,确定所述显示状态处于关闭状态时,所述执行单元52生成第二指令;所述第二指令用于关闭处于第一运行状态的应用程序。 Based on this, the detection unit 51 detects the display state of the display unit 54 itself, determining the display state in a closed state, the execution unit 52 generates a second instruction; for closing the second instruction in the first operation state of the application. 其中,所述第一运行状态为应用程序在后台运行的状态;所述应用程序在后台运行时会占用电子设备的资源(例如内存、CPU等资源),也会不论当前的网络状态是否可用进行数据同步、心跳等操作。 Wherein the first operating state to the state of an application running in the background; footprint of the application program of the electronic device (e.g. memory, CPU resources, etc.) running in the background, regardless of the current state of the network also is available for data synchronization, such as a heartbeat operation. 基于此,所述执行单元52执行所述第二指令以控制处于第一运行状态的应用程序结束对应的任务进程,从而降低了电子设备的系统资源消耗,又能降低电子设备的耗电量。 Based on this, the execution of the second instruction execution unit 52 to control the application program in a first operating state corresponding to the end of the task process, thereby reducing consumption of system resources of the electronic device, but also reduce the power consumption of the electronic device.

[0109]本领域技术人员应当理解,本发明实施例的电子设备中各处理单元的功能,可参照前述信息处理方法的相关描述而理解,本发明实施例的电子设备中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。 [0109] skilled in the art will appreciate that functions of the electronic device according to each processing unit in the embodiment of the present invention may be understood with reference to the related description of the preceding information processing method, each processing unit of the electronic apparatus according to the embodiment of the present invention, by implement the functions described in the embodiment of the present invention an analog circuit is realized, can be realized by performing a function described in the software running on the intelligent terminal embodiment of the present invention.

[0110]在本发明实施例五至实施例八中,所述电子设备具体为便携式电子设备,例如手机、平板电脑等。 [0110] In the present invention according to the fifth embodiment to the eighth embodiment, the electronic device particularly a portable electronic device, such as mobile phones, tablet computers and the like. 所述电子设备中的检测单元51和执行单元52,在实际应用中均可由所述电子设备中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,DigitalSignal Processor)或可编程门阵列(FPGA,Field — Programmable Gate Array)实现;所述电子设备中的射频收发单元53,在实际应用中可由所述电子设备中的收发天线实现;所述电子设备中的显示单元54,在实际应用中可由所述电子设备的显示屏或显示器实现。 Said electronic device detecting unit 51 and execution unit 52, in the practical application by the electronic device may be a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, DigitalSignal Processor) or programmable gate array (FPGA, Field - Programmable gate array) implemented; the electronic device RF transceiver unit 53, in the practical application by the electronic device to achieve a transceiver antenna; display unit of the electronic device 54, in the actual application may be a display screen or an electronic device implementation.

[0111]在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。 [0111] In several embodiments provided herein present embodiment, it should be understood that the apparatus and methods disclosed may be implemented in other manners. 以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。 Example apparatus described above is merely exemplary, for example, the unit division is merely logical functions, can have other division, such as the actual implementation: a plurality of units or components may be combined, or It can be integrated into another system, or some features may be ignored or not performed. 另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。 Further, the various components shown or discussed coupling, or direct coupling between each other, or the communication connection may be indirectly coupled or communicating through some interfaces, devices or units may be electrical, mechanical, or other form of.

[0112]上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。 [0112] As the above-described means may be separate components, or may not be physically separated, as the unit display member may be, or may not be physical units, i.e. may be located in one place and to be distributed to a plurality of networks unit; can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0113]另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。 [0113] Further, in the embodiment of the present invention, each of the functional units may be all integrated in one processing unit, each unit may be separately as a unit, may be two or more units are integrated into one unit ; and the integrated unit may take the form of hardware, software plus hardware functional unit forms may also be implemented.

[0114]本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(R0M,Read_0nly Memory)、随机存取存储器(RAM ,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 [0114] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a mobile storage device, a read only memory (R0M, Read_0nly memory), a random access memory (RAM, random access memory), a magnetic disk or optical disk, and other kinds of media capable of storing program codes.

[0115]或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 [0115] Alternatively, the present invention if the above-described integrated unit implemented as a separate product sold or used in the form of a software functional module, may be stored in a computer-readable storage medium. 基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。 Based on such understanding, the technical solutions of the embodiments of the present invention essentially, or the part contributing to the prior art may be embodied in a software product, which computer software product is stored in a storage medium and includes several instructions to enable a computer device (may be a personal computer, a server, or network device) to execute all or part of the methods of the various embodiments of the present invention. 而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: any medium may store program codes removable storage devices, ROM, RAM, magnetic disk, or optical disk.

[0116]以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0116] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应以所述权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (12)

1.一种信息处理方法,应用于电子设备中;所述方法包括: 电子设备检测自身的网络连接状态,获得第一检测结果; 当所述第一检测结果为所述电子设备处于网络连接不可用状态时,生成第一指令; 执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 1. An information processing method applied to an electronic device; the method comprising: detecting a network connection state of the electronic device itself, to obtain a first detection result; when the first detection result to said network connection is unavailable in the electronic device when a state, to generate a first instruction; the first instruction execution control application in a first operating state corresponding to the end of the task process.
2.根据权利要求1所述的方法,其特征在于,所述电子设备检测自身的网络连接状态之前,所述方法还包括: 所述电子设备检测自身的显示单元的显示状态,获得第二检测结果; 当所述第二检测结果为所述显示单元处于关闭状态时,生成第二指令; 执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 2. The method according to claim 1, wherein, prior to said electronic device detecting a network connection state of its own, said method further comprising: detecting the display state of the electronic device's own display unit, to obtain a second detection result; when the second detection result to the display unit in a closed state, to generate a second instruction; the second instruction execution control application in a first operating state corresponding to the end of the task process.
3.根据权利要求1所述的方法,其特征在于,所述电子设备检测自身的网络连接状态,获得第一检测结果,包括: 所述电子设备检测自身的射频收发单元的数据传输情况;当检测到所述射频收发单元在预设时间范围内无数据传输时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 3. The method according to claim 1, wherein said electronic device detecting a network connection state of itself, to obtain a first detection result, comprising: the electronic device case of detecting a data transmission unit, a radio frequency transceiver itself; if the RF transceiver is detected within a preset unit time when no data transmission, the electronic device is to obtain a first detection result of a state of the network connection is unavailable.
4.根据权利要求1所述的方法,其特征在于,所述电子设备检测自身的网络连接状态,获得第一检测结果,包括: 所述电子设备检测自身的运行模式,当检测到处于第一运行模式时,获得所述电子设备处于网络连接不可用状态的第一检测结果。 4. The method according to claim 1, wherein said electronic device detecting a network connection state of itself, to obtain a first detection result, comprising: the electronic device detects the self operation mode, when it is detected in the first when the operating mode, the electronic device is to obtain a first detection result of a state of the network connection is unavailable.
5.根据权利要求1所述的方法,其特征在于,当所述第一检测结果为所述网络连接状态处于网络连接不可用状态时,生成第一指令,包括: 当所述第一检测结果为所述网络连接状态处于网络连接不可用状态、且所述网络连接不可用状态的持续时间达到预设阈值时,生成第一指令。 The method according to claim 1, wherein, when the first detection result to said network connection status of a network connection is unavailable, to generate a first instruction, comprising: when the first detection result to the network connection state is in the state of network connection is unavailable, and the network connection is unavailable reaches a preset threshold for the duration of a state, generating a first instruction.
6.根据权利要求1所述的方法,其特征在于,所述第一运行状态为应用程序在后台运行的状态。 6. The method according to claim 1, wherein said first state is a state of an application running in the background.
7.一种电子设备,其特征在于,所述电子设备包括:检测单元和执行单元;其中, 所述检测单元,用于检测自身的网络连接状态,获得第一检测结果; 所述执行单元,用于当所述检测单元获得的第一检测结果为处于网络连接不可用状态时,生成第一指令;执行所述第一指令控制处于第一运行状态的应用程序结束对应的任务进程。 An electronic apparatus, wherein, said electronic device comprising: a detecting unit and an execution unit; wherein the detection means for detecting a network connection state itself, to obtain a first detection result; the execution unit, for, when the first detection result obtained by the detection unit is in the network connection is unavailable, to generate a first instruction; the first instruction execution control application in a first operating state corresponding to the end of the task process.
8.根据权利要求7所述的电子设备,其特征在于,所述电子设备还包括显示单元; 所述检测单元,还用于检测自身的网络连接状态之前,检测所述显示单元的显示状态,获得第二检测结果; 所述执行单元,还用于当所述检测单元获得的第二检测结果为所述显示单元处于关闭状态时,生成第二指令;执行所述第二指令控制处于第一运行状态的应用程序结束对应的任务进程。 8. The electronic device according to claim 7, wherein the electronic device further includes a display unit; the detection unit is further configured to detect its own previous network connection status, detecting a display state of the cell, obtain a second detection result; said execution unit is further configured to, when the second detection result obtained by the detection unit to the display unit in a closed state, to generate a second instruction; execute the second instruction in the first control applications running state of the end of the corresponding task process.
9.根据权利要求7所述的电子设备,其特征在于,所述电子设备还包括射频收发单元; 所述检测单元,用于检测所述射频收发单元的数据传输情况;当检测到所述射频收发单元在预设时间范围内无数据传输时,获得处于网络连接不可用状态的第一检测结果。 9. The electronic device according to claim 7, wherein the electronic device further comprises a radio frequency transceiver means; said detecting means, for detecting a data transmission condition of the radio frequency transceiver unit; when the detected RF transceiving unit within a preset time when no data transmission, a first detection result obtained in the network connection is unavailable.
10.根据权利要求7所述的电子设备,其特征在于,所述检测单元,用于检测运行模式,当检测到处于第一运行模式时,获得处于网络连接不可用状态的第一检测结果。 10. The electronic device according to claim 7, wherein said detecting means, for detecting a mode of operation, when it is detected in the first operating mode, the detection result obtained in the first network connection unavailable state.
11.根据权利要求7所述的电子设备,其特征在于,所述执行单元,用于当所述第一检测结果为所述网络连接状态处于网络连接不可用状态、且所述网络连接不可用状态的持续时间达到预设阈值时,生成第一指令。 11. The electronic device according to claim 7, wherein the execution unit, when the first detection result to said network connection state in the network connection is unavailable state, and the network connection is unavailable when the duration of a state reaches a preset threshold, generate a first instruction.
12.根据权利要求7所述的电子设备,其特征在于,所述第一运行状态为应用程序在后台运行的状态。 12. The electronic device according to claim 7, wherein said first state is a state of an application running in the background.
CN201610159067.9A 2016-03-18 2016-03-18 Information processing method and electronic device CN105867583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610159067.9A CN105867583A (en) 2016-03-18 2016-03-18 Information processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610159067.9A CN105867583A (en) 2016-03-18 2016-03-18 Information processing method and electronic device

Publications (1)

Publication Number Publication Date
CN105867583A true CN105867583A (en) 2016-08-17

Family

ID=56624691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610159067.9A CN105867583A (en) 2016-03-18 2016-03-18 Information processing method and electronic device

Country Status (1)

Country Link
CN (1) CN105867583A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060005240A1 (en) * 2004-06-30 2006-01-05 Prabakar Sundarrajan System and method for establishing a virtual private network
CN103902011A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic device controlling method and electronic device
CN104657163A (en) * 2013-11-22 2015-05-27 上海斐讯数据通信技术有限公司 Method for opening and closing networking application program and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060005240A1 (en) * 2004-06-30 2006-01-05 Prabakar Sundarrajan System and method for establishing a virtual private network
CN103902011A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic device controlling method and electronic device
CN104657163A (en) * 2013-11-22 2015-05-27 上海斐讯数据通信技术有限公司 Method for opening and closing networking application program and electronic equipment

Similar Documents

Publication Publication Date Title
US20110296418A1 (en) Method and apparatus for managing an application being executed in a portable terminal
US9713174B2 (en) Connection tethering and service remoting
US8588868B2 (en) Communication terminal and computer-readable storage medium
KR20140037673A (en) Apparatas and method for changing a connection state of network in an electronic device
RU2691640C2 (en) Method and apparatus for reducing energy consumption in mobile electronic device
CN103327102A (en) Application program recommending method and device
EP2733995A1 (en) Control method and device for awaking intelligent terminal
US20150126117A1 (en) Intelligent management of a plurality of communications links
KR20120105519A (en) System and method for asynchronously and independently controlling core clocks in a multicore central processing unit
CN105281819A (en) Antenna switching method and terminal
CN105354093A (en) Memory management method and a mobile terminal
CN102799481B (en) Method and device for switching modes on terminal
KR101423409B1 (en) Method and apparatus for performing energy management via sub-system
US20150065035A1 (en) Method and apparatus for providing user with information received by electronic device
CN104516479A (en) Mobile equipment power saving control method, equipment and system
US20130072260A1 (en) Methods and apparatuses for facilitating sharing device connections
CN102420911A (en) Switching device and switching method for dual systems of smart phone
CN104219377B (en) The control method and mobile terminal of the antenna of mobile terminal
US20150163232A1 (en) Method, device and system for detecting malware in a mobile terminal
TW201416870A (en) Dual-operating-system architecture for sharing USB devices, and method for sharing USB devices in a dual-operating-system architecture
CN103458124B (en) Shutdown processing method of a terminal apparatus and the terminal apparatus
CN105306682A (en) Method and device for automatically disconnecting network connection
JP2012222814A (en) Method and apparatus for detecting user presence
CN104383681A (en) Game process control method and device as well as mobile terminal
KR20150080446A (en) Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination