CN104317647B - Application function implementation method, device and terminal - Google Patents

Application function implementation method, device and terminal Download PDF

Info

Publication number
CN104317647B
CN104317647B CN201410602329.5A CN201410602329A CN104317647B CN 104317647 B CN104317647 B CN 104317647B CN 201410602329 A CN201410602329 A CN 201410602329A CN 104317647 B CN104317647 B CN 104317647B
Authority
CN
China
Prior art keywords
wearable device
sdk
api
application
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410602329.5A
Other languages
Chinese (zh)
Other versions
CN104317647A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410602329.5A priority Critical patent/CN104317647B/en
Publication of CN104317647A publication Critical patent/CN104317647A/en
Application granted granted Critical
Publication of CN104317647B publication Critical patent/CN104317647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure is directed to application function implementation method, device and terminals, which comprises the wearable device Software Development Kit SDK in load operating system;Receive the goal behavior information of wearable device transmission;By the wearable device SDK driver application, application function corresponding with the goal behavior information is executed.Using the embodiment of the present disclosure, since terminal can load wearable device SDK adapted to the operating system, therefore when receiving the goal behavior information of wearable device transmission, wearable device SDK driver application can be passed through, execute application function corresponding with goal behavior information, so as to provide the application function of multiplicity to third-party application by wearable device SDK, the Adapter Property between wearable device and terminal is improved.

Description

Application function implementation method, device and terminal
Technical field
This disclosure relates to field of communication technology more particularly to application function implementation method, device and terminal.
Background technique
With the fast development of electronics technology and Internet technology, wearable device progresses into people's lives.With intelligence For energy bracelet, Intelligent bracelet is cooperated by APP (Application, application software) matched on intelligent terminal, When user executes different movements in Intelligent bracelet, Intelligent bracelet is by being transferred to intelligent terminal for action message, by intelligence Terminal operating system controls APP and realizes corresponding function.
But in the related technology, the behavior of wearable device only combines closely ability in fact with particular terminal operating system Now corresponding application function causes to realize by wearable device and answer since the OS Type of different terminals may be different When with function, it is difficult to be generally adapted to terminal operating system, limit the scope of application of wearable device.
Summary of the invention
Present disclose provides application function implementation method, device and terminals, to solve in the related technology by wearable When equipment realizes application function, it is difficult to the problem of being generally adapted to terminal operating system.
According to the first aspect of the embodiments of the present disclosure, a kind of application function implementation method is provided, which comprises
Wearable device Software Development Kit SDK in load operating system;
Receive the goal behavior information of wearable device transmission;
By the wearable device SDK driver application, execute corresponding with the goal behavior information using function Energy.
Optionally, the goal behavior information for receiving wearable device transmission, comprising:
It establishes and communicates to connect with the wearable device;
By the communication connection, the goal behavior information of the wearable device transmission is received.
Optionally, described by the wearable device SDK driver application, it executes and the goal behavior information pair The application function answered, comprising:
Object event application programming corresponding with the goal behavior information is activated by the wearable device SDK Interface API;
Call the event functions of application program corresponding with the object event API;
Application function corresponding with the goal behavior information is executed by the event functions.
Optionally, described that object event corresponding with the goal behavior information is activated by the wearable device SDK API, comprising:
Search the different behavioural informations and event of the wearable device pre-saved in the wearable device SDK The corresponding relationship of API obtains object event API corresponding with the goal behavior information;
The object event API is activated by the wearable device SDK.
Optionally, the event functions for calling application program corresponding with the object event API, comprising:
The target process for operating in the operating system foreground is obtained in process from currently having been turned on;
In event functions defined in the application program belonging to the target process, call and the object event API Corresponding event functions.
Optionally, at least one event API that the wearable device SDK registered in advance is provided in the application program.
Optionally, the wearable device SDK is to be adapted to the operating system, and provide at least to different application The SDK of one event API.
According to the second aspect of an embodiment of the present disclosure, a kind of application function realization device is provided, described device includes:
Loading unit, for the wearable device SDK in load operating system;
Receiving unit, for receiving the goal behavior information of wearable device transmission;
Execution unit, for executing and the goal behavior information by the wearable device SDK driver application Corresponding application function.
Optionally, the receiving unit includes:
Subelement is established in connection, is communicated to connect for establishing with the wearable device;
Information receiving subelement, for receiving the goal behavior of the wearable device transmission by the communication connection Information.
Optionally, the execution unit includes:
API activates subelement, for activating mesh corresponding with the goal behavior information by the wearable device SDK Mark event API;
Function call subelement, for calling the event functions of application program corresponding with the object event API;
Application execution subelement, it is corresponding with the goal behavior information using function for being executed by the event functions Energy.
Optionally, the API activation subelement includes:
Object event API searching module, for searching, pre-save in the wearable device SDK described is wearable to be set The corresponding relationship of standby different behavioural informations and event API, obtains object event API corresponding with the goal behavior information;
Object event API active module, for activating the object event API by the wearable device SDK.
Optionally, the function call subelement includes:
Target process obtains module, for operating in the mesh on the operating system foreground from currently having been turned on to obtain in process Mark process;
Event functions calling module, in event functions defined in the application program belonging to the target process, Call event functions corresponding with the object event API.
Optionally, at least one event API that the wearable device SDK registered in advance is provided in the application program.
Optionally, the wearable device SDK is to be adapted to the operating system, and provide at least to different application The SDK of one event API.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, comprising: processor;It can for storage processor The memory executed instruction;Wherein, the processor is configured to:
Wearable device Software Development Kit SDK in load operating system;
Receive the goal behavior information of wearable device transmission;
By the wearable device SDK driver application, execute corresponding with the goal behavior information using function Energy.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Since terminal can load wearable device SDK adapted to the operating system in the disclosure, can be worn when receiving When wearing the goal behavior information of equipment transmission, it can execute and believe with goal behavior by wearable device SDK driver application Corresponding application function is ceased, so as to provide the application function of multiplicity to third-party application by wearable device SDK, is improved Adapter Property between wearable device and terminal.
Terminal can receive wearable device inspection by establishing various communication connections between wearable device in the disclosure The various actions information measured, to be implemented in the corresponding different application function of different behavioural informations at the terminal, to improve The convenience of a variety of application functions is realized in terminal.
Wearable device SDK is by opening a variety of event API to application program in the disclosure, so as to according to wearable The different behavioural informations that equipment is sent activate corresponding event API, so as in the thing for calling application program corresponding with event API After part function, specific application function corresponding with behavioural information can be executed by the event functions, due to third-party application Program can define different event functions, so that different application can be directed to by registering different event API Different functions is realized in the behavior of same wearable device, so that the implementation of application function in terminal is simplified, so that can More flexible cooperation is realized between wearable device and application program.
In the disclosure when running the process of multiple application programs in terminal, operating system foreground is operated in by calling Event functions defined in application program belonging to target process, thereby may be ensured that wearable device synchronization with it is specific Application program is adapted to.
Since wearable device SDK to be adapted to different operating system, and can be passed through by developing in advance in the disclosure There is provided event API to different application can infuse so as to facilitate third party application in development and application function After the different event API of volume, different application functions is realized by the different behaviors of wearable device.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of disclosure application function implementation method flow chart shown according to an exemplary embodiment.
Fig. 2 is the disclosure another application function implementation method flow chart shown according to an exemplary embodiment.
A kind of Fig. 3 disclosure application scenarios schematic diagram that application function is realized shown according to an exemplary embodiment.
Fig. 4 is a kind of disclosure application function realization device block diagram shown according to an exemplary embodiment.
Fig. 5 is the disclosure another application function realization device block diagram shown according to an exemplary embodiment.
Fig. 6 is the disclosure another application function realization device block diagram shown according to an exemplary embodiment.
Fig. 7 is the disclosure another application function realization device block diagram shown according to an exemplary embodiment.
Fig. 8 is the disclosure another application function realization device block diagram shown according to an exemplary embodiment.
Fig. 9 is that an a kind of disclosure structure for application function realization device shown according to an exemplary embodiment is shown It is intended to.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
As shown in Figure 1, Fig. 1 is a kind of application function implementation method flow chart shown according to an exemplary embodiment, it should Method can be used in terminal, comprising the following steps:
In a step 101, the wearable device SDK in load operating system.
SDK (Software Development Kit, Software Development Kit) be it is some by software engineer for being Specific software package, software frame, hardware platform, operating system etc. establish the set of the developing instrument of application software.The disclosure It is specific in the terminal for being mounted with different operating system in order to enable the behavior occurred on wearable device to trigger in embodiment Application function can develop the wearable device SDK for different type operating system in advance.Wherein, different types of operation System may include android operating system, ios operating system, and winphone operating system etc. can be directed to different types of Operating system develops different wearable device SDK.The embodiment of the present invention is to the development scheme of wearable device SDK without tool Body limits, for example, can obtain wearable device SDK by the way of being packaged to bluetooth SDK.
In the embodiment of the present invention, wearable device may include the clothing for being directly worn on user or being integrated into user Portable device in clothes, accessory, for example, smart glasses, smart watches, Intelligent bracelet, intelligent running shoes etc., to this disclosure reality Example is applied to be not limited.
In the present embodiment, the wearable device SDK being adapted to the operating system is contained in the installed operating system of terminal, Terminal can be loaded with the wearable device SDK in the operating system after powering, or in the enabled order for receiving user The wearable device SDK in the operating system is loaded afterwards.
In a step 102, the goal behavior information of wearable device transmission is received.
In the present embodiment, communication connection, the communication can be established using any way between terminal and wearable device Connection can be wired connection or wireless connection;Wherein, wired connection can use Micro (micro-)-USB (Universal Serial Bus, universal serial bus) it realizes, wireless connection can be realized using the modes such as bluetooth, infrared, near-field communication.Separately Outside, the communication connection established between terminal and wearable device can be specially long connection or short connection, to this disclosure reality Example is applied to be not limited.
After establishing communication connection between terminal and wearable device, when wearable device has detected user behavior hair When raw, the corresponding goal behavior information of the user behavior can be transferred to terminal by established communication connection.
In step 103, by wearable device SDK driver application, answer corresponding with goal behavior information is executed Use function.
API (Application Programming Interface, application programming interface) is that operating system is left for One calling interface of application program, application program can make operating system go the life of executing application by calling API It enables.In the present embodiment, wearable device SDK adapted to the operating system can externally provide at least one event API, each Event API corresponds to an appreciable user behavior, different application programs on wearable device and can choose as needed Register the API at least one event API.In the present embodiment, when terminal receives the goal behavior of wearable device transmission After information, registered target thing in application program corresponding with goal behavior information can be activated by wearable device SDK Part API, and call the event functions of corresponding with object event API application program, is executed and target line by the event functions For the corresponding application function of information.
As seen from the above-described embodiment, since terminal can load wearable device SDK adapted to the operating system, work as , can be by wearable device SDK driver application when receiving the goal behavior information of wearable device transmission, execution and mesh The corresponding application function of behavioural information is marked, so as to provide the application of multiplicity to third-party application by wearable device SDK Function improves the Adapter Property between wearable device and terminal.
As shown in Fig. 2, Fig. 2 is another application function implementation method flow chart shown according to an exemplary embodiment, This method can be used in terminal, comprising the following steps:
In step 201, the wearable device SDK in load operating system.
In the embodiment of the present disclosure, different operating system is mounted in order to enable the behavior occurred on wearable device to trigger Terminal on application specific functionality, the wearable device SDK for different type operating system can be developed in advance.Wherein, Different types of operating system may include android operating system, ios operating system, winphone operating system etc., can be with Different wearable device SDK is developed for different types of operating system.The embodiment of the present invention opens wearable device SDK Originating party formula is without specifically limiting, for example, can obtain wearable device SDK by the way of being packaged to bluetooth SDK.
In the embodiment of the present invention, wearable device may include the clothing for being directly worn on user or being integrated into user Portable device in clothes, accessory, for example, smart glasses, smart watches, Intelligent bracelet, intelligent running shoes etc., to this disclosure reality Example is applied to be not limited.
In the present embodiment, the wearable device SDK being adapted to the operating system is contained in the installed operating system of terminal, Terminal can be loaded with the wearable device SDK in the operating system after powering, or in the enabled order for receiving user The wearable device SDK in the operating system is loaded afterwards.
In step 202, it establishes and communicates to connect with wearable device.
In the present embodiment, communication connection, the communication can be established using any way between terminal and wearable device Connection can be wired connection or wireless connection;Wherein, wired connection can realize that wireless connection can be with using Micro-USB It is realized using the modes such as bluetooth, infrared, near-field communication.In addition, the communication connection established between terminal and wearable device can be with Specially long connection or short connection, are not limited this embodiment of the present disclosure.
In step 203, by the communication connection of foundation, the goal behavior information of wearable device transmission is received.
After establishing communication connection between terminal and wearable device, when wearable device has detected user behavior hair When raw, the corresponding goal behavior information of the user behavior can be transferred to terminal by established communication connection.Can wear For wearing equipment and being Intelligent bracelet, when user pats Intelligent bracelet, the sensor in Intelligent bracelet can detecte user's Behavior is patted, pat information of the behavior generation as goal behavior information is patted according to this, and this can be patted into information and passed through Bluetooth approach is transferred to terminal.
Since terminal can receive wearable device and detect by establishing various communication connections between wearable device Various actions information, to be implemented in the corresponding different application function of different behavioural informations at the terminal, to improve at end Realize the convenience of a variety of application functions in end.
In step 204, object event API corresponding with goal behavior information is activated by wearable device SDK.
In the present embodiment, wearable device SDK adapted to the operating system can externally provide at least one event API, Different application programs can choose the API in registration at least one event API, in registration process, application as needed Program can define the corresponding relationship of different event API and event functions, and each event functions are for executing the application program Some specific function.Wherein, each event API corresponds to an appreciable user behavior on wearable device, i.e., wearable The different behavioural informations of wearable device and the corresponding relationship of event API have been pre-saved in equipment SDK, therefore have been received in terminal After the goal behavior information transmitted to wearable device, the corresponding relationship saved in wearable device SDK can be searched, obtain with The corresponding object event API of goal behavior information, and object event API is activated by wearable device SDK.
In step 205, the event functions of application program corresponding with object event API are called.
It, can be from this due to having registered object event API in application program after object event API is activated In the event functions that application program defines, event functions corresponding with object event API are called.In the present embodiment, due to end End may start multiple processes of multiple application programs in synchronization, may have at least two to answer in multiple application program The event API that wearable device SDK is provided was registered with program, therefore terminal can obtain fortune from currently having been turned in process The capable unique process on operating system foreground is as target process, event defined in the application program belonging to the target process In function, event functions corresponding with object event API are called.
It follows that operating in operating system foreground by calling when running the process of multiple application programs in terminal Target process belonging to event functions defined in application program, thereby may be ensured that wearable device in synchronization and special Determine application program to be adapted to.
In step 206, application function corresponding with goal behavior information is executed by event functions.
In the present embodiment, application program is the corresponding event functions of each event API definition in registered events API, Since each event API has corresponded to the appreciable user behavior of wearable device, having invoked and object event API After corresponding event functions, function can be applied by some of the function execution application program corresponding with goal behavior information Energy.
When stating embodiment in realization, still by taking wearable device is Intelligent bracelet as an example, in terminal loads operating system Intelligent bracelet SDK, in Intelligent bracelet may the user behavior of perception include that user pats bracelet, user draws a circle, then can be The behavior that user pats bracelet encapsulates corresponding event API1, encapsulates corresponding event API2 for the behavior that user draws a circle, and will The API that above-mentioned event API1 and event API2 are used as Intelligent bracelet SDK externally to provide is written in Intelligent bracelet SDK.At this time The application program installed in terminal can register above-mentioned event API1 and event API2, and in registration process, and definition is different The corresponding relationship of event API and event functions, each event functions are used to execute the application specific functionality in the application program, from And the different user behavior that bracelet is perceived, application program in the terminal can be triggered and realize specific application function.Example It such as,, can after the music player has registered above-mentioned event API1 and event API2 by taking application program is music player as an example Event functions 1 are corresponded to define event API1, which is " playing next song " for the application function of execution, together When can define event API2 and correspond to event functions 2, which is that " pause plays current for the application function of execution Song ".
As seen from the above-described embodiment, since terminal can load wearable device SDK adapted to the operating system, work as , can be by wearable device SDK driver application when receiving the goal behavior information of wearable device transmission, execution and mesh The corresponding application function of behavioural information is marked, so as to provide the application of multiplicity to third-party application by wearable device SDK Function improves the Adapter Property between wearable device and terminal;Also, since wearable device SDK can be by opening in advance Hair, to be adapted to different operating system, and by providing event API to different application, so as to facilitate third party to answer With program in development and application function, it can be realized after registering different event API by the different behaviors of wearable device Different application functions.
Referring to FIG. 3, Fig. 3 is a kind of schematic diagram of a scenario for realizing application function shown according to an exemplary embodiment. Intelligent bracelet and a mobile phone as terminal in scene shown in Fig. 3, including one as wearable device.Intelligent bracelet and Mobile phone can be realized by bluetooth and is wirelessly connected, and carry out information transmission and interaction therebetween based on bluetooth connection.It can be with Understand, the terminal of the present embodiment, which only takes the mobile phone as an example, to be illustrated, and terminal can also be specifically PC in practical application (Personal Computer, personal computer) or tablet computer etc. other have and carried out by Bluetooth function and Intelligent bracelet The terminal of communication.
In application scenarios shown in Fig. 3, it is assumed that third party developer uses .net frame, for android operating system Intelligent bracelet SDK is developed, mobile phone shown in Fig. 3 is mounted with android operating system, and writes in the android operating system Intelligent bracelet SDK is entered, Intelligent bracelet SDK can provide third party application at least one event API, each event API corresponds to an appreciable user behavior of Intelligent bracelet, for example, the behavior of drawing a circle that Intelligent bracelet is user encapsulates a picture Circle event API, and the event API that draws a circle is opened to third party application.
In Fig. 3, it is assumed that be mounted with camera software in mobile phone in advance, then in order to make Intelligent bracelet perceive drawing a circle for user After behavioural information, the camera function of camera software can be triggered, aforementioned draw a circle can be registered in the camera software in advance Event API.For example, the title (namespace) of Intelligent bracelet SDK is " System.Bracelet ", then in camera software It is written " using System.Bracelet ", the event API that draws a circle in bracelet SDK can be called.After registration, camera is soft It may include following information in part:
Bracelet bracelet=new Bracelet;// Intelligent bracelet
Bracelet.Circle=handler ();// it is event API definition event functions of drawing a circle
Above-mentioned handler () is the corresponding event functions of event API of drawing a circle, and can carry out spirit by camera software provider Definition living, to execute the camera function of camera software.
Assuming that camera software is opened on mobile phone, at this time if the user for wearing Intelligent bracelet is made that that draws a circle moves Make, then Intelligent bracelet can be after perceiving the movement of drawing a circle, and the information that will draw a circle is transferred to mobile phone by bluetooth connection, on mobile phone The Intelligent bracelet SDK of load can activate draw a circle event API corresponding with the information of drawing a circle, and call and draw a circle API pairs of event Event functions defined in the camera software answered, so that camera software executes camera function automatically.
Corresponding with aforementioned applications function realizing method embodiment, the disclosure additionally provides application function realization device and phase The embodiment for the terminal answered.
As shown in figure 4, Fig. 4 is a kind of disclosure application function realization device frame shown according to an exemplary embodiment Figure, described device includes: loading unit 410, receiving unit 420 and execution unit 430.
Wherein, the loading unit 410, the wearable device SDK being configured as in load operating system;
The receiving unit 420 is configured as receiving the goal behavior information of wearable device transmission;
The execution unit 430, is configured as through the wearable device SDK driver application, execute with it is described The corresponding application function of goal behavior information.
In above-described embodiment, since terminal can load wearable device SDK adapted to the operating system, when reception , can be by the wearable device SDK driver application when goal behavior information of wearable device transmission, execution and mesh The corresponding application function of behavioural information is marked, so as to provide the application of multiplicity to third-party application by wearable device SDK Function improves the Adapter Property between wearable device and terminal.
As shown in figure 5, Fig. 5 is the disclosure another application function realization device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the receiving unit 420 may include: that subelement is established in connection 421 and information receiving subelement 422.
Wherein, subelement 421 is established in the connection, is configured as establishing communication connection with the wearable device;
The information receiving subelement 422 is configured as receiving the wearable device transmission by the communication connection Goal behavior information.
In above-described embodiment, terminal can be received wearable by establishing various communication connections between wearable device The various actions information that equipment detects, to be implemented in the corresponding different application function of different behavioural informations at the terminal, from And it improves and realizes the convenience of a variety of application functions in terminal.
As shown in fig. 6, Fig. 6 is the disclosure another application function realization device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the execution unit 430 may include: API activation subelement 431, function call subelement 432 and application execution subelement 433.
Wherein, the API activates subelement 431, is configured as activating and the target by the wearable device SDK The corresponding object event API of behavioural information;
The function call subelement 432 is configured as calling the thing of application program corresponding with the object event API Part function;
The application execution subelement 433 is configured as executing and the goal behavior information by the event functions Corresponding application function.
In above-described embodiment, wearable device SDK is by opening a variety of event API to application program, so as to basis The different behavioural informations that wearable device is sent activate corresponding event API, so as to corresponding with event API using journey in calling After the event functions of sequence, specific application function corresponding with behavioural information can be executed by the event functions, due to third Square application program can define different event functions, so that different application can by registering different event API Different functions is realized with the behavior for same wearable device, so that the implementation of application function in terminal is simplified, So that realizing more flexible cooperation between wearable device and application program.
As shown in fig. 7, Fig. 7 is the disclosure another application function realization device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the API activation subelement 431 includes: that object event API is looked into Look for module 4311 and object event API active module 4312.
Wherein, the object event API searching module 4311 is configured as searching in the wearable device SDK in advance The different behavioural informations of the wearable device saved and the corresponding relationship of event API, obtain and the goal behavior information Corresponding object event API;
The object event API active module 4312 is configured as activating the target by the wearable device SDK Event API.
As shown in figure 8, Fig. 8 is the disclosure another application function realization device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the function call subelement 432 includes: that target process obtains Module 4321 and event functions calling module 4322.
Wherein, the target process obtains module 4321, is configured as operating in institute from currently having been turned on to obtain in process State the target process on operating system foreground;
The event functions calling module 4322, is configured as defined in the application program belonging to the target process In event functions, event functions corresponding with the object event API are called.
In above-described embodiment, when running the process of multiple application programs in terminal, operating system is operated in by calling Event functions defined in application program belonging to the target process on foreground thereby may be ensured that wearable device in synchronization It is adapted to application-specific.
It, can be with the wearable device registered in advance in the application program in embodiment in above-mentioned Fig. 6 shown in Fig. 8 At least one event API that SDK is provided.
In the embodiment shown in above-mentioned Fig. 4 to Fig. 8, the wearable device SDK can be suitable with the operating system Match, and provides the SDK of at least one event API to different application.
Since wearable device SDK to be adapted to different operating system, and can be passed through by developing in advance in the disclosure There is provided event API to different application can infuse so as to facilitate third party application in development and application function After the different event API of volume, different application functions is realized by the different behaviors of wearable device.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of terminal, the terminal includes processor;It is executable for storage processor The memory of instruction;Wherein, the processor is configured to:
Wearable device Software Development Kit SDK in load operating system;
Receive the goal behavior information of wearable device transmission;
By the wearable device SDK driver application, execute corresponding with the goal behavior information using function Energy.
Fig. 9 is a kind of block diagram of device 900 shown for information shown according to an exemplary embodiment.For example, dress Setting 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 909 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When device 900 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 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 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of device 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor module 914 can be with 900 1 components of detection device 900 or device Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900 Temperature change.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number 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.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of application function implementation method, which is characterized in that developed for different types of operating system different wearable Equipment SDK, which comprises
Wearable device Software Development Kit SDK, the wearable device SDK in load operating system are and the operation System adaptation;
Receive the goal behavior information of wearable device transmission;
By the wearable device SDK driver application, application function corresponding with the goal behavior information is executed;
Wherein, described by the wearable device SDK driver application, execute answer corresponding with the goal behavior information With function, comprising:
Object event application programming interface corresponding with the goal behavior information is activated by the wearable device SDK API;
Call the event functions of application program corresponding with the object event API;
Application function corresponding with the goal behavior information is executed by the event functions.
2. the method according to claim 1, wherein the goal behavior letter for receiving wearable device transmission Breath, comprising:
It establishes and communicates to connect with the wearable device;
By the communication connection, the goal behavior information of the wearable device transmission is received.
3. the method according to claim 1, wherein it is described by the wearable device SDK activation with it is described The corresponding object event API of goal behavior information, comprising:
The different behavioural informations of the wearable device pre-saved in the wearable device SDK are searched with event API's Corresponding relationship obtains object event API corresponding with the goal behavior information;
The object event API is activated by the wearable device SDK.
4. the method according to claim 1, wherein described call application corresponding with the object event API The event functions of program, comprising:
The target process for operating in the operating system foreground is obtained in process from currently having been turned on;
In event functions defined in the application program belonging to the target process, call corresponding with the object event API Event functions.
5. the method according to claim 1, wherein the wearable device registered in advance in the application program At least one event API that SDK is provided.
6. method according to any one of claims 1 to 5, which is characterized in that the wearable device SDK is to different application Program provides the SDK of at least one event API.
7. a kind of application function realization device, which is characterized in that developed for different types of operating system different wearable Equipment SDK, described device include:
Loading unit, in load operating system wearable device SDK, the wearable device SDK and the operation system System adaptation;
Receiving unit, for receiving the goal behavior information of wearable device transmission;
Execution unit, for executing corresponding with the goal behavior information by the wearable device SDK driver application Application function;
Wherein, the execution unit includes:
API activates subelement, for activating target thing corresponding with the goal behavior information by the wearable device SDK Part API;
Function call subelement, for calling the event functions of application program corresponding with the object event API;
Application execution subelement, for executing application function corresponding with the goal behavior information by the event functions.
8. device according to claim 7, which is characterized in that the receiving unit includes:
Subelement is established in connection, is communicated to connect for establishing with the wearable device;
Information receiving subelement, for receiving the goal behavior information of the wearable device transmission by the communication connection.
9. device according to claim 7, which is characterized in that API activation subelement includes:
Object event API searching module, for searching the wearable device pre-saved in the wearable device SDK The corresponding relationship of different behavioural informations and event API obtains object event API corresponding with the goal behavior information;
Object event API active module, for activating the object event API by the wearable device SDK.
10. device according to claim 7, which is characterized in that the function call subelement includes:
Target process obtains module, for from currently have been turned on obtained in process operate in the target on the operating system foreground into Journey;
Event functions calling module, for calling in event functions defined in the application program belonging to the target process Event functions corresponding with the object event API.
11. device according to claim 7, which is characterized in that registered in advance in the application program described wearable to set At least one event API that standby SDK is provided.
12. according to any device of claim 7 to 11, which is characterized in that the wearable device SDK is to answer to difference The SDK of at least one event API is provided with program.
13. a kind of terminal, which is characterized in that develop different wearable device SDK for different types of operating system, wrap It includes: processor;Memory for storage processor executable instruction;Wherein, the processor is configured to:
Wearable device Software Development Kit SDK, the wearable device SDK and the operation in load operating system are System adaptation;
Receive the goal behavior information of wearable device transmission;
By the wearable device SDK driver application, application function corresponding with the goal behavior information is executed;
Wherein, described by the wearable device SDK driver application, execute answer corresponding with the goal behavior information With function, comprising:
Object event application programming interface corresponding with the goal behavior information is activated by the wearable device SDK API;
Call the event functions of application program corresponding with the object event API;
Application function corresponding with the goal behavior information is executed by the event functions.
CN201410602329.5A 2014-10-31 2014-10-31 Application function implementation method, device and terminal Active CN104317647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410602329.5A CN104317647B (en) 2014-10-31 2014-10-31 Application function implementation method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410602329.5A CN104317647B (en) 2014-10-31 2014-10-31 Application function implementation method, device and terminal

Publications (2)

Publication Number Publication Date
CN104317647A CN104317647A (en) 2015-01-28
CN104317647B true CN104317647B (en) 2018-12-25

Family

ID=52372882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410602329.5A Active CN104317647B (en) 2014-10-31 2014-10-31 Application function implementation method, device and terminal

Country Status (1)

Country Link
CN (1) CN104317647B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155717A (en) * 2015-04-01 2016-11-23 北京蓝海讯通科技有限公司 A kind of method and apparatus that SDK is integrated into third party APK
CN105120528B (en) * 2015-08-14 2019-06-11 北京奇虎科技有限公司 A kind of equipment room carries out the method, apparatus and system of configurability setting
CN107908754A (en) * 2017-11-21 2018-04-13 周调彪 A kind of intelligent music playback method and wearable electronic
CN108255297A (en) * 2017-12-29 2018-07-06 青岛真时科技有限公司 A kind of wearable device application control method and apparatus
CN112306467A (en) * 2020-11-10 2021-02-02 深圳市奋达智能技术有限公司 SDK implementation method and device of wearable device
CN113835528A (en) * 2021-09-30 2021-12-24 深圳康佳电子科技有限公司 Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894042A (en) * 2010-06-24 2010-11-24 宇龙计算机通信科技(深圳)有限公司 Realization method for sharing application among a plurality of operating systems, system and mobile terminal
CN103488489A (en) * 2013-09-30 2014-01-01 乐视网信息技术(北京)股份有限公司 Data processing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894042A (en) * 2010-06-24 2010-11-24 宇龙计算机通信科技(深圳)有限公司 Realization method for sharing application among a plurality of operating systems, system and mobile terminal
CN103488489A (en) * 2013-09-30 2014-01-01 乐视网信息技术(北京)股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN104317647A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104317647B (en) Application function implementation method, device and terminal
CN105204894B (en) The method and apparatus for installing the plug-in unit of smart machine
EP3220651B1 (en) Live video broadcasting method and device
CN104394500B (en) The method and device of terminal is found using wearable device
CN104714414B (en) The control method and device of smart home device, electronic equipment
CN104484200B (en) The method and device upgraded to firmware
CN105373464B (en) The charging reminding method and device of wearable device
CN105068958B (en) Method for handover control and device
CN104486451B (en) Application program recommends method and device
CN104038263A (en) Method and device for establishing Bluetooth connection
CN105468152A (en) Terminal operation control method and device based on wearable equipment, and equipment
CN103841264A (en) Method and device for protecting terminal equipment and terminal equipment
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
CN104881121A (en) Prompting method and device
CN104104801A (en) Terminal reminding method and device
CN105807894B (en) Using the treating method and apparatus for holding lock
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN104010072A (en) Electric quantity prompt method and device
CN106532367B (en) The method and apparatus of intelligent socket electricity consumption warning
CN105516483A (en) Equipment control method, device and terminal
CN105224171A (en) icon display method, device and terminal
CN104461715A (en) Reminding task executing method and device based on reminding mode
CN104714826A (en) Application theme loading method and device
CN106384586A (en) Method and device for reading text information
CN104410900B (en) A kind of method and device for controlling the indicator light being installed on smart machine

Legal Events

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