Abstract:
A task management method and device where the method includes determining, according to a foreground task, a first scenario corresponding to the foreground task, searching for at least one background task corresponding to the first scenario when the first scenario corresponding to the foreground task is in a first list, where the first list includes a scenario in which task limitation is allowed, and performing limitation processing on the at least one background task corresponding to the first scenario, where the limitation processing refers to processing for reducing system resource usage.
Abstract:
A method and device for adding a menu item of a third-party application to a local menu of a mobile phone without modifying an ANDROID platform code includes, receiving a request for opening a local menu, where the request carries a menu identifier (ID), and creating a local menu corresponding to the menu ID, obtaining according to the menu ID, in a stored correspondence between a menu item of a third-party application and the menu ID, a menu item of a corresponding third-party application, and adding the menu item of the third-party application to the local menu, and displaying the local menu to which the menu item of the third-party application is added.
Abstract:
A task management method and device where the method may include determining, according to a foreground task, a first scenario corresponding to the foreground task, searching for at least one background task corresponding to the first scenario, when the first scenario corresponding to the foreground task is in a first list, where the first list includes a scenario in which task limitation is allowed, and performing limitation processing on the at least one background task corresponding to the first scenario, where the limitation processing refers to processing for reducing system resource usage, and the method may reduce power consumption and power loss of a device.
Abstract:
A method and device for adding a menu item of a third-party application to a local menu of a mobile phone without modifying an ANDROID platform code includes, receiving a request for opening a local menu, where the request carries a menu identifier (ID), and creating a local menu corresponding to the menu ID, obtaining according to the menu ID, in a stored correspondence between a menu item of a third-party application and the menu ID, a menu item of a corresponding third-party application, and adding the menu item of the third-party application to the local menu, and displaying the local menu to which the menu item of the third-party application is added.
Abstract:
A method and device for adding a menu item to an Android menu are provided. The method includes: receiving a request for opening a local menu, where the request carries a menu ID, and creating a local menu corresponding to the menu ID; obtaining according to the menu ID, in a stored correspondence between a menu item of a third-party application and the menu ID, a menu item of a corresponding third-party application; and adding the menu item of the third-party application to the local menu, and displaying the local menu to which the menu item of the third-party application is added. The device includes a first creating module, an obtaining module, and an adding module. The present invention is capable of adding a menu item of a third-party application to a local menu of a mobile phone without modifying an Android platform code.
Abstract:
A task management method and device where the method includes determining, according to a foreground task, a first scenario corresponding to the foreground task, searching for at least one background task corresponding to the first scenario when the first scenario corresponding to the foreground task is in a first list, where the first list includes a scenario in which task limitation is allowed, and performing limitation processing on the at least one background task corresponding to the first scenario, where the limitation processing refers to processing for reducing system resource usage.
Abstract:
A method and device for adding a menu item to an Android menu are provided. The method includes: receiving a request for opening a local menu, where the request carries a menu ID, and creating a local menu corresponding to the menu ID; obtaining according to the menu ID, in a stored correspondence between a menu item of a third-party application and the menu ID, a menu item of a corresponding third-party application; and adding the menu item of the third-party application to the local menu, and displaying the local menu to which the menu item of the third-party application is added. The device includes a first creating module, an obtaining module, and an adding module. The present invention is capable of adding a menu item of a third-party application to a local menu of a mobile phone without modifying an Android platform code.
Abstract:
A task management method and device where the method includes determining, according to a foreground task, a first scenario corresponding to the foreground task, searching for at least one background task corresponding to the first scenario when the first scenario corresponding to the foreground task is in a first list, where the first list includes a scenario in which task limitation is allowed, and performing limitation processing on the at least one background task corresponding to the first scenario, where the limitation processing refers to processing for reducing system resource usage.
Abstract:
A task management method and device where the method may include determining, according to a foreground task, a first scenario corresponding to the foreground task, searching for at least one background task corresponding to the first scenario, when the first scenario corresponding to the foreground task is in a first list, where the first list includes a scenario in which task limitation is allowed, and performing limitation processing on the at least one background task corresponding to the first scenario, where the limitation processing refers to processing for reducing system resource usage, and the method may reduce power consumption and power loss of a device.
Abstract:
A control method for a Wi-Fi device in a terminal, including acquiring, in a moving process of the terminal, first location information at a first moment, second location information at a second moment, and coverage of each of Wi-Fi access points corresponding to each of all Wi-Fi access point identifiers stored in the terminal; and triggering turning-off or turning-on of the Wi-Fi device according to that a location corresponding to the first location information and a location corresponding to the second location information are outside or within the coverage of each of the Wi-Fi access points corresponding to each of all the Wi-Fi access point identifiers stored in the terminal. In embodiments of the present invention, turning-off or turning-on of a Wi-Fi device in a terminal can be triggered according to location information of the terminal.