CN106502809B - A kind of multi-platform application program adaptation method, device and terminal device - Google Patents

A kind of multi-platform application program adaptation method, device and terminal device Download PDF

Info

Publication number
CN106502809B
CN106502809B CN201610979512.6A CN201610979512A CN106502809B CN 106502809 B CN106502809 B CN 106502809B CN 201610979512 A CN201610979512 A CN 201610979512A CN 106502809 B CN106502809 B CN 106502809B
Authority
CN
China
Prior art keywords
platform
interface
application program
proxy
current system
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.)
Expired - Fee Related
Application number
CN201610979512.6A
Other languages
Chinese (zh)
Other versions
CN106502809A (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.)
Shanghai Jilian Network Technology Co., Ltd.
Original Assignee
Shanghai Jilian Network Technology Co 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 Shanghai Jilian Network Technology Co Ltd filed Critical Shanghai Jilian Network Technology Co Ltd
Priority to CN201610979512.6A priority Critical patent/CN106502809B/en
Publication of CN106502809A publication Critical patent/CN106502809A/en
Application granted granted Critical
Publication of CN106502809B publication Critical patent/CN106502809B/en
Expired - Fee Related 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/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves a kind of multi-platform application program adaptation method, device and terminal devices.Wherein, multi-platform application program adaptation method is applied to be provided with the adapter of proxy interface He at least one platform interface, each platform interface corresponds to a kind of system platform, the method executes in the proxy interface, the described method includes: proxy interface detects the type of current system platform when meeting preset trigger condition;Proxy interface according to testing result, searches the corresponding platform interface of current system platform;Application program is configured on current system platform by proxy interface according to the platform interface found.The embodiment of the present invention realizes the selection to platform interface by the proxy interface in adapter, application program is fitted on current system platform by proxy interface, reduce the duplication of labour in process of application development, improve development efficiency, the storage burden for alleviating terminal device reduces the carrying cost of terminal device.

Description

