CN105227606B - Application program adaptation method and device - Google Patents
Application program adaptation method and device Download PDFInfo
- Publication number
- CN105227606B CN105227606B CN201410288680.1A CN201410288680A CN105227606B CN 105227606 B CN105227606 B CN 105227606B CN 201410288680 A CN201410288680 A CN 201410288680A CN 105227606 B CN105227606 B CN 105227606B
- Authority
- CN
- China
- Prior art keywords
- adaptation
- solution packet
- flag bit
- application program
- terminal
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of application program adaptation method and devices, belong to Internet technical field.The method includes:Obtain the type characteristic information of terminal;Type characteristic information is sent to server;The adaptation solution packet that server is sent is received, which is that server is obtained according to type characteristic information;The adaptation of application program in the terminal is completed according to adaptation solution packet.The present invention is solved in the relevant technologies by being accomplished manually adaptation work of the application program in different terminals, leads to the problem of efficiency is low, accuracy is poor;Terminal from server by downloading adaptation solution packet to complete the adaptation of application program automatically, realize full automatic adaptation procedure, substantially increase Adaption efficiency of the application program in different terminals, it also avoids manually being adapted to the error that may be brought simultaneously, improves the accuracy of adaptation result.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of application program adaptation method and device.
Background technology
With the fast development of end product and universal, the adaptation issues between application program and different terminals perplex always
User, application developers and manufacturer terminal.
Application program will cause application program that can not install with not being adapted to for terminal, program crashing, start time length, UI
(User Interface, user interface) dislocation, fluctuation of service generate a series of problems, such as conflicting with other application program.
In the related art, adaptation work of the application program in different terminals is usually manually completed by adaptation personnel.Adaptation personnel need
Manually complete the work such as installation, test and error correction of the application program in the terminal of different type of machines, and the end of same type
It is also required to repeat the above process repeated multiple timesly in end.
In the implementation of the present invention, inventor has found that above-mentioned technology has at least the following problems:Due to application program
Adaptation work in different terminals is a repetition and a large amount of work, the Adaption efficiency being manually adapted to are relatively low;In addition, people
It is inevitably slipped in work adaptation procedure, causes the accuracy for being adapted to result also poor.
Invention content
In order to solve to lead to efficiency by being accomplished manually adaptation work of the application program in different terminals in the relevant technologies
Low, the problem of accuracy is poor, an embodiment of the present invention provides a kind of application program adaptation method and devices.The technical solution is such as
Under:
In a first aspect, a kind of application program adaptation method is provided, the method includes:
Obtain the type characteristic information of terminal;
The type characteristic information is sent to server;
Receive the adaptation solution packet that the server is sent, the adaptation solution packet be the server according to
What the type characteristic information obtained;
The adaptation solution packet is loaded onto in the application program;
Run the application program and the adaptation solution packet;
The adaptation solution packet is monitored in the process of running with the presence or absence of abnormal;
If there is exception, the flag bit for terminating label is modified, the flag bit for terminating label is before a modification
It is identical with the flag bit for starting label, it is different from the flag bit for starting label after the modification;
After end of run, judge whether the flag bit for terminating label and the flag bit for starting label are identical;
If the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the adaptation solution party
Case packet runs the adaptation for successfully, completing the application program in the terminal.
Second aspect provides a kind of application program adaptation method, the method includes:
Receive the type characteristic information that terminal is sent;
Adaptation solution packet is obtained according to the type characteristic information;
The adaptation solution packet is sent to the terminal, the adaptation solution packet will for triggering the terminal
The adaptation solution packet is loaded onto in the application program, runs the application program and the adaptation solution packet,
The adaptation solution packet is monitored in the process of running with the presence or absence of exception, if there is exception, the mark of label will be terminated
Position modify, it is described terminate label flag bit before a modification with start label flag bit it is identical, after the modification with it is described
The flag bit for starting label is different, after end of run, judges the flag bit for terminating label and the mark for starting label
Whether will position is identical, if the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the adaptation
Solution packet runs the adaptation for successfully, completing the application program in the terminal.
The third aspect, provides a kind of application program adaptive device, and described device includes:
Type acquisition module, for obtaining the type characteristic information of terminal;
Type sending module, for the type characteristic information to be sent to server;
Scheme receiving module, for receiving the adaptation solution packet that the server is sent, the adaptation solution
Packet is that the server is obtained according to the type characteristic information;
It is suitable in the terminal for completing application program according to the adaptation solution packet using adaptation module
Match;
Wherein, it is described to apply adaptation module, including:Scheme loads submodule, application operation submodule and using aptamer
Module;
The scheme loads submodule, for the adaptation solution packet to be loaded onto in the application program;
The application operation submodule, for running the application program and the adaptation solution packet;
The application is adapted to submodule, suitable in the terminal for completing the application program according to operation result
Match;
The application is adapted to submodule, including:Run detection unit and adaptation failure unit;
The operation detection unit, for detecting whether the adaptation solution packet runs success;
The adaptation failure unit, if for the adaptation solution packet operation failure, it is determined that this adaptation failure;
The operation detection unit, including:Exception monitoring subelement, label modification subelement, marker for judgment subelement, the
One determination subelement;
The exception monitoring subelement, for monitoring the adaptation solution packet in the process of running with the presence or absence of different
Often;
The label modification subelement, if abnormal for existing, the flag bit for terminating label is modified, the knot
The flag bit of beam label is identical with starting the flag bit of label before a modification, after the modification with the flag bit for starting label not
Together;
The marker for judgment subelement, for after end of run, judging the flag bit for terminating label and described opening
Whether the flag bit of dynamic label is identical;
First determination subelement, if for the flag bit for terminating label and the flag bit phase for starting label
Together, it is determined that the adaptation solution packet runs the adaptation for successfully, completing the application program in the terminal.
Fourth aspect, provides a kind of application program adaptive device, and described device includes:
Type receiving module, for receiving the type characteristic information of terminal transmission;
Scheme acquisition module, for obtaining adaptation solution packet according to the type characteristic information;
Scheme sending module, for sending the adaptation solution packet, the adaptation solution packet to the terminal
The adaptation solution packet is loaded onto in the application program for triggering the terminal, runs the application program and institute
Adaptation solution packet is stated, the monitoring adaptation solution packet is in the process of running with the presence or absence of exception, if there is exception,
The flag bit of end label is modified, the flag bit for terminating label is before a modification with starting the flag bit phase marked
Together, after the modification from it is described start label flag bit it is different, after end of run, judge it is described terminate mark flag bit with
Whether the flag bit for starting label is identical, if the flag bit for terminating label and the flag bit phase for starting label
Together, it is determined that the adaptation solution packet runs the adaptation for successfully, completing the application program in the terminal.
5th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage medium
Program, described program are performed to realize method as described in relation to the first aspect by processor.
6th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage medium
Program, described program are performed to realize the method as described in second aspect as processor.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
Type characteristic information is sent to server after type characteristic information by obtaining terminal, so as to server according to
Type characteristic information obtains adaptation solution packet, receives the adaptation solution packet that server is sent, is then solved according to adaptation
Certainly scheme packet completes the adaptation of application program in the terminal;It solves in the relevant technologies by being accomplished manually application program in difference
Adaptation work in terminal, leads to the problem of efficiency is low, accuracy is poor;Terminal is solved by downloading adaptation from server automatically
Scheme packet realizes full automatic adaptation procedure, substantially increases application program at different ends to complete the adaptation of application program
Adaption efficiency in end, while also avoid manually being adapted to the error that may be brought, improve the accuracy of adaptation result.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is a kind of structure diagram of implementation environment involved by each embodiment of the present invention;
Fig. 2 is the method flow diagram of application program adaptation method provided by one embodiment of the present invention;
Fig. 3 is the method flow diagram for the application program adaptation method that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram for the application program adaptation method that yet another embodiment of the invention provides;
Fig. 5 is the block diagram of application program adaptive device provided by one embodiment of the present invention;
Fig. 6 is the block diagram for the application program adaptive device that another embodiment of the present invention provides;
Fig. 7 is the block diagram of application program adaption system provided by one embodiment of the present invention;
Fig. 8 is the structure diagram of terminal provided by one embodiment of the present invention;
Fig. 9 is the structure diagram of server provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
It please refers to Fig.1, it illustrates a kind of structure diagrams of implementation environment involved by each embodiment of the present invention, should
Implementation environment includes at least one terminal 20 and server 40.
Terminal 20 can be smart mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture
Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving
Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, knee
Mo(u)ld top half pocket computer, desktop computer and smart television etc..
It can be connected between terminal 20 and server 40 by cable network or wireless network.
Server 40 can be a server or the server cluster or one being made of several servers
A cloud computing service center.
It please refers to Fig.2, it illustrates the method flow diagram of application program adaptation method provided by one embodiment of the present invention,
The present embodiment is illustrated with the application program adaptation method applied to the end side in implementation environment shown in Fig. 1.The application
Program adaptation method can include the following steps:
Step 202, the type characteristic information of terminal is obtained.
Step 204, type characteristic information is sent to server.
Step 206, the adaptation solution packet that server is sent is received, which is server according to machine
What type characteristic information obtained.
Step 208, the adaptation of application program in the terminal is completed according to adaptation solution packet.
In conclusion application program adaptation method provided in this embodiment, after the type characteristic information by obtaining terminal
Type characteristic information is sent to server, so that server obtains adaptation solution packet according to type characteristic information, is received
Then the adaptation solution packet that server is sent completes the adaptation of application program in the terminal according to adaptation solution packet;
It solves in the relevant technologies by being accomplished manually adaptation work of the application program in different terminals, leads to that efficiency is low, accuracy
The problem of poor;Terminal is realized by downloading adaptation solution packet from server automatically to complete the adaptation of application program
Full automatic adaptation procedure substantially increases Adaption efficiency of the application program in different terminals, while also avoids manually suitable
With the error that may be brought, the accuracy of adaptation result is improved.
Please refer to Fig.3, it illustrates another embodiment of the present invention provide application program adaptation method method flow diagram,
The present embodiment is illustrated with the application program adaptation method applied to the server side in implementation environment shown in Fig. 1.It should answer
It can include the following steps with program adaptation method:
Step 302, the type characteristic information that terminal is sent is received.
Step 304, adaptation solution packet is obtained according to type characteristic information.
Step 306, adaptation solution packet is sent to terminal, the adaptation solution packet is for triggering terminal according to adaptation
Solution packet completes the adaptation of application program in the terminal.
In conclusion application program adaptation method provided in this embodiment, the type feature sent by receiving terminal is believed
Breath obtains adaptation solution packet according to type characteristic information, then adaptation solution packet is sent to terminal, so as to terminal root
The adaptation of application program in the terminal is completed according to adaptation solution packet;It solves in the relevant technologies and applies journey by being accomplished manually
Adaptation work of the sequence in different terminals, leads to the problem of efficiency is low, accuracy is poor;By issuing adaptation solution to terminal
Packet realizes full automatic adaptation procedure, substantially increases application program not to complete the adaptation of application program in the terminal
It with the Adaption efficiency in terminal, while also avoids manually being adapted to the error that may be brought, improves the accuracy of adaptation result.
Please refer to Fig.4, it illustrates yet another embodiment of the invention provide application program adaptation method method flow diagram,
The present embodiment is with the application program adaptation method applied to being illustrated in implementation environment shown in Fig. 1.The application program is adapted to
Method can include the following steps:
Step 401, the type characteristic information of terminal is obtained.
Installation needs the application program being adapted in terminal, which can obtain the type characteristic information of terminal.Its
In, type characteristic information generally includes the letters such as manufacturer, model, operating system version and the various hardware parameters corresponding to terminal
Breath.
Step 402, type characteristic information is sent to server.
After application program obtains the type characteristic information of terminal, triggering terminal communicates with server, by type feature
Information is sent to server.
Accordingly, the type characteristic information that server receiving terminal is sent.
Step 403, adaptation solution packet is obtained according to type characteristic information.
After server receives the type characteristic information of terminal transmission, one is chosen from the adaptation solution library to prestore
It is adapted to solution packet.Be adapted to solution packet in comprising several API (Application Programming Interface,
Application programming interface) and some executable codes.Suitable adaptation solution packet is loaded onto in application program by terminal
Afterwards, the order in adaptation solution packet is performed by modes operating systems such as API coverings, so that application program energy
Enough successful adaptations in the terminal.
Specifically, this step can include following several sub-steps:
First, judge to be adapted in solution library with the presence or absence of adaptation solution packet corresponding with type characteristic information.
The correspondence being stored in adaptation solution library between different type of machines characteristic information and different adaptation solution packets
Relationship.Wherein, adaptation personnel write adaptation solution packet, the terminal packet of the different type of machines for the terminal of different type of machines in advance
Include that manufacturer corresponding to terminal is different, model is different, operating system version is different or the parameter of various hardware is different;Then it fits
It is loaded onto solution packet is adapted in application program and debugs with personnel, situation without exception in program operation process to be applied
During generation, you can it is the adaptation solution packet corresponding to the type to think the adaptation solution packet.Later, adaptation personnel will
Solution packet is corresponding stores into the adaptation solution library of server with adaptation for the type characteristic information of terminal.
Second, if in the presence of adaptation solution packet corresponding with type characteristic information, obtain and type characteristic information pair
The adaptation solution packet answered.
Third, if there is no adaptation solution packet corresponding with type characteristic information, the adaptation for obtaining acquiescence solves
Scheme packet.
When being adapted in solution library there is no during adaptation solution packet corresponding with type characteristic information, illustrate terminal
For new architecture, such as the new architecture that the terminal is the production of certain manufacturer, equipped with new operating system and new hardware, fit
Corresponding adaptation solution packet temporarily is not write for the type with personnel, then server chooses the adaptation solution packet of acquiescence.
Step 404, adaptation solution packet is sent to terminal.
After server chooses adaptation solution packet from adaptation solution library, adaptation solution is issued to terminal
Packet.
Accordingly, terminal receives the adaptation solution packet that server is sent.
Step 405, the adaptation of application program in the terminal is completed according to adaptation solution packet.
Specifically, this step can include following several sub-steps:
First, adaptation solution packet is loaded onto in application program.
After terminal receives the adaptation solution packet that server issues, adaptation solution packet is loaded onto using journey
In sequence.
Second, run application program and adaptation solution packet.
Third completes the adaptation of application program in the terminal according to operation result.
1st, whether detection adaptation solution packet runs success.
In a possible embodiment, terminal can detect whether adaptation solution packet runs into the following way
Work(:
(1) monitoring adaptation solution packet is in the process of running with the presence or absence of abnormal.
In solution packet operational process is adapted to, terminal monitors it with the presence or absence of exception in real time, which can include
Situations such as program crashing, program can not be run or program operation malfunctions.
(2) if there is exception, the flag bit for terminating label is modified.
Wherein, the flag bit for terminating label is identical with starting the flag bit of label before a modification, is marked after the modification with starting
The flag bit of note is different.
Startup label is provided in application program and terminates label.Start label and terminate the flag bit of label in initial shape
It is 0 under state.When adaptation solution packet has abnormal conditions generation in the process of running, application program will terminate the mark of label
It is revised as 1 in will position.
(3) after end of run, judge to terminate the flag bit of label and whether the flag bit of startup label is identical.
Whether the flag bit for terminating label by comparing and the flag bit for starting label are identical, it may be determined that go out adaptation and solve
Whether scheme packet has abnormal conditions in the process of running, so that it is determined that whether the adaptation solution packet runs success.
(4) if the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the packet operation of adaptation solution
Success.
For example, when the flag bit and the flag bit of startup label that terminate label are 0, illustrate to be adapted to solution Bao Yun
It goes successfully.
(5) if the flag bit for terminating label is different with the flag bit for starting label, it is determined that the packet operation of adaptation solution
Failure.
For example, when start label flag bit be 0 and terminate label flag bit be 1 when, illustrate be adapted to solution
Packet operation failure.
If the 2nd, adaptation solution packet operation failure, it is determined that this adaptation failure.
When being adapted to the operation failure of solution packet, illustrate that the adaptation solution packet does not apply to the suitable of present terminal
With solution packet namely this adaptation failure.Wherein, new behaviour may be equipped with including present terminal the reason of adaptation failure
Make system or present terminal is equipped with new hardware etc..
If the 3, adaptation solution packet is run successfully, judge to be adapted at least one output valve corresponding to solution packet
Whether conform to a predetermined condition.
When adaptation solution packet is run successfully, in order to further improve the accuracy of adaptation result, it can be determined that suitable
Whether at least one output valve corresponding to solution packet conforms to a predetermined condition.Predetermined condition generally comprises at least one defeated
Go out the predetermined value of value.For each output valve, when real output value is identical with predetermined value, illustrate that output valve meets predetermined item
Part;When real output value and predetermined value difference, illustrate not meeting predetermined condition.
If the 4th, conform to a predetermined condition, it is determined that this is adapted to successfully.
When at least one output valve corresponding to adaptation solution packet conforms to a predetermined condition, illustrate that this is adapted to
Work(, terminal preserve the adaptation solution.
If predetermined condition the 5th, is not met, it is determined that this adaptation failure.
When at least one output valve corresponding to adaptation solution packet does not meet predetermined condition, illustrate that this adaptation is lost
It loses, terminal needs to load more particularly suitable adaptation solution packet so that application program successful adaptation in the terminal.
Step 406, when determining this adaptation failure, adaptation solution packet is deleted from application program.
When determining this adaptation failure, adaptation solution packet is deleted from application program, so as in subsequent process
It is middle to download more particularly suitable adaptation solution packet.
Step 407, adaptation failure response is sent to server.
Terminal to server sends adaptation failure response, with the adaptation solution packet that issues before this notification server simultaneously
Non- suitable adaptation solution packet.
Optionally, the type characteristic information of terminal can be carried by being adapted in failure response, the type characteristic information is usual
Including information such as manufacturer, model, operating system version and the various hardware parameters corresponding to terminal.
Accordingly, the adaptation failure response that server receiving terminal is sent.
Step 408, the adaptation solution of type characteristic information is corresponded to according to the generation of adaptation failure response or modification
Packet.
After server receives adaptation failure response, the type characteristic information of the terminal of storage adaptation failure.Adaptation personnel
Get the adaptation failure terminal type characteristic information after, check in the adaptation solution library of server with the presence or absence of pair
It should be in the adaptation solution packet of the type characteristic information;If in the presence of, which is modified and is debugged,
So that the adaptation solution packet is after being loaded onto in application program, application program can with the terminal successful adaptation of the type,
Modified adaptation solution packet is replaced original adaptation solution packet by adaptation personnel later;If being not present, illustrate
The corresponding terminal of type characteristic information is new architecture, and terminal of the adaptation personnel corresponding to the type characteristic information writes adaptation
Solution packet, and solution packet is corresponding stores into server with adaptation by type characteristic information, so as in subsequent process
In for the type terminal provide accurately adaptation solution packet.
In this way, ought occur new terminal or terminal in the market equipped with new operating system or terminal equipped with new
Hardware when, can rapidly make a response to adaptation issues of the application program in above-mentioned terminal so that terminal can to the greatest extent
Suitable adaptation solution packet is got in time that may be short from server, ensures that application program is fast in different terminals
Speed is accurately finished adaptation.
In conclusion application program adaptation method provided in this embodiment, after the type characteristic information by obtaining terminal
Type characteristic information is sent to server, so that server obtains adaptation solution packet according to type characteristic information, is received
Then the adaptation solution packet that server is sent completes the adaptation of application program in the terminal according to adaptation solution packet;
It solves in the relevant technologies by being accomplished manually adaptation work of the application program in different terminals, leads to that efficiency is low, accuracy
The problem of poor;Terminal is realized by downloading adaptation solution packet from server automatically to complete the adaptation of application program
Full automatic adaptation procedure substantially increases Adaption efficiency of the application program in different terminals, while also avoids manually suitable
With the error that may be brought, the accuracy of adaptation result is improved.
In addition, application program adaptation method provided in this embodiment, when terminal determines this adaptation failure, to server
Send adaptation failure response so that server corresponds to the terminal of adaptation failure according to the generation of adaptation failure response or modification
The adaptation solution packet of type characteristic information, fully ensured that the adaptation solution packet stored in server accuracy and
Integrality so that server provides more accurate adaptation solution packet for more types in the follow-up process.In addition, work as
When server is Cloud Server, it is truly realized full-automatic, efficient cloud adaptation.
Following is apparatus of the present invention embodiment, can be used for performing the method for the present invention embodiment.For apparatus of the present invention reality
The details not disclosed in example is applied, please refers to the method for the present invention embodiment.
Fig. 5 is please referred to, it illustrates the block diagram of application program adaptive device provided by one embodiment of the present invention,
The application program adaptive device can be implemented in combination with by software, hardware or both as some or all of of terminal.
The application program adaptive device can include:Type acquisition module 510, type sending module 520,530 and of scheme receiving module
Using adaptation module 540.
Type acquisition module 510, for obtaining the type characteristic information of terminal.
Type sending module 520, for the type characteristic information to be sent to server.
Scheme receiving module 530, for receiving the adaptation solution packet that the server is sent, the adaptation solution party
Case packet is that the server is obtained according to the type characteristic information.
Using adaptation module 540, for completing application program in the terminal according to the adaptation solution packet
Adaptation.
In conclusion application program adaptive device provided in this embodiment, after the type characteristic information by obtaining terminal
Type characteristic information is sent to server, so that server obtains adaptation solution packet according to type characteristic information, is received
Then the adaptation solution packet that server is sent completes the adaptation of application program in the terminal according to adaptation solution packet;
It solves in the relevant technologies by being accomplished manually adaptation work of the application program in different terminals, leads to that efficiency is low, accuracy
The problem of poor;Terminal is realized by downloading adaptation solution packet from server automatically to complete the adaptation of application program
Full automatic adaptation procedure substantially increases Adaption efficiency of the application program in different terminals, while also avoids manually suitable
With the error that may be brought, the accuracy of adaptation result is improved.
Please refer to Fig. 6, it illustrates another embodiment of the present invention provide application program adaptive device block diagram,
The application program adaptive device can be implemented in combination with by software, hardware or both as the part of server or complete
Portion.The application program adaptive device can include:Type receiving module 610, scheme acquisition module 620 and scheme sending module
630。
Type receiving module 610, for receiving the type characteristic information of terminal transmission.
Scheme acquisition module 620, for obtaining adaptation solution packet according to the type characteristic information.
Scheme sending module 630, for sending the adaptation solution packet, the adaptation solution to the terminal
It wraps and adaptation of the application program in the terminal is completed according to the adaptation solution packet for triggering the terminal.
In conclusion application program adaptive device provided in this embodiment, the type feature sent by receiving terminal is believed
Breath obtains adaptation solution packet according to type characteristic information, then adaptation solution packet is sent to terminal, so as to terminal root
The adaptation of application program in the terminal is completed according to adaptation solution packet;It solves in the relevant technologies and applies journey by being accomplished manually
Adaptation work of the sequence in different terminals, leads to the problem of efficiency is low, accuracy is poor;By issuing adaptation solution to terminal
Packet realizes full automatic adaptation procedure, substantially increases application program not to complete the adaptation of application program in the terminal
It with the Adaption efficiency in terminal, while also avoids manually being adapted to the error that may be brought, improves the accuracy of adaptation result.
Fig. 7 is please referred to, it illustrates the block diagram of application program adaption system provided by one embodiment of the present invention,
The application program adaption system includes terminal 500 and server 600.
Terminal 500 can include application program adaptive device, the application program adaptive device can by software, hardware or
Both persons' is implemented in combination with as some or all of of terminal 500.The application program adaptive device can include:Type obtains
Module 510, type sending module 520, scheme receiving module 530 and application adaptation module 540.
Type acquisition module 510, for obtaining the type characteristic information of terminal.
Type sending module 520, for the type characteristic information to be sent to server.
Scheme receiving module 530, for receiving the adaptation solution packet that the server is sent, the adaptation solution party
Case packet is that the server is obtained according to the type characteristic information.
Using adaptation module 540, for completing application program in the terminal according to the adaptation solution packet
Adaptation.
The application adaptation module 540, including:Scheme loading submodule 540a, application operation submodule 540b and application
It is adapted to submodule 540c.
The scheme loads submodule 540a, for the adaptation solution packet to be loaded onto in the application program.
The application operation submodule 540b, for running the application program and the adaptation solution packet.
The application is adapted to submodule 540c, for completing the application program in the terminal according to operation result
Adaptation.
The application is adapted to submodule 540c, including:Run detection unit 540c1 and adaptation failure unit 540c2.
The operation detection unit 540c1, for detecting whether the adaptation solution packet runs success.
The operation detection unit 540c1, including:Exception monitoring subelement, label modification subelement, marker for judgment are single
Member, the first determination subelement and the second determination subelement.
The exception monitoring subelement, for monitoring the adaptation solution packet in the process of running with the presence or absence of different
Often.
The label modification subelement, if abnormal for existing, the flag bit for terminating label is modified, the knot
The flag bit of beam label is identical with starting the flag bit of label before a modification, after the modification with the flag bit for starting label not
Together.
The marker for judgment subelement, for after end of run, judging the flag bit for terminating label and described opening
Whether the flag bit of dynamic label is identical.
First determination subelement, if for the flag bit for terminating label and the flag bit phase for starting label
Together, it is determined that the adaptation solution packet is run successfully.
Second determination subelement, if for the flag bit for terminating label and the flag bit for starting label not
Together, it is determined that the adaptation solution packet operation failure.
The adaptation failure unit 540c2, if for the adaptation solution packet operation failure, it is determined that this adaptation
Failure.
The application is adapted to submodule 540c, further includes:Export judging unit 540c3, success determination unit 540c4 and
Failure determination unit 540c5.
The output judging unit 540c3 if being run successfully for the adaptation solution packet, judges the adaptation
Whether at least one output valve corresponding to solution packet conforms to a predetermined condition.
The success determination unit 540c4, if for meeting the predetermined condition, it is determined that this is adapted to successfully.
The failure determination unit 540c5, if for not meeting the predetermined condition, it is determined that this adaptation failure.
Optionally, described device further includes:
Scheme removing module 550, for when determining this adaptation failure, the adaptation solution packet to be answered from described
It is deleted in program.
Sending module 560 is responded, for sending adaptation failure response to the server, the adaptation failure response is used for
Trigger the adaptation solution packet of the server generation or modification corresponding to the type characteristic information.
Server 600 can include application program adaptive device, which can pass through software, hardware
Or both be implemented in combination with it is some or all of as server 600.The application program adaptive device can include:Type
Receiving module 610, scheme acquisition module 620 and scheme sending module 630.
Type receiving module 610, for receiving the type characteristic information of terminal transmission.
Scheme acquisition module 620, for obtaining adaptation solution packet according to the type characteristic information.
The scheme acquisition module 620, including:Corresponding judging unit 620a, corresponding acquiring unit 620b and acquiescence obtain
Unit 620c.
The corresponding judging unit 620a believes for judging to whether there is in adaptation solution library with the type feature
Corresponding adaptation solution packet is ceased, be stored with different type of machines characteristic information in the adaptation solution library solves from different adaptations
The certainly correspondence between scheme packet.
The corresponding acquiring unit 620b, if in the presence of adaptation solution corresponding with the type characteristic information
Packet then obtains adaptation solution packet corresponding with the type characteristic information.
The acquiescence acquiring unit 620c, if for there is no adaptation solutions corresponding with the type characteristic information
Packet then obtains the adaptation solution packet of acquiescence.
Scheme sending module 630, for sending the adaptation solution packet to terminal, the adaptation solution packet is used
Adaptation of the application program in the terminal is completed according to the adaptation solution packet in triggering the terminal.
Optionally, described device further includes:
Receiving module 640 is responded, for receiving the adaptation failure response that the terminal is sent, the adaptation failure response is
The terminal determines what is sent during this adaptation failure.
Scheme update module 650, it is special for corresponding to the type according to the adaptation failure response generation or modification
The adaptation solution packet of reference breath.
In conclusion application program adaption system provided in this embodiment, after the type characteristic information by obtaining terminal
Type characteristic information is sent to server, so that server obtains adaptation solution packet according to type characteristic information, is received
Then the adaptation solution packet that server is sent completes the adaptation of application program in the terminal according to adaptation solution packet;
It solves in the relevant technologies by being accomplished manually adaptation work of the application program in different terminals, leads to that efficiency is low, accuracy
The problem of poor;Terminal is realized by downloading adaptation solution packet from server automatically to complete the adaptation of application program
Full automatic adaptation procedure substantially increases Adaption efficiency of the application program in different terminals, while also avoids manually suitable
With the error that may be brought, the accuracy of adaptation result is improved.
In addition, application program adaption system provided in this embodiment, when terminal determines this adaptation failure, to server
Send adaptation failure response so that server corresponds to the terminal of adaptation failure according to the generation of adaptation failure response or modification
The adaptation solution packet of type characteristic information, fully ensured that the adaptation solution packet stored in server accuracy and
Integrality so that server provides more accurate adaptation solution packet for more types in the follow-up process.In addition, work as
When server is Cloud Server, it is truly realized full-automatic, efficient cloud adaptation.
It should be noted that:The application program adaptive device that above-described embodiment provides is when carrying out application program adaptation, only
With the division progress of above-mentioned each function module for example, in practical application, can as needed and by above-mentioned function distribution by
Different function modules is completed, i.e., the internal structure of equipment is divided into different function modules, described above complete to complete
Portion or partial function.In addition, the method for application program adaptive device and application program adaptation method that above-described embodiment provides
Embodiment belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
Fig. 8 is please referred to, it illustrates the structure diagrams of terminal provided by one embodiment of the present invention.The terminal is for real
The application program adaptation method of the end side provided in above-described embodiment is provided.Specifically:
Terminal 800 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters
The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (wireless fidelity, Wireless Fidelity) module 170, including there are one or more than one processing core processing
The components such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 8 is not formed pair
The restriction of terminal can include either combining certain components or different component cloth than illustrating more or fewer components
It puts.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also communicate with network and other equipment by radio communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA
(Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS
(Short Messaging Service, short message service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, so as to perform various functions application and data processing.Memory 120 can mainly include storage
Program area and storage data field, wherein, storing program area can storage program area, the application program needed at least one function
(such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses what is created according to terminal 800
Data (such as audio data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, may be used also
To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states
Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to storage
The access of device 120.
Input unit 130 can be used for receiving the number inputted or character information and generate and user setting and function
Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include figure
As input equipment 131 and other input equipments 132.Image input device 131 can be camera or photoelectricity is swept
Retouch equipment.In addition to image input device 131, input unit 130 can also include other input equipments 132.Specifically, other
Input equipment 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), track
It is one or more in ball, mouse, operating lever etc..
Display unit 140 can be used for display by information input by user or be supplied to the information of user and terminal 800
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.
Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used
Display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) display surface is configured
Plate 141.
Terminal 800 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 800 is moved in one's ear
Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensors that terminal 800 can also configure, herein
It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 800.Audio
The transformed electric signal of the audio data received can be transferred to loud speaker 161, sound is converted to by loud speaker 161 by circuit 160
Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Audio data is converted to, then after audio data output processor 180 is handled, through RF circuits 110 to be sent to such as another end
Audio data is exported to memory 120 to be further processed by end.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal 800.
WiFi belongs to short range wireless transmission technology, and terminal 800 can help user's transceiver electronics by WiFi module 170
Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 8 is shown
WiFi module 170, but it is understood that, and must be configured into for terminal 800 is not belonging to, it completely can be as needed
It is omitted in the range for the essence for not changing invention.
Processor 180 is the control centre of terminal 800, utilizes various interfaces and each portion of connection whole mobile phone
Point, it is stored in memory 120 by running or performing the software program being stored in memory 120 and/or module and call
Interior data perform the various functions of terminal 800 and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 800 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event
Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 800 can also be including bluetooth module etc., and details are not described herein.
Specifically in the present embodiment, terminal 800 has further included memory and one or more than one program,
In one either more than one program be stored in memory and be configured to by one or more than one processor execution.
Said one or more than one program include the instruction for being operated below:
Obtain the type characteristic information of terminal;
The type characteristic information is sent to server;
Receive the adaptation solution packet that the server is sent, the adaptation solution packet be the server according to
What the type characteristic information obtained;
Adaptation of the application program in the terminal is completed according to the adaptation solution packet.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, in the memory of the terminal, also comprising instructions for performing the following operations:
The adaptation solution packet is loaded onto in the application program;
Run the application program and the adaptation solution packet;
Adaptation of the application program in the terminal is completed according to operation result.
In the third the possible embodiment provided based on second of possible embodiment, the terminal
Memory in, also comprising instructions for performing the following operations:
Detect whether the adaptation solution packet runs success;
If the adaptation solution packet operation failure, it is determined that this adaptation failure.
In the 4th kind of possible embodiment provided based on the third possible embodiment, the terminal
Memory in, also comprising instructions for performing the following operations:
The adaptation solution packet is monitored in the process of running with the presence or absence of abnormal;
If there is exception, the flag bit for terminating label is modified, the flag bit for terminating label is before a modification
It is identical with the flag bit for starting label, it is different from the flag bit for starting label after the modification;
After end of run, judge whether the flag bit for terminating label and the flag bit for starting label are identical;
If the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the adaptation solution party
Case packet is run successfully;
If the flag bit for terminating label is different with the flag bit for starting label, it is determined that the adaptation solution party
The operation failure of case packet.
In the 5th kind of possible embodiment provided based on the third possible embodiment, the terminal
Memory in, also comprising instructions for performing the following operations:
If the adaptation solution packet is run successfully, judge at least one corresponding to the adaptation solution packet
Whether output valve conforms to a predetermined condition;
If meet the predetermined condition, it is determined that this is adapted to successfully;
If the predetermined condition is not met, it is determined that this adaptation failure.
Make in the third possible embodiment, the 4th kind of possible embodiment or the 5th kind of possible embodiment
Based on and in the 6th kind of possible embodiment providing, in the memory of the terminal, also include for performing following behaviour
The instruction of work:
When determining this adaptation failure, the adaptation solution packet is deleted from the application program;
Send adaptation failure response to the server, the adaptation failure response for trigger server generation or
Person's modification is corresponding to the adaptation solution packet of the type characteristic information.
Fig. 9 is please referred to, it illustrates the structure diagrams of server provided by one embodiment of the present invention, which can
For implementing the application program adaptation method of server side provided in above-described embodiment.Server 900 includes central processing
Unit (CPU) 901, the system storage 904 including random access memory (RAM) 902 and read-only memory (ROM) 903, with
And connect system storage 904 and the system bus 905 of central processing unit 901.The server 900 further includes help and calculates
The basic input/output (I/O systems) 906 of information is transmitted between each device in machine and for storage program area
913rd, the mass-memory unit 907 of application program 914 and other program modules 915.
The basic input/output 906, which includes the display 908 for showing information and inputted for user, to be believed
The input equipment 909 of such as mouse, keyboard etc of breath.Wherein described display 908 and input equipment 909 are all by being connected to
The i/o controller 910 of system bus 905 is connected to central processing unit 901.The basic input/output
906 can also be more from keyboard, mouse or electronic touch pen etc. for receiving and handling including i/o controller 910
The input of a other equipment.Similarly, i/o controller 910 also provides output to display screen, printer or other classes
The output equipment of type.
The mass-memory unit 907 is by being connected to the bulk memory controller (not shown) of system bus 905
It is connected to central processing unit 901.The mass-memory unit 907 and its associated computer-readable medium are server
900 provide non-volatile memories.That is, the mass-memory unit 907 can include such as hard disk or CD-ROM
The computer-readable medium (not shown) of driver etc.
Without loss of generality, the computer-readable medium can include computer storage media and communication media.Computer
Storage medium is included for information such as storage computer-readable instruction, data structure, program module or other data
The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage media includes
RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape
Box, tape, disk storage or other magnetic storage apparatus.Certainly, skilled person will appreciate that the computer storage media
It is not limited to above-mentioned several.Above-mentioned system storage 904 and mass-memory unit 907 may be collectively referred to as memory.
According to various embodiments of the present invention, the server 900 can also be arrived by network connections such as internets
Remote computer operation on network.Namely server 900 can be by the network interface that is connected on the system bus 905
Unit 911 is connected to network 912, in other words, can also be connected to using Network Interface Unit 911 other kinds of network or
Remote computer system (not shown).
When server 900 is first server, first server further includes memory, and the memory further includes one
Or more than one program, the one or more programs are stored in memory, and be configured to by one or
More than one central processing unit 901 of person performs.Said one or more than one program include to be operated below
Instruction:
Receive the type characteristic information that terminal is sent;
Adaptation solution packet is obtained according to the type characteristic information;
The adaptation solution packet is sent to terminal, the adaptation solution packet is used to trigger the terminal according to institute
It states adaptation solution packet and completes adaptation of the application program in the terminal.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, in the memory of the server, also comprising instructions for performing the following operations:
Judge in adaptation solution library with the presence or absence of adaptation solution packet corresponding with the type characteristic information, institute
State the correspondence being stored in adaptation solution library between different type of machines characteristic information and different adaptation solution packets;
If in the presence of adaptation solution packet corresponding with the type characteristic information, obtain and the type characteristic information
Corresponding adaptation solution packet;
If there is no adaptation solution packet corresponding with the type characteristic information, the adaptation solution party of acquiescence is obtained
Case packet.
Based on the first possible embodiment or second of possible embodiment and provide the third
In possible embodiment, in the memory of the server, also comprising instructions for performing the following operations:
The adaptation failure response that the terminal is sent is received, the adaptation failure response is that the terminal determines this adaptation
It is sent during failure;
Correspond to the adaptation solution of the type characteristic information according to the adaptation failure response generation or modification
Packet.
It should be understood that it is used in the present context, unless context clearly supports exception, singulative " one
It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is
Finger includes one or the arbitrary and all possible combinations of more than one project listed in association.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (16)
1. a kind of application program adaptation method, which is characterized in that the method includes:
Obtain the type characteristic information of terminal;
The type characteristic information is sent to server;
The adaptation solution packet that the server is sent is received, the adaptation solution packet is the server according to
What type characteristic information obtained;
The adaptation solution packet is loaded onto in the application program;
Run the application program and the adaptation solution packet;
The adaptation solution packet is monitored in the process of running with the presence or absence of abnormal;
If there is exception, the flag bit for terminating label is modified, the flag bit for terminating label is before a modification with opening
The flag bit of dynamic label is identical, different from the flag bit for starting label after the modification;
After end of run, judge whether the flag bit for terminating label and the flag bit for starting label are identical;
If the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the adaptation solution packet
Run the adaptation for successfully, completing the application program in the terminal.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the flag bit for terminating label is different with the flag bit for starting label, it is determined that the adaptation solution packet
Operation failure determines this adaptation failure.
3. according to the method described in claim 1, it is characterized in that, whether the detection adaptation solution packet runs into
After work(, further include:
If the adaptation solution packet is run successfully, at least one output corresponding to the adaptation solution packet is judged
Whether value conforms to a predetermined condition;
If meet the predetermined condition, it is determined that this is adapted to successfully;
If the predetermined condition is not met, it is determined that this adaptation failure.
4. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
When determining this adaptation failure, the adaptation solution packet is deleted from the application program;
Adaptation failure response is sent to the server, the adaptation failure response is generated or repaiied for triggering the server
Change the adaptation solution packet corresponding to the type characteristic information.
5. a kind of application program adaptation method, which is characterized in that the method includes:
Receive the type characteristic information that terminal is sent;
Adaptation solution packet is obtained according to the type characteristic information;
The adaptation solution packet is sent to the terminal, the adaptation solution packet is used to trigger the terminal by described in
Adaptation solution packet is loaded onto in the application program, runs the application program and the adaptation solution packet, monitoring
The adaptation solution packet in the process of running with the presence or absence of abnormal, if exist it is abnormal, will terminate the flag bit of label into
Row modification, it is described terminate label flag bit before a modification with start label flag bit it is identical, after the modification with the startup
The flag bit of label is different, after end of run, judges the flag bit for terminating label and the flag bit for starting label
It is whether identical, if the flag bit for terminating label is identical with the flag bit for starting label, it is determined that the adaptation solves
Scheme packet runs the adaptation for successfully, completing the application program in the terminal.
6. according to the method described in claim 5, it is characterized in that, described obtain adaptation solution according to the type characteristic information
Scheme packet, including:
Judge with the presence or absence of adaptation solution packet corresponding with the type characteristic information in adaptation solution library, it is described suitable
With the correspondence being stored in solution library between different type of machines characteristic information and different adaptation solution packets;
If in the presence of adaptation solution packet corresponding with the type characteristic information, obtain corresponding with the type characteristic information
Adaptation solution packet;
If there is no adaptation solution packet corresponding with the type characteristic information, the adaptation solution of acquiescence is obtained
Packet.
7. method according to claim 5 or 6, which is characterized in that described to send the adaptation solution packet to terminal
Later, it further includes:
The adaptation failure response that the terminal is sent is received, the adaptation failure response is that the terminal determines this adaptation failure
When send;
Correspond to the adaptation solution packet of the type characteristic information according to the adaptation failure response generation or modification.
8. a kind of application program adaptive device, which is characterized in that described device includes:
Type acquisition module, for obtaining the type characteristic information of terminal;
Type sending module, for the type characteristic information to be sent to server;
Scheme receiving module, for receiving the adaptation solution packet that the server is sent, the adaptation solution packet is
The server is obtained according to the type characteristic information;
Using adaptation module, for completing adaptation of the application program in the terminal according to the adaptation solution packet;
Wherein, it is described to apply adaptation module, including:Scheme loading submodule, application operation submodule and application adaptation submodule;
The scheme loads submodule, for the adaptation solution packet to be loaded onto in the application program;
The application operation submodule, for running the application program and the adaptation solution packet;
The application is adapted to submodule, for completing adaptation of the application program in the terminal according to operation result;
The application is adapted to submodule, including:Run detection unit and adaptation failure unit;
The operation detection unit, for detecting whether the adaptation solution packet runs success;
The adaptation failure unit, if for the adaptation solution packet operation failure, it is determined that this adaptation failure;
The operation detection unit, including:Exception monitoring subelement, label modification subelement, marker for judgment subelement, first are really
Stator unit;
The exception monitoring subelement, for monitoring the adaptation solution packet in the process of running with the presence or absence of abnormal;
The label modification subelement, if abnormal for existing, the flag bit for terminating label is modified, described to terminate mark
The flag bit of note is identical with starting the flag bit of label before a modification, different from the flag bit for starting label after the modification;
The marker for judgment subelement, for after end of run, judging that the flag bit for terminating label and described start are marked
Whether the flag bit of note is identical;
First determination subelement, if identical with the flag bit for starting label for the flag bit for terminating label,
Then determine that the adaptation solution packet runs the adaptation for successfully, completing the application program in the terminal.
9. device according to claim 8, which is characterized in that the operation detection unit further includes second and determines that son is single
Member;
Second determination subelement, if different with the flag bit for starting label for the flag bit for terminating label,
It then determines the adaptation solution packet operation failure, determines this adaptation failure.
10. device according to claim 8, which is characterized in that the application is adapted to submodule, further includes:Output judges
Unit, success determination unit and failure determination unit;
The output judging unit if being run successfully for the adaptation solution packet, judges the adaptation solution
Whether the corresponding at least one output valve of packet conforms to a predetermined condition;
The success determination unit, if for meeting the predetermined condition, it is determined that this is adapted to successfully;
The failure determination unit, if for not meeting the predetermined condition, it is determined that this adaptation failure.
11. according to claim 8 to 10 any one of them device, which is characterized in that described device further includes:
Scheme removing module, for when determining this adaptation failure, by the adaptation solution packet from the application program
Middle deletion;
Sending module is responded, for sending adaptation failure response to the server, the adaptation failure response is used to trigger institute
State the adaptation solution packet of server generation or modification corresponding to the type characteristic information.
12. a kind of application program adaptive device, which is characterized in that described device includes:
Type receiving module, for receiving the type characteristic information of terminal transmission;
Scheme acquisition module, for obtaining adaptation solution packet according to the type characteristic information;
Scheme sending module, for sending the adaptation solution packet to the terminal, the adaptation solution packet is used for
It triggers the terminal adaptation solution packet is loaded onto in the application program, runs the application program and described suitable
With solution packet, the adaptation solution packet is monitored in the process of running with the presence or absence of exception, if in the presence of abnormal, it will knot
The flag bit of beam label is modified, and the flag bit for terminating label is identical with starting the flag bit of label before a modification,
It is different from the flag bit for starting label after modification, after end of run, judge the flag bit and described that the end marks
Whether the flag bit for starting label is identical, if the flag bit for terminating label is identical with the flag bit for starting label,
Determine that the adaptation solution packet runs the adaptation for successfully, completing the application program in the terminal.
13. according to the devices described in claim 11, which is characterized in that the scheme acquisition module, including:It is corresponding to judge list
Member, corresponding acquiring unit and acquiescence acquiring unit;
The corresponding judging unit, for judging in adaptation solution library with the presence or absence of corresponding with the type characteristic information
Solution packet is adapted to, different type of machines characteristic information and different adaptation solution packets are stored in the adaptation solution library
Between correspondence;
If the corresponding acquiring unit in the presence of adaptation solution packet corresponding with the type characteristic information, obtains
Adaptation solution packet corresponding with the type characteristic information;
If the acquiescence acquiring unit for there is no adaptation solution packet corresponding with the type characteristic information, obtains
Take the adaptation solution packet of acquiescence.
14. device according to claim 12 or 13, which is characterized in that described device further includes:
Receiving module is responded, for receiving the adaptation failure response that the terminal is sent, the adaptation failure response is the end
End determines what is sent during this adaptation failure;
Scheme update module, for corresponding to the type characteristic information according to the adaptation failure response generation or modification
It is adapted to solution packet.
15. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is performed to realize such as Claims 1-4 any one of them method by processor.
16. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is performed to realize such as claim 5 to 7 any one of them method by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410288680.1A CN105227606B (en) | 2014-06-24 | 2014-06-24 | Application program adaptation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410288680.1A CN105227606B (en) | 2014-06-24 | 2014-06-24 | Application program adaptation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105227606A CN105227606A (en) | 2016-01-06 |
CN105227606B true CN105227606B (en) | 2018-06-12 |
Family
ID=54996280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410288680.1A Active CN105227606B (en) | 2014-06-24 | 2014-06-24 | Application program adaptation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105227606B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105700895B (en) * | 2016-03-16 | 2019-02-05 | 腾讯科技(深圳)有限公司 | The adaptation method and terminal and system server of a kind of terminal system |
CN107590038A (en) * | 2017-08-29 | 2018-01-16 | 北京小米移动软件有限公司 | Information processing method, device and computer-readable recording medium |
CN108153534A (en) * | 2017-12-01 | 2018-06-12 | 银联商务股份有限公司 | The method, apparatus and system of application program are installed |
CN110597526A (en) * | 2019-09-17 | 2019-12-20 | 深圳联想懂的通信有限公司 | Client adaptation method based on downloader and electronic equipment |
CN113190185A (en) * | 2020-01-14 | 2021-07-30 | 深圳怡化电脑股份有限公司 | Application program and physical equipment matching method and device and terminal equipment |
CN112860798B (en) * | 2021-02-10 | 2022-07-12 | 挂号网(杭州)科技有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665177A (en) * | 2012-04-20 | 2012-09-12 | 北京慧创新盈科技有限公司 | Method, system and device for pushing application program information based on machine type matching information |
CN102779063A (en) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | Method for providing application invocation and server |
CN102790961A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Update method of application program, mobile terminal and server |
CN102801749A (en) * | 2011-05-25 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Method and device for deploying J2ME (Java 2 Micro Edition) application programs |
-
2014
- 2014-06-24 CN CN201410288680.1A patent/CN105227606B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779063A (en) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | Method for providing application invocation and server |
CN102790961A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Update method of application program, mobile terminal and server |
CN102801749A (en) * | 2011-05-25 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Method and device for deploying J2ME (Java 2 Micro Edition) application programs |
CN102665177A (en) * | 2012-04-20 | 2012-09-12 | 北京慧创新盈科技有限公司 | Method, system and device for pushing application program information based on machine type matching information |
Also Published As
Publication number | Publication date |
---|---|
CN105227606A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105227606B (en) | Application program adaptation method and device | |
CN105278937B (en) | A kind of method and device showing pop-up box message | |
CN105490919B (en) | Message cancelling method and device | |
CN106502906B (en) | A kind of method and apparatus of test application program | |
CN104978176B (en) | Application programming interfaces call method, device and computer readable storage medium | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN105005909A (en) | Method and device for predicting lost users | |
CN106649010B (en) | terminal equipment test method and terminal equipment | |
CN107329901B (en) | Data packet capturing method, terminal, server and storage medium | |
CN105491135B (en) | Establish the method and device of data connection | |
CN104965722B (en) | A kind of method and device of display information | |
CN103473163A (en) | Application program detection method and device | |
US20200092476A1 (en) | Mobile terminal-based dual camera power supply control method, system and mobile terminal | |
CN103489303A (en) | Remote control method and device | |
CN103455348A (en) | Subarea adjustment method, device, terminal, server and system | |
CN103473092A (en) | Method and device for processing downloaded applications and terminal equipment | |
CN104965716A (en) | Icon updating method, client apparatus, and terminal apparatus | |
CN107026908A (en) | By the method and device of the Data Migration of second terminal to first terminal | |
US20220255639A1 (en) | Radio frequency parameter processing method and device, and mobile terminal and storage medium | |
CN104536782A (en) | Guide content display method, and file generation method and device | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN106708555B (en) | A kind of method and apparatus loading plug-in unit | |
CN103491421A (en) | Content display method and device and smart television | |
CN106020962B (en) | A kind of course control method and terminal device | |
CN105279077A (en) | Method and device for automated testing |
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 |