CN106325844B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN106325844B
CN106325844B CN201510378115.9A CN201510378115A CN106325844B CN 106325844 B CN106325844 B CN 106325844B CN 201510378115 A CN201510378115 A CN 201510378115A CN 106325844 B CN106325844 B CN 106325844B
Authority
CN
China
Prior art keywords
application
interface
management interface
application icon
preset
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.)
Active
Application number
CN201510378115.9A
Other languages
Chinese (zh)
Other versions
CN106325844A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510378115.9A priority Critical patent/CN106325844B/en
Priority to US14/860,833 priority patent/US10671449B2/en
Publication of CN106325844A publication Critical patent/CN106325844A/en
Application granted granted Critical
Publication of CN106325844B publication Critical patent/CN106325844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problem that a better mode for managing applications is not provided in the electronic equipment. The method comprises the following steps: obtaining an access request for accessing a network port of the electronic device; determining the position of a first application icon corresponding to a first application sending the access request; determining whether the position of the first application icon meets a preset condition; and responding to the access request if the position of the first application icon meets the preset condition.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device.
Background
With the continuous development of scientific technology, electronic technology has also been developed rapidly, and the performance and appearance of electronic equipment have been all promoted greatly, become indispensable part in study and life. More and more things users can do with electronic devices, such as: a user may watch videos, listen to music, play games, etc. through an electronic device connected to a network.
At present, most electronic devices are installed with more applications, and in the process of using the electronic devices by users, since the applications are still synchronized through a network at the background after being closed, clients such as weather and news in mobile phones can synchronously send and receive related data at any time, which results in a large amount of mobile phone traffic "running on foot", so that the electronic devices have a large demand for the network.
Therefore, in order to prevent the application from stealing traffic in the background, the user is usually required to manually close the synchronization setting of the application, or the application can be managed by installing application management software (such as a security guard), for example, setting the timing network disconnection of the application, the traffic prompt limit value, and the like. However, the above-mentioned setting or management method requires complicated operations, so that when the synchronization function of the application in the electronic device is limited or recovered, the efficiency is low, and the burden of the electronic device is large.
Disclosure of Invention
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problem that a better mode for managing applications is not provided in the electronic equipment.
An information processing method comprising the steps of:
obtaining an access request for accessing a network port of the electronic device;
determining the position of a first application icon corresponding to a first application sending the access request;
determining whether the position of the first application icon meets a preset condition;
and responding to the access request if the position of the first application icon meets the preset condition.
Optionally, determining whether the position of the first application icon meets a preset condition includes:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition.
Optionally, before determining whether the location of the first application icon is within the preset management interface, the method further includes:
moving the first application icon into the preset management interface;
and after the first application moves into the preset management interface, closing the network connection function of the first application.
Optionally, after determining whether the position of the first application icon satisfies a preset condition, the method further includes:
and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
Optionally, the method further includes:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
Optionally, before obtaining the access request for accessing the network port of the electronic device, the method further includes:
establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
An electronic device, comprising:
a housing;
the processor is located in the housing and used for obtaining an access request for accessing a network port of the electronic device, determining a position of a first application icon corresponding to a first application sending the access request, determining whether the position of the first application icon meets a preset condition, and responding to the access request if the position of the first application icon meets the preset condition.
Optionally, the processor is configured to determine whether a position of the first application icon meets a preset condition, and specifically, to:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition.
Optionally, if the first application icon is moved into the preset management interface, the processor is further specifically configured to: and after the first application moves into the preset management interface, closing the network connection function of the first application.
Optionally, the processor is further specifically configured to:
and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
Optionally, the processor is further specifically configured to:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
Optionally, before obtaining the access request for accessing the network port of the electronic device, the processor is configured to:
establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
An electronic device, comprising:
the acquisition module is used for acquiring an access request for accessing a network port of the electronic equipment;
the first determining module is used for determining the position of a first application icon corresponding to a first application sending the access request;
the second determining module is used for determining whether the position of the first application icon meets a preset condition;
and the processing module is used for responding to the access request if the position of the first application icon meets the preset condition.
In the embodiment of the invention, by obtaining the access request for accessing the network port of the electronic device, the first application to be accessed and the position of the first application icon corresponding to the first application in the display unit can be determined, and further, whether the position of the first application icon meets the preset condition can be determined by judging whether the first application icon is in the preset range or not, for example, whether the first application icon is in the preset range or not can be determined, if the first application icon is in the preset range, the first application icon is determined to be the application which is set to allow network synchronization, the network request can be responded, otherwise, the first application may be the application which is set by the user and is prohibited from performing network synchronization, so that the background flow stealing of the application in the electronic device can be effectively prevented. Therefore, the access right can be set by dragging the application to the corresponding preset range, the operation is convenient and fast, and the efficiency is high.
Drawings
FIG. 1 is a schematic diagram of a main flow of an information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention discloses an information processing method and electronic equipment, wherein the method comprises the following steps: obtaining an access request for accessing a network port of the electronic device; determining the position of a first application icon corresponding to a first application sending the access request; determining whether the position of the first application icon meets a preset condition; and responding to the access request if the position of the first application icon meets the preset condition.
The first application to be accessed and the position of the first application icon corresponding to the first application in the display unit can be determined by obtaining an access request for accessing a network port of the electronic device, and then whether the first application icon meets a preset condition can be determined by judging the position of the first application icon, for example, whether the first application icon is in a preset range or not can be determined, if the first application icon is in the preset range, the first application icon is determined to be a set application allowing network synchronization, the network request can be responded, otherwise, the first application may be an application which is set by a user and forbids network synchronization, and therefore background running traffic of the application in the electronic device is effectively prevented. Therefore, the access right can be set by dragging the application to the corresponding preset range, the operation is convenient and fast, and the efficiency is high.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present invention, the electronic device may be a PC (personal computer), a notebook, a PAD (tablet computer), a mobile phone, or other different devices, which is not limited in the present invention.
Optionally, in this embodiment of the present invention, the network port may be a communication protocol port facing connection services and connectionless services in a network, for example, an 80 port for browsing a web service, a 21 port for FTP service, and the like, which may be used as an outlet for communication between the electronic device and the outside. In practical applications, the network port may logically provide an interface for network connection for an application installed in the electronic device.
Optionally, in the embodiment of the present invention, the electronic device may have a plurality of applications, and the applications may include that the electronic device is shipped from a factory or installed by a user. The application icons corresponding to the applications are usually displayed in a display unit of the electronic device, for example, the application icons may be arranged in the display unit according to a certain sequence, and when a user needs to use an application function corresponding to an application, the user can call the corresponding application by clicking the application icon.
In practical applications, most applications in electronic devices have internet access functions, such as news on new seas, weather applications, Tencent players, Paibao applications, and the like. Typically, even if the user turns off the application after use, the applications automatically synchronize data in the background and network communications to obtain updated data without setting network restrictions on the applications.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides an information processing method, where the method includes:
s11: an access request to access a network port of an electronic device is obtained.
In the embodiment of the invention, when the application in the electronic equipment needs to be connected with the network, the corresponding network access request needs to be sent to the server through the network port, so that the electronic equipment can obtain the access request corresponding to the application.
In practical applications, the access request may be a general HTTP (HyperText Transfer Protocol) request, which may be used to request a service from a server in a large batch.
Optionally, in this embodiment of the present invention, before S11, at least one preset management interface may be set in the electronic device, and an application corresponding to an application icon on the preset management interface may be an application that is set to prohibit network access. Specific setting manners may include the following two.
The first method is as follows:
establishing a management interface with a first interface attribute in the electronic equipment, and taking the established management interface as a preset management interface; the first interface attribute may be an attribute for prohibiting an application with an application icon located in the preset management interface from performing port access.
In actual operation, when a user can newly build a management interface in the electronic device, the user can set the interface attribute of the newly built management interface.
For example, in a mobile phone with a management interface displayed, a user presses a display screen of the mobile phone for a long time, and options for setting interface attributes of a newly-built management interface may appear, for example, option one may be a first interface attribute for prohibiting an application in the newly-built management interface from performing network access, and option two may be a second interface attribute for allowing the application in the management interface to perform network connection. If the user selects the interface attribute corresponding to the option one as the interface attribute of the newly-built management interface, the application in the newly-built management interface with the first interface attribute is the application for prohibiting network access in the background, so that the consumption of flow caused by data synchronization still through the network after the application is closed is avoided.
In practical applications, when the user does not set the second interface attribute, the system usually defaults to the second interface attribute as the interface attribute of the new management interface.
The second method comprises the following steps:
the method comprises the steps of changing an interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to a first interface attribute, and determining the at least one management interface as a preset management interface, wherein the second interface attribute is an attribute allowing an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
The N management interfaces may be management interfaces existing in the electronic device, and each of the N management interfaces may include one or more application icons, or may not include an application icon. The user may select one or more of the N management interfaces to set their interface properties.
Specifically, after the interface attribute corresponding to the selected at least one management interface is adjusted from the second interface attribute to the first interface attribute, the network connection function of the application corresponding to the application icon included in the at least one management interface may be prohibited.
For example, the mobile phone includes 4 management interfaces, and each management interface includes at least one application icon corresponding to an application. The first management interface includes 3 application icons, and the current interface attribute is to allow the application corresponding to the application icon in the interface to perform network connection, and if the interface attribute of the first management interface is adjusted to the first interface attribute, the electronic device may prohibit the network connection function of the application corresponding to the 3 application icons included in the management interface.
Therefore, when a user needs to integrally set the application network connection of the application icon of the management interface, the setting of the interface attribute of the management interface can be conveniently realized without setting the application one by one, so that the management efficiency is high, the operation is convenient, and the burden of the electronic equipment is small.
It should be noted that, after the preset management interface is established in the two manners, since the electronic device generally includes a plurality of management interfaces, in order to distinguish the preset management interface from the common management interface, the preset management interface may be displayed according to a preset manner, for example, a color of a frame or a background of the preset management interface is set to a specific color, such as red or blue. Meanwhile, the preset management interface and other management interfaces can be switched through the sliding operation aiming at the display unit, so that a user can conveniently view the corresponding application icons.
In practical applications, the preset management interface may occupy at least a portion of a display unit of the electronic device, and may even occupy the entire display unit, which may be specifically divided into the following two cases.
The first condition is as follows:
the predetermined management interface has a fixed interface area. The fixed interface area may be smaller than the area of the display unit so that it can be displayed at any position of the display unit, or it may be the same as the area of the display unit.
Generally, the management interface has a fixed interface area and can accommodate a preset number of application icons, when the number of the application icons exceeds the preset number, the application icons can be hidden in a preset management interface, the hidden application images can be viewed or operated by sliding the preset management interface up and down, or a management interface with a first interface attribute can be automatically created, and the exceeding application icons can be automatically moved to the newly created management interface.
Case two: the interface area corresponding to the preset management interface can be changed along with the increase and decrease of the application icons. For example, when the preset management interface is newly created in the first manner, the corresponding initial interface area may be a first area, and at least 3 application icons may be accommodated in the first area, and as the user moves more and more application icons to the preset management interface, the corresponding interface area will gradually increase until the area is the same as that of the display unit, and the application icons may be hidden or a preset management interface may be automatically created to meet the application requirements of the user. Similarly, as the application icon decreases, the interface area to which it is applied may also gradually decrease.
S12: and determining the position of a first application icon corresponding to the first application sending the access request.
In the embodiment of the invention, after the access request is obtained through the network port, the corresponding first application can be determined, and further the position of the first application icon of the first application in the display unit of the electronic equipment can be obtained.
Of course, the position of the first application icon on the display surface unit of the electronic device may specifically refer to that the first application icon is located in a management interface with an interface attribute in the display unit, for example, the first application icon may be located in a preset management interface with the first interface attribute, or may also be located in a management interface with the second interface attribute.
In the embodiment of the invention, if the first application icon is moved into the preset management interface, the electronic device can close the network connection function of the first application after the first application icon is moved into the preset management interface.
For example, if the user sets a preset management interface in the mobile phone and moves the application icon corresponding to the wechat application to the preset management interface, the user may be prohibited from responding to the network port access request of the wechat application.
Optionally, in the embodiment of the present invention, after the application icon is moved to the preset management interface, the application icon may be displayed according to a preset display manner. For example, the icon edge of the application icon is automatically changed into a predetermined color, such as yellow, blue, or the like, or a prohibited symbol is displayed on the application icon, so as to indicate that the application corresponding to the application icon is in a state of prohibiting network connection at this time, thereby providing an intuitive visual experience for the user.
S13: and determining whether the position of the first application icon meets a preset condition.
In this embodiment of the present invention, the preset condition may be to determine whether the position of the first application icon is within a preset area. The process may be: and determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment and can prohibit the application of the application icon in the preset management interface from performing port access.
For the above determination process, specifically, if the location of the first application icon is not within the preset management interface, it may be determined that the location of the first application icon satisfies the preset condition, otherwise, it may be determined that the location of the first application icon does not satisfy the preset condition.
For example, when it is determined that the access request corresponds to a news application and it is detected that a news application icon corresponding to the news application is located in a preset management interface with a first interface attribute, it may be determined that the position of the news application icon does not meet a preset condition; and if the news application icon is located on the management interface with the second interface attribute, determining that the position of the news application icon meets the preset condition.
S14: and responding to the access request if the position of the first application icon meets the preset condition.
In the embodiment of the present invention, a corresponding result may be obtained through S13. If the position of the first application icon is determined to meet the preset condition, the electronic device can be controlled to respond to the access request, and corresponding request data, such as update data for synchronization, is fed back based on the access request.
On the contrary, if it is determined that the position of the first application icon does not meet the preset condition, the response to the access request performed by the first application icon may be prohibited, and the network connection performed in the background and the traffic consumption may be avoided.
Optionally, in the embodiment of the present invention, the following process may be further included:
receiving a moving operation aiming at a second application icon in a preset management interface, wherein the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
The moving operation may be an operation performed by a user on an application icon in the electronic device, for example, the user drags the application icon on a touch screen of a mobile phone by a finger or a touch pen.
The application identifier may be an identifier number corresponding to the application, and the corresponding application may be accurately determined in the electronic device through the application identifier, so as to generate a control instruction for starting a network connection function of the application, so as to recover network communication functions of the application, such as data synchronization, and the like.
In the embodiment of the present invention, when the first application icon corresponding to the first application for calling the network port is determined, by determining the position of the first application icon, when it is determined that the first application icon satisfies the preset condition, the access request is responded, and network connection, data update, and the like are performed. Therefore, when a user needs to manage network access to the application in the electronic equipment, the user can forbid the application from network connection by moving the application to the preset management interface or modifying the interface attribute of the management interface containing a plurality of application icons into the first interface attribute, so that traffic is prevented from running in a stealing mode, and when the user needs to perform network connection on the application in the preset management interface, the user only needs to move the application out of the preset management interface, so that the operation process is simple and rapid, and the efficiency is high.
As shown in fig. 2, the present invention provides an electronic device including a case 10 and a processor 20 based on the same inventive concept.
Specifically, the casing 10 mainly protects the body of the electronic device, and is usually made of a material with good properties of falling resistance, stain resistance, and the like, such as an alloy, a plastic, and the like.
The processor 20 is located in the housing 10, and may be configured to obtain an access request for accessing a network port of the electronic device, determine a location of a first application icon corresponding to a first application that sends the access request, determine whether the location of the first application icon satisfies a preset condition, and respond to the access request if the location of the first application icon satisfies the preset condition.
Optionally, in this embodiment of the present invention, the processor 20 is configured to determine whether a position of the first application icon satisfies a preset condition, and specifically, may be configured to: determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition.
Optionally, in this embodiment of the present invention, if the first application icon is moved into the preset management interface, the processor 20 may be further specifically configured to: and after the first application moves into the preset management interface, closing the network connection function of the first application.
In addition, the processor 20 may be specifically configured to: and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
Optionally, in this embodiment of the present invention, the processor 20 may be further specifically configured to:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface; acquiring an application identifier corresponding to the second application; and generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier, and starting the network connection function of the second application based on the control instruction.
Optionally, in this embodiment of the present invention, before obtaining the access request for accessing the network port of the electronic device, the processor 20 is further specifically configured to:
establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
As shown in fig. 3, based on the same inventive concept, the present invention further provides an electronic device, which includes a first obtaining module 301, a first determining module 302, a second determining module 303, and a processing module 304.
Specifically, the first obtaining module 301 may be configured to obtain an access request for accessing a network port of the electronic device.
The first determining module 302 may be configured to determine a location of a first application icon corresponding to a first application that sent the access request.
The second determining module 303 may be configured to determine whether a position where the first application icon is located meets a preset condition.
The processing module 304 may be configured to respond to the access request if the location of the first application icon satisfies the preset condition.
Optionally, in this embodiment of the present invention, the second determining module 303 may specifically be configured to:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition.
Optionally, in this embodiment of the present invention, the electronic device may further include:
the operation module is used for moving the first application icon into the preset management interface;
after moving into the preset management interface, the processing module 304 may be configured to: and closing the network connection function of the first application.
Optionally, in this embodiment of the present invention, after determining whether the position of the first application icon satisfies a preset condition, the processing module 304 may be configured to: and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
Optionally, in this embodiment of the present invention, the electronic device may further include:
the receiving module is used for receiving the moving operation of a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
the second obtaining module is used for obtaining the application identifier corresponding to the second application;
a generating module, configured to generate a control instruction corresponding to the application identifier, where the control instruction is used to open a network connection function of an application corresponding to the application identifier;
and the starting module is used for starting the network connection function of the second application based on the control instruction.
In practical application, the electronic device may further include a setting module, configured to establish a management interface with the first interface attribute in the electronic device before obtaining an access request for accessing a network port of the electronic device, and use the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
Specifically, the computer program instructions corresponding to the information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
obtaining an access request for accessing a network port of the electronic device;
determining the position of a first application icon corresponding to a first application sending the access request;
determining whether the position of the first application icon meets a preset condition;
and responding to the access request if the position of the first application icon meets the preset condition.
Optionally, the step of storing in the storage medium: determining whether the position of the first application icon meets a preset condition, wherein the corresponding computer instruction comprises the following steps in a specific executed process:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: determining whether the position of the first application icon is in a preset management interface, wherein the corresponding instruction is executed before being executed, and the executing comprises the following steps:
moving the first application icon into the preset management interface;
and after the first application moves into the preset management interface, closing the network connection function of the first application.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: determining whether the position of the first application icon meets the instruction corresponding to the preset condition, and executing the instruction, wherein the executing comprises the following steps:
and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: if the position of the first application icon meets the preset condition, responding to the execution of the instruction corresponding to the access request and then executing the instruction, wherein the execution of the instruction comprises the following steps:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: the instruction corresponding to the access request for accessing the network port of the electronic equipment is executed before execution, and the method comprises the following steps:
establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. An information processing method, the method comprising:
obtaining an access request for accessing a network port of the electronic device;
determining the position of a first application icon corresponding to a first application sending the access request, wherein the first application is an application performing network access in the background;
determining whether the position of the first application icon meets a preset condition;
if the position of the first application icon meets the preset condition, responding to the access request;
wherein, determining whether the position of the first application icon meets a preset condition includes:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition;
prior to obtaining an access request to access a network port of an electronic device, the method further comprises: changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
2. The method of claim 1, wherein prior to determining whether the location of the first application icon is within a preset management interface, the method further comprises:
moving the first application icon into the preset management interface;
and after the first application moves into the preset management interface, closing the network connection function of the first application.
3. The method of claim 1, wherein after determining whether the location of the first application icon satisfies a preset condition, the method further comprises:
and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
4. The method of claim 3, wherein the method further comprises:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
5. The method of any of claims 1-4, wherein prior to obtaining the access request to access the network port of the electronic device, the method further comprises:
and establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface.
6. An electronic device, comprising:
a housing;
the processor is located in the shell and used for obtaining an access request for accessing a network port of the electronic equipment, determining the position of a first application icon corresponding to a first application sending the access request, determining whether the position of the first application icon meets a preset condition, and responding to the access request if the position of the first application icon meets the preset condition, wherein the first application is an application for performing network access in a background;
the processor is configured to determine whether a position of the first application icon satisfies a preset condition, and specifically, to:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition;
wherein, prior to obtaining an access request to access a network port of an electronic device, the processor is further configured to: changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
7. The electronic device of claim 6, wherein if the first application icon is moved into the preset management interface, the processor is further specifically configured to: and after the first application moves into the preset management interface, closing the network connection function of the first application.
8. The electronic device of claim 6, wherein the processor is further specifically configured to:
and if the position of the first application icon does not meet the preset condition, prohibiting responding to the access request.
9. The electronic device of claim 8, wherein the processor is further specifically configured to:
receiving a moving operation aiming at a second application icon in the preset management interface; the second application icon corresponds to a second application, and the moving operation is used for moving the second application icon out of the preset management interface;
acquiring an application identifier corresponding to the second application;
generating a control instruction corresponding to the application identifier, wherein the control instruction is used for starting a network connection function of the application corresponding to the application identifier;
and starting the network connection function of the second application based on the control instruction.
10. The electronic device of any of claims 6-9, wherein prior to obtaining the access request to access the network port of the electronic device, the processor is to:
establishing a management interface with the first interface attribute in the electronic equipment, and taking the established management interface as the preset management interface; and/or
Changing the interface attribute of at least one management interface in N management interfaces existing in the electronic equipment from a second interface attribute to the first interface attribute, and determining the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
11. An electronic device, comprising:
the acquisition module is used for acquiring an access request for accessing a network port of the electronic equipment;
a first determining module, configured to determine a location of a first application icon corresponding to a first application that sends the access request, where the first application is an application that performs network access in a background;
the second determining module is used for determining whether the position of the first application icon meets a preset condition;
the processing module is used for responding to the access request if the position of the first application icon meets the preset condition;
the second determining module is configured to determine whether a position of the first application icon meets a preset condition, and specifically, is configured to:
determining whether the position of the first application icon is in a preset management interface, wherein the preset management interface is a management interface with a first interface attribute in the electronic equipment, and the first interface attribute is an attribute for prohibiting an application of the application icon located in the preset management interface from performing port access;
if the position of the first application icon is not in the preset management interface, determining that the position of the first application icon meets the preset condition, otherwise, determining that the position of the first application icon does not meet the preset condition;
before obtaining an access request for accessing a network port of the electronic device, the electronic device further includes a setting module, configured to change an interface attribute of at least one management interface of N management interfaces existing in the electronic device from a second interface attribute to the first interface attribute, and determine the at least one management interface as the preset management interface; the second interface attribute is an attribute which allows an application icon in the management interface with the second interface attribute to perform network port access, and N is a positive integer.
CN201510378115.9A 2015-06-30 2015-06-30 Information processing method and electronic equipment Active CN106325844B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510378115.9A CN106325844B (en) 2015-06-30 2015-06-30 Information processing method and electronic equipment
US14/860,833 US10671449B2 (en) 2015-06-30 2015-09-22 Methods and apparatuses for setting application property and message processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510378115.9A CN106325844B (en) 2015-06-30 2015-06-30 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106325844A CN106325844A (en) 2017-01-11
CN106325844B true CN106325844B (en) 2022-04-22

