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

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

Info

Publication number
CN106502809A
CN106502809A CN201610979512.6A CN201610979512A CN106502809A CN 106502809 A CN106502809 A CN 106502809A CN 201610979512 A CN201610979512 A CN 201610979512A CN 106502809 A CN106502809 A CN 106502809A
Authority
CN
China
Prior art keywords
platform
interface
application program
proxy
system platform
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.)
Granted
Application number
CN201610979512.6A
Other languages
Chinese (zh)
Other versions
CN106502809B (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
Shenzhen Tinno Wireless 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 Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Wireless 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

Abstract

The application is related to a kind of multi-platform application program adaptation method, device and terminal unit.Wherein, multi-platform application program adaptation method is applied to the adapter for being provided with proxy interface and at least one platform interface, and a kind of corresponding system platform of each described platform interface, methods described are executed in the proxy interface, and methods described includes:When preset trigger condition is met, proxy interface detects the type of current system platform;Proxy interface searches the corresponding platform interface of current system platform according to testing result;Proxy interface is configured to application program on current system platform according to the platform interface for finding.The embodiment of the present invention by adapter in proxy interface realizing the selection to platform interface, 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 of terminal unit is alleviated, the carrying cost of terminal unit is reduced.

Description

A kind of multi-platform application program adaptation method, device and terminal unit
Technical field
The present invention relates to the communications field, more particularly to a kind of multi-platform application program adaptation method, device and terminal unit.
Background technology
Currently, the intelligent terminal such as mobile phone, panel computer is widely used.The intelligentized realization of terminal unit, be unable to do without Application program.The various functions of terminal unit, are required for the support of related application.
System platform is the system environmentss for enabling applications to run on the terminal device, including hardware environment and software Environment.Currently, the system platform type of terminal unit is a lot, and for example, only ARIXTRA (android) system platform just has several kinds. Want to allow application program to run on the terminal device, it is necessary to which application program is configured in the system platform of terminal unit.
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 same application program is configured to different system platforms, adapter is provided with system platform.Suitable Multiple platform interfaces are provided with orchestration, and the corresponding a type of system platform of each platform interface, application program pass through platform Interface is connected with corresponding system platform.In prior art, a general-purpose interface is set in each application program, journey is applied Sequence selects corresponding platform interface, to be connected to corresponding system platform from adapter by general-purpose interface.
Fig. 1 is the adaptation procedure schematic diagram of application program in prior art.Assume the 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, 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 for system platform A, then according to judged 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, an application program is developed often, be required for arranging in the application general Interface, causes the duplication of labour, and the application program that develops is more, and the duplication of labour is more.
For terminal unit, the application program more than one for configuring, these application programs in its system platform, are needed After being configured in system platform, it is necessary to the memory space of occupied terminal equipment, so, should corresponding to configured in system platform Program quantity, terminal unit is used to be accomplished by expending corresponding many memory spaces to store the generation of the general-purpose interface of each application program Code, therefore increased the storage burden of terminal unit, improves the carrying cost of terminal unit.For example, it is assumed that in system platform Need to configure 10 application programs, 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 is accomplished by repeating to store 10 parts of identical general-purpose interface codes on system platform.
Therefore, there are problems that in prior art as follows:
In process of application development, the duplication of labour is more, and system platform after configuration application program, deposit by terminal unit Storage heavy load, carrying cost are higher.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of multi-platform application program adaptation method, device and terminal unit, In solution prior art, in process of application development, the duplication of labour is more, and after configuration application program, terminal sets system platform The higher problem of standby storage heavy load, carrying cost.
In a first aspect, the embodiment of the present invention proposes a kind of multi-platform application program adaptation method, it is applied to be provided with generation Reason interface and the adapter of at least one platform interface, a kind of corresponding system platform of each described platform interface, methods described are held In the proxy interface, methods described includes row:
When preset trigger condition is met, the proxy interface detects the type of current system platform;
The proxy interface searches the corresponding platform interface of current system platform according to testing result;
The proxy interface is configured to application program on current system platform according to the platform interface for finding.
Further, said method can also have the characteristics that, in the proxy interface according to the platform for finding Before interface is configured to application program on current system platform, methods described also includes:
The platform interface that the proxy interface record search is arrived, and specified location is arrived in record information storage;
The proxy interface is configured to application program on current system platform according to the platform interface for finding, bag Include:The proxy interface reads the record information from the specified location, calls the platform recorded in the record information to connect Mouth is configured to the application program on current system platform.
Further, said method can also have the characteristics that, the proxy interface is connect according to the platform for finding Mouth is configured to application program on current system platform, including:
The proxy interface notifies the platform interface for finding to the application program, so as to the application program Directly invoke the platform interface for finding to be attached with current system platform.
Further, said method can also have the characteristics that, the proxy interface is connect according to the platform for finding Mouth is configured to application program on current system platform, including:
The application program is transferred to the platform interface for finding by the proxy interface, so as to the application program The platform interface for finding is called indirectly to be attached with current system platform by the proxy interface.
Further, said method can also have the characteristics that, the preset trigger condition is received for the proxy interface The adaptation that adapter power-up initializing or the proxy interface are located that Configuration Request, the proxy interface to application program is located System platform residing for device starts.
Further, said method can also have the characteristics that, the application program is system application.
The multi-platform application program adaptation method that the present embodiment is provided, by adapter in proxy interface realizing to flat The selection of platform interface, is fitted to application program on current system platform by proxy interface, therefore need not be in the application General-purpose interface is set, so as to reduce the duplication of labour in process of application development, improves development efficiency.Also, due to Configuration need not all arrange general-purpose interface in the application program of system platform, need storage therefore, it is possible to reduce terminal unit Size of code, the storage so as to alleviate terminal unit are born, and reduce the carrying cost of terminal unit.
Second aspect, the embodiment of the present invention propose a kind of multi-platform application program adaptive device, are applied to be provided with generation Reason interface and the adapter of at least one platform interface, a kind of corresponding system platform of each described platform interface, described device set Put in the proxy interface, described device includes:
Detection of platform module, for when preset trigger condition is met, detecting the type of current system platform;
Interface lookup module, for the testing result according to the detection of platform module, searches current system platform corresponding Platform interface;
Program adaptation module, for according to the interface lookup module searches to platform interface application program is configured to On current system platform.
Further, said apparatus can also have the characteristics that described device also includes:
Record storage module, for recording the platform interface that the interface lookup module searches are arrived, and record information is deposited Store up specified location;
Described program adaptation module is put down application program is configured to current system according to the platform interface for finding When on platform, specifically for reading the record information from the specified location, the platform recorded in the record information is called to connect Mouth is configured to the application program on current system platform.
Further, said apparatus can also have the characteristics that, described program adaptation module is being found according to described When platform interface is configured to application program on current system platform, specifically for:
The platform interface for finding is notified to the application program, so as to the application program directly invoke described The platform interface for finding is attached with current system platform.
Further, said apparatus can also have the characteristics that, described program adaptation module is being found according to described When platform interface is configured to application program on current system platform, specifically for:
The application program is transferred to the platform interface for finding, so that the application program passes through the agency Interface calls the platform interface for finding to be attached with current system platform indirectly.
Further, said apparatus can also have the characteristics that, the preset trigger condition is received for the proxy interface The adaptation that adapter power-up initializing or the proxy interface are located that Configuration Request, the proxy interface to application program is located System platform residing for device starts.
Further, said apparatus can also have the characteristics that, the application program is system application.
The multi-platform application program adaptive device that the present embodiment is provided, by adapter in proxy interface realizing to flat The selection of platform interface, is fitted to application program on current system platform by proxy interface, therefore need not be in the application General-purpose interface is set, so as to reduce the duplication of labour in process of application development, improves development efficiency.Also, due to Configuration need not all arrange general-purpose interface in the application program of system platform, need storage therefore, it is possible to reduce terminal unit Size of code, the storage so as to alleviate terminal unit are born, and reduce the carrying cost of terminal unit.
The third aspect, the embodiment of the present invention propose a kind of terminal unit, and the terminal unit includes that being provided with agency connects Mouth and the adapter of at least one platform interface, a kind of corresponding system platform of each described platform interface;
The proxy interface includes the multi-platform application program adaptive device described in second aspect.
Further, above-mentioned terminal unit can also have the characteristics that, the terminal unit is mobile phone or panel computer.
The terminal unit of the embodiment of the present invention, is able to carry out aforesaid multi-platform application program adaptation method, by adaptation Application program is fitted to current system platform by proxy interface realizing the selection to platform interface by the proxy interface in device On, therefore general-purpose interface need not be set in the application, so as to reduce the duplication of labour in process of application development, Improve development efficiency.Also, as application program of the configuration in system platform need not all arrange general-purpose interface, therefore, it is possible to Reducing terminal unit needs the size of code of storage, and the storage so as to alleviate terminal unit is born, and reduces depositing for terminal unit Storage cost.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, without having to pay creative labor, can be other attached to be obtained according to these accompanying drawings Figure.
Fig. 1 is the adaptation procedure schematic diagram of application program in prior art.
Fig. 2 is the first pass exemplary plot 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 plot of multi-platform application program adaptation method provided in an embodiment of the present invention.
Fig. 5 is one of 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.
A kind of topology example figure of the terminal unit that Fig. 8 is provided by the embodiment of the present invention.
Specific embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, 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 for not paying creative work Under, according to all embodiments that spirit of the invention is obtained, belong to protection scope of the present invention.
Although it should be noted that may be described using term first, second, third, etc. in embodiments of the present invention XXX, but these XXX should not necessarily be limited by these terms.These terms are only used for XXX is distinguished from each other out.For example, without departing from this In the case of bright scope of embodiments, an 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 plot 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 apply to be provided with proxy interface and at least one platform interface Adapter, a kind of corresponding system platform of each platform interface, multi-platform application program adaptation side provided in an embodiment of the present invention Method is executed in proxy interface.In a particular application, adapter is may be mounted in system platform, that is to say, that each system One adapter of stage+module.
As shown in Fig. 2 in the present embodiment, multi-platform application program adaptation method may include steps of:
Step S201, when preset trigger condition is met, proxy interface detects the type of current system platform;
During a concrete implementation, preset trigger condition can be:Proxy interface receives the suitable of application program System platform residing for the adapter power-up initializing being located with request, proxy interface or proxy interface place adapter starts.
Wherein, current system platform refers to the system platform currently installed by terminal unit.Although the type of system platform A lot, but in a particular application, the system platform that is installed on a station terminal equipment is to determine.
Step S202, proxy interface search the corresponding platform interface of current system platform according to testing result;
Wherein, testing result is the concrete affiliated type of current system platform.
During a concrete implementation, corresponding relation that can be in advance by system platform with platform interface is stored in generation In reason interface or proxy interface place adapter, proxy interface can be according to depositing in itself or proxy interface place adapter The system platform of storage and the corresponding relation of platform interface, search the corresponding platform interface of current system platform.
Step S203, proxy interface are configured to application program on current system platform according to the platform interface for finding.
During a concrete implementation, application program can be system application.
By aforementioned step S201 and step S202, proxy interface has known that terminal unit current system platform is corresponding Platform interface.No matter which application program terminal unit current system platform will configure, and be required for finding by proxy interface This platform interface be connected to current system platform.So, application program directly invokes proxy interface and is connected to work as In front system platform, it is not necessary to which general-purpose interface is set in the application.
On the one hand, it is not necessary to which general-purpose interface is set in the application, it is possible to reduce the weight in process of application development Multiple work, improves development efficiency.On the other hand, for terminal unit, it is only necessary to increase an agency in adapter and connect Mouthful, configuration need not all arrange general-purpose interface in the application program of system platform, therefore, it is possible to reduce the code of terminal unit Amount, so as to mitigate the storage burden of terminal unit, reduces the carrying cost of terminal unit.
For example.Assume each application program general-purpose interface size of code be 2k bytes, in terminal unit system platform Need to configure 15 application programs.According to application program adaptation method of the prior art, 30k bytes in terminal unit, are needed Memory space is storing the general-purpose interface code of each application program.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 to store the general-purpose interface code of each application program in terminal unit, therefore just saves The memory space of 30k bytes.
During a concrete implementation, terminal unit can be mobile phone, panel computer etc..
The multi-platform application program adaptation method that the present embodiment is provided, by adapter in proxy interface realizing to flat The selection of platform interface, is fitted to application program on current system platform by proxy interface, therefore need not be in the application General-purpose interface is set, so as to reduce the duplication of labour in process of application development, improves development efficiency.Also, due to Configuration need not all arrange general-purpose interface in the application program of system platform, need storage therefore, it is possible to reduce terminal unit Size of code, the storage so as to alleviate terminal unit are born, and reduce the carrying cost of terminal unit.
Embodiment two
Fig. 4 is the second procedure exemplary plot 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 apply to be provided with proxy interface and at least one flat The adapter of platform interface, a kind of corresponding system platform of each platform interface, multi-platform application program provided in an embodiment of the present invention Adaptation method is executed in proxy interface.In a particular application, adapter is may be mounted in system platform, that is to say, that per Individual system platform can install an adapter.
As shown in figure 4, in the present embodiment, multi-platform application program adaptation method may include steps of:
Step S401, when preset trigger condition is met, proxy interface detects the type of current system platform;
During a concrete implementation, preset trigger condition can be:Proxy interface receives the suitable of application program System platform residing for the adapter power-up initializing being located with request, proxy interface or proxy interface place adapter starts.
Step S402, proxy interface search the corresponding platform interface of current system platform according to testing result;
Step S403, the platform interface that proxy interface record search is arrived, and specified location is arrived in record information storage;
After proxy interface have recorded platform interface corresponding with current system platform, need every time configure application program to ought When in front system platform, proxy interface just can be obtained corresponding with current system platform in the way of the direct record information by reading Platform interface, so as to application program is fitted on current system platform.So, step S401 and step S402 only need to hold Go once, so as to alleviate the processing load of processor in terminal unit.
Step S404, proxy interface read record information from specified location, 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 front State proxy interface in step S203 and application program is configured to by the method on current system platform according to the platform interface for finding It is specifically described.
Fig. 5 is one of 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:
S501, proxy interface notify the platform interface for finding to application program, look into so that application program is directly invoked The platform interface for finding 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 directly invokes 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 front State proxy interface in step S203 and application program is configured to by the method on current system platform according to the platform interface for finding 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 for finding for S601, proxy interface, so that application program is connect by agency Mouth calls the platform interface for finding to be attached with current system platform indirectly.
By taking Fig. 3 as an example, application call proxy interface, proxy interface recall platform interface 1, so that application program It is attached with system platform A by the indirect calling platform interface 1 of proxy interface.
Embodiment five
The embodiment of the present invention further provides the device embodiment for realizing each step and method in said 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 apply to the adapter for being provided with proxy interface and at least one platform interface, each A kind of corresponding system platform of platform interface, multi-platform application program adaptive device are arranged in proxy interface.Referring to Fig. 7, this reality Apply in example, multi-platform application program adaptive device can include:
Detection of platform module 710, for when preset trigger condition is met, detecting the type of current system platform;
Interface lookup module 720, for the testing result according to detection of platform module 710, searches current system platform pair The platform interface that answers;
Application program is adapted to by program adaptation module 730, the platform interface for being found according to interface lookup module 720 To on 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 modul 720 finds, and record information storage is arrived specific bit Put, program adaptation module 730 when application program being fitted on current system platform according to the platform interface that finds, specifically For reading record information from specified location, call the platform interface recorded in record information that application program is configured to current system On system platform.
During a concrete implementation, program adaptation module 730 will apply journey according to the platform interface for finding When sequence is configured on current system platform, specifically for:The platform interface for finding is notified to application program, so as to application journey Sequence is directly invoked the platform interface for finding and is attached with current system platform.
During a concrete implementation, program adaptation module 730 will apply journey according to the platform interface for finding When sequence is configured on current system platform, specifically for:Application program is transferred to the platform interface for finding, so as to application journey Sequence calls the platform interface for finding to be attached with current system platform by the proxy interface indirectly.
During a concrete implementation, preset trigger condition please for the adaptation that proxy interface receives application program Ask, proxy interface be located adapter power-up initializing or proxy interface place adapter residing for system platform start.
During a concrete implementation, application program is system application.
Multi-platform application program adaptive device in due to the present embodiment is able to carry out aforesaid multi-platform application program and fits Method of completing the square, the part that the present embodiment is not described in detail is referred to aforementioned multi-platform application program adaptation method embodiment part Related description.
The multi-platform application program adaptive device that the present embodiment is provided, by adapter in proxy interface realizing to flat The selection of platform interface, is fitted to application program on current system platform by proxy interface, therefore need not be in the application General-purpose interface is set, so as to reduce the duplication of labour in process of application development, improves development efficiency.Also, due to Configuration need not all arrange general-purpose interface in the application program of system platform, need the generation of storage therefore, it is possible to reduce terminal unit Code amount, the storage so as to alleviate terminal unit are born, and reduce the carrying cost of terminal unit.
Embodiment six
A kind of terminal unit is embodiments provided, the terminal unit includes being provided with proxy interface and at least one The adapter of platform interface, a kind of corresponding system platform of each platform interface;Proxy interface includes putting down described in embodiment five more Platform application program adaptive device.
Wherein, terminal unit can be mobile phone, panel computer etc..
Fig. 8 is referred to, a kind of topology example figure of its terminal unit provided by the embodiment of the present invention.As shown in figure 8, Terminal unit 800 can include following one or more assemblies:Process assembly 802, memorizer 804, power supply module 806, many matchmakers Body component 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and communication component 816.
The integrated operation of 802 usual control terminal equipment 800 of process assembly, such as with display, call, data are led to Letter, the associated operation of camera operation and record operation.Process assembly 802 can include one or more processors 820 to hold Row instruction, to complete all or part of step of above-mentioned multi-platform application program adaptation method, specifically includes:Predetermined when meeting During trigger condition, the type of current system platform is detected;According to testing result, search the corresponding platform of current system platform and connect Mouthful;Application program is configured on current system platform according to the platform interface for finding.Additionally, process assembly 802 can be wrapped One or more modules are included, the interaction being easy between process assembly 802 and other assemblies.For example, process assembly 802 can include Multi-media module, to facilitate the interaction between multimedia groupware 808 and process assembly 802.
Memorizer 804 is configured to store various types of data to support the operation in terminal unit 800.These data Example include on terminal unit 800 operate any application program or method instruction, contact data, telephone directory Data, message, picture, video etc..Memorizer 804 can by any kind of volatibility or non-volatile memory device or it Combination realize that such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable Remove programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, soon Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal unit 800.Power supply module 806 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for terminal unit 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between the terminal unit 800 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touches Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip The border of action, but also detect the persistent period related to the touch or slide and pressure.In certain embodiments, Multimedia groupware 808 includes a front-facing camera and/or post-positioned pick-up head.When terminal unit 800 is in operator scheme, such as clap When taking the photograph pattern or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each is preposition Photographic head and post-positioned pick-up head can be fixed optical lens systems or there is focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when terminal unit 800 is in operator scheme, such as call model, logging mode and speech recognition mode, mike It is configured to receive external audio signal.The audio signal for being received can be further stored in memorizer 804 or via logical Letter component 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, for exports audio signal.
I/O interfaces 812 are to provide interface between process assembly 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, for providing the state of various aspects for terminal unit 800 Assessment.For example, sensor cluster 814 can detect the opening/closed mode of terminal unit 800, the relative localization of component, example If the component is the display and keypad of terminal unit 800, sensor cluster 814 can with detection terminal equipment 800 or The position change of 800 1 components of terminal unit, user are presence or absence of with what terminal unit 800 was contacted, terminal unit 800 Orientation or the temperature change of acceleration/deceleration and terminal unit 800.Sensor cluster 814 can include proximity transducer, be configured It is used for the presence of object near detection when without any physical contact.Sensor cluster 814 can also include optical sensor, Such as CMOS or ccd image sensor, for used in imaging applications.In certain embodiments, the sensor cluster 814 may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal unit 800 and other equipment. Terminal unit 800 can access the wireless network based on communication standard, such as WiFi, 2G, 3G or 4G or combinations thereof.At one In exemplary embodiment, communication component 816 receives the broadcast singal or wide from external broadcasting management system via broadcast channel Broadcast relevant information.In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote Junction service.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal unit 800 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
The terminal unit of the embodiment of the present invention, is able to carry out aforesaid multi-platform application program adaptation method, by adaptation Application program is fitted to current system platform by proxy interface realizing the selection to platform interface by the proxy interface in device On, therefore general-purpose interface need not be set in the application, so as to reduce the duplication of labour in process of application development, Improve development efficiency.Also, as application program of the configuration in system platform need not all arrange general-purpose interface, therefore, it is possible to Reducing terminal unit needs the size of code of storage, and the storage so as to alleviate terminal unit is born, and reduces depositing for terminal unit Storage cost.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, Device and the specific work process of module, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematic, for example, the module Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple modules or group Part can in conjunction with or be desirably integrated into another system, or some features can be ignored, or not execute.Another, shown Or discuss coupling each other direct-coupling or communication connection can be by the indirect of some interfaces, device or module Coupling is communicated to connect, and can be electrical, mechanical or other forms.
The module that illustrates as separating component can be or may not be physically separate, aobvious as module The part for showing can be or may not be physical module, you can be located at a place, or can also be distributed to multiple On NE.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional module in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit that is realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used so that a computer including some instructions Device (can be personal computer, server, or network equipment etc.) or processor (Processor) execute the present invention each The part steps of embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various Can be with the medium of store program codes.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvements that is made etc. should be included within the scope of the present invention.

Claims (14)

1. a kind of multi-platform application program adaptation method, it is characterised in that be applied to be provided with proxy interface and at least one flat The adapter of platform interface, a kind of corresponding system platform of each described platform interface, methods described are executed in the proxy interface, Methods described includes:
When preset trigger condition is met, the proxy interface detects the type of current system platform;
The proxy interface searches the corresponding platform interface of current system platform according to testing result;
The proxy interface is configured to application program on current system platform according to the platform interface for finding.
2. method according to claim 1, it is characterised in that connect according to the platform for finding in the proxy interface Before mouth is configured to application program on current system platform, methods described also includes:
The platform interface that the proxy interface record search is arrived, and specified location is arrived in record information storage;
The proxy interface is configured to application program on current system platform according to the platform interface for finding, including: The proxy interface reads the record information from the specified location, calls the platform interface recorded in the record information to incite somebody to action The application program is configured on current system platform.
3. method according to claim 1, it is characterised in that the proxy interface is according to the platform interface for finding Application program is configured on current system platform, including:
The proxy interface notifies the platform interface for finding to the application program, so that the application program is direct The platform interface for finding is called to be attached with current system platform.
4. method according to claim 1, it is characterised in that the proxy interface is according to the platform interface for finding Application program is configured on current system platform, including:
The application program is transferred to the platform interface for finding by the proxy interface, so that the application program passes through The proxy interface calls the platform interface for finding to be attached with current system platform indirectly.
5. method according to claim 1, it is characterised in that the preset trigger condition is received for the proxy interface Adapter power-up initializing or proxy interface place adapter that the Configuration Request of application program, the proxy interface are located Residing system platform starts.
6. method according to claim 1, it is characterised in that the application program is system application.
7. a kind of multi-platform application program adaptive device, it is characterised in that be applied to be provided with proxy interface and at least one flat The adapter of platform interface, a kind of corresponding system platform of each described platform interface, described device are arranged in the proxy interface, Described device includes:
Detection of platform module, for when preset trigger condition is met, detecting the type of current system platform;
Interface lookup module, for the testing result according to the detection of platform module, searches current system platform corresponding flat Platform interface;
Program adaptation module, for according to the interface lookup module searches to platform interface application program is configured to currently In system platform.
8. device according to claim 7, it is characterised in that described device also includes:
Record storage module, for recording the platform interface that the interface lookup module searches are arrived, and record information storage is arrived Specified location;
Application program is being configured on current system platform by described program adaptation module according to the platform interface for finding When, specifically for reading the record information from the specified location, call the platform interface recorded in the record information to incite somebody to action The application program is configured on current system platform.
9. device according to claim 7, it is characterised in that described program adaptation module according to described find flat When platform interface is configured to application program on current system platform, specifically for:
The platform interface for finding is notified to the application program, so that the application program directly invokes the lookup To platform interface be attached with current system platform.
10. device according to claim 7, it is characterised in that described program adaptation module is being found according to described When platform interface is configured to application program on current system platform, specifically for:
The application program is transferred to the platform interface for finding, so that the application program is by the proxy interface The platform interface for finding is called indirectly to be attached with current system platform.
11. devices according to claim 7, it is characterised in that the preset trigger condition is received for the proxy interface The adaptation that adapter power-up initializing or the proxy interface are located that Configuration Request, the proxy interface to application program is located System platform residing for device starts.
12. devices according to claim 7, it is characterised in that the application program is system application.
13. a kind of terminal units, it is characterised in that the terminal unit includes that being provided with proxy interface and at least one platform connects The adapter of mouth, a kind of corresponding system platform of each described platform interface;
The proxy interface includes the multi-platform application program adaptive device described in any one of claim 7 to 12.
14. terminal units according to claim 13, it is characterised in that the terminal unit is mobile phone or panel 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 true CN106502809A (en) 2017-03-15
CN106502809B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459552A (en) * 2018-01-31 2018-08-28 南京拓控信息科技股份有限公司 A kind of programmable automation control method of intelligence object-oriented
WO2020057234A1 (en) * 2018-09-20 2020-03-26 Oppo广东移动通信有限公司 Engine isolation method, related device, and computer-readable storage medium

Citations (7)

* 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
US20040255280A1 (en) * 2003-06-12 2004-12-16 Shih-Li Wen System and method for executing composite commands with consecutive single keystrokes
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

Patent Citations (7)

* 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
US20040255280A1 (en) * 2003-06-12 2004-12-16 Shih-Li Wen System and method for executing composite commands with consecutive single keystrokes
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459552A (en) * 2018-01-31 2018-08-28 南京拓控信息科技股份有限公司 A kind of programmable automation control method of intelligence object-oriented
CN108459552B (en) * 2018-01-31 2021-07-23 南京拓控信息科技股份有限公司 Intelligent object-oriented programmable automatic control method
WO2020057234A1 (en) * 2018-09-20 2020-03-26 Oppo广东移动通信有限公司 Engine isolation method, related device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN106502809B (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN107370772A (en) Account login method, device and computer-readable recording medium
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
CN108702414A (en) A kind of screen locking method and device
CN103916468B (en) Method for upgrading system, terminal, server and upgrade-system
CN105554255A (en) Operation control method and device for terminal equipment
CN105376412A (en) Information processing method and device
CN105975038A (en) Prompt method and device of charging port detection result
CN105183571A (en) Function calling method and device
CN106455002A (en) Wireless search method and device, and terminal
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device
CN106897172A (en) System method to set up, device and terminal
CN106451670A (en) Charge control method, device and terminal equipment
CN101984641B (en) Mobile terminal and backlight control method thereof
CN105657199A (en) Method and device for establishing talking connection and switching equipment
CN104391742B (en) Optimizing application method and apparatus
CN106354432A (en) Data modification method and device
CN105549883A (en) Operation control method and device
CN109271292A (en) Power consumption information acquisition method and device
CN104156387A (en) Display method and device
CN105099758A (en) Methods and devices for transmitting update data package
CN105138298B (en) Information sharing method, device and terminal
CN107632835A (en) Using installation method and device
CN107301404A (en) Fingerprint input method and device
CN107071707A (en) Data transmission method and device

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

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.

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

Granted publication date: 20191008

Termination date: 20201108

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