A kind of multi-platform application program adaptation method, device and terminal device
Technical field
The present invention relates to the communications field more particularly to a kind of multi-platform application program adaptation methods, device and terminal device.
Background technique
Currently, the intelligent terminals such as mobile phone, tablet computer are widely used.The intelligentized realization of terminal device is be unable to do without Application program.The various functions of terminal device, require the support of related application.
System platform is the system environments for enabling applications to run on the terminal device, including hardware environment and software Environment.Currently, there are many system platform type of terminal device, for example, only Android (android) system platform just has several kinds. To allow application program to run on the terminal device, it is necessary to which application program to be configured in the system platform of terminal device.
The same application program can be configured to different system platforms.But system platform is arranged for application program Interface all criteria of right and wrongs API (Application Programming Interface, application programming interface), no The system platform of same type has different interfaces.
In order to which the same application program to be configured to different system platforms, adapter is provided in system platform.It is suitable Multiple platform interfaces are provided in orchestration, each platform interface corresponds to a type of system platform, and application program passes through platform Interface is connected with corresponding system platform.In the prior art, a general-purpose interface is set in each application program, using journey Sequence selects corresponding platform interface, from adapter by general-purpose interface to be connected to corresponding system platform.
Fig. 1 is the adaptation procedure schematic diagram of application program in the prior art.Assuming that platform interface 1, platform in adapter Interface 2, platform interface 3 are respectively system platform A, system platform B, the corresponding interface of system platform C.Referring to Fig. 1, the prior art In, the adaptation procedure of application program is: the general-purpose interface of application program judges which the system platform in present terminal equipment is Kind, it is assumed that it is system platform A, then according to judging result, the corresponding platform interface 1 of system platform A is selected from adapter, is adjusted It is attached with platform interface 1 and system platform A.
For application developer, one application program of every exploitation requires to be arranged in the application general Interface causes the duplication of labour, and the application program developed is more, and the duplication of labour is more.
For terminal device, the application program more than one needed to configure in system platform, these application programs After being configured in system platform, it is necessary to the memory space of occupied terminal equipment, in this way, being answered corresponding to what is configured in system platform With program quantity, terminal device needs to expend corresponding more memory space just to store the generation of the general-purpose interface of each application program Code, therefore the storage burden of terminal device is increased, improve the carrying cost of terminal device.For example, it is assumed that in system platform 10 application programs are needed to configure, the general-purpose interface of each application program is identical, and the corresponding size of code of general-purpose interface is also identical, is It just needs to repeat to store 10 parts of identical general-purpose interface codes on system platform.
Therefore following problem exists in the prior art:
The duplication of labour is more in process of application development, and system platform after configuring application program, deposit by terminal device It is higher to store up heavy load, carrying cost.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of multi-platform application program adaptation method, device and terminal device, Solve in the prior art that the duplication of labour is more in process of application development, after configuring application program, terminal is set system platform Standby storage burden is heavier, the higher problem of carrying cost.
In a first aspect, the embodiment of the present invention proposes a kind of multi-platform application program adaptation method, applied to being provided with generation The adapter of interface and at least one platform interface is managed, each platform interface corresponds to a kind of system platform, and the method is held Row is in the proxy interface, which comprises
When meeting preset trigger condition, the type of the proxy interface detection current system platform;
The proxy interface according to testing result, searches the corresponding platform interface of current system platform;
Application program is configured on current system platform by the proxy interface according to the platform interface found.
Further, the above method can also have the characteristics that, in the platform that the proxy interface is found according to Before application program is configured on current system platform by interface, the method also includes:
The platform interface that the proxy interface record search arrives, and record information is stored to designated position;
Application program is configured on current system platform by the platform interface that the proxy interface is found according to, packet Include: the proxy interface reads the record information from the designated position, and the platform recorded in the record information is called to connect The application program is configured on current system platform by mouth.
Further, the above method can also have the characteristics that, the platform that the proxy interface is found according to connects Application program is configured on current system platform by mouth, comprising:
The proxy interface notifies the platform interface found to the application program, so as to the application program The platform interface found is called directly to be attached with current system platform.
Further, the above method can also have the characteristics that, the platform that the proxy interface is found according to connects Application program is configured on current system platform by mouth, comprising:
The application program is transferred to the platform interface found by the proxy interface, so as to the application program The platform interface found described in being called indirectly by the proxy interface is attached with current system platform.
Further, the above method can also have the characteristics that, the preset trigger condition is proxy interface reception To adaptation where the adapter power-up initializing or the proxy interface where the Configuration Request of application program, the proxy interface The starting of system platform locating for device.
Further, the above method can also have the characteristics that, the application program is system application.
Multi-platform application program adaptation method provided in this embodiment is realized by the proxy interface in adapter to flat Application program is fitted on current system platform by proxy interface, therefore not needed in the application by the selection of platform interface General-purpose interface is set and improves development efficiency to reduce the duplication of labour in process of application development.Also, due to The application program configured in system platform does not all need setting general-purpose interface, therefore, can reduce what terminal device needed to store Size of code reduces the carrying cost of terminal device to alleviate the storage burden of terminal device.
Second aspect, the embodiment of the present invention propose a kind of multi-platform application program adaptive device, applied to being provided with generation The adapter of interface and at least one platform interface is managed, each platform interface corresponds to a kind of system platform, and described device is set It sets in the proxy interface, described device includes:
Detection of platform module, for detecting the type of current system platform when meeting preset trigger condition;
It is corresponding to search current system platform for the testing result according to the detection of platform module for interface lookup module Platform interface;
Application program is configured to by program adaptation module, the platform interface for being found according to the interface lookup module On current system platform.
Further, above-mentioned apparatus can also have the characteristics that, described device further include:
Record storage module, the platform interface found for recording the interface lookup module, and record information is deposited It stores up to designated position;
Application program is configured to current system in the platform interface found according to and put down by described program adaptation module When on platform, it is specifically used for reading the record information from the designated position, the platform recorded in the record information is called to connect The application program is configured on current system platform by mouth.
Further, above-mentioned apparatus can also have the characteristics that, described program adaptation module is being found according to When application program is configured on current system platform by platform interface, it is specifically used for:
The platform interface found is notified to the application program, so as to the application program call directly it is described The platform interface found is attached with current system platform.
Further, above-mentioned apparatus can also have the characteristics that, described program adaptation module is being found according to When application program is configured on current system platform by platform interface, it is specifically used for:
The application program is transferred to the platform interface found, so that the application program passes through the agency Interface call indirectly described in the platform interface that finds be attached with current system platform.
Further, above-mentioned apparatus can also have the characteristics that, the preset trigger condition is proxy interface reception To adaptation where the adapter power-up initializing or the proxy interface where the Configuration Request of application program, the proxy interface The starting of system platform locating for device.
Further, above-mentioned apparatus can also have the characteristics that, the application program is system application.
Multi-platform application program adaptive device provided in this embodiment is realized by the proxy interface in adapter to flat Application program is fitted on current system platform by proxy interface, therefore not needed in the application by the selection of platform interface General-purpose interface is set and improves development efficiency to reduce the duplication of labour in process of application development.Also, due to The application program configured in system platform does not all need setting general-purpose interface, therefore, can reduce what terminal device needed to store Size of code reduces the carrying cost of terminal device to alleviate the storage burden of terminal device.
The third aspect, the embodiment of the present invention propose a kind of terminal device, and the terminal device includes being provided with agency to connect The adapter of mouth and at least one platform interface, each platform interface correspond to a kind of system platform;
The proxy interface includes multi-platform application program adaptive device described in second aspect.
Further, above-mentioned terminal device can also have the characteristics that, the terminal device is mobile phone or tablet computer.
The terminal device of the embodiment of the present invention is able to carry out multi-platform application program adaptation method above-mentioned, passes through adaptation Proxy interface in device realizes the selection to platform interface, and application program is fitted to current system platform by proxy interface On, therefore do not need that general-purpose interface is arranged in the application, thus reduce the duplication of labour in process of application development, Improve development efficiency.Also, it, can since the application program configured in system platform does not all need setting general-purpose interface Reducing terminal device needs the size of code stored to reduce depositing for terminal device to alleviate the storage burden of terminal device Store up cost.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the adaptation procedure schematic diagram of application program in the prior art.
Fig. 2 is the first pass exemplary diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.
Fig. 3 is the application scenarios schematic diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.
Fig. 4 is the second procedure exemplary diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.
Fig. 5 is one of the flow chart of S203 in Fig. 2 provided in an embodiment of the present invention.
Fig. 6 is two of the flow chart of S203 in Fig. 2 provided in an embodiment of the present invention.
Fig. 7 is the functional block diagram of multi-platform application program adaptive device provided in an embodiment of the present invention.
Fig. 8 is a kind of topology example figure of terminal device provided by the embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and illustrated embodiment is served only for explaining the present invention, It is not intended to limit the scope of the present invention.For those of ordinary skill in the art, in the premise not made the creative labor Under, spiritual all embodiments obtained, belong to protection scope of the present invention according to the present invention.
It should be noted that although may be described in embodiments of the present invention using term first, second, third, etc. XXX, but these XXX should not necessarily be limited by these terms.These terms are only used to for XXX being distinguished from each other out.For example, not departing from this hair In the case where bright scope of embodiments, the first XXX can also be referred to as the 2nd XXX, and similarly, the 2nd XXX can also be referred to as One XXX.
Embodiment one
Fig. 2 is the first pass exemplary diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.
Fig. 3 is the application scenarios schematic diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.Referring to figure 3, the multi-platform application program adaptation method of the present embodiment can be applied to be provided with proxy interface and at least one platform interface Adapter, each platform interface corresponds to a kind of system platform, multi-platform application program adaptation side provided in an embodiment of the present invention Method executes in proxy interface.In a particular application, adapter may be mounted in system platform, that is to say, that each system One adapter of stage+module.
As shown in Fig. 2, multi-platform application program adaptation method may include steps of in the present embodiment:
Step S201, when meeting preset trigger condition, proxy interface detects the type of current system platform;
During a concrete implementation, preset trigger condition can be with are as follows: proxy interface receives the suitable of application program With system platform starting locating for adapter where the adapter power-up initializing or proxy interface where request, proxy interface.
Wherein, current system platform refers to the system platform that terminal device is currently installed.Although the type of system platform Very much, but in a particular application, the system platform installed on a terminal device determines.
Step S202, proxy interface according to testing result, search the corresponding platform interface of current system platform;
Wherein, testing result is the specific affiliated type of current system platform.
During a concrete implementation, the corresponding relationship of system platform and platform interface can be stored in generation in advance Perhaps proxy interface can deposit reason interface according in itself or proxy interface place adapter in adapter where proxy interface The system platform of storage and the corresponding relationship of platform interface, to search the corresponding platform interface of current system platform.
Application program is configured on current system platform by step S203, proxy interface according to the platform interface found.
During a concrete implementation, application program can be system application.
By aforementioned step S201 and step S202, proxy interface has known that terminal device current system platform is corresponding Platform interface.No matter which application program terminal device current system platform will configure, and require to find by proxy interface This platform interface be connected to current system platform.Work as in this way, application program calls directly proxy interface and is connected to In preceding system platform, do not need that general-purpose interface is arranged in the application.
On the one hand, it does not need that general-purpose interface is arranged in the application, it is possible to reduce the weight in process of application development Multiple labour, improves development efficiency.On the other hand, for terminal device, it is only necessary to increase an agency in adapter and connect Mouthful, therefore the application program configured in system platform, which does not all need setting general-purpose interface, can reduce the code of terminal device Amount, to mitigate the storage burden of terminal device, reduces the carrying cost of terminal device.
For example.Assuming that the general-purpose interface size of code of each application program is 2k byte, in terminal device system platform Need to configure 15 application programs.According to application program adaptation method in the prior art, 30k byte is needed in terminal device Memory space stores the general-purpose interface code of each application program.It is suitable according to multi-platform application program provided in an embodiment of the present invention Method of completing the square does not need any memory space in terminal device to store the general-purpose interface code of each application program, therefore just save The memory space of 30k byte.
During a concrete implementation, terminal device can be mobile phone, tablet computer etc..
Multi-platform application program adaptation method provided in this embodiment is realized by the proxy interface in adapter to flat Application program is fitted on current system platform by proxy interface, therefore not needed in the application by the selection of platform interface General-purpose interface is set and improves development efficiency to reduce the duplication of labour in process of application development.Also, due to The application program configured in system platform does not all need setting general-purpose interface, therefore, can reduce what terminal device needed to store Size of code reduces the carrying cost of terminal device to alleviate the storage burden of terminal device.
Embodiment two
Fig. 4 is the second procedure exemplary diagram of multi-platform application program adaptation method provided in an embodiment of the present invention.
The multi-platform application program adaptation method of the present embodiment can be applied to be provided with proxy interface and at least one is flat The adapter of platform interface, each platform interface correspond to a kind of system platform, multi-platform application program provided in an embodiment of the present invention Adaptation method executes in proxy interface.In a particular application, adapter may be mounted in system platform, that is to say, that every A system platform can install an adapter.
As shown in figure 4, multi-platform application program adaptation method may include steps of in the present embodiment:
Step S401, when meeting preset trigger condition, proxy interface detects the type of current system platform;
During a concrete implementation, preset trigger condition can be with are as follows: proxy interface receives the suitable of application program With system platform starting locating for adapter where the adapter power-up initializing or proxy interface where request, proxy interface.
Step S402, proxy interface according to testing result, search the corresponding platform interface of current system platform;
Step S403, the platform interface that proxy interface record search arrives, and record information is stored to designated position;
After proxy interface has recorded platform interface corresponding with current system platform, application program is needed to configure every time to working as When in preceding system platform, proxy interface can directly be obtained by way of reading and recording information corresponding with current system platform Platform interface, so that application program is fitted on current system platform.In this way, step S401 and step S402 only need to hold Row is primary, to alleviate the processing load of processor in terminal device.
Step S404, proxy interface read record information from designated position, call the platform interface recorded in record information Application program is configured on current system platform.
Embodiment three
On the basis of the multi-platform application program adaptation method provided by above-described embodiment one, the embodiment of the present invention is to preceding It states proxy interface in step S203 and application program is configured to the method on current system platform according to the platform interface found It is specifically described.
Fig. 5 is one of the flow chart of S203 in Fig. 2 provided in an embodiment of the present invention.
Referring to Fig. 5, in the present embodiment, aforementioned step S203 can specifically include following sub-step:
The platform interface found is notified to look into application program so that application program calls directly by S501, proxy interface The platform interface found is attached with current system platform.
By taking Fig. 3 as an example, after proxy interface notifies platform interface 1 to application program, application program calls directly platform and connects Mouth 1 is attached with system platform A.
Example IV
On the basis of the multi-platform application program adaptation method provided by above-described embodiment one, the embodiment of the present invention is to preceding It states proxy interface in step S203 and application program is configured to the method on current system platform according to the platform interface found It is specifically described.
Fig. 6 is two of the flow chart of S203 in Fig. 2 provided in an embodiment of the present invention.
Referring to Fig. 6, in the present embodiment, aforementioned step S203 can specifically include following sub-step:
Application program is transferred to the platform interface found by S601, proxy interface, so that application program is connect by agency Mouth calls the platform interface found to be attached with current system platform indirectly.
By taking Fig. 3 as an example, application call proxy interface, proxy interface recalls platform interface 1, to make application program It is attached by the indirect calling platform interface 1 of proxy interface with system platform A.
Embodiment five
The embodiment of the present invention, which further provides, realizes the Installation practice of each step and method in above method embodiment.
Fig. 7 is the functional block diagram of multi-platform application program adaptive device provided in an embodiment of the present invention.The present embodiment Multi-platform application program adaptive device can be applied to the adapter for being provided with proxy interface He at least one platform interface, each Platform interface corresponds to a kind of system platform, and multi-platform application program adaptive device is arranged in proxy interface.Referring to Fig. 7, this reality It applies in example, multi-platform application program adaptive device may include:
Detection of platform module 710, for detecting the type of current system platform when meeting preset trigger condition;
Interface lookup module 720 searches current system platform pair for the testing result according to detection of platform module 710 The platform interface answered;
Application program is adapted to by program adaptation module 730, the platform interface for being found according to interface lookup module 720 Onto current system platform.
During a concrete implementation, multi-platform application program adaptive device can also include record storage module, Record storage module is used for the platform interface that record interface searching module 720 is found, and record information is stored to specific bit It sets, application program when being fitted on current system platform by program adaptation module 730 according to the platform interface found, specifically For reading record information from designated position, call the platform interface recorded in record information that application program is configured to current system It unites on platform.
During a concrete implementation, program adaptation module 730 will apply journey according to the platform interface found When sequence is configured on current system platform, it is specifically used for: the platform interface found is notified to application program, to apply journey Sequence calls directly the platform interface found and is attached with current system platform.
During a concrete implementation, program adaptation module 730 will apply journey according to the platform interface found When sequence is configured on current system platform, it is specifically used for: application program is transferred to the platform interface found, to apply journey Sequence calls the platform interface found to be attached with current system platform indirectly by the proxy interface.
During a concrete implementation, preset trigger condition is asked for the adaptation that proxy interface receives application program It asks, system platform starting locating for adapter where adapter power-up initializing or proxy interface where proxy interface.
During a concrete implementation, application program is system application.
Multi-platform application program above-mentioned is able to carry out by multi-platform application program adaptive device in this present embodiment to fit Method of completing the square, the part that the present embodiment is not described in detail can refer to aforementioned multi-platform application program adaptation method embodiment part Related description.
Multi-platform application program adaptive device provided in this embodiment is realized by the proxy interface in adapter to flat Application program is fitted on current system platform by proxy interface, therefore not needed in the application by the selection of platform interface General-purpose interface is set and improves development efficiency to reduce the duplication of labour in process of application development.Also, due to The application program configured in system platform does not all need setting general-purpose interface, therefore can reduce the generation that terminal device needs to store Code amount reduces the carrying cost of terminal device to alleviate the storage burden of terminal device.
Embodiment six
The embodiment of the invention provides a kind of terminal device, which includes being provided with proxy interface and at least one The adapter of platform interface, each platform interface correspond to a kind of system platform;Proxy interface includes mostly flat described in embodiment five Platform application program adaptive device.
Wherein, terminal device can be mobile phone, tablet computer etc..
Fig. 8 is referred to, is a kind of topology example figure of terminal device provided by the embodiment of the present invention.As shown in figure 8, Terminal device 800 may include following one or more components: processing component 802, memory 804, power supply module 806, more matchmakers Body component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814 and communication component 816.
The integrated operation of the usual controlling terminal equipment 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to complete all or part of the steps of above-mentioned multi-platform application program adaptation method, specifically includes: predetermined when meeting When trigger condition, the type of current system platform is detected;According to testing result, the corresponding platform of current system platform is searched to connect Mouthful;Application program is configured on current system platform according to the platform interface found.In addition, processing component 802 can wrap One or more modules are included, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include Multi-media module, to facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in terminal device 800.These data Example include any application or method for being operated on terminal device 800 instruction, contact data, telephone directory Data, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal device 800.Power supply module 806 may include power supply pipe Reason system, one or more power supplys and other with for terminal device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the terminal device 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When terminal device 800 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when terminal device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for terminal device 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of terminal device 800, the relative positioning of component, example As the component be terminal device 800 display and keypad, sensor module 814 can also detect terminal device 800 or The position change of 800 1 components of terminal device, the existence or non-existence that user contacts with terminal device 800, terminal device 800 The temperature change of orientation or acceleration/deceleration and terminal device 800.Sensor module 814 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal device 800 and other equipment. Terminal device 800 can access the wireless network based on communication standard, such as WiFi, 2G, 3G or 4G or their combination.At one In exemplary embodiment, broadcast singal or wide of the communication component 816 via broadcast channel reception from external broadcasting management system Broadcast relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote Short range communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
The terminal device of the embodiment of the present invention is able to carry out multi-platform application program adaptation method above-mentioned, passes through adaptation Proxy interface in device realizes the selection to platform interface, and application program is fitted to current system platform by proxy interface On, therefore do not need that general-purpose interface is arranged in the application, thus reduce the duplication of labour in process of application development, Improve development efficiency.Also, it, can since the application program configured in system platform does not all need setting general-purpose interface Reducing terminal device needs the size of code stored to reduce depositing for terminal device to alleviate the storage burden of terminal device Store up cost.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or module it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of multi-platform application program adaptation method, which is characterized in that flat at least one applied to proxy interface is provided with The adapter of platform interface, each platform interface correspond to a kind of system platform, and the method executes in the proxy interface, The described method includes:
When meeting preset trigger condition, the type of the proxy interface detection current system platform;
The proxy interface according to testing result, searches the corresponding platform interface of current system platform;
Application program is configured on current system platform by the proxy interface according to the platform interface found;
The preset trigger condition is received for the proxy interface where the Configuration Request of application program, the proxy interface System platform starting locating for adapter where adapter power-up initializing or the proxy interface.
2. the method according to claim 1, wherein being connect in the platform that the proxy interface is found according to Before application program is configured on current system platform by mouth, the method also includes:
The platform interface that the proxy interface record search arrives, and record information is stored to designated position;
Application program is configured on current system platform by the platform interface that the proxy interface is found according to, comprising: The proxy interface reads the record information from the designated position, calls the platform interface recorded in the record information will The application program is configured on current system platform.
3. the method according to claim 1, wherein the platform interface that the proxy interface is found according to Application program is configured on current system platform, comprising:
The proxy interface notifies the platform interface found to the application program, so that the application program is direct The platform interface found described in calling is attached with current system platform.
4. the method according to claim 1, wherein the platform interface that the proxy interface is found according to Application program is configured on current system platform, comprising:
The application program is transferred to the platform interface found by the proxy interface, so that the application program passes through The proxy interface call indirectly described in the platform interface that finds be attached with current system platform.
5. the method according to claim 1, wherein the application program is system application.
6. a kind of multi-platform application program adaptive device, which is characterized in that flat at least one applied to proxy interface is provided with The adapter of platform interface, each platform interface correspond to a kind of system platform, and described device is arranged in the proxy interface, Described device includes:
Detection of platform module, for detecting the type of current system platform when meeting preset trigger condition;
It is corresponding flat to search current system platform for the testing result according to the detection of platform module for interface lookup module Platform interface;
Application program is configured to currently by program adaptation module, the platform interface for being found according to the interface lookup module In system platform;
The preset trigger condition is received for the proxy interface where the Configuration Request of application program, the proxy interface System platform starting locating for adapter where adapter power-up initializing or the proxy interface.
7. device according to claim 6, which is characterized in that described device further include:
Record storage module, the platform interface found for recording the interface lookup module, and record information storage is arrived Designated position;
Application program is configured on current system platform by described program adaptation module in the platform interface found according to When, it is specifically used for reading the record information from the designated position, calls the platform interface recorded in the record information will The application program is configured on current system platform.
8. device according to claim 6, which is characterized in that described program adaptation module is flat what is found according to When application program is configured on current system platform by platform interface, it is specifically used for:
The platform interface found is notified to the application program, so that the application program calls directly the lookup To platform interface be attached with current system platform.
9. device according to claim 6, which is characterized in that described program adaptation module is flat what is found according to When application program is configured on current system platform by platform interface, it is specifically used for:
The application program is transferred to the platform interface found, so that the application program passes through the proxy interface The platform interface found described in calling indirectly is attached with current system platform.
10. device according to claim 6, which is characterized in that the application program is system application.
11. a kind of terminal device, which is characterized in that the terminal device includes being provided with proxy interface and at least one platform to connect The adapter of mouth, each platform interface correspond to a kind of system platform;
The proxy interface includes the described in any item multi-platform application program adaptive devices of claim 6 to 10.
12. terminal device according to claim 11, which is characterized in that the terminal device is mobile phone or tablet computer.
CN201610979512.6A 2016-11-08 2016-11-08 A kind of multi-platform application program adaptation method, device and terminal device Expired - Fee Related CN106502809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610979512.6A CN106502809B (en) 2016-11-08 2016-11-08 A kind of multi-platform application program adaptation method, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610979512.6A CN106502809B (en) 2016-11-08 2016-11-08 A kind of multi-platform application program adaptation method, device and terminal device