Family

ID=57726147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510378115.9A Active CN106325844B (en) 2015-06-30 2015-06-30 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106325844B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414997A (en) * 2007-10-15 2009-04-22 北京瑞星国际软件有限公司 Method and apparatus for preventing malevolence program from accessing network
CN101655892A (en) * 2009-09-22 2010-02-24 成都市华为赛门铁克科技有限公司 Mobile terminal and access control method
CN103248613A (en) * 2012-02-09 2013-08-14 腾讯科技(深圳)有限公司 Method and device for controlling network access of application program
CN104363247A (en) * 2014-11-28 2015-02-18 北京奇虎科技有限公司 Flow saving method and device adopting saving-free application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831351B (en) * 2012-09-04 2015-08-05 北京奇虎科技有限公司 A kind of method and apparatus for representing computer graphic target security attribute
CN103136348B (en) * 2013-02-22 2018-09-04 小米科技有限责任公司 A kind of document display method and device
CN103765958B (en) * 2013-09-29 2017-09-29 华为终端有限公司 Search for the method and device of network
CN104639522B (en) * 2013-11-15 2018-12-14 华为终端(东莞)有限公司 A kind of method for network access control and device
CN104092810B (en) * 2014-07-04 2016-02-03 努比亚技术有限公司 One does not disturb control method, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414997A (en) * 2007-10-15 2009-04-22 北京瑞星国际软件有限公司 Method and apparatus for preventing malevolence program from accessing network
CN101655892A (en) * 2009-09-22 2010-02-24 成都市华为赛门铁克科技有限公司 Mobile terminal and access control method
CN103248613A (en) * 2012-02-09 2013-08-14 腾讯科技(深圳)有限公司 Method and device for controlling network access of application program
CN104363247A (en) * 2014-11-28 2015-02-18 北京奇虎科技有限公司 Flow saving method and device adopting saving-free application

