CN105389205B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105389205B
CN105389205B CN201510702806.XA CN201510702806A CN105389205B CN 105389205 B CN105389205 B CN 105389205B CN 201510702806 A CN201510702806 A CN 201510702806A CN 105389205 B CN105389205 B CN 105389205B
Authority
CN
China
Prior art keywords
data
application program
testing result
electronic equipment
application
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
CN201510702806.XA
Other languages
Chinese (zh)
Other versions
CN105389205A (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 CN201510702806.XA priority Critical patent/CN105389205B/en
Publication of CN105389205A publication Critical patent/CN105389205A/en
Application granted granted Critical
Publication of CN105389205B publication Critical patent/CN105389205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Abstract

The invention discloses a kind of information processing method and electronic equipments, wherein the method is applied to an electronic equipment, comprising: before sending the first data, obtains the second data, wherein first data and second data on network for being transmitted;Determine corresponding second application program of second data;Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;If first testing result be it is yes, second data are sent with the first priority.For solving when the flow that multiple application programs need is greater than the maximum throughput of current device, to occur the low technical problem of program operational efficiency in the prior art, realize the technical effect for promoting application program operational efficiency.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of information processing method and electronic equipment.
Background technique
With the development of science and technology, the type and function of electronic equipment are more and more.In order to meet the use need of user It asks, the type and function of application program are also more and more abundant.
User will need to carry out a large amount of network operation for electronic equipment to obtain the more network information.Working as In the case that preceding electronic equipment maximum throughput is certain, with increasing for operation program, the waiting of program, such as program will be caused Operation is slow, Caton or without response, phenomena such as.
In realizing the embodiment of the present application during technical solution, the discovery prior art exists as follows present inventor Technical problem:
In the prior art, when the flow that multiple application programs need is greater than the maximum throughput of current device, will occur The low technical problem of program operational efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving in the prior art, when multiple When the flow that application program needs is greater than the maximum throughput of current device, the low technical problem of program operational efficiency will occur, Realize the technical effect for promoting application program operational efficiency.
One, the embodiment of the present application provides a kind of information processing method, is applied to an electronic equipment, comprising the following steps:
Before sending the first data, the second data are obtained, wherein first data and second data are used for It is transmitted on network;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority.
Optionally, the second data of the acquisition, specifically include:
When the electronic equipment sends second data by second port, obtained from the second port described Second data.
Optionally, corresponding second application program of the determination second data, specifically:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
Optionally, whether the detection second application program is the application program for meeting a preset condition, obtains the One testing result, specifically includes:
Whether in the current display interface of the electronic equipment have first display interface in top layer, obtain second if detecting Testing result;
If second testing result be it is yes, determine that the corresponding application program of first display interface is first using journey Sequence;
Detect second application program whether with first application matches, obtain first testing result.
Optionally, the detection second application program whether with first application matches, obtain described the One testing result, specifically includes:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
Optionally, described at least one second parameter information obtained for characterizing second application program, specifically:
Obtain second application program second applies packet name information, wherein the second application packet name information is specific For the identification information for characterizing second application program;
Whether the detection first parameter information and second parameter information match, and obtain the first detection knot Fruit, specifically:
It detects the second application packet name information and whether first parameter information is identical, obtain the first detection knot Fruit.
Optionally, whether it is the application program for meeting a preset condition in detection second application program, obtains After first testing result, the method also includes:
If first testing result is no, transmission first data.
Optionally, described that second data are sent with the first priority, it specifically includes:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the electronic equipment Whether third application program corresponding to current top layer display interface is different from second application program, obtains third detection knot Fruit, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result is no, transmission i-th segment data, when i is M, it is sent completely second number According to.
Optionally, the third application program corresponding to the current top layer display interface of the detection electronic equipment is It is no different from second application program, after obtaining third testing result, the method also includes:
If the third testing result is yes, interruption transmission i-th segment data.
Optionally, whether it is the application program for meeting a preset condition in detection second application program, obtains After first testing result, the method also includes:
After having sent second data, detect corresponding to the current top layer display interface of the electronic equipment Whether three application programs are different from second application program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
Optionally, the third application program corresponding to the current top layer display interface of the detection electronic equipment is It is no different from second application program, after obtaining the 4th testing result, the method also includes:
If the 4th testing result is yes, interruption transmission first data.
Two, the embodiment of the present application also provides a kind of electronic equipment, comprising:
Shell;
Processor is connect with the shell;Wherein, the processor is configured to:
Before sending the first data, the second data are obtained, wherein first data and second data are used for It is transmitted on network;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority.
Optionally, the processor is configured to:
When the electronic equipment sends second data by second port, the processor is from the second port Place obtains second data.
Optionally, the processor is configured to:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
Optionally, the electronic equipment further includes the display unit being connected to the processor, wherein the processor quilt It is configured that
Whether in the current display interface of the display unit have first display interface in top layer, obtain second if detecting Testing result;
If second testing result be it is yes, determine that the corresponding application program of first display interface is first using journey Sequence;
Detect second application program whether with first application matches, obtain first testing result.
Optionally, the processor is configured to:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
Optionally, the processor is configured to:
Obtain second application program second applies packet name information, wherein the second application packet name information is specific For the identification information for characterizing second application program;
It detects the second application packet name information and whether first parameter information is identical, obtain the first detection knot Fruit.
Optionally, whether it is the application program for meeting a preset condition in detection second application program, obtains After first testing result, the processor is configured to:
If first testing result is no, transmission first data.
Optionally, the processor is configured to:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the electronic equipment Whether third application program corresponding to current top layer display interface is different from second application program, obtains third detection knot Fruit, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result is no, transmission i-th segment data, when i is M, it is sent completely second number According to.
Optionally, the third application program corresponding to the current top layer display interface of the detection electronic equipment is It is no different from second application program, after obtaining third testing result, the processor is configured to:
If the third testing result is yes, interruption transmission i-th segment data.
Optionally, whether it is the application program for meeting a preset condition in detection second application program, obtains After first testing result, the processor is configured to:
After having sent second data, detect corresponding to the current top layer display interface of the electronic equipment Whether three application programs are different from second application program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
Optionally, the third application program corresponding to the current top layer display interface of the detection electronic equipment is It is no different from second application program, after obtaining the 4th testing result, the processor is configured to:
If the 4th testing result is yes, interruption transmission first data.
Three, a kind of electronic equipment, comprising:
First obtains unit, before sending the first data, for obtain the second data, wherein first data and Second data on network for being transmitted;
First determination unit, for determining corresponding second application program of second data;
Second obtaining unit, for detecting whether second application program is the application program for meeting a preset condition, Obtain the first testing result;
First transmission unit, if first testing result be it is yes, second data are sent with the first priority.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present application, by obtaining the second data, wherein institute before sending the first data The first data and the second data are stated for being transmitted on network;Then, it is determined that second data corresponding second are answered Use program;When detecting second application program is the application program for meeting preset condition, institute is sent with the first priority State the second data.That is, detection meets application journey corresponding to the second data of preset condition before sending the first data Whether sequence arrives, once arriving preferentially sends second data, so, realize the technology for promoting application program operational efficiency Effect.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will be described below to embodiment Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment.
Fig. 1 is a kind of flow chart for information processing method that the embodiment of the present application one provides;
The method flow diagram of step S103 in a kind of information processing method that Fig. 2 provides for the embodiment of the present application one;
The method flow diagram of step S203 in a kind of information processing method that Fig. 3 provides for the embodiment of the present application one;
The method flow diagram of step S104 in a kind of information processing method that Fig. 4 provides for the embodiment of the present application one;
Fig. 5 is a kind of method flow diagram of the information processing method that provides of the embodiment of the present application one after step s 104;
Fig. 6 is the structural block diagram for a kind of electronic equipment that the embodiment of the present application two provides;
Fig. 7 is the structural block diagram for a kind of electronic equipment that the embodiment of the present application three provides.
Specific embodiment
The embodiment of the present application provides a kind of information processing method and electronic equipment, for solving in the prior art, when more When the flow that a application program needs is greater than the maximum throughput of current device, the low technology of program operational efficiency will occurs and ask Topic realizes the technical effect for promoting application program operational efficiency.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
Before sending the first data, the second data are obtained, wherein first data and second data are used for It is transmitted on network;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority.
In the technical solution of the embodiment of the present application, by obtaining the second data, wherein institute before sending the first data The first data and the second data are stated for being transmitted on network;Then, it is determined that second data corresponding second are answered Use program;When detecting second application program is the application program for meeting preset condition, institute is sent with the first priority State the second data.That is, detection meets application journey corresponding to the second data of preset condition before sending the first data Whether sequence arrives, once arriving preferentially sends second data, so, realize the technology for promoting application program operational efficiency Effect.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
Referring to FIG. 1, be applied in an electronic equipment for a kind of information processing method that the embodiment of the present application one provides, The described method includes:
S101: before sending the first data, the second data are obtained, wherein first data and second data For being transmitted on network;
S102: corresponding second application program of second data is determined;
S103: whether detection second application program is the application program for meeting a preset condition, obtains the first detection As a result;
S104: if first testing result be it is yes, second data are sent with the first priority.
In the specific implementation process, the electronic equipment specifically can be smart phone, laptop, tablet computer, It is also possible to other electronic equipment, here, just different one schematically illustrating.
In the specific implementation process, step S101 to step S104's the specific implementation process is as follows:
When carrying out information processing using the technical solution in the application, firstly, obtaining second before sending the first data Data, wherein first data and second data on network for being transmitted.For example, user A is passing through State social category application program C on electronic equipment to friend B send one shaped like " you now why? " text information When, in order to guarantee the normal display of the text message.The electronic equipment needs to send for characterizing this text envelope first The network data of breath, to be successfully transmitted away the text message by network.In transmission process, regarded when user A is opened When frequency class application program D, acquisition is used to start the network data of video application B by the electronic equipment.For another example, with After family C opens a browser, after inputting the keyword for the information content that oneself needs to search for, associated multiple nets will occur Network link.After user C clicks first network link, when link corresponding interface with first network and having not yet been displayed out, use Family C clicks the second network linking again.That is, obtaining the second data before the electronic equipment sends the first data.? After determining corresponding second application program of second data, when second application program is to meet answering for preset condition When with program, second data will be sent with the first priority.That is, when second application program is compared to described It is that when meeting the application program of preset condition, will preferentially send the corresponding net of second application program for first application program Network data, and then guarantee the operational efficiency of second application program, further enhance user experience.
In the embodiment of the present application, S101: before sending the first data, the second data are obtained, wherein first data And second data are used to be transmitted on network, specifically: institute is sent by second port in the electronic equipment When stating the second data, second data are obtained from the second port.In the specific implementation process, in the electronic equipment Currently running various application programs can send the network data of corresponding program by certain particular ports, so that user obtains The required information content.For example, being specially application program A, application program B in the currently running application program of the electronic equipment When, when passing through one section of network data of second port sending application program A, this section of network will be obtained from the second port Data.When passing through one section of network data of first port sending application program B, this section of net will be obtained from the first port Network data.
In the embodiment of the present application, step S102: determining corresponding second application program of second data, specifically:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
In the specific implementation process, it can be and determine that second data corresponding described second are answered in the following manner Use program.It specifically can be, based on the first corresponding relationship between data transmission port and application program, the determining and second end Corresponding second application program of mouth.In order to meet user to the use demand of the electronic equipment, the electronic equipment is past Toward setting there are many application program, and user is during using the electronic equipment, can also be in the electronic equipment Above while running multiple application programs.In order to guarantee operational efficiency between different application and interference-free to each other, In specific implementation process, for different application programs, the network data of each application program can pass through specific road Diameter is transmitted.For example, operation has an application program A simultaneously on the electronic equipment, when application program B, application program C, answer It is transmitted with one section of network data of program A via data transmission port 16721, one section of network data warp of application program B It is transmitted by data transmission port 16722, one section of network data of application program C is carried out via data transmission port 16723 Transmission.Application program each so just establishes corresponding relationship between data transmission port, when one net of acquisition at certain Single port When network data, application program corresponding with the second port can be further determined.Certainly, in specific implementation process In, it can also be designed for those skilled in the art according to specific needs other for determining second number According to the method for corresponding second application program, just do not repeat one by one herein.
In the embodiment of the present application, referring to FIG. 2, step S103: whether detection second application program is satisfaction one The application program of preset condition obtains the first testing result, specifically includes:
S201: the first display interface whether having in the current display interface of the electronic equipment in top layer is detected, is obtained Obtain the second testing result;
S202: if second testing result be it is yes, determine the corresponding application program of first display interface be first Application program;
S203: detection second application program whether with first application matches, obtain first detection As a result.
In the specific implementation process, step S201 to step S203's the specific implementation process is as follows:
Firstly, the first display interface whether having in the current display interface of the electronic equipment in top layer detected, obtain Obtain the second testing result;For example, when user is when using multiple application programs of the electronic equipment, if the second detection knot Fruit be it is yes, the display unit of the electronic equipment can show multiple application interfaces corresponding with multiple application programs, e.g., when with When family starts three QQ, Alipay, wechat application programs simultaneously, the backstage of the electronic equipment can pop up respectively answers with these three With the corresponding application interface of program, the login interface of QQ application program, the application interface of Alipay, the application circle of wechat circle of friends Face.At this moment, the electronic equipment is it needs to be determined that go out in these three application interfaces to be in the first display interface of top.Such as, it uses Family is in the logon account of input QQ, and at this moment, the login interface of QQ is top application interface.Then, it is determined that with the first display The corresponding application program in interface is the first application program.For example, QQ application program corresponding with QQ login interface is the first application Program.It is then detected that second application program whether with first application matches, obtain it is described first detection knot Fruit.
In the embodiment of the present application, referring to FIG. 3, step S203: whether detection second application program is with described the One application matches obtain first testing result, specifically include:
S301: at least one first parameter information for characterizing first application program is obtained;
S302: at least one second parameter information for characterizing second application program is obtained;
S303: detecting first parameter information and whether second parameter information matches, and obtains first detection As a result.
In the specific implementation process, step S301 to step S303's the specific implementation process is as follows:
Firstly, it is necessary to obtain at least one first parameter information for characterizing first application program, and it is used for Characterize at least one second parameter information of second application program.In the specific implementation process, for step S301, step The execution sequence of S302 does not limit specifically, specifically can be, and after executing the step S301, executes step S302;Also It can be after executing the step S302, execute step S301;It can also be and be performed simultaneously step S301 and step S302.? After obtaining at least one described first parameter information and second parameter information, first parameter information and described is detected Whether the second parameter information matches, and obtains first testing result.
In the embodiment of the present application, step S302: obtain for characterize second application program at least one second Parameter information, specifically: obtain second application program second applies packet name information, wherein described second applies packet name Information is particularly for the identification information for characterizing second application program;At this point, step S303: detection the first parameter letter Whether breath and second parameter information match, and obtain first testing result, specifically: packet name is applied in detection described second Whether information and first parameter information are identical, obtain first testing result.For example, the second application packet obtained Name information is " com.eg.android.AlipayGphone ".Likewise, obtaining the packet name information of first application program. Whether the packet name information for then detecting the second application packet name information and first application program is identical, and then described in acquisition First testing result.
In the specific implementation process, in order to guarantee whether match to first application program and second application program Testing result accuracy.Ginseng can be worked as by being compared one by one to the corresponding multiple application parameters of each application program Several it is identical when, then show first application program and the second application function procedure match.Lift a specific example For son, when second application program is specially Tencent QQ, the electronic equipment will acquire the program name of Tencent QQ, packet Name, at least one second parameter information such as version number.For example, from caller place file when showing QQ login interface Determine entitled " QQ " of the installation software of Tencent QQ, i.e. the program of acquisition Tencent QQ is entitled " QQ ".And this is being called to apply journey When sequence, obtaining for identifying the application package name information is " com.tencent.mobileqq ", and the application program is corresponding Version number is " 7.7.16077.0 ".Then, by the multiple application parameter information for being used to characterize second application program of acquisition It is compared one by one with the parameter information for characterizing first application program.First further, obtains described first and answers With program and whether identical first testing result of second application program.For example, when first application program Program name is identical with the packet name of second application program, and the packet name of first application program and second application program Packet name it is identical, and when the version number of first application program is identical with the version number of second application program, show institute State the first application program and second application matches.
In the specific implementation process, for step S302: obtain for characterize second application program at least one Second parameter information can also be based on the second corresponding relationship between data transmission port and application parameter set, and then obtain For characterizing at least one second parameter information of second application program.For example, sending network data by 16721 ports When, due to the port and application parameter set: program is entitled " wechat ", and packet name information is " com.tencent.mm ".Then right At least one second parameter information and at least one first parameter information are matched, and first testing result is obtained.Certainly, For those skilled in the art, it can also design as needed other for obtaining at least one described second ginseng The method of number information, does not just repeat one by one herein.
In the embodiment of the present application, in step S103: whether detection second application program is to meet a preset condition Application program, obtain the first testing result after, the method also includes: if first testing result be it is no, transmission institute State the first data.For example, when the first parameter information is " com.eg.android.AlipayGphone ", the second parameter information is When " com.tencent.mm ", i.e., when described second application program and first application program mismatch, and/or, current institute When stating electronic equipment without top layer display interface, then first data are sent.In addition, will to the network data of other application program It is sent according to default sequence.
In the embodiment of the present application, in order to guarantee whether first application program and second application program are matched The accuracy of testing result.Step S104: second data are sent with the first priority, referring to FIG. 4, step S104 is specific Include:
S401: successively taking i from 1 to M, before sending the i-th segment data in second data, detects the electronics and sets Whether third application program corresponding to standby current top layer display interface is different from second application program, obtains third inspection Survey result, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
S402: if the third testing result be it is no, send i-th segment data, when i is M, be sent completely described the Two data.
In the specific implementation process, step S401 to step S402's the specific implementation process is as follows:
For giving a concrete illustration, when the electronic equipment receives second data of 1M size and prepare to send out Before sending, before transmitting a bit of network data of 4K size of second data every time, foreground application is examined It surveys.When detecting that foreground application do not change, then the network data of current 4K size is successfully transmitted.That is, When transmitting one section of network data in second data every time, just detect whether current top layer display interface changes, When detecting the transmission for completing this section of network data when not changing.When i is M, then the complete of second data is completed Transmission.
In the embodiment of the present application, in step S401: detecting corresponding to the current top layer display interface of the electronic equipment Third application program it is whether different from second application program, obtain third testing result after, the method also includes: If the third testing result is yes, interruption transmission i-th segment data.Still to receive 1M size in the electronic equipment Second data when and before being ready for sending, in a bit of network data for the 4K size for transmitting second data every time Before, for detecting to foreground application, once detecting that foreground application changes, then suspend current 4K size Network data transmission.
In the specific implementation process, referring to FIG. 5, after step s 104 the method also includes:
S501: after having sent second data, the current top layer display interface institute for detecting the electronic equipment is right Whether the third application program answered is different from second application program, obtains the 4th testing result;
S502: if the 4th testing result is no, transmission first data.
In the specific implementation process, step S501 to step S502's the specific implementation process is as follows:
Firstly, the current top layer display interface institute for detecting the electronic equipment is right after having sent second data Whether the third application program answered is different from second application program, obtains the 4th testing result.That is, having sent After second data, detect whether current foreground application changes.Then, if the 4th testing result is It is no, then send first data.Still it to receive second data instance of 1M size in the electronic equipment, is sending out After having sent second data of 1M size, whether current foreground application is detected compared to second application program It changes, if do not changed, continues to send first data.
In the embodiment of the present application, in step S401: detecting corresponding to the current top layer display interface of the electronic equipment Third application program it is whether different from second application program, obtain third testing result after, the method also includes: If the 4th testing result is yes, interruption transmission first data.Still to receive 1M size in the electronic equipment Second data instance, after having sent second data of 1M size, detecting current foreground application is It is no to change compared to second application program, in case of changing, then continues to pause and send first data.
Embodiment two
Based on inventive concept same as embodiment one, referring to FIG. 6, the embodiment of the present application also provides a kind of electronics to set It is standby, comprising:
Shell 10;
Processor 20 is connect with shell 10;Wherein, processor 20 is configured as:
Before sending the first data, the second data are obtained, wherein first data and second data are used for It is transmitted on network;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority.
In the embodiment of the present application, processor 20 is configured as:
When the electronic equipment sends second data by second port, the processor is from the second port Place obtains second data.
In the embodiment of the present application, processor 20 is configured as:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
In the embodiment of the present application, the electronic equipment further includes the display unit being connected to the processor, wherein place Reason device 20 is configured as:
Whether in the current display interface of the display unit have first display interface in top layer, obtain second if detecting Testing result;
If second testing result be it is yes, determine that the corresponding application program of first display interface is first using journey Sequence;
Detect second application program whether with first application matches, obtain first testing result.
In the embodiment of the present application, processor 20 is configured as:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
In the embodiment of the present application, processor 20 is configured as:
Obtain second application program second applies packet name information, wherein the second application packet name information is specific For the identification information for characterizing second application program;
It detects the second application packet name information and whether first parameter information is identical, obtain the first detection knot Fruit.
It in the embodiment of the present application, whether is the application for meeting a preset condition in detection second application program Program, after obtaining the first testing result, processor 20 is configured as:
If first testing result is no, transmission first data.
In the embodiment of the present application, processor 20 is configured as:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the electronic equipment Whether third application program corresponding to current top layer display interface is different from second application program, obtains third detection knot Fruit, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result is no, transmission i-th segment data, when i is M, it is sent completely second number According to.
In the embodiment of the present application, the third corresponding to the current top layer display interface of the detection electronic equipment Whether application program is different from second application program, and after obtaining third testing result, processor 20 is configured as:
If the third testing result is yes, interruption transmission i-th segment data.
It in the embodiment of the present application, whether is the application for meeting a preset condition in detection second application program Program, after obtaining the first testing result, processor 20 is configured as:
After having sent second data, detect corresponding to the current top layer display interface of the electronic equipment Whether three application programs are different from second application program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
In the embodiment of the present application, the third corresponding to the current top layer display interface of the detection electronic equipment Whether application program is different from second application program, and after obtaining the 4th testing result, processor 20 is configured as:
If the 4th testing result is yes, interruption transmission first data.
Embodiment three
Based on inventive concept same as embodiment one, referring to FIG. 7, the embodiment of the present application also provides a kind of electronics to set It is standby, comprising:
First obtains unit 30, before sending the first data, for obtain the second data, wherein first data with And second data on network for being transmitted;
First determination unit 40, for determining corresponding second application program of second data;
Second obtaining unit 50, for detecting whether second application program is the application journey for meeting a preset condition Sequence obtains the first testing result;
First transmission unit 60, if first testing result be it is yes, second data are sent with the first priority.
In the embodiment of the present application, first obtains unit 30 specifically includes:
First obtains module, for when the electronic equipment sends second data by second port, from described Second data are obtained at second port.
In the embodiment of the present application, the first determination unit 40 is specifically used for:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
In the embodiment of the present application, the second obtaining unit 50 specifically includes:
Whether second obtains module, have in top layer in the current display interface specifically for detecting the electronic equipment First display interface obtains the second testing result;
First determining module, if second testing result be it is yes, answered for determining that first display interface is corresponding It is the first application program with program;
Third obtain module, for detect second application program whether with first application matches, obtain First testing result.
In the embodiment of the present application, third obtains module and specifically includes:
First obtains submodule, for obtaining at least one first parameter letter for characterizing first application program Breath;
Second obtains submodule, for obtaining at least one second parameter letter for characterizing second application program Breath;
Third obtains submodule and obtains for detecting whether first parameter information and second parameter information match Obtain first testing result.
In the embodiment of the present application, the second acquisition submodule is specifically used for:
Obtain second application program second applies packet name information, wherein the second application packet name information is specific For the identification information for characterizing second application program;
In the embodiment of the present application, third obtains submodule and is specifically used for:
It detects the second application packet name information and whether first parameter information is identical, obtain the first detection knot Fruit.
It in the embodiment of the present application, whether is the application for meeting a preset condition in detection second application program Program, after obtaining the first testing result, the electronic equipment further include:
First sending module, if first testing result be it is no, for sending first data.
In the embodiment of the present application, the first transmission unit 60 specifically includes:
4th obtains module, successively takes i from 1 to M, before sending the i-th segment data in second data, detects institute It whether different from second application program states third application program corresponding to the current top layer display interface of electronic equipment, obtains Obtain third testing result, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is not less than 1 Positive integer;
5th obtains module, if the third testing result be it is no, send i-th segment data, when i is M, sent At second data.
In the embodiment of the present application, the third corresponding to the current top layer display interface of the detection electronic equipment Whether application program is different from second application program, after obtaining third testing result, the electronic equipment further include:
First processing units, if the third testing result is yes, interruption transmission i-th segment data.
It in the embodiment of the present application, whether is the application for meeting a preset condition in detection second application program Program, after obtaining the first testing result, the electronic equipment further include:
6th obtains module, and after having sent second data, the current top layer for detecting the electronic equipment is shown Whether third application program corresponding to interface is different from second application program, obtains the 4th testing result;
Second sending module, if the 4th testing result is no, transmission first data.
In the embodiment of the present application, the third corresponding to the current top layer display interface of the detection electronic equipment Whether application program is different from second application program, after obtaining the 4th testing result, the electronic equipment further include:
The second processing unit, if the 4th testing result is yes, interruption transmission first data.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
In the technical solution of the embodiment of the present application, by obtaining the second data, wherein institute before sending the first data The first data and the second data are stated for being transmitted on network;Then, it is determined that second data corresponding second are answered Use program;When detecting second application program is the application program for meeting preset condition, institute is sent with the first priority State the second data.That is, detection meets application journey corresponding to the second data of preset condition before sending the first data Whether sequence arrives, once arriving preferentially sends second data, so, realize the technology for promoting application program operational efficiency Effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with information processing method in storage medium One electronic equipment reads or is performed, and includes the following steps:
Before sending the first data, the second data are obtained, wherein first data and second data are used for It is transmitted on network;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority.
Optionally, store in the storage medium and step: the second data of the acquisition, corresponding computer program refer to It enables, when executed, specifically includes:
When the electronic equipment sends second data by second port, obtained from the second port described Second data.
Optionally, stored in the storage medium with step: corresponding second application of determination second data Program, corresponding computer program instructions, when executed, specifically:
Based on the first corresponding relationship between data transmission port and application program, institute corresponding with the second port is determined State the second application program.
Optionally, store in the storage medium and step: whether detection second application program is satisfaction The application program of one preset condition, obtains the first testing result, and corresponding computer program instructions are when executed, specific to wrap It includes:
Whether in the current display interface of the electronic equipment have first display interface in top layer, obtain second if detecting Testing result;
If second testing result be it is yes, determine that the corresponding application program of first display interface is first using journey Sequence;
Detect second application program whether with first application matches, obtain first testing result.
Optionally, stored in the storage medium and step: the detection second application program whether with it is described First application matches, obtain first testing result, and corresponding computer program instructions are when executed, specific to wrap It includes:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
Optionally, store in the storage medium and step: the acquisition is for characterizing second application program At least one second parameter information, corresponding computer program instructions, when executed, specifically:
Obtain second application program second applies packet name information, wherein the second application packet name information is specific For the identification information for characterizing second application program;
Whether the detection first parameter information and second parameter information match, and obtain the first detection knot Fruit, specifically:
It detects the second application packet name information and whether first parameter information is identical, obtain the first detection knot Fruit.
Optionally, whether store in the storage medium and step: being full in detection second application program The application program of one preset condition of foot, after obtaining the first testing result, corresponding computer program instructions, when executed, The method also includes:
If first testing result is no, transmission first data.
Optionally, stored in the storage medium and step: it is described that second data are sent with the first priority, it is right The computer program instructions answered specifically include when executed:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the electronic equipment Whether third application program corresponding to current top layer display interface is different from second application program, obtains third detection knot Fruit, wherein second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result is no, transmission i-th segment data, when i is M, it is sent completely second number According to.
Optionally, stored in the storage medium and step: aobvious in the current top layer of the detection electronic equipment Show whether third application program corresponding to interface is different from second application program, it is right after obtaining third testing result The computer program instructions answered, when executed, the method also includes:
If the third testing result is yes, interruption transmission i-th segment data.
Optionally, whether store in the storage medium and step: being full in detection second application program The application program of one preset condition of foot, after obtaining the first testing result, corresponding computer program instructions, when executed, The method also includes:
After having sent second data, detect corresponding to the current top layer display interface of the electronic equipment Whether three application programs are different from second application program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
Optionally, stored in the storage medium and step: aobvious in the current top layer of the detection electronic equipment Show whether third application program corresponding to interface is different from second application program, it is right after obtaining the 4th testing result The computer program instructions answered, when executed, the method also includes:
If the 4th testing result is yes, interruption transmission first data.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (21)

1. a kind of information processing method is applied to an electronic equipment, comprising:
Before sending the first data, the second data are obtained, wherein first data and second data are used in network On transmitted;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority;
Wherein, described that second data are sent with the first priority, it specifically includes:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the current of the electronic equipment Whether third application program corresponding to top layer display interface is different from second application program, obtains third testing result, Wherein, second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result be it is no, send i-th segment data, when i is M, be sent completely second data.
2. the method as described in claim 1, which is characterized in that the second data of the acquisition specifically include:
When the electronic equipment sends second data by second port, described second is obtained from the second port Data.
3. method according to claim 2, which is characterized in that determination second data corresponding second apply journey Sequence, specifically:
Based on the first corresponding relationship between data transmission port and application program, corresponding with the second port described the is determined Two application programs.
4. the method as described in claim 1, which is characterized in that whether detection second application program is to meet one in advance If the application program of condition, the first testing result is obtained, is specifically included:
Whether in the current display interface of the electronic equipment have first display interface in top layer, obtain the second detection if detecting As a result;
If second testing result be it is yes, determine the corresponding application program of first display interface be the first application program;
Detect second application program whether with first application matches, obtain first testing result.
5. method as claimed in claim 4, which is characterized in that whether the detection second application program is with described first Application matches obtain first testing result, specifically include:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
6. method as claimed in claim 5, which is characterized in that the acquisition is for characterizing second application program at least One the second parameter information, specifically:
Obtain second application program second applies packet name information, wherein the second application packet name information is specially to use In the identification information for characterizing second application program;
Whether the detection first parameter information and second parameter information match, and obtain first testing result, Specifically:
It detects the second application packet name information and whether first parameter information is identical, obtain first testing result.
7. the method as described in any claim of claim 1-6, which is characterized in that be in detection second application program The no application program to meet a preset condition, after obtaining the first testing result, the method also includes:
If first testing result is no, transmission first data.
8. the method as described in claim 1, which is characterized in that show boundary in the current top layer of the detection electronic equipment Whether third application program corresponding to face is different from second application program, after obtaining third testing result, the side Method further include:
If the third testing result is yes, interruption transmission i-th segment data.
9. the method for claim 7, which is characterized in that detect whether second application program is satisfaction one described The application program of preset condition, after obtaining the first testing result, the method also includes:
After having sent second data, detects third corresponding to the current top layer display interface of the electronic equipment and answer It is whether different from second application program with program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
10. method as claimed in claim 9, which is characterized in that shown in the current top layer of the detection electronic equipment Whether third application program corresponding to interface is different from second application program, described after obtaining the 4th testing result Method further include:
If the 4th testing result is yes, interruption transmission first data.
11. a kind of electronic equipment, comprising:
Shell;
Processor is connect with the shell;Wherein, the processor is configured to:
Before sending the first data, the second data are obtained, wherein first data and second data are used in network On transmitted;
Determine corresponding second application program of second data;
Detect whether second application program is the application program for meeting a preset condition, obtains the first testing result;
If first testing result be it is yes, second data are sent with the first priority;
Wherein, described that second data are sent with the first priority, it specifically includes:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the current of the electronic equipment Whether third application program corresponding to top layer display interface is different from second application program, obtains third testing result, Wherein, second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result be it is no, send i-th segment data, when i is M, be sent completely second data.
12. electronic equipment as claimed in claim 11, which is characterized in that the processor is configured to:
When the electronic equipment sends second data by second port, the processor obtains from the second port Obtain second data.
13. electronic equipment as claimed in claim 12, which is characterized in that the processor is configured to:
Based on the first corresponding relationship between data transmission port and application program, corresponding with the second port described the is determined Two application programs.
14. electronic equipment as claimed in claim 11, which is characterized in that the electronic equipment further includes connecting with the processor The display unit connect, wherein the processor is configured to:
Whether in the current display interface of the display unit have first display interface in top layer, obtain the second detection if detecting As a result;
If second testing result be it is yes, determine the corresponding application program of first display interface be the first application program;
Detect second application program whether with first application matches, obtain first testing result.
15. electronic equipment as claimed in claim 14, which is characterized in that the processor is configured to:
Obtain at least one first parameter information for characterizing first application program;
Obtain at least one second parameter information for characterizing second application program;
It detects first parameter information and whether second parameter information matches, obtain first testing result.
16. electronic equipment as claimed in claim 15, which is characterized in that the processor is configured to:
Obtain second application program second applies packet name information, wherein the second application packet name information is specially to use In the identification information for characterizing second application program;
It detects the second application packet name information and whether first parameter information is identical, obtain first testing result.
17. the electronic equipment as described in any claim of claim 11-16, which is characterized in that answered in the detection described second It whether is the application program for meeting a preset condition with program, after obtaining the first testing result, the processor is configured to:
If first testing result is no, transmission first data.
18. electronic equipment as claimed in claim 11, which is characterized in that in the current top layer of the detection electronic equipment Whether third application program corresponding to display interface is different from second application program, after obtaining third testing result, The processor is configured to:
If the third testing result is yes, interruption transmission i-th segment data.
19. electronic equipment as claimed in claim 17, which is characterized in that the detection second application program whether be Meet the application program of a preset condition, after obtaining the first testing result, the processor is configured to:
After having sent second data, detects third corresponding to the current top layer display interface of the electronic equipment and answer It is whether different from second application program with program, obtain the 4th testing result;
If the 4th testing result is no, transmission first data.
20. electronic equipment as claimed in claim 19, which is characterized in that in the current top layer of the detection electronic equipment Whether third application program corresponding to display interface is different from second application program, after obtaining the 4th testing result, The processor is configured to:
If the 4th testing result is yes, interruption transmission first data.
21. a kind of electronic equipment, comprising:
First obtains unit, before sending the first data, for obtaining the second data, wherein first data and described Second data on network for being transmitted;
First determination unit, for determining corresponding second application program of second data;
Second obtaining unit is obtained for detecting whether second application program is the application program for meeting a preset condition First testing result;
First transmission unit, if first testing result be it is yes, second data are sent with the first priority;
Wherein, described that second data are sent with the first priority, it specifically includes:
It successively takes i from 1 to M, before sending the i-th segment data in second data, detects the current of the electronic equipment Whether third application program corresponding to top layer display interface is different from second application program, obtains third testing result, Wherein, second data include M segment data, and M is the positive integer more than or equal to 1, and i is the positive integer not less than 1;
If the third testing result be it is no, send i-th segment data, when i is M, be sent completely second data.
CN201510702806.XA 2015-10-26 2015-10-26 A kind of information processing method and electronic equipment Active CN105389205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510702806.XA CN105389205B (en) 2015-10-26 2015-10-26 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510702806.XA CN105389205B (en) 2015-10-26 2015-10-26 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105389205A CN105389205A (en) 2016-03-09
CN105389205B true CN105389205B (en) 2019-08-27

Family

ID=55421512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510702806.XA Active CN105389205B (en) 2015-10-26 2015-10-26 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105389205B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775988A (en) * 2016-12-30 2017-05-31 广东欧珀移动通信有限公司 A kind of data processing method and equipment
CN111352661A (en) * 2018-12-24 2020-06-30 中兴通讯股份有限公司 Data transmission method, video conference terminal, display terminal and system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212472A (en) * 2006-12-31 2008-07-02 乐金电子(中国)研究开发中心有限公司 Method for enabling mobile terminals to establish a plurality of point-to-point connections
CN101309195A (en) * 2008-06-18 2008-11-19 华为技术有限公司 Method and apparatus for guarantee quality of service of secure socket layer of virtual private network
CN101436992A (en) * 2008-12-31 2009-05-20 华为技术有限公司 Method, apparatus and system for transferring user message
CN103229543A (en) * 2010-07-08 2013-07-31 马尼帕尔大学 Delivery of multimedia service in mobile network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100268841A1 (en) * 2009-04-20 2010-10-21 Texas Instruments Incorporated Using higher layer information to facilitate coexistence in wireless networks
CN103024825B (en) * 2011-09-26 2015-07-01 中国移动通信集团公司 Method and device of distributing network source among multiple applications of terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212472A (en) * 2006-12-31 2008-07-02 乐金电子(中国)研究开发中心有限公司 Method for enabling mobile terminals to establish a plurality of point-to-point connections
CN101309195A (en) * 2008-06-18 2008-11-19 华为技术有限公司 Method and apparatus for guarantee quality of service of secure socket layer of virtual private network
CN101436992A (en) * 2008-12-31 2009-05-20 华为技术有限公司 Method, apparatus and system for transferring user message
CN103229543A (en) * 2010-07-08 2013-07-31 马尼帕尔大学 Delivery of multimedia service in mobile network

Also Published As

Publication number Publication date
CN105389205A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
US20170324859A1 (en) Information processing method, terminal, and computer-readable storage medium
US9635098B2 (en) Open platform, open platform access system, storage medium, and method for allowing third party application to access open platform
WO2019201511A8 (en) Method and data processing apparatus
CN104317648B (en) A kind of method and apparatus of monitoring advertisement
CN106897216A (en) The method and apparatus of test software
CN107491374A (en) A kind of determination methods and computing device of equipment downtime state
CN106776039A (en) A kind of data processing method and device
CN105389205B (en) A kind of information processing method and electronic equipment
CN106558313A (en) Audio recognition method and device
CN106302437A (en) Method of speech processing and device
JP2013198158A (en) Hardware protocol stack
CN104866282B (en) A kind of method and electronic equipment of control electronics
CN107483208A (en) Generation, verification method and the device of identifying code picture
CN107608711A (en) Upgrade method, device, system and electronic equipment
CN106708710A (en) Thread jamming identification method and apparatus
CN104536884A (en) Code testing method and device
CN107547451A (en) A kind of multipath server, CPU connection methods and device
WO2023071566A1 (en) Data processing method and apparatus, computer device, computer-readable storage medium, and computer program product
CN103927341B (en) A kind of method and device for obtaining scene information
CN103281221B (en) Fire-fighting Internet of things system method of testing
CN103176843B (en) The file migration method and apparatus of MapReduce distributed system
CN109698774A (en) Method and device for monitoring device working condition
CN105703964A (en) Online application system test method and equipment
CN108600347A (en) A kind of distributed computational data synchronous method and device
CN108182116A (en) A kind of bidding documents analysis method, device, equipment and storage medium

Legal Events

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