Publications (2)

Publication Number Publication Date
CN106502809A CN106502809A (en) 2017-03-15
CN106502809B true CN106502809B (en) 2019-10-08

Family

ID=58324068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610979512.6A Expired - Fee Related CN106502809B (en) 2016-11-08 2016-11-08 A kind of multi-platform application program adaptation method, device and terminal device

Country Status (1)

Country Link
CN (1) CN106502809B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459552B (en) * 2018-01-31 2021-07-23 南京拓控信息科技股份有限公司 Intelligent object-oriented programmable automatic control method
CN109254793B (en) * 2018-09-20 2022-02-15 Oppo广东移动通信有限公司 Engine isolation method, related device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5583761A (en) * 1993-10-13 1996-12-10 Kt International, Inc. Method for automatic displaying program presentations in different languages
CN1777156A (en) * 2005-11-30 2006-05-24 北京邮电大学 Gateway for next-generation network, dynamic extending, and open interface technology
CN1820514A (en) * 2003-08-19 2006-08-16 意大利电信股份公司 System architecture method and computer program product for managing telecommunication networks
CN103428166A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Multi-SNS platform unified access method and system applied by third party
CN104205753A (en) * 2012-03-19 2014-12-10 英特尔公司 Techniques for packet management in an input/output virtualization system
CN104462219A (en) * 2014-11-10 2015-03-25 吴涛军 Information agent interface and application system based on information agent interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255280A1 (en) * 2003-06-12 2004-12-16 Shih-Li Wen System and method for executing composite commands with consecutive single keystrokes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5583761A (en) * 1993-10-13 1996-12-10 Kt International, Inc. Method for automatic displaying program presentations in different languages
CN1820514A (en) * 2003-08-19 2006-08-16 意大利电信股份公司 System architecture method and computer program product for managing telecommunication networks
CN1777156A (en) * 2005-11-30 2006-05-24 北京邮电大学 Gateway for next-generation network, dynamic extending, and open interface technology
CN104205753A (en) * 2012-03-19 2014-12-10 英特尔公司 Techniques for packet management in an input/output virtualization system
CN103428166A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Multi-SNS platform unified access method and system applied by third party
CN104462219A (en) * 2014-11-10 2015-03-25 吴涛军 Information agent interface and application system based on information agent interface

Also Published As

Publication number Publication date
CN106502809A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
EP3110188A1 (en) Method and device for accessing operator network
CN104038536B (en) Plug-in unit communication means and device
CN105553963B (en) The control method and device of positioning service
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN107370772A (en) Account login method, device and computer-readable recording medium
CN103491225A (en) Mobile terminal and controlling method thereof
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
CN104320774A (en) Updating method, device and facility
CN105245741A (en) Method and device for call transfer
JP6491237B2 (en) Method, apparatus, program and recording medium for processing touch screen point reports
CN104158854B (en) Resource share method and device
CN105657805A (en) Method and device for accessing intelligent equipment into wireless network
CN105208089A (en) Information display method, apparatus and system
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device
CN104866353B (en) The method and device of the Show Button
CN103997574A (en) Method and device for acquiring voice service
CN106897172A (en) System method to set up, device and terminal
CN109951701A (en) Monitor fault handling method and device
CN106451670B (en) A kind of charge control method, device and terminal device
CN106201189A (en) Widget display packing, device and electronic equipment
CN106299515B (en) Charging method and device
CN107632835A (en) Using installation method and device
CN105657199A (en) Method and device for establishing talking connection and switching equipment
CN105100410B (en) It polymerize the method and device of third party's phone application
CN110221813A (en) Data connection establishing method, device, storage medium and the electronic equipment of application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190904

Address after: Room 4172, No. 9, Lane 1755, Qibei Highway, Nanxiang Town, Jiading District, Shanghai

Applicant after: Shanghai Jilian Network Technology Co., Ltd.

Address before: 518053 Guangdong city of Shenzhen province Nanshan District overseas Chinese town in Eastern Industrial Zone H3 building 501B

Applicant before: Shenzhen Tinno Wireless Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191008

Termination date: 20201108