Movatterモバイル変換


[0]ホーム

URL:


CN110069352A - A kind of event notification method, wearable device and computer readable storage medium - Google Patents

A kind of event notification method, wearable device and computer readable storage medium
Download PDF

Info

Publication number
CN110069352A
CN110069352ACN201910199269.XACN201910199269ACN110069352ACN 110069352 ACN110069352 ACN 110069352ACN 201910199269 ACN201910199269 ACN 201910199269ACN 110069352 ACN110069352 ACN 110069352A
Authority
CN
China
Prior art keywords
event
interface
wearable device
window management
management service
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
CN201910199269.XA
Other languages
Chinese (zh)
Other versions
CN110069352B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co LtdfiledCriticalNubia Technology Co Ltd
Priority to CN201910199269.XApriorityCriticalpatent/CN110069352B/en
Publication of CN110069352ApublicationCriticalpatent/CN110069352A/en
Application grantedgrantedCritical
Publication of CN110069352BpublicationCriticalpatent/CN110069352B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Event notification method disclosed by the invention passes through window management service acquisition system event;By the window management service call first interface, Xiang Suoshu first interface notices the system event, wherein the first interface is the corresponding interface of the system event;By the first interface far call system desktop application, the system event is transmitted in the application of Xiang Suoshu system desktop.In addition, invention additionally discloses a kind of wearable device and computer readable storage mediums.Event notification method provided by the invention passes through the corresponding first interface of window management service calling system event, then pass through the first interface far call system desktop application, it realizes and system event is passed into system desktop application, the mode for needing not rely on broadcast carries out the notice of system event, the notice speed of system event can be effectively improved, to avoid the usage experience for causing Caton to user.

Description

A kind of event notification method, wearable device and computer readable storage medium
Technical field
The present invention relates to event notification technique field more particularly to a kind of event notification methods, wearable device and calculatingMachine readable storage medium storing program for executing.
Background technique
In Android (Android) system, many system events be all notified by way of broadcast, however,In Android system, the speed of broadcast mechanism never has advantage, especially when system is busier, is sent by broadcast mode logicalThe time delay known is longer.
For wearable device, in order to facilitate user's carrying, size is usually smaller.So, wearable device is hardTherefore part volume is also restricted, performance is also accordingly restricted, so that it is longer by the notice time delay that broadcast mode is sent, it givesThe use of user brings inconvenience.
As it can be seen that in the prior art, the notice time delay sent in wearable device by broadcast mode is longer, it is easy to userCause the usage experience of Caton.
Summary of the invention
In view of this, the present invention proposes a kind of event notification method, wearable device and computer readable storage medium, withSolve above-mentioned technical problem.
Firstly, to achieve the above object, the present invention proposes a kind of event notification method, it is applied to wearable device, it is describedMethod includes:
Pass through window management service acquisition system event;
By the window management service call first interface, Xiang Suoshu first interface notices the system event, whereinThe first interface is the corresponding interface of the system event;
By the first interface far call system desktop application, the system thing is transmitted in the application of Xiang Suoshu system desktopPart.
Optionally, the system event includes at least one below:
Show Status Change event, call event, working state of system altering event.
Optionally, the display Status Change event includes putting out screen or bright screen.
Optionally, the first interface includes screen locking service interface.
It is optionally, described to pass through window management service acquisition system event, comprising:
Monitor whether the display state in power management services changes by the window management service;
If the display state in the power management services changes, the display state of the power management services is obtainedAltering event.
It is optionally, described to pass through the window management service call first interface, comprising:
Striding course, which is serviced, by the window management calls the first interface.
It is optionally, described to pass through the first interface far call system desktop application, comprising:
Pass through system desktop application described in the first interface striding course far call.
It is optionally, described to pass through window management service acquisition system event, comprising:
The system for monitoring the wearable device by the window management service;
In the case where event occurs for the system for listening to the wearable device, the system event listened to is obtained.
Further, to achieve the above object, the present invention also provides a kind of wearable device, the wearable device includesMemory, at least one processor and be stored on the memory and can be executed at least one described processor at least oneA program, at least one described program are realized in method described in any of the above embodiments when being executed by least one described processorStep.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computersReadable storage medium storing program for executing is stored at least one executable program of computer, at least one described program is executed by the computerWhen so that the computer is executed the step in the above method.
Compared to the prior art, event notification method proposed by the invention passes through window management service acquisition system thingPart;By the window management service call first interface, Xiang Suoshu first interface notices the system event, wherein describedFirst interface is the corresponding interface of the system event;Pass through the first interface far call system desktop application, Xiang SuoshuThe system event is transmitted in system desktop application.Event notification method provided by the invention passes through window management service calling systemThe corresponding first interface of event, then by the first interface far call system desktop application, realization passes system eventSystem desktop application is passed, the mode for needing not rely on broadcast carries out the notice of system event, can effectively improve system eventNotice speed, to avoid the usage experience for causing Caton to user.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the inventionExample, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the artSpeech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided by the embodiments of the present application;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of example schematic that notice is sent by broadcast mode provided by the embodiments of the present application;
Fig. 6 is one of the flow diagram of event notification method provided by the embodiments of the present application;
Fig. 7 is the two of the flow diagram of event notification method provided by the embodiments of the present application;
Fig. 8 is the three of the flow diagram of event notification method provided by the embodiments of the present application;
Fig. 9 is the example schematic of event advice method provided by the embodiments of the present application;
Figure 10 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of elementBe conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mixGround uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. moveDynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventuallyEnd can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (RadioFrequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, displayThe components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present inventionA kind of hardware structural diagram of wearable device of example, which may include: RF (RadioFrequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104,Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricityThe components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearableThe restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer componentsComponent layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency listUplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be wornThe processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable deviceIt send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changesFrequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informingThe processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the messageKnow on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least oneAmplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radioLetter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, exampleSuch as, wearable device can download file resource from server by wireless communication, for example can download and answer from serverWith program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in serverResource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remindUser is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited toGSM (Global System of Mobile communication, global system for mobile communications), GPRS (GeneralPacket Radio Service, general packet radio service), CDMA2000 (Code Division MultipleAccess2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, broadband codePoint multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, the time-divisionS-CDMA-Synchronous Code Division Multiple Access), (Frequency Division Duplexing-Long Term Evolution, frequency division are double by FDD-LTEWork long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are long-termEvolution) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can pass through setting esim card (Embedded-SIM, insertionFormula SIM card), to realize the existing communication network of access, by the way of esim card, the inside that can save wearable device is emptyBetween, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 itsAnd it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completelySlightly.Wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102,The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can rootIt is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received orThe audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception soundSound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries outReason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be depositedStorage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data canTo be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera,It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and otherSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ringThe light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear,Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directionsThe size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when staticIt (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation functionHit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensorWearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to usingPerson can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprintRealize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen setsFor when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screenBody and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodimentIt is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearingAround.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable deviceUser setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearbyMake (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panelOperation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touchingTwo parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviourMake bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, andIt is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.ThisOutside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touchingPanel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operationOne of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be withThe various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multipleIt can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments,Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically hereinWithout limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certainOne region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.ExampleSuch as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You XianhuoWireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or canFor transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact withCorresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program areaThe storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connectionVarious pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored inData in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device wholeMonitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulationDemodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processingDevice mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management,The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to setStandby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present inventionSchematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is inStrip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable deviceStructural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on the wearable device that above-mentioned Fig. 1 to Fig. 4 proposes, each embodiment of the method for the present invention is proposed.It is described wearableEquipment may include Intelligent bracelet, intelligent glasses, smart phone etc..
It is usually all to send event by broadcast mode to notify, such as shown in figure 5, can lead in Android systemCross power management services (Power Manager Service, PMS) Xiang Yingyong A, B, C send system broadcasts, such as bright screen(ACTION_SCREEN_ON), screen (ACTION_SCREEN_OFF) is put out.Specifically, the power management services can pass through AMS(Activity Manager Service, the server-side of activity management) sends system broadcasts.However, if broadcast transmission time delay compared withLong, the event notice that AMS will be considered that system desktop application processing is sent by broadcast mode is more than defined threshold, to produceANR (Application Not Responding, application program is without response) problem.
It is a kind of step flow chart of event notification method provided in an embodiment of the present invention, the method refering to Fig. 6, Fig. 6Applied in a wearable device, as shown in Figure 6, which comprises
Step 601 passes through window management service acquisition system event.
In the step, the wearable device is obtained by window management service (WindowManagerService, WMS)System event.The wearable device can service monitoring system by the window management, and have event in the system of listening toWhen generation, the system event listened to is obtained.
The system event may include display Status Change event, such as put out screen, bright screen etc..Specifically, described to wearWhether the display state that wearing equipment can monitor in power management services changes, if the display in the power management servicesState changes, and obtains the display Status Change event of the power management services.
The system event also may include call event, such as calling event, dropped calls event etc..The system thingPart can also include working state of system altering event, such as system dormant event, system wake-up event etc..
Step 602 passes through the window management service call first interface, the Xiang Suoshu first interface notice system thingPart, wherein the first interface is the corresponding interface of the system event.
In the step, the wearable device is connect by the window management service call first interface, Xiang Suoshu firstMouth notices the system event, and the first interface is the corresponding interface of the system event.Specifically, the wearable deviceFirst interface first can be determined according to the system event, such as determine that the corresponding interface of the system event is first interface.It is understood that the corresponding interface of different event types is not identical.It is described wearable to set after determining the first interfaceIt is standby to pass through first interface described in the window management service call, the Xiang Suoshu first interface notice system event.
Step 603 passes through the first interface far call system desktop application, Xiang Suoshu system desktop application transmitting instituteState system event.
In the step, after noticing the system event to the first interface, the wearable device passes through describedFirst interface far call system desktop application, the system event is transmitted in the application of Xiang Suoshu system desktop, in this way, realizing instituteSystem event notification is stated to the system desktop application.
In the present embodiment, the event notification method passes through window management service acquisition system event;Pass through the windowManagement service calls first interface, and Xiang Suoshu first interface notices the system event, wherein the first interface is the systemThe corresponding interface of system event;Pass through the first interface far call system desktop application, the application transmitting of Xiang Suoshu system desktopThe system event.In this way, the event notification method passes through the corresponding first interface of window management service calling system event,Then it by the first interface far call system desktop application, realizes and system event is passed into system desktop application, noThe mode for needing to rely on broadcast carries out the notice of system event, the notice speed of system event can be effectively improved, to avoidThe usage experience of Caton is caused to user.In addition, the embodiment of the present invention does not need to be broadcasted by AMS, so as to avoidOccurs the problem of ANR when system is busy.
Optionally, the system event includes at least one below:
Show Status Change event, call event, working state of system altering event.
In the embodiment, the system event may include display Status Change event, call event, working state of systemOne of altering event is a variety of.The display Status Change event includes putting out screen, bright screen etc., and the call event includes comingElectric event, dropped calls event etc., the working state of system altering event include system dormant event, system wake-up eventDeng.
It is optionally, described to pass through window management service acquisition system event, comprising:
The system for monitoring the wearable device by the window management service;
In the case where event occurs for the system for listening to the wearable device, the system event listened to is obtained.
In the embodiment, the wearable device is by what the wearable device was monitored in the window management serviceSystem obtains the system event listened in the case where event occurs for the system for listening to the wearable device.
For example, when the system event includes display Status Change event, for example including putting out screen, bright screen etc., instituteStating wearable device can monitor whether the display state in power management services changes by the window management service,If the display state in the power management services changes, the display Status Change thing of the power management services is obtainedPart.
It is the two of the flow diagram of event notification method provided in an embodiment of the present invention, the event referring to Fig. 7, Fig. 7Notification method is applied to a wearable device, as shown in Figure 7, which comprises
Step 701 passes through window management service acquisition system event, and the system event includes display Status Change thingPart, the display Status Change event include putting out screen or bright screen.
In the step, the wearable device includes by window management service acquisition system event, the system eventShow that Status Change event, the display Status Change event include putting out screen or bright screen.The wearable device passes through windowManagement service obtains system event.The wearable device can service monitoring system by the window management, and monitorWhen event occurs to system, the system event listened to is obtained.
Inside Android system, between window management service and power management services be it is close-fitting, in Android framework(Android frameworks) is internal, and window management service can be perceived observantly in power management services about display stateVariation.Specifically, the wearable device can monitor whether the display state in power management services changes, if instituteThe display state stated in power management services changes, and obtains the display Status Change event of the power management services.
It is understood that the window management service and the power management services be the same process (such as system intoJourney) in different objects, the window management service can adjust back the data in the power management services.The some realities of the present inventionIt applies in example, the window management service can be realized to monitor and be shown by the display status data adjusted back in the power management servicesShow whether state changes.
Step 702 passes through the window management service call first interface, the Xiang Suoshu first interface notice system thingPart, wherein the first interface is the corresponding interface of the system event.
In the step, the wearable device is connect by the window management service call first interface, Xiang Suoshu firstMouth notices the system event, and the first interface is the corresponding interface of the system event.Specifically, the wearable deviceFirst interface first can be determined according to the system event, such as determine that the corresponding interface of the system event is first interface.It is understood that the corresponding interface of different event types is not identical.It is described wearable to set after determining the first interfaceIt is standby to pass through first interface described in the window management service call, the Xiang Suoshu first interface notice system event.This implementationIn example, the first interface is screen locking service (service) interface.
Step 703 passes through system desktop application described in the first interface far call, Xiang Suoshu system desktop application biographyPass the system event.
In the step, after noticing the system event to the first interface, the wearable device passes through describedFirst interface far call system desktop application, the system event is transmitted in the application of Xiang Suoshu system desktop, in this way, realizing instituteSystem event notification is stated to the system desktop application.
In the present embodiment, the event notification method passes through window management service acquisition system event, the system eventIncluding showing that Status Change event, the display Status Change event include putting out screen or bright screen;It is serviced by the window managementFirst interface is called, Xiang Suoshu first interface notices the system event, wherein the first interface is the system event pairThe interface answered;By the first interface far call system desktop application, the system is transmitted in the application of Xiang Suoshu system desktopEvent.In this way, then the event notification method is passed through by the corresponding first interface of window management service calling system eventThe first interface far call system desktop application is realized system event passing to system desktop application, needs not rely onThe mode of broadcast carries out the notice of system event, can effectively improve the notice speed of system event, to avoid making to userAt the usage experience of Caton.In addition, the embodiment of the present invention does not need to be broadcasted by AMS, it is numerous in system so as to avoidThere is the problem of ANR in busy.
Optionally, the first interface includes screen locking service interface.
It is the three of the flow diagram of event notification method provided in an embodiment of the present invention, the event referring to Fig. 8, Fig. 8Notification method is applied to a wearable device, as shown in Figure 8, which comprises
Step 801 monitors whether the display state in power management services changes by the window management service.
In the step, the wearable device monitors the display state of power management services by the window management serviceWhether change.
If the display state in step 802, the power management services changes, the power management services are obtainedShow Status Change event.
In the step, if the display state in the power management services changes, the power management services are obtainedDisplay Status Change event.
Inside Android system, between window management service and power management services be it is close-fitting, in Android frameworkInside, window management service can observantly perceive the variation in power management services about display state.The window managementService and the power management services are the different objects in the same process (such as system process), and the window management service canTo adjust back the data in the power management services.In some embodiments of the invention, the window management service can be by returningIt adjusts the display status data in the power management services to realize and monitors whether display state changes.
Step 803 passes through the window management service call first interface, the Xiang Suoshu first interface notice display shapeState altering event, wherein the first interface is the corresponding interface of the display Status Change event.
In the step, the wearable device is connect by the window management service call first interface, Xiang Suoshu firstMouth notices the display Status Change event, wherein and the first interface is the corresponding interface of the display Status Change event,That is screen locking service interface.The display Status Change event may include bright screen (ACTION_SCREEN_ON) or put out screen(ACTION_SCREEN_OFF)。
Step 804 passes through the first interface far call system desktop application, Xiang Suoshu system desktop application transmitting instituteState display Status Change event.
In the step, the wearable device is by the first interface far call system desktop application, to the systemDesktop application of uniting transmits the display Status Change event.It is understood that the display shape received in screen locking service interfaceWhen state altering event, by far call, semanteme can be transferred to system desktop application, so as to greatly promote system tableThe speed of face application perception display state change, facilitates system desktop to apply and updates display data (example according to display state changeSuch as updating when showing that Status Change event is bright screen needs data to be shown).
In the present embodiment, the event notification method is monitored aobvious in power management services by the window management serviceShow whether state changes;If the display device in the power management services changes, the power management clothes are obtainedThe display Status Change event of business;By the window management service call first interface, described in the notice of Xiang Suoshu first interfaceShow Status Change event, wherein the first interface is the corresponding interface of the display Status Change event;Pass through describedThe display Status Change event is transmitted in one interface remote calling system desktop application, the application of Xiang Suoshu system desktop.In this way, instituteEvent notification method is stated by the corresponding first interface of window management service calling system event, then passes through the first interfaceFar call system desktop application realizes system event passing to system desktop application, need not rely on the mode of broadcast intoThe notice of row system event, can effectively improve the notice speed of system event, to avoid the use for causing Caton to userExperience.
It is optionally, described to pass through the window management service call first interface, comprising:
Striding course, which is serviced, by the window management calls the first interface.
It is optionally, described to pass through the first interface far call system desktop application, comprising:
Pass through system desktop application described in the first interface striding course far call.
In the embodiment, the wearable device can service striding course by the window management and call described first to connectMouthful, the system desktop application is called by the first interface striding course, such as shown in Figure 9.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method isIt is completed by the relevant hardware of at least one program instruction, at least one described program can store can in as shown in Figure 1It in the memory 109 of wearable device 100, and can be executed by the processor 110, at least one described program is by the processingDevice 110 realizes following steps when executing:
Pass through window management service acquisition system event;
By the window management service call first interface, Xiang Suoshu first interface notices the system event, whereinThe first interface is the corresponding interface of the system event;
By the first interface far call system desktop application, the system thing is transmitted in the application of Xiang Suoshu system desktopPart.
Optionally, the system event includes at least one below:
Show Status Change event, call event, working state of system altering event.
Optionally, the display Status Change event includes putting out screen or bright screen.
Optionally, the first interface includes screen locking service interface.
It is optionally, described to pass through window management service acquisition system event, comprising:
Monitor whether the display state in power management services changes by the window management service;
If the display state in the power management services changes, the display state of the power management services is obtainedAltering event.
It is optionally, described to pass through the window management service call first interface, comprising:
Striding course, which is serviced, by the window management calls the first interface.
It is optionally, described to pass through the first interface far call system desktop application, comprising:
Pass through system desktop application described in the first interface striding course far call.
It is described to pass through window management service acquisition system event, comprising:
The system for monitoring the wearable device by the window management service;
In the case where event occurs for the system for listening to the wearable device, the system event listened to is obtained.
In the present embodiment, the wearable device passes through window management service acquisition system event;Pass through the window pipeService call first interface is managed, Xiang Suoshu first interface notices the system event, wherein the first interface is the systemThe corresponding interface of event;Pass through the first interface far call system desktop application, Xiang Suoshu system desktop application transmitting instituteState system event.In this way, the wearable device passes through the corresponding first interface of window management service calling system event, thenBy the first interface far call system desktop application, realizes and system event is passed into system desktop application, do not needThe mode for relying on broadcast carries out the notice of system event, can effectively improve the notice speed of system event, thus avoid toCause the usage experience of Caton in family.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable deviceWhen, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this hairBright to propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be setStandby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It canChoosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as figureShown in 10, Figure 10 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, described to setStandby screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipmentIt can all be covered on the watchband of the equipment.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method isIt is completed by the relevant hardware of at least one program instruction, at least one described program can store computer-readable deposits in oneIn storage media, which is performed, comprising the following steps:
Pass through window management service acquisition system event;
By the window management service call first interface, Xiang Suoshu first interface notices the system event, whereinThe first interface is the corresponding interface of the system event;
By the first interface far call system desktop application, the system thing is transmitted in the application of Xiang Suoshu system desktopPart.
Optionally, the system event includes at least one below:
Show Status Change event, call event, working state of system altering event.
Optionally, the display Status Change event includes putting out screen or bright screen.
Optionally, the first interface includes screen locking service interface.
It is optionally, described to pass through window management service acquisition system event, comprising:
Monitor whether the display state in power management services changes by the window management service;
If the display state in the power management services changes, the display state of the power management services is obtainedAltering event.
It is optionally, described to pass through the window management service call first interface, comprising:
Striding course, which is serviced, by the window management calls the first interface.
It is optionally, described to pass through the first interface far call system desktop application, comprising:
Pass through system desktop application described in the first interface striding course far call.
It is described to pass through window management service acquisition system event, comprising:
The system for monitoring the wearable device by the window management service;
In the case where event occurs for the system for listening to the wearable device, the system event listened to is obtained.
In the present embodiment, at least one described program is performed, and passes through window management service acquisition system event;Pass throughThe window management service call first interface, Xiang Suoshu first interface notice the system event, wherein the first interfaceFor the corresponding interface of the system event;Pass through the first interface far call system desktop application, Xiang Suoshu system desktopUsing the transmitting system event.In this way, at least one described program is performed, pass through window management service calling system thingThe corresponding first interface of part, then by the first interface far call system desktop application, system event is transmitted in realizationSystem desktop application is given, the mode for needing not rely on broadcast carries out the notice of system event, can effectively improve system eventSpeed is notified, to avoid the usage experience for causing Caton to user.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the device that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothesBusiness device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (10)

CN201910199269.XA2019-03-152019-03-15Event notification method, wearable device and computer-readable storage mediumActiveCN110069352B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910199269.XACN110069352B (en)2019-03-152019-03-15Event notification method, wearable device and computer-readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910199269.XACN110069352B (en)2019-03-152019-03-15Event notification method, wearable device and computer-readable storage medium

Publications (2)

Publication NumberPublication Date
CN110069352Atrue CN110069352A (en)2019-07-30
CN110069352B CN110069352B (en)2023-03-28

Family

ID=67366326

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910199269.XAActiveCN110069352B (en)2019-03-152019-03-15Event notification method, wearable device and computer-readable storage medium

Country Status (1)

CountryLink
CN (1)CN110069352B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113452739A (en)*2020-03-272021-09-28北京沃东天骏信息技术有限公司Message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1289088A (en)*1999-09-162001-03-28松下电器产业株式会社Event transmission control system and method, and recording medium thereof
CN105354095A (en)*2015-10-262016-02-24上海斐讯数据通信技术有限公司Communication method between services and activities
US20160353407A1 (en)*2015-05-292016-12-01Noodoe CorporationMethods and systems for notification management between an electronic device and a wearable electronic device
CN108028959A (en)*2015-09-212018-05-11三星电子株式会社For controlling the system and method for notification event
CN108924362A (en)*2018-07-172018-11-30维沃移动通信有限公司A kind of notification event processing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1289088A (en)*1999-09-162001-03-28松下电器产业株式会社Event transmission control system and method, and recording medium thereof
US20160353407A1 (en)*2015-05-292016-12-01Noodoe CorporationMethods and systems for notification management between an electronic device and a wearable electronic device
CN108028959A (en)*2015-09-212018-05-11三星电子株式会社For controlling the system and method for notification event
CN105354095A (en)*2015-10-262016-02-24上海斐讯数据通信技术有限公司Communication method between services and activities
CN108924362A (en)*2018-07-172018-11-30维沃移动通信有限公司A kind of notification event processing method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113452739A (en)*2020-03-272021-09-28北京沃东天骏信息技术有限公司Message processing method and device

Also Published As

Publication numberPublication date
CN110069352B (en)2023-03-28

Similar Documents

PublicationPublication DateTitle
CN109982179A (en)Audio frequency signal output, device, wearable device and storage medium
CN110109725A (en)A kind of interface color method of adjustment and wearable device
CN110262849A (en)Using starting method, wearable device and computer readable storage medium
CN109976612A (en)Application function implementation method, wearable device, mobile phone and computer readable storage medium
CN110213637A (en)Method, wearable device and the readable storage medium storing program for executing of video file increase watermark
CN110086929A (en)Breath screen display methods, mobile phone, wearable device and computer readable storage medium
CN109995938A (en)A kind of notice display methods, mobile phone, wearable device and calculate readable storage medium storing program for executing
CN110062279A (en)Video method of cutting out, wearable device and computer readable storage medium
CN110098845A (en)Message treatment method, wearable device, mobile terminal and readable storage medium storing program for executing
CN110086563A (en)A kind of method of controlling rotation, equipment and computer readable storage medium
CN110058760A (en)A kind of display methods, wearable device and computer readable storage medium
CN110083289A (en)A kind of button display methods, wearable device and computer readable storage medium
CN110086940A (en)Message prompt method, wearable device and readable storage medium storing program for executing
CN110134312A (en)Control method, wearable device and computer readable storage medium
CN110167113A (en)A kind of apparatus control method, wearable device and computer readable storage medium
CN110175008A (en)Method, wearable device and the computer readable storage medium of operating terminal
CN110086808A (en)A kind of Account Logon control method, equipment and computer readable storage medium
CN110139270A (en)Wearable device matching method, wearable device and computer readable storage medium
CN110083205A (en)Page switching method, wearable device and computer readable storage medium
CN110532050A (en)Exercise data method for refreshing, wearable device and computer readable storage medium
CN110162161A (en)Control method, wearable device and the computer readable storage medium of target application
CN110149683A (en)Applicative notifications processing method, wearable device and computer readable storage medium
CN110069352A (en)A kind of event notification method, wearable device and computer readable storage medium
CN110147158A (en)A kind of power consumption control method, wearable device and computer readable storage medium
CN109992087A (en)Optimization method, wearable device and the storage medium that wearable device data are shown

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp