Network access method, device, terminal and storage medium for application program

By receiving network exclusive requests from the foreground application in the terminal and closing network access rights of other applications, the lag caused by excessive network bandwidth occupied by multiple applications is solved, and network access efficiency and user experience are improved.

CN112905269BActive Publication Date: 2025-03-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110181050.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-09
Publication Date
2025-03-04
Estimated Expiration
2041-02-09

AI Technical Summary

Technical Problem

When running multiple applications accessing the network at the same time in the terminal, it may cause excessive network bandwidth to take up, resulting in application lag and affecting user experience.

Method used

By receiving network exclusive requests from applications running in the foreground, closing network access rights of other applications enables the foreground application to exclusively access the entire network bandwidth.

Benefits of technology

It effectively avoids lag caused by excessive network bandwidth occupied by multiple applications, and improves the network access efficiency and user experience of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905269B_ABST
    Figure CN112905269B_ABST
Patent Text Reader

Abstract

The present application relates to a network access method, device, terminal and storage medium for an application, and belongs to the field of network technology. The method includes: receiving a network exclusive request for a first application, the first application being an application running in the foreground of the current terminal; closing the network access rights of a target application based on the network exclusive request, the target application being an application other than the first application in the current terminal; and implementing the network access operation of the first application through the entire bandwidth of the target network, the target network being the network currently connected by the current terminal. In the above method, the first application can implement the network access operation through the entire bandwidth of the currently connected network, thereby avoiding the phenomenon that the network speed of the first application is slow or even stuck due to too many applications occupying the network bandwidth, thereby improving the network access efficiency of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of network technology, and in particular to a method, device, terminal and storage medium for network access of an application. Background Art

[0002] At present, most applications installed in the terminal implement data exchange with the server by accessing the network, for example, the network is a mobile communication network or a WLAN (Wireless Local Area Network). Since the network bandwidth is limited, if multiple applications accessing the network are running in the terminal at the same time, the applications may become stuck. Summary of the invention

[0003] The embodiment of the present application provides a method, device, terminal and storage medium for network access of an application program, which can improve the network access efficiency of the application program. The technical solution is as follows:

[0004] In one aspect, a method for network access of an application is provided, the method comprising:

[0005] Receiving a network exclusive request of a first application, where the first application is an application running in the foreground of a current terminal;

[0006] Closing the network access permission of a target application based on the network exclusive request, the target application being an application other than the first application in the current terminal;

[0007] The network access operation of the first application is implemented through the entire bandwidth of the target network, and the target network is the network currently accessed by the current terminal.

[0008] In another aspect, a network access device for an application is provided, the device comprising:

[0009] A request receiving module, used to receive a network exclusive request of a first application, where the first application is an application running in the foreground of the current terminal;

[0010] a permission closing module, used to close the network access permission of a target application based on the network exclusive request, wherein the target application is an application other than the first application in the current terminal;

[0011] The network access module is used to implement the network access operation of the first application through the entire bandwidth of the target network, and the target network is the network currently accessed by the current terminal.

[0012] On the other hand, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the network access method of the application program as described in the above aspect.

[0013] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the network access method of the application program as described in the above aspects.

[0014] On the other hand, a computer program product is provided. When the program code in the computer program product is executed by a processor of a terminal, the terminal is enabled to execute the network access method of the application program described in the above aspect.

[0015] In an embodiment of the present application, if there is a first application running in the foreground of the current terminal, the network access permissions of applications other than the first application in the current terminal are closed, so that the first application can implement network access operations through the entire bandwidth of the currently connected network, avoiding the phenomenon that the network speed of the first application is slow or even stuck due to too many applications occupying the network bandwidth, thereby improving the network access efficiency of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;

[0017] Figure 2 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown;

[0018] Figure 3 A flowchart of a method for network access of an application program shown in an exemplary embodiment of the present application is shown;

[0019] Figure 4 A schematic diagram showing a network access method for an application program shown in an exemplary embodiment of the present application is shown;

[0020] Figure 5 A schematic diagram showing a network access method for an application program shown in an exemplary embodiment of the present application is shown;

[0021] Figure 6 A flowchart of a method for network access of an application program shown in an exemplary embodiment of the present application is shown;

[0022] Figure 7 A structural block diagram of a network access device for an application provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0024] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0025] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 100 and a server 200. The terminal 100 and the server 200 are connected via a wireless or wired network.

[0026] The terminal 100 is installed with an application provided by the server 200, and the terminal 100 can implement functions such as data transmission and message interaction through the application. Optionally, the application is an application in the operating system of the terminal 100, or an application provided by a third party. For example, the application is an online game application, a video playback application, etc. In a possible implementation, the server 200 is a background server of the application or a cloud server that provides services such as cloud computing and cloud storage.

[0027] In a possible implementation, the network accessed by the terminal 100 is a mobile communication network or a WLAN network. Accordingly, the application performs data exchange with the server 200 through the network currently accessed by the terminal 100 to implement a network access operation.

[0028] The network access method for an application provided in an embodiment of the present application can be applied to a network access scenario of an application. If at least one application is running in the foreground of the current terminal and at least one application is also running in the background, when the terminal is in a networked state, multiple applications running in the terminal (applications running in the foreground and applications running in the background) will share the network bandwidth of the terminal, resulting in a phenomenon such as freezing of the application running in the foreground, thereby resulting in a poor user experience. In an embodiment of the present application, the application running in the foreground can monopolize the entire bandwidth of the network.

[0029] In some embodiments, the scenario is a game playing scenario. For example, among the multiple applications, the application running in the foreground is an online game application. Since most online game applications require high real-time performance, if other applications running in the terminal occupy more network bandwidth, the online game application may be stuck or even disconnected, resulting in a poor user experience. Therefore, the network access rights of other applications in the terminal are closed, so that the online game application can use the entire bandwidth of the network, thereby improving the rendering effect of the game interface.

[0030] For another example, the scenario is a video playback scenario. Among the multiple applications, the application running in the foreground is a video playback application. If other applications running in the terminal occupy more network bandwidth, the video playback application may experience playback lag, resulting in a poor user experience. Therefore, the network access rights of other applications in the terminal are closed, so that the video playback application can use the entire bandwidth of the network, thereby improving the smoothness of video playback.

[0031] It should be noted that the embodiments of the present application are only illustrative of the above two scenarios and do not limit the network access scenarios of applications. The network access method for applications provided in the embodiments of the present application can also be applied to the network access scenarios of any other applications.

[0032] Please refer to Figure 2 , which shows a block diagram of a terminal 100 provided by an exemplary embodiment of the present application. The terminal 100 may be a terminal with an application running function such as a smart phone, a tablet computer, etc. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and a display screen 130.

[0033] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect the various parts of the entire terminal 100, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 130; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a separate chip.

[0034] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 100 (such as audio data, a phone book), etc.

[0035] The display screen 130 is a display component for displaying a user interface. Optionally, the display screen 130 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the display screen 130.

[0036] The display screen 130 is usually arranged on the front panel of the terminal 100. The display screen 130 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen 130 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0037] In addition, those skilled in the art can understand that the structure of the terminal 100 shown in the above drawings does not constitute a limitation on the terminal 100, and the terminal 100 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 100 also includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module and other components, which are not described in detail here.

[0038] Please refer to Figure 3 , which shows a flow chart of a network access method for an application shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application may be the terminal 100, or the processor 110 in the terminal 100 or the operating system in the terminal 100. This embodiment is described by taking the execution subject as the terminal 100 as an example. In the embodiment of the present application, for the convenience of description, the application running in the foreground is referred to as the first application, and the application whose network access permission is to be closed is referred to as the target application. The method includes:

[0039] Step 301: The terminal receives a network exclusive request from a first application, where the first application is an application currently running in the foreground of the terminal.

[0040] Among them, a first application is installed in the terminal, and the user can trigger the icon of the first application to trigger the terminal to display the main interface of the first application; the terminal responds to the display operation triggered by the icon of the first application, and displays the main interface of the first application, so that the terminal runs the first application in the foreground.

[0041] In some embodiments, for a first application running in the foreground, when the first application is opened, that is, when the main interface is displayed, the terminal determines that a network exclusive request of the first application is received. In this embodiment, as long as the first application starts to run in the foreground, it is determined that a network exclusive request of the first application is received, and the operation efficiency is high.

[0042] In other embodiments, the user can trigger the first application to apply for network exclusivity to the terminal through some target operations. Accordingly, the implementation method of the terminal receiving the network exclusivity request of the first application includes: the terminal determines that the network exclusivity request of the first application is received in response to receiving the target operation triggered by the first application.

[0043] In a possible implementation, the target operation is a first gesture operation, and the terminal stores in advance the correspondence between the first gesture operation and the sending of a network exclusive request. For example, the first gesture operation includes any one of swiping up, swiping down, tapping the screen, etc., and this application does not specifically limit this. Accordingly, the terminal receives the network exclusive request of the first application in response to the first gesture operation triggered by the first application.

[0044] In another possible implementation, the target operation is a second gesture operation, and the second gesture operation is an operation triggered based on the network exclusive option. Accordingly, the terminal displays the network exclusive option in the interface of the first application, and in response to the second gesture operation triggered by the user based on the network exclusive option, the terminal determines that the network exclusive request of the first application is received. Among them, the network exclusive option can be a network exclusive button, and accordingly, the second gesture operation includes any one of long press, single click, double click and the like, which is not specifically limited in this application.

[0045] In an embodiment of the present application, if the user wants the first application to have network exclusivity, the target operation can be triggered so that the terminal determines that a network exclusivity request for the first application has been received, thereby saving time in applying for network exclusivity based on the user's intention.

[0046] In some other embodiments, the terminal may display network exclusive prompt information to determine whether the network exclusive request of the first application is received in combination with the user's selection. Accordingly, the implementation method of the terminal receiving the network exclusive request of the first application includes the following steps (1)-(2):

[0047] (1) During the running of the first application, the terminal displays network exclusivity prompt information, where the network exclusivity prompt information is used to prompt whether to apply for network exclusivity.

[0048] The network exclusive prompt information may include information about the first application applying for network exclusiveness, a confirmation option, and a cancellation option. The present application does not specifically limit the display method of the network exclusive prompt information; for example, the display method of the network exclusive prompt information may be a pop-up window.

[0049] In a possible implementation, the terminal displays the network exclusive prompt information in response to the first application entering a target state, where the target state is used to indicate that the first application enters a full screen state.

[0050] For example, the first application is an online game application. When the first application enters the game state, the game state needs to fill the entire screen, and the terminal determines that the first application enters the target state. For another example, the first application is a video playback application. When the first application enters the video playback state, the video playback state needs to fill the entire screen, and the terminal determines that the first application enters the target state.

[0051] In the embodiment of the present application, the network exclusive prompt information is displayed only when the first application enters the target state, so that the user can determine whether to let the first application monopolize the entire bandwidth under the prompt of the network exclusive prompt information.

[0052] In another possible implementation, the terminal displays the network exclusive prompt information only when the first application is stuck. Accordingly, the terminal monitors the network status of the first application. If the network status indicates that the first application is stuck while running in the foreground, the terminal displays the network exclusive prompt information.

[0053] The network status may be a network speed, i.e., the speed at which the terminal uploads and downloads data. For example, the network status may be 150K / s, 200K / s, etc. In this implementation, the implementation of the terminal determining that the first application is stuck in the foreground operation may be: if the network speed included in the network status is less than the preset network speed, the terminal determines that the first application is stuck in the foreground operation. The preset network speed may be set and changed as needed, and this application does not specifically limit this. For example, the preset network speed may be 300K / s, 400K / s, etc.

[0054] In the embodiment of the present application, the network exclusive prompt information is displayed only when the network status of the first application is stuck, so that the user can determine whether to let the first application monopolize the entire bandwidth under the prompt of the network exclusive prompt information.

[0055] (2) The terminal determines that the network exclusive request of the first application is received in response to a confirmation operation of receiving the network exclusive prompt information.

[0056] For example, the network exclusive prompt information includes a confirmation option and a cancel option. The terminal determines that a confirmation operation of the network exclusive prompt information is received in response to the user triggering the confirmation option through the terminal; the terminal determines that the first application does not apply for network exclusivity in response to the user triggering the cancel option through the terminal.

[0057] In the embodiment of the present application, when a confirmation operation triggered by the user based on the network exclusive prompt information is received, it is determined that the network exclusive request of the first application has been received. This achieves that when the first application does not need to occupy more bandwidth, other applications running in the terminal can access the network, based on the running status of the first application and the user's choice, thereby ensuring the timeliness of obtaining messages.

[0058] In some embodiments, since the first application running in the foreground is the application that the user currently wants to use, if the terminal receives a network exclusive request from the first application running in the foreground, the operation of step 302 to step 305 is performed.

[0059] In other embodiments, since the application running in the foreground may not need to occupy more bandwidth, there is no need to set network exclusivity for the application. Therefore, the terminal can determine whether to execute the operations of steps 302-305 based on the application type of the first application. Accordingly, the implementation method of this step can be: the terminal determines the application type of the first application; if the application type of the first application is the first application type, the operations of steps 302-305 are executed, and the first application type is an application type that allows application for network exclusivity.

[0060] The terminal determines the application type of each application in advance, and determines the application type of the application that needs to occupy more bandwidth during operation as being allowed to apply for network exclusivity.

[0061] In the embodiment of the present application, subsequent network exclusivity operations are performed only for the first application that is allowed to apply for network exclusivity, thereby improving bandwidth utilization efficiency.

[0062] In the embodiment of the present application, after receiving the network exclusive request of the first application, the terminal needs to close the network permission of the application that allows closing the network access permission. Therefore, the terminal performs the operation of step 302 to determine the application other than the first application.

[0063] Step 302: The terminal determines a plurality of second applications, where the plurality of second applications are applications other than the first application in the current terminal.

[0064] Among them, multiple applications are installed in the terminal, and the application can be an application in the terminal system or a third-party application. The system can be an Android system. The terminal uses the application other than the first application among the multiple applications as the second application.

[0065] Step 303: The terminal determines the target application from the multiple second applications.

[0066] The method for determining the target application includes at least one of the following implementation methods.

[0067] In a possible implementation, the terminal determines the current running state of each second application, and selects a target application running in the background from the multiple second applications based on the running state of each second application.

[0068] Among them, since some applications may not be currently accessing the network, that is, not occupying bandwidth, the terminal can use the application running in the background as the target application, thereby improving the operation efficiency.

[0069] In another possible implementation, the terminal determines the application type of each second application, and based on the application type of each second application, selects a target application other than the second application type from the multiple second applications, where the second application type is a system application type.

[0070] Among them, since the applications in the terminal system, that is, the system application type applications, may access the network to maintain the operation of the system, the terminal can keep the second application type applications accessing the network and use the applications other than the second application type as the target applications. For example, the system application type applications are antivirus applications, weather, calendar, etc.

[0071] In another possible implementation, the terminal determines a marked third application in the current terminal, and selects a target application other than the third application from the multiple second applications, wherein the marked third application is an application for which closing of network access rights is prohibited.

[0072] Among them, the user can mark the application that prohibits closing the network access right in advance through the terminal, and the terminal stores the application identification of the marked third application. When the terminal determines the application identifications of multiple second applications, the application corresponding to the application identification other than the application identification of the third application is used as the target application.

[0073] It should be noted that the terminal can determine the target application through any of the above implementation methods, or the terminal can determine the target application in combination with the above multiple implementation methods, and this application does not make specific limitations on this.

[0074] In an embodiment of the present application, the target application is determined through the above multiple implementation methods, so that the terminal can exclude applications that do not need to close network access rights, thereby ensuring the normal operation of other applications of the terminal while improving the bandwidth occupancy rate of the first application.

[0075] Step 304: The terminal closes the network access permission of the target application based on the network exclusive request, and the target application is an application other than the first application in the current terminal.

[0076] The terminal may directly close the network access permission of the target application upon receiving the network exclusive request. Alternatively, the terminal may determine whether to close the network access permission of the target application based on the user's choice upon receiving the network exclusive request. Accordingly, the implementation of this step includes: the terminal displays the network exclusive confirmation information based on the network exclusive request; and in response to the confirmation operation of receiving the network exclusive confirmation information, closes the network access permission of the target application.

[0077] For example, the network exclusivity confirmation information includes the information of the first application applying for network exclusivity, a confirmation option and a cancellation option. The terminal determines to close the network access rights of the target application in response to the user triggering the confirmation option through the terminal; the terminal determines not to close the network access rights of the target application in response to the user triggering the cancellation option through the terminal.

[0078] See also Figure 4 The first application is application A, and the content of the information of the first application applying for network exclusivity is "Application A is applying for network exclusivity, do you agree?", the confirmation option is "OK", and the cancellation option is "Cancel".

[0079] In the embodiment of the present application, by displaying the network exclusivity confirmation information, it is determined whether to close the network access permission of the target application program in combination with the user's selection, thereby improving the flexibility of network access.

[0080] Step 305: Implementing the network access operation of the first application program through the entire bandwidth of the target network, where the target network is the network currently accessed by the current terminal.

[0081] Since the terminal closes the network access permission of the target application, the first application can occupy the entire bandwidth, or the first application can occupy a larger portion of the bandwidth, so that the network access efficiency of the first application is higher.

[0082] See also Figure 5 When the user agrees to the first application's application for network exclusivity through network exclusivity confirmation information, the terminal closes the network access permission of the target application, so that the first application occupies the entire bandwidth of the target network.

[0083] In an embodiment of the present application, if there is a first application running in the foreground of the current terminal, the network access permissions of applications other than the first application in the current terminal are closed, so that the first application can implement network access operations through the entire bandwidth of the currently connected network, avoiding the phenomenon that the network speed of the first application is slow or even stuck due to too many applications occupying the network bandwidth, thereby improving the network access efficiency of the application.

[0084] Please refer to Figure 6 , which shows a flowchart of a network access method for an application shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application can be the terminal 100, or the processor 110 in the terminal 100 or the operating system in the terminal 100. This embodiment is described by taking the execution subject as the terminal 100 as an example. In the embodiment of the present application, the first application exits the foreground operation and opens the network access permission of the target application as an example. The method includes:

[0085] Step 601: The terminal monitors the running status of the first application.

[0086] Among them, since the first application may exit the foreground during operation or directly close the process, and at this time, the first application does not need to monopolize the network, the terminal can monitor the running status of the first application in real time, and determine whether the first application still needs to monopolize the network based on the running status.

[0087] Step 602: The terminal determines that the first application program exits the foreground operation based on the operation status of the first application program.

[0088] In this step, the running status includes changing from foreground running to background running or being closed. Accordingly, in a possible implementation method, if the running status of the first application is used to indicate that the first application changes from foreground running to background running, the terminal determines that the first application exits the foreground running.

[0089] If the first application program changes from being run in the foreground to being run in the background, it means that the user no longer needs to use the first application program. Therefore, the terminal can determine that the first application program exits the foreground.

[0090] For example, the user closes the main interface of the first application through the terminal and controls the terminal to return to the desktop, indicating that the first application is switched from running in the foreground to running in the background.

[0091] In another possible implementation, the running state of the first application is used to indicate that the first application is closed, and the terminal determines that the first application exits the foreground operation.

[0092] If the user directly closes the first application through the terminal, it means that the user does not need to use the first application at present, so the terminal can determine that the first application exits the foreground operation.

[0093] For example, the user closes the main interface of the first application through the terminal, controls the terminal to return to the desktop, and deletes the first application from currently running applications, indicating that the first application is closed.

[0094] In an embodiment of the present application, the terminal determines different running states of the first application to judge whether the first application has exited the foreground running, thereby providing data support for timely restoring the network access of the target application and improving the bandwidth occupancy rate.

[0095] Step 603: In response to the first application program exiting the foreground, the terminal enables the network access permission of the target application program, and implements the network access operation of the first application program and the target application program through the entire bandwidth of the target network.

[0096] When the first application exits the foreground, the terminal opens the network access permission of the target application so that the application in the terminal can normally use the entire bandwidth of the target network.

[0097] In some embodiments, the time that the first application program exits the foreground may be short. For example, the user wants to view notification messages of other applications and exits the first application program from the foreground. However, after viewing the notification messages of other applications, the user again runs the first application program in the foreground. Therefore, the terminal may determine whether to perform the operation of step 603 according to the accumulated time that the first application program exits the foreground the last time.

[0098] Correspondingly, the terminal counts the time the first application has exited the foreground, which is the cumulative time from the last time the first application exited the foreground to the current time; if the time is not less than the preset threshold, execute step 603.

[0099] The preset threshold can be set and changed as needed, and the present application does not specifically limit this. For example, the preset threshold is 10 minutes, 15 minutes, etc. For example, when the preset threshold is 10 minutes and the duration is 5 minutes, the terminal does not execute step 603. For another example, when the duration is 11 minutes, the terminal executes step 603.

[0100] In an embodiment of the present application, whether the first application has truly exited the foreground is determined by the accumulated time from the last time the first application exited the foreground to the current time, thereby reducing the phenomenon of repeated setting of network exclusivity due to the first application returning to the foreground, avoiding misoperation and improving operational efficiency.

[0101] Continue to see Figure 5 When the first application exits the foreground, the terminal closes the network exclusive state of the first application, that is, opens the network access permission of the target application, and implements the network access operation of the first application and the target application through the entire bandwidth of the target network.

[0102] In an embodiment of the present application, when the first application exits the foreground, the network access permission of the target application can be enabled in a timely manner, thereby realizing the network access operation of the first application and the target application through the entire bandwidth of the target network, thereby ensuring the network access operation of the application in the terminal and improving the timeliness of obtaining notification messages.

[0103] Please refer to Figure 7 , which shows a structural block diagram of a network access device 70 for an application provided by an embodiment of the present application. The network access device 70 for the application can be implemented as all or part of the processor 110 through software, hardware, or a combination of both. The device 70 includes:

[0104] A request receiving module 701 is used to receive a network exclusive request from a first application, where the first application is an application running in the foreground of the current terminal;

[0105] The permission closing module 702 is used to close the network access permission of the target application based on the network exclusive request, and the target application is an application other than the first application in the current terminal;

[0106] The network access module 703 is used to implement the network access operation of the first application program through the entire bandwidth of the target network, where the target network is the network currently accessed by the current terminal.

[0107] In a possible implementation, the device further includes:

[0108] The first determination module is used to determine a plurality of second applications, where the plurality of second applications are applications other than the first application in the current terminal; and to determine the target application from the plurality of second applications.

[0109] In a possible implementation, the first determination module is used to determine the current running state of each second application, and select a target application running in the background from the plurality of second applications based on the running state of each second application; or

[0110] The first determination module is used to determine the application type of each second application program, and based on the application type of each second application program, select a target application program other than the second application type from the plurality of second applications, where the second application type is a system application type; or

[0111] The first determination module is used to determine a marked third application in the current terminal, and select a target application other than the third application from the multiple second applications, wherein the marked third application is an application that is prohibited from closing the network access permission.

[0112] In a possible implementation, the permission closing module 702 is used to display network exclusive confirmation information based on the network exclusive request; in response to a confirmation operation of receiving the network exclusive confirmation information, close the network access permission of the target application.

[0113] In a possible implementation, the device further includes:

[0114] A second determining module, used to determine the application type of the first application;

[0115] The permission closing module is used to close the network access permission of the target application based on the network exclusive request if the application type of the first application is a first application type, and the first application type is an application type that allows application for network exclusivity.

[0116] In a possible implementation, the device further includes:

[0117] The permission opening module is used to open the network access permission of the target application in response to the first application exiting the foreground operation, and realize the network access operation of the first application and the target application through the entire bandwidth of the target network.

[0118] In a possible implementation, the device further includes:

[0119] A status monitoring module, used to monitor the running status of the first application;

[0120] A third determining module is used to determine that the first application program exits the foreground operation if the running state of the first application program indicates that the first application program changes from the foreground operation to the background operation; or,

[0121] The third determination module is used to determine that the first application program exits the foreground operation if the operation status of the first application program indicates that the first application program is closed.

[0122] In a possible implementation, the device further includes:

[0123] A duration statistics module, used to count the duration of the first application program exiting the foreground, where the duration is the cumulative duration from the last time the first application program exited the foreground to the current time;

[0124] The permission opening module is used to open the network access permission of the target application if the duration is not less than a preset threshold, and implement the network access operation of the first application and the target application through the entire bandwidth of the target network.

[0125] In a possible implementation, the request receiving module 701 includes:

[0126] An information display unit, used for displaying network exclusivity prompt information during the running of the first application, the network exclusivity prompt information being used for prompting whether to apply for network exclusivity;

[0127] The fourth determining unit is configured to determine that a network exclusive request of the first application is received in response to a confirmation operation of receiving the network exclusive prompt information.

[0128] In a possible implementation, the information display unit is used to display the network exclusive prompt information in response to the first application entering a target state, where the target state is used to represent the first application; or

[0129] The information display unit is used to monitor the network status of the first application. If the network status is used to indicate that the first application is stuck during foreground operation, the network exclusive prompt information is displayed.

[0130] In an embodiment of the present application, if there is a first application running in the foreground of the current terminal, the network access permissions of applications other than the first application in the current terminal are closed, so that the first application can implement network access operations through the entire bandwidth of the currently connected network, avoiding the phenomenon that the network speed of the first application is slow or even stuck due to too many applications occupying the network bandwidth, thereby improving the network access efficiency of the application.

[0131] An embodiment of the present application further provides a computer-readable medium storing at least one program code, which is loaded and executed by a processor to implement the network access method of the application program shown in the above embodiments.

[0132] The embodiments of the present application also provide a computer program product. When the program code in the computer program product is executed by the processor of the terminal, the terminal can execute the network access method of the application program shown in the above embodiments.

[0133] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more program codes or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0134] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A network access method for an application, characterized in that: The method comprises: In response to the first application entering full screen, displaying network exclusive prompt information; or, if the network status of the first application is used to indicate that the first application is stuck during foreground operation, displaying the network exclusive prompt information; in response to a confirmation operation of receiving the network exclusive prompt information, determining that a network exclusive request of the first application is received; Alternatively, in response to receiving a target operation triggered by the first application, determining that a network exclusive request of the first application is received; wherein the first application is an application currently running in the foreground of the terminal; If the application type of the first application is an application type that allows application for network exclusivity, determine a plurality of second applications, where the plurality of second applications are applications other than the first application in the current terminal; and determine a target application from the plurality of second applications; The determining of the target application from the plurality of second applications comprises at least one of the following: selecting a target application other than a system application type from the plurality of second applications based on the application type of each second application; or selecting a target application other than a marked third application in the current terminal from the plurality of second applications, the marked third application being an application for which closing of network access rights is prohibited; Based on the network exclusive request, closing the network access permission of the target application; Implementing a network access operation of the first application program through the entire bandwidth of a target network, the target network being a network currently accessed by the current terminal; Monitor the running status of the first application; if the running status is used to indicate that the first application has switched from running in the foreground to running in the background or that the first application has been closed, count the cumulative time from the last time the first application exited the foreground to the current time; if the cumulative time is not less than a preset threshold, enable the network access permission of the target application, and implement network access operations of the first application and the target application through the entire bandwidth of the target network.

2. The method according to claim 1, characterized in that: The determining of the target application from the plurality of second applications further comprises: The current running state of each second application is determined, and based on the running state of each second application, a target application running in the background is selected from the plurality of second applications.

3. The method according to claim 1, characterized in that Closing the network access permission of the target application based on the network exclusive request includes: Based on the network exclusive request, display network exclusive confirmation information; In response to receiving a confirmation operation of the network exclusive confirmation information, the network access permission of the target application is closed.

4. A network access device for an application, characterized in that: The device comprises: a request receiving module, configured to display network exclusive prompt information in response to the first application entering full screen; or, if the network status of the first application is used to indicate that the first application is stuck during foreground operation, display the network exclusive prompt information; and, in response to a confirmation operation of receiving the network exclusive prompt information, determine that a network exclusive request of the first application is received; Alternatively, the request receiving module is used to determine, in response to receiving a target operation triggered by the first application, that a network exclusive request of the first application is received; wherein the first application is an application running in the foreground of the current terminal; A first determination module is configured to determine a plurality of second applications if the application type of the first application is an application type that allows application for network exclusivity, wherein the plurality of second applications are applications other than the first application in the current terminal; and determine a target application from the plurality of second applications; The first determination module is configured to perform at least one of the following: based on the application type of each second application, select a target application other than a system application type from the plurality of second applications; or select a target application other than a marked third application in the current terminal from the plurality of second applications, the marked third application being an application for which closing of network access rights is prohibited; A permission closing module, used to close the network access permission of the target application based on the network exclusive request; A network access module, used to implement the network access operation of the first application program through the entire bandwidth of a target network, wherein the target network is a network currently accessed by the current terminal; The permission opening module is used to monitor the running status of the first application; if the running status is used to indicate that the first application has switched from running in the foreground to running in the background or that the first application has been closed, the cumulative time from the last time the first application exited the foreground to the current time is counted; if the cumulative time is not less than a preset threshold, the network access permission of the target application is enabled, and the network access operation of the first application and the target application is realized through the entire bandwidth of the target network.

5. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the network access method of the application program according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the network access method of the application program according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Application network proportion adjusting method and device and storage medium

    CN112035249A