CN110399196A - Wearable device and its changing interface implementation method and computer readable storage medium - Google Patents
Wearable device and its changing interface implementation method and computer readable storage medium Download PDFInfo
- Publication number
- CN110399196A CN110399196A CN201910694453.1A CN201910694453A CN110399196A CN 110399196 A CN110399196 A CN 110399196A CN 201910694453 A CN201910694453 A CN 201910694453A CN 110399196 A CN110399196 A CN 110399196A
- Authority
- CN
- China
- Prior art keywords
- wearable device
- interface
- unit
- plug
- script
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000009434 installation Methods 0.000 claims abstract description 20
- 238000005538 encapsulation Methods 0.000 claims description 14
- 230000006399 behavior Effects 0.000 claims description 10
- 230000036541 health Effects 0.000 claims description 7
- 230000033001 locomotion Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 19
- 230000006854 communication Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 15
- 230000000875 corresponding effect Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000000712 assembly Effects 0.000 description 5
- 238000000429 assembly Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 238000005452 bending Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 241001269238 Data Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000037213 diet Effects 0.000 description 1
- 235000005911 diet Nutrition 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 239000012769 display material Substances 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
This application involves intelligent wearing, the wearable device and its wearable device changing interface implementation method and computer readable storage medium of the embodiment of the present application are provided, Android application resource manager object is obtained;The interface resources of Android installation kit in plug-in unit are obtained by the resource manager object;The interface resources are classified, by the resource name Naming conventions;The file designation for representing interface content is parsed from the interface resources, and loads the interface resources.By classifying to by the interface resources, by the resource name Naming conventions, control id (coding) in resource placement is determined according to Naming conventions, it thus can be in external control program, accurately find the corresponding control of coding, load can carry out relevant operation, thus complete changing interface, i.e. the update of display interface.
Description
Technical field
The invention relates to intelligence wearing technical field more particularly to wearable device and its changing interface realization sides
Method and computer readable storage medium.
Background technique
With the development of wearable device, exercise, the sleep in daily life can recorde such as Intelligent bracelet, smartwatch
With the real time datas such as diet.
Wearable device can generally carry display screen, but how realize the replacement of display interface, to provide a user
The problem of omnifarious appearance shows, is urgent need to resolve.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide wearable device and its changing interface implementation method and meter
The technical issues of calculation machine readable storage medium storing program for executing, changing interface to solve existing wearable device.
It is as follows that the embodiment of the present application solves technical solution used by above-mentioned technical problem:
According to the one aspect of the embodiment of the present application, wearable device changing interface implementation method is provided, it is described wearable
Equipment includes bracelet/wrist-watch, and the wearable device includes the interface for display, which comprises
Obtain Android application resource manager object;
Android installation kit in plug-in unit is obtained by the resource manager object, creates interface resources object;
Interface resources are classified, by the interface resources name nominating specification;
The file designation for representing interface content is parsed from the interface resources, and loads the interface resources.
In one embodiment, the method also includes:
The interface resources of Android installation kit carry the script of description dynamic behaviour in the plug-in unit, load the script
To complete dynamic interface replacement.
In one embodiment, the interface resources of Android installation kit carry description dynamic behaviour in the plug-in unit
Script loads the script to complete dynamic interface replacement and specifically include:
Using script resolver, parsing obtains the script, and completes the dynamic interface replacement.
In one embodiment, the interface resources of Android installation kit carry description dynamic behaviour in the plug-in unit
Script, it is specific to complete dynamic interface replacement to load the script further include:
Class is encapsulated by plug-in unit and loads plug-in unit, and by the component and script in coding query plugin.
In one embodiment, described that class load plug-in unit is encapsulated by plug-in unit, and by the component in coding query plugin
And script specifically includes:
It include the script resolver in the plug-in unit encapsulation class.
In one embodiment, described that class load plug-in unit is encapsulated by plug-in unit, and by the component in coding query plugin
And script specifically includes:
Semanteme, which will be manipulated, by control program passes to the plug-in unit encapsulation class.
In one embodiment, the script is custom script;It is described that semantic transmitting will be manipulated by control program
After the step of encapsulating class to the plug-in unit, the method also includes:
Plug-in unit encapsulation class executes different movements, and the corresponding component is arranged, or execute certain section it is described customized
Script.
In one embodiment, described that the interface resources are classified, the resource name Naming conventions are specifically wrapped
It includes:
The interface resources are classified as time portion, day part, weather portion and sport health part;
The layout name for defining the plug-in unit is " dial_plate ";The name for defining the time portion is " hour ",
“minute”。
According to the other side of the embodiment of the present application, wearable device is provided, the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
It realizes when the computer program is executed by the processor such as the step of above-mentioned method.
According to the other side of the embodiment of the present application, computer readable storage medium is provided, it is described computer-readable to deposit
The wearable device changing interface that wearable device is stored on storage media realizes program, and the wearable of the wearable device sets
Standby changing interface is realized and is realized when program is executed by the processor such as above-mentioned wearable device changing interface implementation method
Step.
It the wearable device and its wearable device changing interface implementation method of the embodiment of the present application and computer-readable deposits
Storage media obtains Android application resource manager object;It is obtained in plug-in unit by the resource manager object
The interface resources of Android installation kit;The interface resources are classified, by the resource name Naming conventions;From the interface
The file designation for representing interface content is parsed in resource, and loads the interface resources.By dividing by the interface resources
Class determines the resource name Naming conventions, thus to the control id (coding) in resource placement according to Naming conventions
The corresponding control of coding can be accurately found, load can carry out relevant operation, to complete interface in external control program
Switching, the i.e. update of display interface.
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 invention
Example, 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 below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, 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 in an embodiment of the present invention;
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 hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is a kind of process of embodiment of wearable device changing interface implementation method provided by the embodiments of the present application
Figure;
Fig. 7 is the process of wearable device changing interface implementation method another embodiment provided by the embodiments of the present application
Figure;
Fig. 8 is the schematic illustration of wearable device changing interface implementation method provided by the embodiments of the present application;
Fig. 9 is a kind of structural block diagram of embodiment of wearable device provided by the embodiments of the present application.
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 element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move
Dynamic 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 eventually
End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio
Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display
The 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 invention
A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio
Frequency, 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 electricity
The 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 wearable
The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components
Component 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 list
Uplink 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 worn
The 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 101
What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for using wearable device
It send, for example, base station can penetrating to wearable device after using geographical location locating for wearable device and changing
Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing
The 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 message
Know 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 one
Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio
Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example
Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server
With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server
Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind
User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to
GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General
Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access
2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA
Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous
CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE
Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time
Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged
Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its
And 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 completely
Slightly., 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 102
Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1
WiFi 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 root
It 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 100
When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit
103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound
Sound, 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 mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To 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 other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The 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 be using in all directions
The size of (generally three axis) acceleration can be used to identify mobile phone posture using the size and direction for going out gravity when static
It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function
Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor
Wearable 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 using
Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint
Realize 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 wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms 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 sets
For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen
Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment
It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing
Around.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 device
User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel
Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching
Utilize two parts of device and touch controller.Wherein, the touch orientation for utilizing user using device is touched, and utilizes touch behaviour
Make bring signal, transmits a signal to touch controller;Touch controller utilizes from touch and receives touch information on device, and
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This
Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching
Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072
It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation
One 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 with
The 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 multiple
It 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 use on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 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 herein
Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101
The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain
One 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 1071
The 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.Example
Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo
Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can
For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with
Corresponding 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 area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The 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 connection
Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in
Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole
Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device 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 supply
111 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 set
Standby 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 invention
Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in
Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device
Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, wearable device or wearable
When equipment, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here,
The application proposes a kind of optional embodiment, in the present embodiment, the equipment can for wrist-watch, wearable device or
Wearable device, the equipment include screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be with
For watchband.Optionally, the viewing area of the screen or screen of the equipment can partly or completely be covered on the table of equipment
It takes.As shown in figure 5, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application,
The screen of the equipment extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the equipment
Screen can also be all covered on the watchband of the equipment, and the embodiment of the present application is not limited thereto.
First embodiment
Wearable device, can generally carry display screen, such as bracelet or wrist-watch, and the background of display screen is dial plate.It is based on
The demand of user individual needs support the function that dynamic replaces dial plate, shows to provide a user omnifarious appearance.
User is even allowed for download new dial plate plug-in unit from the Internet, to enrich oneself UI (User Interface (user interface)).
The embodiment of the present application provides a kind of resolving ideas.As shown in fig. 6, the embodiment of the present application provides wearable device interface
Switching method, the wearable device include bracelet or wrist-watch, and the wearable device includes the interface for display, institute
The method of stating includes:
Step 10 obtains Android application resource manager object;
Specifically, Android application resource manager object is AssetManager.
Step 20 obtains Android installation kit in plug-in unit by the resource manager object, creates interface resources pair
As;
In Android platform, the addAssetPath () of AssetManager class can be used APK, and (Android is installed
Packet) file load get up, one Resources (resource) object of the AssetManager Object Creation then recycled,
The resource in plug-in unit can be accessed.
Step 30 classifies interface resources, by the interface resources name nominating specification;
Specifically, the interface resources are classified as time portion, day part, weather portion and sport health part;
Step 40 parses the file designation for representing interface content from the interface resources, and loads the interface money
Source.
The layout name for defining the plug-in unit is " dial_plate ";The name for defining the time portion is " hour ",
"minute";It introduces calendar name and defines the day part;By " sunny " of weather, " cloudy ", " windy ",
" snowy ", the words such as " rainy " and " foggy " define weather portion;Healthy descriptive statement is introduced, is used to retouch after collating sort
State sport health part, such as health, inferior health and disease etc..
When obtaining resource in assembly, Resource object (interface resources object) is obtained using getResource, is passed through
Interface resources object accessible related resource, such as text, picture, color etc..The interface resources object of acquisition is application
Global variable.The global variable of AssetManager is passed to, so finally obtaining resource in the constructed fuction of Resource
It is all to be obtained by AssetManager.
By the correlated source code tracking to AssetManager, the constructed fuction of AssetManager does not disclose api,
It cannot be created using new;Context.getAssets () can use the AssetManager for obtaining current context environment;It utilizes
Reflect AssetManager.class.newInstance () acquisition object available in this way.
The wearable device changing interface implementation method of the embodiment of the present application obtains the management of Android application resource
Device object;The interface resources of Android installation kit in plug-in unit are obtained by the resource manager object;By the interface resources
Classification, by the resource name Naming conventions;The file designation for representing interface content is parsed from the interface resources, and is added
Carry the interface resources.By classifying to by the interface resources, by the resource name Naming conventions, in resource placement
Control id (coding) is determined according to Naming conventions, thus can accurately be found coding in external control program and be corresponded to
Control, load can carry out relevant operation, to complete changing interface, i.e. the update of display interface.
In another embodiment of the application, as shown in fig. 7, the method also includes:
The interface resources of Android installation kit carry the script of description dynamic behaviour in step 50, the plug-in unit, load institute
Script is stated to complete dynamic interface replacement.
Specifically, script resolver can be used, parsing obtains the script, and completes the dynamic interface replacement.
Further, class is encapsulated by plug-in unit and loads plug-in unit, and by the component and script in coding query plugin.
It is to be appreciated that including the script resolver in the plug-in unit encapsulation class.
Also, semanteme will be manipulated by control program and pass to the plug-in unit encapsulation class.
Plug-in unit encapsulation class executes different movements, and the corresponding component is arranged, or execute certain section it is described customized
Script.
A series of regulations can be carried out to the interface resources title in Resources.Because of the content on dial plate, substantially
Upper is exactly above-mentioned several classes: time portion, day part, weather portion, sport health part etc..In this way, can be from
Dial plate appearance and relevant other assemblies are correctly parsed in Resources.One section carried in plug-in unit can even be run
Custom script (grammer of script is also by voluntarily formulating).In control routine, the script resolver that can be further used, solution
The script taken is analysed, and completes dynamic action.
Plug-in unit encapsulation class therein can load plug-in unit, and by the component and script in id (coding) query plugin.Plug-in unit
Encapsulating in class includes script resolver, can be parsed to the script taken.Control program will manipulate semanteme pass to it is slotting
After part encapsulates class, encapsulation class can execute different movements, corresponding component be arranged, or execute one section of script.The original of Fig. 8 can be passed through
Reason schematic diagram finds out above-mentioned steps.
The embodiment of the present application extends a set of wearable device interface and cuts on the basis of common Android plug-in part technology
Change implementation.Resource not only can be quickly loaded, provides the control standardized in the accurate access plug-in unit of name, but also using certainly
Script is defined, expansible dynamic function is provided.So as to realize that dial plate effect/interface dynamic of more gorgeous multiplicity is cut
It changes.
In order to realize this dial plate/interface that can dynamically update, each dial plate plug-in unit, one is interpreted as without java generation
The Android application of code, its resource packing manner and common Android application have no difference.But in resource placement
Control id has a series of requirement of determinations, thus can accurately find the corresponding control of id in external control routine, and
Relevant operation is carried out, to complete the update of dial plate interface.
Second embodiment
As shown in figure 9, the application second embodiment provides a kind of wearable device, the wearable device includes memory
41, processor 42 and it is stored in the wearable of the wearable device that can be run on the memory 41 and on the processor 42
Program is realized in equipment interface switching;
When the wearable device changing interface of the wearable device realizes that program is executed by the processor 42, for real
The step of wearable device changing interface implementation method of existing wearable device as described below:
The embodiment of the present application provides wearable device changing interface implementation method, and the wearable device includes Intelligent bracelet
Or smartwatch, the wearable device include at least two installation sites, install sensor in the installation site.Generally
Ground, installation site are mounted on the watchband of Intelligent bracelet or smartwatch.The described method includes:
Step 10 obtains Android application resource manager object.
Step 20 obtains Android installation kit in plug-in unit by the resource manager object, creates interface resources pair
As.
Step 30 classifies interface resources, by the interface resources name nominating specification.
Step 40 parses the file designation for representing interface content from the interface resources, and loads the interface money
Source.
The wearable device of the embodiment of the present application obtains Android application resource manager object;Pass through the money
The interface resources of Android installation kit in source manager object acquisition plug-in unit;The interface resources are classified, by the resource name
Claim Naming conventions;The file designation for representing interface content is parsed from the interface resources, and loads the interface resources.It is logical
Cross and classify to by the interface resources, by the resource name Naming conventions, to the control id (coding) in resource placement according to
Naming conventions determine, thus can accurately find the corresponding control of coding in external control program, load can carry out
Relevant operation, thus complete changing interface, i.e. the update of display interface.
In another embodiment of the application, the method also includes:
The interface resources of Android installation kit carry the script of description dynamic behaviour in step 50, the plug-in unit, load institute
Script is stated to complete dynamic interface replacement.
Specifically, script resolver can be used, parsing obtains the script, and completes the dynamic interface replacement.
Further, class is encapsulated by plug-in unit and loads plug-in unit, and by the component and script in coding query plugin.
It is to be appreciated that including the script resolver in the plug-in unit encapsulation class.
Also, semanteme will be manipulated by control program and pass to the plug-in unit encapsulation class.
Plug-in unit encapsulation class executes different movements, and the corresponding component is arranged, or execute certain section it is described customized
Script.
It should be noted that the apparatus embodiments of the present embodiment and the method for first embodiment are based on identical invention structure
Think, specific implementation process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is corresponding in the present embodiment
It is applicable in, this will not be detailed here.
The embodiment of the present application extends a set of wearable device interface and cuts on the basis of common Android plug-in part technology
Change implementation.Resource not only can be quickly loaded, provides the control standardized in the accurate access plug-in unit of name, but also using certainly
Script is defined, expansible dynamic function is provided.So as to realize that dial plate effect/interface dynamic of more gorgeous multiplicity is cut
It changes.
3rd embodiment
The application 3rd embodiment provides a kind of computer readable storage medium, deposits on the computer readable storage medium
The wearable device changing interface for containing wearable device realizes program, the wearable device changing interface of the wearable device
Realize wearable device changing interface when program is executed by processor for realizing wearable device described in first embodiment
The step of implementation method.
It should be noted that the computer readable storage medium of the present embodiment, belongs to same with the method for first embodiment
Design, specific implementation process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is right in the present embodiment
It should be applicable in, which is not described herein again.
The computer readable storage medium of the embodiment of the present application obtains Android application resource manager object;It is logical
Cross the interface resources that the resource manager object obtains Android installation kit in plug-in unit;The interface resources are classified, by institute
State resource name Naming conventions;The file designation for representing interface content is parsed from the interface resources, and loads the boundary
Face resource.By classifying to by the interface resources, by the resource name Naming conventions, to the control id in resource placement
(coding) is determined according to Naming conventions, thus can accurately find the corresponding control of coding in external control program,
Load can carry out relevant operation, thus complete changing interface, i.e. the update of display interface.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain objects
Reason component or all physical assemblies may be implemented as by processor, such as central processing unit, digital signal processor or micro process
The software that device executes, is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software
Can be distributed on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory be situated between
Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes
In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data)
The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to
RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic
Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer
Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable
Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc
According to, and may include any information delivery media.
Above by reference to Detailed description of the invention preferred embodiment of the present application, not thereby limit to the interest field of the application.This
Field technical staff does not depart from made any modifications, equivalent replacements, and improvements in scope of the present application and essence, should all be at this
Within the interest field of application.
Claims (10)
1. wearable device changing interface implementation method, the wearable device includes bracelet/wrist-watch, which is characterized in that described
Wearable device includes the interface for display, which comprises
Obtain Android application resource manager object;
Android installation kit in plug-in unit is obtained by the resource manager object, creates interface resources object;
Interface resources are classified, by the interface resources name nominating specification;
The file designation for representing interface content is parsed from the interface resources, and loads the interface resources.
2. wearable device changing interface implementation method as described in claim 1, which is characterized in that the method also includes:
The interface resources of Android installation kit carry the script of description dynamic behaviour in the plug-in unit, load the script with complete
It is replaced at dynamic interface.
3. wearable device changing interface implementation method as claimed in claim 2, which is characterized in that in the plug-in unit
The interface resources of Android installation kit carry the script of description dynamic behaviour, load the script to complete dynamic interface replacement
It specifically includes:
Using script resolver, parsing obtains the script, and completes the dynamic interface replacement.
4. wearable device changing interface implementation method as claimed in claim 3, which is characterized in that in the plug-in unit
The interface resources of Android installation kit carry the script of description dynamic behaviour, load the script to complete dynamic interface replacement
Specifically further include:
Class is encapsulated by plug-in unit and loads plug-in unit, and by the component and script in coding query plugin.
5. wearable device changing interface implementation method as claimed in claim 4, which is characterized in that described to be encapsulated by plug-in unit
Class loads plug-in unit, and specifically includes by the component and script that encode in query plugin:
It include the script resolver in the plug-in unit encapsulation class.
6. wearable device changing interface implementation method as claimed in claim 5, which is characterized in that described to be encapsulated by plug-in unit
Class loads plug-in unit, and specifically includes by the component and script that encode in query plugin:
Semanteme, which will be manipulated, by control program passes to the plug-in unit encapsulation class.
7. wearable device changing interface implementation method as claimed in claim 6, which is characterized in that the script is customized
Script;It is described to be manipulated after semanteme passes to the step of plug-in unit encapsulates class by control program, the method also includes:
The plug-in unit encapsulation class executes different movements, the corresponding component is arranged, or execute certain section of custom script.
8. such as the described in any item wearable device changing interface implementation methods of claim 1-7, which is characterized in that described by institute
Interface resources classification is stated, the resource name Naming conventions are specifically included:
The interface resources are classified as time portion, day part, weather portion and sport health part;
The layout name for defining the plug-in unit is " dial_plate ";The name for defining the time portion is " hour ",
“minute”。
9. wearable device, which is characterized in that the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step such as method described in any item of the claim 1 to 8 is realized when the computer program is executed by the processor
Suddenly.
10. computer readable storage medium, which is characterized in that be stored with wearable device on the computer readable storage medium
Wearable device changing interface realize program, the wearable device changing interface of the wearable device realizes that program is described
Realize that the wearable device changing interface such as wearable device described in any item of the claim 1 to 8 is real when processor executes
The step of existing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694453.1A CN110399196B (en) | 2019-07-30 | 2019-07-30 | Wearable device, interface switching implementation method thereof and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694453.1A CN110399196B (en) | 2019-07-30 | 2019-07-30 | Wearable device, interface switching implementation method thereof and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110399196A true CN110399196A (en) | 2019-11-01 |
CN110399196B CN110399196B (en) | 2024-04-23 |
Family
ID=68326607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910694453.1A Active CN110399196B (en) | 2019-07-30 | 2019-07-30 | Wearable device, interface switching implementation method thereof and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399196B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535179A (en) * | 2020-04-22 | 2021-10-22 | Oppo(重庆)智能科技有限公司 | Control method, wearable device and storage medium |
CN115314588A (en) * | 2021-04-21 | 2022-11-08 | Oppo广东移动通信有限公司 | Background synchronization method, device, terminal, equipment, system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060041879A1 (en) * | 2004-08-19 | 2006-02-23 | Bower Shelley K | System and method for changing defined user interface elements in a previously compiled program |
CN104360884A (en) * | 2014-11-18 | 2015-02-18 | 久邦计算机技术(广州)有限公司 | Plug-in resource packet loading method based on Android system |
CN105630518A (en) * | 2014-10-28 | 2016-06-01 | 北京娜迦信息科技发展有限公司 | Method and device for updating resources of Android application software |
CN106802794A (en) * | 2016-12-20 | 2017-06-06 | 智车优行科技(北京)有限公司 | Method for switching theme, device, vehicle and system |
CN109996119A (en) * | 2017-12-29 | 2019-07-09 | 深圳Tcl新技术有限公司 | Support method, smart television and the storage medium of multiple user interfaces style |
-
2019
- 2019-07-30 CN CN201910694453.1A patent/CN110399196B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060041879A1 (en) * | 2004-08-19 | 2006-02-23 | Bower Shelley K | System and method for changing defined user interface elements in a previously compiled program |
CN105630518A (en) * | 2014-10-28 | 2016-06-01 | 北京娜迦信息科技发展有限公司 | Method and device for updating resources of Android application software |
CN104360884A (en) * | 2014-11-18 | 2015-02-18 | 久邦计算机技术(广州)有限公司 | Plug-in resource packet loading method based on Android system |
CN106802794A (en) * | 2016-12-20 | 2017-06-06 | 智车优行科技(北京)有限公司 | Method for switching theme, device, vehicle and system |
CN109996119A (en) * | 2017-12-29 | 2019-07-09 | 深圳Tcl新技术有限公司 | Support method, smart television and the storage medium of multiple user interfaces style |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535179A (en) * | 2020-04-22 | 2021-10-22 | Oppo(重庆)智能科技有限公司 | Control method, wearable device and storage medium |
CN115314588A (en) * | 2021-04-21 | 2022-11-08 | Oppo广东移动通信有限公司 | Background synchronization method, device, terminal, equipment, system and storage medium |
CN115314588B (en) * | 2021-04-21 | 2024-05-17 | Oppo广东移动通信有限公司 | Background synchronization method, device, terminal, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110399196B (en) | 2024-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110177414A (en) | A kind of lamp light control method, wearable device and computer readable storage medium | |
CN109766080A (en) | Micro services register method, device, electronic equipment and readable storage medium storing program for executing | |
CN110109725A (en) | A kind of interface color method of adjustment and wearable device | |
CN110362368A (en) | Picture customization display methods, relevant device and the storage medium of wearable device | |
CN110399196A (en) | Wearable device and its changing interface implementation method and computer readable storage medium | |
CN110399195A (en) | A kind of desktop icons dynamic replacement method, equipment and computer readable storage medium | |
CN110062279A (en) | Video method of cutting out, wearable device and computer readable storage medium | |
CN110175066A (en) | Wearable device, interaction control method and computer readable storage medium | |
CN110175008A (en) | Method, wearable device and the computer readable storage medium of operating terminal | |
CN110046012A (en) | A kind of wearable device interface display method, wearable device and storage medium | |
CN110109537A (en) | A kind of wearable device and its gesture identification method and computer readable storage medium | |
CN109933400A (en) | Display interface layout method, wearable device and computer readable storage medium | |
CN110069193A (en) | A kind of interface switching method of wearable device, wearable device and storage medium | |
CN109976851A (en) | Menu item display methods, wearable device and computer readable storage medium | |
CN110213637A (en) | Method, wearable device and the readable storage medium storing program for executing of video file increase watermark | |
CN109947501A (en) | Starting processing method, wearable device and the storage medium of application program | |
CN110162369A (en) | Wearable device and its icon arrangement method and computer readable storage medium | |
CN110262748A (en) | Wearable device control method, wearable device and computer readable storage medium | |
CN110086786A (en) | Wearable device and its data monitoring method and computer readable storage medium | |
CN110086929A (en) | Breath screen display methods, mobile phone, wearable device and computer readable storage medium | |
CN110032308A (en) | A kind of page display method, terminal and computer readable storage medium | |
CN109947325A (en) | Application icon display methods, wearable device and computer readable storage medium | |
CN110058760A (en) | A kind of display methods, wearable device and computer readable storage medium | |
CN110187978A (en) | Using mutual exclusion solution, wearable device and computer readable storage medium | |
CN110427240A (en) | Intelligence desktop management method, wearable device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |