CN104317647A - Application function realizing method, device and terminal - Google Patents

Application function realizing method, device and terminal Download PDF

Info

Publication number
CN104317647A
CN104317647A CN201410602329.5A CN201410602329A CN104317647A CN 104317647 A CN104317647 A CN 104317647A CN 201410602329 A CN201410602329 A CN 201410602329A CN 104317647 A CN104317647 A CN 104317647A
Authority
CN
China
Prior art keywords
wearable device
sdk
application
event
behavior information
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
CN201410602329.5A
Other languages
Chinese (zh)
Other versions
CN104317647B (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.)
Beijing Xiaomi Technology Co Ltd
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

Abstract

The invention relates to an application function realizing method, device and terminal. The application function realizing method includes loading an SDK (software development kit) of a wearable device in the operating system; receiving target behavior information transmitted by the wearable device; implementing the application functions corresponding to the target behavior information by driving the applications via the SDK of the wearable device. Via the application function realizing method, device and terminal, the terminal can download the SDK of the wearable device adaptive to the operating system, and the SDK of the wearable device can drive the applications to execute the application functions corresponding to the target behavior information when the target behavior information transmitted by the wearable device is received, so that the SDK of the wearable device can provide various application functions to the third party, and adaptability of the wearable device and the terminal can be improved.

Description

Application function implementation method, device and terminal
Technical field
The disclosure relates to communication technical field, particularly relates to application function implementation method, device and terminal.
Background technology
Along with the fast development of electronics technology and Internet technology, wearable device progresses into the life of people.For Intelligent bracelet, Intelligent bracelet by with supporting APP (Application on intelligent terminal, application software) coordinate, when user performs different action in Intelligent bracelet, Intelligent bracelet, by action message is transferred to intelligent terminal, realizes corresponding function by intelligent terminal operation system control APP.
But, in correlation technique, the behavior of wearable device only has to combine closely to particular terminal operating system and could realize corresponding application function, because the OS Type of different terminals may be different, result through wearable device when realizing application function, be difficult to carry out general adaptation with terminal operating system, limit the scope of application of wearable device.
Summary of the invention
Present disclose provides application function implementation method, device and terminal, to solve in correlation technique when realizing application function by wearable device, being difficult to carry out general adaptive problem with terminal operating system.
According to the first aspect of disclosure embodiment, provide a kind of application function implementation method, described method comprises:
Wearable device SDK (Software Development Kit) SDK in load operation system;
Receive the goal behavior information of wearable device transmission;
By described wearable device SDK driver application, perform the application function corresponding with described goal behavior information.
Optionally, the goal behavior information of described reception wearable device transmission, comprising:
Establish a communications link with described wearable device;
By described communication connection, receive the goal behavior information of described wearable device transmission.
Optionally, described by described wearable device SDK driver application, perform the application function corresponding with described goal behavior information, comprising:
The object event application programming interface API corresponding with described goal behavior information is activated by described wearable device SDK;
Call the event functions of the application program corresponding with described object event API;
The application function corresponding with described goal behavior information is performed by described event functions.
Optionally, the described object event API corresponding with described goal behavior information by described wearable device SDK activation, comprising:
Search the different behavioural information of the described wearable device preserved in advance in described wearable device SDK and the corresponding relation of event API, obtain the object event API corresponding with described goal behavior information;
Described object event API is activated by described wearable device SDK.
Optionally, described in call the event functions of the application program corresponding with described object event API, comprising:
The target process operating in described operating system foreground is obtained from current startup process;
In the event functions that the application program belonging to described target process defines, call the event functions corresponding with described object event API.
Optionally, at least one event API that in described application program, described in registered in advance, wearable device SDK provides.
Optionally, described wearable device SDK is adaptive with described operating system, and provides the SDK of at least one event API to different application.
According to the second aspect of disclosure embodiment, provide a kind of application function implement device, described device comprises:
Loading unit, for the wearable device SDK in load operation system;
Receiving element, for receiving the goal behavior information of wearable device transmission;
Performance element, for by described wearable device SDK driver application, performs the application function corresponding with described goal behavior information.
Optionally, described receiving element comprises:
Connection establishment subelement, for establishing a communications link with described wearable device;
Receives information subelement, for by described communication connection, receives the goal behavior information of described wearable device transmission.
Optionally, described performance element comprises:
API activates subelement, for activating the object event API corresponding with described goal behavior information by described wearable device SDK;
Function call subelement, for calling the event functions of the application program corresponding with described object event API;
Application performs subelement, for performing the application function corresponding with described goal behavior information by described event functions.
Optionally, described API activation subelement comprises:
Object event API searches module, for the corresponding relation of the different behavioural information and event API of searching the described wearable device preserved in advance in described wearable device SDK, obtains the object event API corresponding with described goal behavior information;
Object event API active module, for activating described object event API by described wearable device SDK.
Optionally, described function call subelement comprises:
Target process acquisition module, for obtaining the target process operating in described operating system foreground from current startup process;
Event functions calling module, in the event functions that defines in the application program belonging to described target process, calls the event functions corresponding with described object event API.
Optionally, at least one event API that in described application program, described in registered in advance, wearable device SDK provides.
Optionally, described wearable device SDK is adaptive with described operating system, and provides the SDK of at least one event API to different application.
According to the third aspect of disclosure embodiment, a kind of terminal is provided, comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Wearable device SDK (Software Development Kit) SDK in load operation system;
Receive the goal behavior information of wearable device transmission;
By described wearable device SDK driver application, perform the application function corresponding with described goal behavior information.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Because terminal can load the wearable device SDK with operating system adaptation in the disclosure, therefore when receiving the goal behavior information of wearable device transmission, wearable device SDK driver application can be passed through, perform the application function corresponding with goal behavior information, thus various application function can be provided by wearable device SDK to third-party application, improve the Adapter Property between wearable device and terminal.
In the disclosure, terminal can by setting up various communication connection between wearable device, receive the various actions information that wearable device detects, to be implemented in the different application function that different behavioural information is corresponding in terminal, thus improve the convenience realizing multiple application function in terminal.
In the disclosure, wearable device SDK is by opening multiple event API to application program, thus the corresponding event API of different behavior information activations that can send according to wearable device, so that after the event functions calling the application program corresponding with event API, the specific application function corresponding with behavioural information can be performed by this event functions, because third party application can by registering different event API, define different event functions, therefore different application is made can to realize different functions for the behavior of same wearable device, thus simplify the implementation of application function in terminal, make to realize between wearable device with application program coordinating more flexibly.
In the disclosure when terminal being run the process of multiple application program, by the event functions that the application program called belonging to the target process operating in operating system foreground defines, thus can ensure that wearable device carries out adaptation at synchronization and application-specific.
Because wearable device SDK can by developing in advance in the disclosure, with the operating system that adaptation is different, and by providing event API to different application, thus third party application can be facilitated when Application and Development function, after the event API that registration is different, different application functions can be realized by the different behaviors of wearable device.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is a kind of application function implementation method process flow diagram of the disclosure according to an exemplary embodiment.
Fig. 2 is the another kind of application function implementation method process flow diagram of the disclosure according to an exemplary embodiment.
The application scenarios schematic diagram that a kind of application function of Fig. 3 disclosure according to an exemplary embodiment realizes.
Fig. 4 is a kind of application function implement device block diagram of the disclosure according to an exemplary embodiment.
Fig. 5 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment.
Fig. 6 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment.
Fig. 7 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment.
Fig. 8 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment.
Fig. 9 is a kind of structural representation for application function implement device of the disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
As shown in Figure 1, Fig. 1 is a kind of application function implementation method process flow diagram according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
In a step 101, the wearable device SDK in load operation system.
SDK (Software Development Kit, SDK (Software Development Kit)) be some by software engineer for setting up the set of the developing instrument of application software for specific software package, software frame, hardware platform, operating system etc.In disclosure embodiment, in order to enable the behavior that wearable device occurs trigger to have installed the application specific functionality in the terminal of different operating system, the wearable device SDK for dissimilar operating system can be developed in advance.Wherein, dissimilar operating system can comprise android operating system, ios operating system, and winphone operating system etc., can develop different wearable device SDK for dissimilar operating system.The development scheme of the embodiment of the present invention to wearable device SDK does not specifically limit, and such as, the mode encapsulated bluetooth SDK can be adopted to obtain wearable device SDK.
In the embodiment of the present invention, wearable device can comprise and is directly worn on user or the portable set be incorporated in the clothes of user, accessory with it, such as, intelligent glasses, intelligent watch, Intelligent bracelet, intelligent running shoes etc., do not limit this disclosure embodiment.
In the present embodiment, the wearable device SDK with this operating system adaptation is contained in terminal institute installing operating system, terminal just can load the wearable device SDK in this operating system after powering, or after receiving the enable command of user, load the wearable device SDK in this operating system.
In a step 102, the goal behavior information of wearable device transmission is received.
In the present embodiment, any-mode can be adopted between terminal and wearable device to establish a communications link, this communication connection can be wired connection or wireless connections; Wherein, wired connection can adopt Micro (micro-)-USB (Universal Serial Bus, USB (universal serial bus)) to realize, and wireless connections can adopt the modes such as bluetooth, infrared, near-field communication to realize.In addition, the communication connection of setting up between terminal with wearable device can be specially long connection or short connection, does not limit this disclosure embodiment.
Establish communication connection between terminal and wearable device after, when wearable device has detected that user behavior occurs, goal behavior information corresponding for this user behavior can be passed through set up communication connection and be transferred to terminal.
In step 103, by wearable device SDK driver application, perform the application function corresponding with goal behavior information.
API (Application Programming Interface, application programming interface) is the calling interface that operating system leaves application program for, and application program, by calling API, can make operating system go the order of executive utility.In the present embodiment, with the wearable device SDK of operating system adaptation, can externally provide at least one event API, an appreciable user behavior on the corresponding wearable device of each event API, different application programs can be selected to register the API in this at least one event API as required.In the present embodiment, after terminal receives the goal behavior information of wearable device transmission, registered object event API in the application program corresponding with goal behavior information can be activated by wearable device SDK, and call the event functions of the application program corresponding with object event API, perform the application function corresponding with goal behavior information by this event functions.
As seen from the above-described embodiment, because terminal can load the wearable device SDK with operating system adaptation, therefore when receiving the goal behavior information of wearable device transmission, wearable device SDK driver application can be passed through, perform the application function corresponding with goal behavior information, thus various application function can be provided by wearable device SDK to third-party application, improve the Adapter Property between wearable device and terminal.
As shown in Figure 2, Fig. 2 is the another kind of application function implementation method process flow diagram according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
In step 201, the wearable device SDK in load operation system.
In disclosure embodiment, in order to enable the behavior that wearable device occurs trigger to have installed the application specific functionality in the terminal of different operating system, the wearable device SDK for dissimilar operating system can be developed in advance.Wherein, dissimilar operating system can comprise android operating system, ios operating system, and winphone operating system etc., can develop different wearable device SDK for dissimilar operating system.The development scheme of the embodiment of the present invention to wearable device SDK does not specifically limit, and such as, the mode encapsulated bluetooth SDK can be adopted to obtain wearable device SDK.
In the embodiment of the present invention, wearable device can comprise and is directly worn on user or the portable set be incorporated in the clothes of user, accessory with it, such as, intelligent glasses, intelligent watch, Intelligent bracelet, intelligent running shoes etc., do not limit this disclosure embodiment.
In the present embodiment, the wearable device SDK with this operating system adaptation is contained in terminal institute installing operating system, terminal just can load the wearable device SDK in this operating system after powering, or after receiving the enable command of user, load the wearable device SDK in this operating system.
In step 202., establish a communications link with wearable device.
In the present embodiment, any-mode can be adopted between terminal and wearable device to establish a communications link, this communication connection can be wired connection or wireless connections; Wherein, wired connection can adopt Micro-USB to realize, and wireless connections can adopt the modes such as bluetooth, infrared, near-field communication to realize.In addition, the communication connection of setting up between terminal with wearable device can be specially long connection or short connection, does not limit this disclosure embodiment.
In step 203, by the communication connection of setting up, receive the goal behavior information of wearable device transmission.
Establish communication connection between terminal and wearable device after, when wearable device has detected that user behavior occurs, goal behavior information corresponding for this user behavior can be passed through set up communication connection and be transferred to terminal.Intelligent bracelet for wearable device, when user pats Intelligent bracelet, sensor in Intelligent bracelet can detect that user's pats behavior, generates and pats information as goal behavior information, and this can be transferred to terminal by bluetooth approach at information of patting according to this behavior of patting.
Because terminal can by setting up various communication connection between wearable device, receive the various actions information that wearable device detects, to be implemented in the different application function that different behavioural information is corresponding in terminal, thus improve the convenience realizing multiple application function in terminal.
In step 204, the object event API corresponding with goal behavior information is activated by wearable device SDK.
In the present embodiment, with the wearable device SDK of operating system adaptation, can externally provide at least one event API, different application programs can be selected to register the API in this at least one event API as required, in registration process, application program can define the corresponding relation of different event API and event functions, and each event functions is for performing certain specific function of this application program.Wherein, an appreciable user behavior on the corresponding wearable device of each event API, namely the different behavioural information of wearable device and the corresponding relation of event API is saved in wearable device SDK in advance, therefore receive the goal behavior information of wearable device transmission in terminal after, the corresponding relation preserved in wearable device SDK can be searched, obtain the object event API corresponding with goal behavior information, and activate this object event API by wearable device SDK.
In step 205, the event functions of the application program corresponding with object event API is called.
After object event API is activated, owing to application program have registered this object event API, therefore from the event functions that this application program defines, the event functions corresponding with this object event API can be called.In the present embodiment, because terminal may to start multiple processes of multiple application program at synchronization, the event API that at least all registered wearable device SDK of two methods program provides may be had in the plurality of application program, therefore terminal can obtain and operate in the unique process on operating system foreground as target process from current startup process, in the event functions that the application program belonging to this target process defines, call the event functions corresponding with object event API.
It can thus be appreciated that, when terminal being run the process of multiple application program, by the event functions that the application program called belonging to the target process operating in operating system foreground defines, thus can ensure that wearable device carries out adaptation at synchronization and application-specific.
In step 206, the application function corresponding with goal behavior information is performed by event functions.
In the present embodiment, application program is when registered events API, for each event API defines corresponding event functions, due to the corresponding appreciable user behavior of wearable device of each event API, therefore, after have invoked the event functions corresponding with object event API, certain application function of this application program corresponding with goal behavior information can be performed by this function.
When stating embodiment in realization, still Intelligent bracelet for wearable device, Intelligent bracelet SDK in terminal loads operating system, Intelligent bracelet the user behavior of perception may comprise that user pats bracelet, user draws a circle, the event API1 of the behavior encapsulation correspondence of bracelet then can be patted for user, for the event API2 of the behavior encapsulation correspondence that user draws a circle, and using above-mentioned event API1 and event API2 all as the API that Intelligent bracelet SDK externally provides, write in this Intelligent bracelet SDK.The application program of now terminal being installed can register above-mentioned event API1 and event API2, and in registration process, the corresponding relation of definition different event API and event functions, each event functions is for performing the application specific functionality in this application program, thus the different user behavior that bracelet is perceived, application program in this terminal can be triggered and realize specific application function.Such as, music player for application program, after this music player have registered above-mentioned event API1 and event API2, the corresponding event functions 1 of event API1 can be defined, this event functions 1 is " playing next song " for the application function performed, can define the corresponding event functions 2 of event API2, this event functions 2 is " suspend and play current song " for the application function performed simultaneously.
As seen from the above-described embodiment, because terminal can load the wearable device SDK with operating system adaptation, therefore when receiving the goal behavior information of wearable device transmission, wearable device SDK driver application can be passed through, perform the application function corresponding with goal behavior information, thus various application function can be provided by wearable device SDK to third-party application, improve the Adapter Property between wearable device and terminal; And, because wearable device SDK can by developing in advance, with the operating system that adaptation is different, and by providing event API to different application, thus third party application can be facilitated when Application and Development function, after the event API that registration is different, different application functions can be realized by the different behaviors of wearable device.
Please refer to Fig. 3, Fig. 3 is a kind of scene schematic diagram realizing application function according to an exemplary embodiment.In the scene shown in Fig. 3, comprise one as the Intelligent bracelet and of wearable device as the mobile phone of terminal.Intelligent bracelet and mobile phone can realize wireless connections by bluetooth, and are connected to based on bluetooth and carry out information transmission and mutual between the two.Be understandable that, the terminal of the present embodiment is only described for mobile phone, in practical application terminal can also specifically PC (Personal Computer, personal computer) or panel computer etc. other possess and carry out by Bluetooth function and Intelligent bracelet the terminal that communicates.
In application scenarios shown in Fig. 3, suppose that third party developer uses .net framework, Intelligent bracelet SDK is developed for android operating system, android operating system installed by mobile phone shown in Fig. 3, and be written with Intelligent bracelet SDK in this android operating system, this Intelligent bracelet SDK can provide at least one event API to third party application, the corresponding appreciable user behavior of Intelligent bracelet of each event API, such as, Intelligent bracelet is that the behavior of drawing a circle of user encapsulates the event API that draws a circle, and open this event API that draws a circle to third party application.
In Fig. 3, suppose, in mobile phone, camera software has been installed in advance, then in order to after making Intelligent bracelet perceive the behavioural information of drawing a circle of user, the camera function of camera software can be triggered, the aforementioned event API that draws a circle can be registered in advance in this camera software.Such as, the title (namespace) of Intelligent bracelet SDK is " System.Bracelet ", then in camera software, write " using System.Bracelet ", can call the event API that draws a circle in bracelet SDK.After registration, following information can be comprised in camera software:
Bracelet bracelet=new Bracelet; // Intelligent bracelet
Bracelet.Circle=handler (); // in order to draw a circle, event API defines event functions
Above-mentioned handler () is event functions corresponding to event API of drawing a circle, and can be defined flexibly, to perform the camera function of camera software by camera software provider.
Suppose mobile phone opens camera software, if the user now wearing Intelligent bracelet has made the action of drawing a circle, then Intelligent bracelet can after perceiving this action of drawing a circle, information of drawing a circle is transferred to mobile phone by bluetooth connection, the Intelligent bracelet SDK that mobile phone loads can activate the event API that draws a circle corresponding to information of drawing a circle with this, and call the event functions that the camera software corresponding with the event API that draws a circle define, thus camera software is made to automatically perform camera function.
Corresponding with aforementioned applications function realizing method embodiment, the disclosure additionally provides the embodiment of application function implement device and corresponding terminal.
As shown in Figure 4, Fig. 4 is a kind of application function implement device block diagram of the disclosure according to an exemplary embodiment, and described device comprises: loading unit 410, receiving element 420 and performance element 430.
Wherein, described loading unit 410, is configured to the wearable device SDK in load operation system;
Described receiving element 420, is configured to the goal behavior information receiving wearable device transmission;
Described performance element 430, is configured to by described wearable device SDK driver application, performs the application function corresponding with described goal behavior information.
In above-described embodiment, because terminal can load the wearable device SDK with operating system adaptation, therefore when receiving the goal behavior information of wearable device transmission, can by described wearable device SDK driver application, perform the application function corresponding with goal behavior information, thus various application function can be provided by wearable device SDK to third-party application, improve the Adapter Property between wearable device and terminal.
As shown in Figure 5, Fig. 5 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described receiving element 420 can comprise: connection establishment subelement 421 and receives information subelement 422.
Wherein, described connection establishment subelement 421, is configured to establish a communications link with described wearable device;
Described receives information subelement 422, is configured to by described communication connection, receives the goal behavior information of described wearable device transmission.
In above-described embodiment, terminal can by setting up various communication connection between wearable device, receive the various actions information that wearable device detects, to be implemented in the different application function that different behavioural information is corresponding in terminal, thus improve the convenience realizing multiple application function in terminal.
As shown in Figure 6, Fig. 6 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described performance element 430 can comprise: API activates subelement 431, function call subelement 432 and application and performs subelement 433.
Wherein, described API activates subelement 431, is configured to activate the object event API corresponding with described goal behavior information by described wearable device SDK;
Described function call subelement 432, is configured to the event functions calling the application program corresponding with described object event API;
Described application performs subelement 433, is configured to perform the application function corresponding with described goal behavior information by described event functions.
In above-described embodiment, wearable device SDK is by opening multiple event API to application program, thus the corresponding event API of different behavior information activations that can send according to wearable device, so that after the event functions calling the application program corresponding with event API, the specific application function corresponding with behavioural information can be performed by this event functions, because third party application can by registering different event API, define different event functions, therefore different application is made can to realize different functions for the behavior of same wearable device, thus simplify the implementation of application function in terminal, make to realize between wearable device with application program coordinating more flexibly.
As shown in Figure 7, Fig. 7 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 6, and described API activates subelement 431 and comprises: object event API searches module 4311 and object event API active module 4312.
Wherein, described object event API searches module 4311, be configured to search the different behavioural information of the described wearable device preserved in advance in described wearable device SDK and the corresponding relation of event API, obtain the object event API corresponding with described goal behavior information;
Described object event API active module 4312, is configured to activate described object event API by described wearable device SDK.
As shown in Figure 8, Fig. 8 is the another kind of application function implement device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 6, and described function call subelement 432 comprises: target process acquisition module 4321 and event functions calling module 4322.
Wherein, described target process acquisition module 4321, is configured to from current startup process, obtain the target process operating in described operating system foreground;
Described event functions calling module 4322, is configured in the event functions defined in the application program belonging to described target process, calls the event functions corresponding with described object event API.
In above-described embodiment, when terminal being run the process of multiple application program, by the event functions that the application program called belonging to the target process operating in operating system foreground defines, thus can ensure that wearable device carries out adaptation at synchronization and application-specific.
In above-mentioned Fig. 6 in the embodiment shown in Fig. 8, can at least one event API of providing of wearable device SDK described in registered in advance in described application program.
In the embodiment shown in above-mentioned Fig. 4 to Fig. 8, described wearable device SDK can be adaptive with described operating system, and provides the SDK of at least one event API to different application.
Because wearable device SDK can by developing in advance in the disclosure, with the operating system that adaptation is different, and by providing event API to different application, thus third party application can be facilitated when Application and Development function, after the event API that registration is different, different application functions can be realized by the different behaviors of wearable device.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of terminal, and described terminal includes processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Wearable device SDK (Software Development Kit) SDK in load operation system;
Receive the goal behavior information of wearable device transmission;
By described wearable device SDK driver application, perform the application function corresponding with described goal behavior information.
Fig. 9 is the block diagram of a kind of device 900 for information displaying according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 909 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of device 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 906 is device 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When device 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of device 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (15)

1. an application function implementation method, is characterized in that, described method comprises:
Wearable device SDK (Software Development Kit) SDK in load operation system;
Receive the goal behavior information of wearable device transmission;
By described wearable device SDK driver application, perform the application function corresponding with described goal behavior information.
2. method according to claim 1, is characterized in that, the goal behavior information of described reception wearable device transmission, comprising:
Establish a communications link with described wearable device;
By described communication connection, receive the goal behavior information of described wearable device transmission.
3. method according to claim 1, is characterized in that, described by described wearable device SDK driver application, performs the application function corresponding with described goal behavior information, comprising:
The object event application programming interface API corresponding with described goal behavior information is activated by described wearable device SDK;
Call the event functions of the application program corresponding with described object event API;
The application function corresponding with described goal behavior information is performed by described event functions.
4. method according to claim 3, is characterized in that, the described object event API corresponding with described goal behavior information by described wearable device SDK activation, comprising:
Search the different behavioural information of the described wearable device preserved in advance in described wearable device SDK and the corresponding relation of event API, obtain the object event API corresponding with described goal behavior information;
Described object event API is activated by described wearable device SDK.
5. method according to claim 3, is characterized in that, described in call the event functions of the application program corresponding with described object event API, comprising:
The target process operating in described operating system foreground is obtained from current startup process;
In the event functions that the application program belonging to described target process defines, call the event functions corresponding with described object event API.
6. method according to claim 3, is characterized in that, at least one event API that in described application program, wearable device SDK described in registered in advance provides.
7. according to the arbitrary described method of claim 1 to 6, it is characterized in that, described wearable device SDK is adaptive with described operating system, and provides the SDK of at least one event API to different application.
8. an application function implement device, is characterized in that, described device comprises:
Loading unit, for the wearable device SDK in load operation system;
Receiving element, for receiving the goal behavior information of wearable device transmission;
Performance element, for by described wearable device SDK driver application, performs the application function corresponding with described goal behavior information.
9. device according to claim 8, is characterized in that, described receiving element comprises:
Connection establishment subelement, for establishing a communications link with described wearable device;
Receives information subelement, for by described communication connection, receives the goal behavior information of described wearable device transmission.
10. device according to claim 8, is characterized in that, described performance element comprises:
API activates subelement, for activating the object event API corresponding with described goal behavior information by described wearable device SDK;
Function call subelement, for calling the event functions of the application program corresponding with described object event API;
Application performs subelement, for performing the application function corresponding with described goal behavior information by described event functions.
11. devices according to claim 10, is characterized in that, described API activates subelement and comprises:
Object event API searches module, for the corresponding relation of the different behavioural information and event API of searching the described wearable device preserved in advance in described wearable device SDK, obtains the object event API corresponding with described goal behavior information;
Object event API active module, for activating described object event API by described wearable device SDK.
12. devices according to claim 10, is characterized in that, described function call subelement comprises:
Target process acquisition module, for obtaining the target process operating in described operating system foreground from current startup process;
Event functions calling module, in the event functions that defines in the application program belonging to described target process, calls the event functions corresponding with described object event API.
13. devices according to claim 10, is characterized in that, at least one event API that in described application program, wearable device SDK described in registered in advance provides.
Device described in 14. according to Claim 8 to 13 are arbitrary, is characterized in that, described wearable device SDK is and described operating system adaptation, and provides the SDK of at least one event API to different application.
15. 1 kinds of terminals, is characterized in that, comprising: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Wearable device SDK (Software Development Kit) SDK in load operation system;
Receive the goal behavior information of wearable device transmission;
By described wearable device SDK driver application, perform the application function corresponding with described goal behavior information.
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 true CN104317647A (en) 2015-01-28
CN104317647B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120528A (en) * 2015-08-14 2015-12-02 北京奇虎科技有限公司 A method, apparatus and system for carrying out configuration setting between devices
CN106155717A (en) * 2015-04-01 2016-11-23 北京蓝海讯通科技有限公司 A kind of method and apparatus that SDK is integrated into third party APK
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

Cited By (7)

* 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
CN105120528A (en) * 2015-08-14 2015-12-02 北京奇虎科技有限公司 A method, apparatus and system for carrying out configuration setting between devices
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

Also Published As

Publication number Publication date
CN104317647B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN104038263A (en) Method and device for establishing Bluetooth connection
CN104461725A (en) Application process starting control method and device
CN104317647A (en) Application function realizing method, device and terminal
CN105204894A (en) Method and device for installing plug-in of intelligent equipment
CN105208215A (en) Locating control method, device and terminal
CN104869569A (en) Network permission control method and apparatus of application program
CN105163366A (en) Wireless network connection method and device
CN104766005A (en) Management method and device for application software access authority
CN104486451A (en) Application program recommendation method and device
CN105159672A (en) Remote assistance method and client
CN105098273A (en) Charging method and device
CN104811776A (en) Multimedia playing method and device
CN105812515A (en) Protection cover of mobile terminal, and method, device and terminal for setting system themes
CN105487680A (en) Terminal screen capture method and apparatus and terminal
CN105549960A (en) Camera control method and apparatus
CN104767857A (en) Telephone calling method and device based on cloud name cards
CN104881304A (en) Resource downloading method and device
CN105094830A (en) Method and device for executing target functions
CN105224171A (en) icon display method, device and terminal
CN103970909A (en) Method and device for displaying tabs of browser
CN105468417A (en) Application software installation method and device
CN105577775A (en) Dual-channel downloading method and device
CN105187671A (en) Recording method and device
CN105183571A (en) Function calling method and device
CN104714826A (en) Application theme loading method and device

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