Also Published As

Publication number Publication date
CN106325844A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
US20190095059A1 (en) Method and device for processing application icon and electronic apparatus
EP2658228B1 (en) Mobile terminal adapted to be connected to an external display and a method of controlling the same
EP2840472B1 (en) Menu layout processing method and apparatus
US20130326397A1 (en) Mobile terminal and controlling method thereof
CN111194436A (en) Method for direct manipulation of multi-layer user interface
EP2385689A1 (en) Mobile terminal and controlling method thereof
CN107506637B (en) Information display method and device, terminal and readable storage medium
CN104751071B (en) A kind of information processing method and electronic equipment
CN107066294B (en) Application installation method and device and intelligent terminal
US11507244B2 (en) Window adjustment method, window adjustment device and mobile terminal
US20150317059A1 (en) Application management method for a mobile terminal and the mobile terminal
EP3187992A1 (en) Intelligent terminal and method for displaying application icons thereof
EP3242197A1 (en) Desktop sharing method and mobile terminal
CN109983428B (en) Application operation method and device
CN112099702A (en) Application running method and device and electronic equipment
EP2933957B1 (en) Method and mobile terminal for displaying dlna equipment
CN105204718B (en) Information processing method and electronic equipment
CN104516481A (en) Information processing method and electronic equipment
CN112015309B (en) Display switching method and device and mobile terminal
CN106095230A (en) A kind of method for controlling mobile terminal and terminal
CN106325844B (en) Information processing method and electronic equipment
CN106933666B (en) Method for calling information input program and electronic equipment
CN105843504B (en) A kind of window regulation method and electronic equipment
CN111142737B (en) Setting method of mobile terminal, mobile terminal and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment