CN109859293A - Animation multimode switching method and apparatus for Android device - Google Patents

Animation multimode switching method and apparatus for Android device Download PDF

Info

Publication number
CN109859293A
CN109859293A CN201910068785.9A CN201910068785A CN109859293A CN 109859293 A CN109859293 A CN 109859293A CN 201910068785 A CN201910068785 A CN 201910068785A CN 109859293 A CN109859293 A CN 109859293A
Authority
CN
China
Prior art keywords
animation
resources list
picture resource
surfaceview
state
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
CN201910068785.9A
Other languages
Chinese (zh)
Other versions
CN109859293B (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.)
AI Speech Ltd
Original Assignee
AI Speech 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 AI Speech Ltd filed Critical AI Speech Ltd
Priority to CN201910068785.9A priority Critical patent/CN109859293B/en
Publication of CN109859293A publication Critical patent/CN109859293A/en
Application granted granted Critical
Publication of CN109859293B publication Critical patent/CN109859293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention discloses the animation multimode switching method and apparatus for Android device, wherein a kind of animation multimode switching method for Android device, comprising: in response to the beginning play instruction of animation, animation play the Resources list is arranged;Corresponding picture resource is loaded into SurfaceView by the sequence based on picture resource in described the Resources list;SurfaceView is called to carry out drafting displaying to the picture resource loaded.Resource in playlist is carried out SurfaceView in order later and draws displaying by the method and apparatus of the present embodiment by setting playing resource list, and double buffers reduce Caton, can effectively improve drafting and show fluency.

Description

Animation multimode switching method and apparatus for Android device
Technical field
The invention belongs to field of animation technology, more particularly, to the animation multimode switching method and dress of Android device It sets.
Background technique
In the related technology, there are no mature to realize the side of multimode animation effect in Android system on the market at present Case, wherein multimode refers to that animation can embody animation main body according to the content that animation is expressed and be in different states, such as One bunny, is likely to be at the state listened attentively to, and is likely to be at the state of dancing, and the animation expression of these states is all different, The frame-by-frame cartoons of only single content realize that frame-by-frame cartoons mode has:
1.Android included FrameAnimation (simple frame animation effect may be implemented).
2. using SurfaceView (a kind of space with double buffers that android system provides) or extension View rewrites the modes such as rendering logic to realize effect.
3. using video playing.
Inventor has found that above scheme at least has the following deficiencies: during realizing the application
1. the FrameAnimation carried using android, is be easy to cause main thread Caton, is easy to appear OOM (out Of memory, memory overflow) and increase the machine of ANR (Application Not Responding, application program without response) Rate.Multimode is not supported to switch, and which relies on android animation framework, in some scenarios ROM (Read Only Memory, read-only memory) animation framework may be cropped, cause which that can not work in this scenario.
The control with double buffers that 2.SurfaceView is provided as Android system is mainly used as being responsible for view Figure is drawn.Due to height customizability, cause the view to enter gate threshold higher, and the view is only absorbed in rendering logic, so It completes frame animation effect and needs oneself to write complete set logic, workload and work difficulty are big.
3. realizing effect, the fixed ability for not having switching state of content with visual form.The switching of multistage video plays, and holds Easily there is incoherent situation, and the introducing of animation framework will increase the pressure to operation.
Summary of the invention
The embodiment of the present invention provides a kind of animation multimode switching method and apparatus for Android device, at least solving Certainly one of above-mentioned technical problem.
In a first aspect, the embodiment of the present invention provides a kind of animation multimode switching method for Android device, comprising: ring Animation play the Resources list should be set in the beginning play instruction of animation;Sequence based on picture resource in described the Resources list Corresponding picture resource is loaded into SurfaceView;SurfaceView is called to carry out drafting exhibition to the picture resource loaded Show.
Second aspect, the embodiment of the present invention provide a kind of animation multimode switching device for Android device, comprising: column Table setup module is configured to the beginning play instruction in response to animation, and animation play the Resources list is arranged;Loading module, configuration Corresponding picture resource is loaded into SurfaceView for the sequence based on picture resource in described the Resources list;And it draws Module is configured to that SurfaceView is called to carry out drafting displaying to the picture resource loaded.
The third aspect provides a kind of electronic equipment comprising: at least one processor, and with described at least one Manage the memory of device communication connection, wherein the memory is stored with the instruction that can be executed by least one described processor, institute It states instruction to be executed by least one described processor, so that at least one described processor is able to carry out any embodiment of the present invention The animation multimode switching method for Android device the step of.
Fourth aspect, the embodiment of the present invention also provide a kind of computer program product, and the computer program product includes The computer program being stored on non-volatile computer readable storage medium storing program for executing, the computer program include program instruction, when When described program instruction is computer-executed, the computer is made to execute the moving for Android device of any embodiment of the present invention The step of drawing multimode switching method.
The scheme that the present processes and device provide is by setting playing resource list, later by the money in playlist Source carries out SurfaceView in order and draws displaying, and main line stroke pressure can be effectively reduced in double buffers, reduces Caton, Fluency is shown so as to effectively improve to draw.And Surface View is Android primary mechanism, additional without introducing Mechanism, it is more stable and efficient.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of process for animation multimode switching method for Android device that one embodiment of the invention provides Figure;
Fig. 2 is the process for the animation multimode switching method that the another kind that one embodiment of the invention provides is used for Android device Figure;
Fig. 3 is used for the process of the animation multimode switching method of Android device for another that one embodiment of the invention provides Figure;
Fig. 4 is used for the process of the animation multimode switching method of Android device for another that one embodiment of the invention provides Figure;
Fig. 5 is a kind of bulk flow for animation multimode switching method for Android device that one embodiment of the invention provides Cheng Tu;
Fig. 6 is that a kind of state for animation multimode switching method for Android device that one embodiment of the invention provides is cut Change flow chart;
Fig. 7 is a kind of animation multimode switching device block diagram for Android device that one embodiment of the invention provides;
Fig. 8 is the structural schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Referring to FIG. 1, it illustrates one embodiments of animation multimode switching method for Android device of the application Flow chart, the animation multimode switching method for Android device of the present embodiment can be adapted for comprising animation play function Android device, such as early education video machine, video learning machine etc..
As shown in Figure 1, in a step 101, in response to the beginning play instruction of animation, animation play the Resources list is arranged;
In a step 102, corresponding picture resource is loaded by the sequence based on picture resource in described the Resources list SurfaceView;
In step 103, SurfaceView is called to carry out drafting displaying to the picture resource loaded.
In the present embodiment, for step 101, multimode switching device starts play instruction in response to the animation of user, The playing resource list of animation is set, picture resource to be played recently is wherein included in the playing resource list.Later, for Step 102, corresponding picture resource is loaded into SurfaceView by the sequence based on the picture resource in the Resources list.It Afterwards, for step 103, SurfaceView is called to carry out drafting displaying to the picture resource loaded, picture is drawn and shows wash with watercolours Dye animation.
The method of the present embodiment is later carried out the resource in playlist by setting playing resource list in order SurfaceView, which is drawn, to be shown, double buffers reduce Caton, can be effectively improved drafting and be shown fluency.
With further reference to Fig. 2, the animation for being used for Android device it illustrates the another kind that one embodiment of the application provides is more The flow chart of one embodiment of state switching method.Additional step of the flow chart of the present embodiment primarily directed to the flow chart of Fig. 1 The process further limited.
As shown in Fig. 2, in step 201, in response to the control instruction to the animation, calling Handler to the control System instruction is handled and judges whether to need to carry out state switching;
In step 202, state switching is if desired carried out, Handler is called to update the money based on the state after switching Source list simultaneously performs corresponding processing updated the Resources list;
In step 203, if not needing carry out state switching, Handler is called to continue at described the Resources list Reason.
In the present embodiment, it for step 201, after multimode switching device receives the control instruction to animation, adjusts The control instruction is handled with Handler, while judging that carry out state switching need to not be needed.Later, for step 202, If necessary to carry out state switching, then the Resources list is updated, calls Handler to carry out updated the Resources list later related Processing, the processing are existing some processing modes, and details are not described herein by the application.For step 203, if you do not need to carrying out State switching or state update, then call directly Handler and the Resources list is continued to handle.
The method of the present embodiment is by calling Handler to handle control instruction, after discovery state switching, more New resources list can preferably be handled control instruction, first carry out the update of the Resources list in the Handler stage, then Load drafting is carried out, double buffering can be effectively prevented Caton, improve animation fluency.
In some alternative embodiments, the above method further include: encapsulation Surfaceview and Handler, exposure control Interface is for controlling, and exposed state callback interface is for realizing status monitoring, wherein Surfaceview is used to carry out picture It draws and shows, Handler is realized for drawing specific control.To not introduce any three based entirely on Android primary mechanism The thing of side, it is more stable and efficient, it is not based on animation framework, situation about being cut using Handler mechanism in animation framework Under can still work.
Referring to FIG. 3, it illustrates another that one embodiment of the application provides to be used for the animation multimode of Android device The flow chart of one embodiment of switching method.The flow chart of the present embodiment is further refined primarily directed to step 102 in Fig. 1 The flow chart of step.
As shown in figure 3, in step 301, Handler is called to carry out pre-add to the picture resource in described the Resources list It carries;
In step 302, Handler is called to draw the picture resource of preloading to SurfaceView with fixed frequency In.
In the present embodiment, for step 301, multimode switching device calls Handler to the picture in the Resources list Resource is preloaded, and later for step 302, Handler is recycled to provide the picture preloaded with fixed frequency Source is plotted in SurfaceView.So as to reduce the Caton of main thread by way of preloading and drawing again, animation is improved The fluency of broadcasting.
With further reference to Fig. 4, animation of another provided it illustrates one embodiment of the application for Android device is more The flow chart of one embodiment of state switching method.The flow chart of the present embodiment is further limited primarily directed to the additional step of Fig. 1 Fixed flow chart.
As shown in figure 4, in step 401, the frequency of occurrences of each picture resource is at least obtained based on described the Resources list;
In step 402, judge whether the frequency of occurrences of each picture resource is more than or equal to predeterminated frequency threshold value;
In step 403, if it is greater than or equal to predeterminated frequency threshold value, then the picture resource is cached to reduce read-write frequency.
In the present embodiment, for step 401, multimode switching device at least can obtain picture based on the Resources list The frequency of occurrences of resource can also obtain by other means certainly, such as can count each of entirety in advance by certain modes The frequency of occurrences of picture, to preferably know the frequency of occurrences of each picture.It is each in the Resources list by obtaining in the application The frequency of occurrences of picture resource, the frequency of occurrences highest of which picture in the available picture that will be played.And then in step In 402, judge whether the frequency of occurrences of each picture resource is more than or equal to predeterminated frequency threshold value, by setting a threshold value, to out Existing frequency can cache the picture in step 403 more than threshold value to reduce interaction and reduce read-write frequency.Only statistics resource Which if list, can predict to need that picture first cached in the short time, to save system resource.
In some alternative embodiments, above-mentioned multimode includes at least: speech recognition state and scene state.Wherein, Status Change refers to that animation main body is likely to be at different states, such as listens attentively to, and says hello, and waiting for server returns to the shapes such as resource State, there is no limit herein by the application.In a further embodiment, multimode refers to that rabbit (animation main body) needs to express Rabbit needs to make state corresponding with feedback resources after speech recognition state and identification.Speech recognition state includes: normal State is said hello, and is listened attentively to, and waiting for server returns to five states of resource, and scene state includes: being read aloud, is danced, sings, commonly It speaks feedback.By the state for making animation main display different, user such as children can be allowed to more fully understand locating for equipment State, user experience are more preferable.
For example, user is waken up by waking up word or the triggering of GUI control, and rabbit shows and asks in a specific example Good state, user says the content for needing to identify at this time, and rabbit enters identification listening state, when internal vad detects that voice is defeated Enter to terminate, has the state of a waiting resource before final instruction and resource issue, after resource issues, in resolving resource process In, rabbit needs to be converted into normal condition, etc. data be parsed that such as issue now is song resource, rabbit needs to switch At singing scene and make the state of singing.
Below to some problems encountered in the implementation of the present invention by description inventor and to finally determination One specific embodiment of scheme is illustrated, so that those skilled in the art more fully understand the scheme of the application.
The application is mainly used for realizing multimode content animation effect in android equipment.In order to solve background technique In the drawbacks of mentioning, it is proposed that one kind based on android Handler mechanism (the included message mechanism of android system)+ SurfaceView realizes the scheme of multimode animation.
Scheme implementation principle:
1, Surfaceview and Handler is encapsulated, exposure simple interface is for controlling, the various state callbacks interfaces of exposure Realize status monitoring;
2, Surfaceview is responsible for drawing in picture and show;
3, Handler is responsible for drawing specific control realization;
4, it according to the change of state, preloads the resource that will be shown and (is responsible for control into memory: playing, pause, state Change, frame-skipping);
5, inside Handler is plotted to Surfaceview with the resource that fixed frequency obtains playlist.
Program advantage:
1, it is not based on animation framework, can still be worked using Handler mechanism in the case where animation framework is cropped;
2, using double buffers, mitigate main line stroke pressure, drafting fluency is provided;
3, package interface provides friendly api, can quickly go up hand;
4, it supports multimode switching, supports customized state;
5, based entirely on the primary mechanism of android, the thing of any tripartite is not introduced, is stablized, efficiently;
6, picture is preloaded, Caton is prevented, and caches part high frequency picture to reduce the frequency of IO read-write, it can't be disposable All pictures are loaded, prevent picture amount is excessive from directly contributing program crashing.
Referring to FIG. 5, it illustrates the scheme overall flow figures that one embodiment of the application provides.
Process description:
1, process starts;
2, (setting casting resource, load resource) is initialized to the customized view;
3, the method for calling view realizes demand;
4, process terminates.
With further reference to Fig. 6, it illustrates the state switching flow figures that one embodiment of the application provides.
Process description:
1, animation starts;
2, the list of playing animation resource data is set;
3, picture resource is cached into memory according to the Resources list;
4, it is played out according to playing resource list;
5, continue to play if necessary, and need replacing resource, will jump to step 2;
6, continue to play if necessary, do not need replacement resource, jump to step 4;
7, if you do not need to continuing to play, process terminates.
Referring to FIG. 7, it illustrates a kind of animation multimodes for Android device that one embodiment of the application provides to cut The block diagram of changing device.
As shown in fig. 7, be used for Android device animation multimode switching device 700, including list setup module 710, plus Carry module 720 and drafting module 730.
Wherein, list setup module 710 is configured to the beginning play instruction in response to animation, and animation play resource is arranged List;Corresponding picture resource is loaded by loading module 720, the sequence for being configured to picture resource in described the Resources list SurfaceView;Drafting module 730 is configured to that SurfaceView is called to carry out drafting displaying to the picture resource loaded.
In some alternative embodiments, the above-mentioned animation multimode switching device 700 for Android device, further includes: Switching module (not shown) is configured to call Handler to refer to the control in response to the control instruction to the animation Order is handled and judges whether to need to carry out state switching;State update module (not shown), be configured to if desired into The switching of row state, call Handler based on the state after switching update described the Resources list and to updated the Resources list into The corresponding processing of row;Processing module (not shown) calls Handler to continue if being configured to not need carry out state switching Described the Resources list is handled.
It should be appreciated that all modules recorded in Fig. 7 with reference to each in method described in Fig. 1, Fig. 2, Fig. 3 and Fig. 4 Step is corresponding.The operation above with respect to method description and feature and corresponding technical effect are equally applicable in Fig. 7 as a result, All modules, details are not described herein.
It is worth noting that, the module in embodiment of the disclosure is not limited to the scheme of the disclosure, such as list Setup module can be described as the beginning play instruction in response to animation, and the module of animation play the Resources list is arranged.In addition, also It can realize that related function module, such as list setup module can also be realized with processor by hardware processor, herein It repeats no more.
In further embodiments, the embodiment of the invention also provides a kind of nonvolatile computer storage medias, calculate Machine storage medium is stored with computer executable instructions, which can be performed in above-mentioned any means embodiment The animation multimode switching method for Android device;
As an implementation, nonvolatile computer storage media of the invention is stored with the executable finger of computer It enables, computer executable instructions setting are as follows:
In response to the beginning play instruction of animation, animation play the Resources list is set;
Corresponding picture resource is loaded into SurfaceView by the sequence based on picture resource in described the Resources list;
SurfaceView is called to carry out drafting displaying to the picture resource loaded.
Non-volatile computer readable storage medium storing program for executing may include storing program area and storage data area, wherein storage journey It sequence area can application program required for storage program area, at least one function;Storage data area can be stored according to for Android The animation multimode switching device of equipment uses created data etc..In addition, non-volatile computer readable storage medium storing program for executing May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory, Flush memory device or other non-volatile solid state memory parts.In some embodiments, non-volatile computer readable storage medium storing program for executing Optional includes the memory remotely located relative to processor, these remote memories can be by network connection to for Android The animation multimode switching device of equipment.The example of above-mentioned network include but is not limited to internet, intranet, local area network, Mobile radio communication and combinations thereof.
The embodiment of the present invention also provides a kind of computer program product, and computer program product is non-volatile including being stored in Computer program on computer readable storage medium, computer program include program instruction, when program instruction is held by computer When row, computer is made to execute the animation multimode switching method that any of the above-described is used for Android device.
Fig. 8 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 8, the equipment includes: one Or multiple processors 810 and memory 820, in Fig. 8 by taking a processor 810 as an example.The more shapes of animation for Android device The equipment of state switching method can also include: input unit 830 and output device 840.Processor 810, memory 820, input Device 830 can be connected with output device 840 by bus or other modes, in Fig. 8 for being connected by bus.Storage Device 820 is above-mentioned non-volatile computer readable storage medium storing program for executing.Processor 810 is stored in memory 820 by operation Non-volatile software program, instruction and module are realized thereby executing the various function application and data processing of server Above method embodiment is used for the animation multimode switching method of Android device.Input unit 830 can receive input number or Character information, and generate key signals input related with the user setting of above-mentioned apparatus and function control.Output device 840 It may include that display screen etc. shows equipment.
Method provided by the embodiment of the present invention can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present invention.
As an implementation, above-mentioned electronic apparatus application is in the animation multimode switching device for Android device In, it is used for client, comprising: at least one processor;And the memory being connect at least one processor communication;Wherein, Memory is stored with the instruction that can be executed by least one processor, and instruction is executed by least one processor, so that at least one A processor can:
In response to the beginning play instruction of animation, animation play the Resources list is set;
Corresponding picture resource is loaded into SurfaceView by the sequence based on picture resource in described the Resources list;
SurfaceView is called to carry out drafting displaying to the picture resource loaded.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e., It can be located in one place, or may be distributed over multiple network units.It can select according to the actual needs therein Some or all of the modules achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creative labor In the case where dynamic, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation The method of certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of animation multimode switching method for Android device, comprising:
In response to the beginning play instruction of animation, animation play the Resources list is set;
Corresponding picture resource is loaded into SurfaceView by the sequence based on picture resource in described the Resources list;
SurfaceView is called to carry out drafting displaying to the picture resource loaded.
2. according to the method described in claim 1, further include:
In response to the control instruction to the animation, calls Handler to handle the control instruction and judge whether to need The switching of the state of progress;
If desired carry out state switching, call Handler described the Resources list updated based on the state after switching and to update after The Resources list perform corresponding processing;
If not needing carry out state switching, Handler is called to continue to handle described the Resources list.
3. according to the method described in claim 1, further include:
Surfaceview and Handler is encapsulated, exposure control interface is for controlling, and exposed state callback interface is for realizing shape State is monitored, wherein Surfaceview is used to carry out picture drafting displaying, and handler is realized for drawing specific control.
4. according to the method described in claim 1, wherein, the sequence based on picture resource in described the Resources list will correspond to Picture resource be loaded into SurfaceView and include:
Handler is called to preload the picture resource in described the Resources list;
The picture resource of preloading is drawn into SurfaceView with fixed frequency.
5. according to the method described in claim 1, further include:
The frequency of occurrences of each picture resource is at least obtained based on described the Resources list;
Judge whether the frequency of occurrences of each picture resource is more than or equal to predeterminated frequency threshold value;
If it is greater than or equal to predeterminated frequency threshold value, then the picture resource is cached to reduce read-write frequency.
6. method according to any one of claims 1-5, wherein the multimode includes at least: speech recognition state And scene state.
7. a kind of animation multimode switching device for Android device, comprising:
List setup module is configured to the beginning play instruction in response to animation, and animation play the Resources list is arranged;
Corresponding picture resource is loaded by loading module, the sequence for being configured to picture resource in described the Resources list SurfaceView;
Drafting module is configured to that SurfaceView is called to carry out drafting displaying to the picture resource loaded.
8. device according to claim 7, further includes:
Switching module, is configured in response to the control instruction to the animation, call Handler to the control instruction at It manages and judges whether to need to carry out state switching;
State update module is configured to if desired carry out state switching, calls Handler based on described in the state update after switching The Resources list simultaneously performs corresponding processing updated the Resources list;
Processing module calls Handler to continue at described the Resources list if being configured to not need carry out state switching Reason.
9. a kind of electronic equipment comprising: at least one processor, and deposited with what at least one described processor communication was connect Reservoir, wherein the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least One processor executes, so that at least one described processor is able to carry out the step of any one of claim 1 to 6 the method Suddenly.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that real when described program is executed by processor The step of any one of existing claim 1 to 6 the method.
CN201910068785.9A 2019-01-24 2019-01-24 Animation multi-state switching method and device for android device Active CN109859293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910068785.9A CN109859293B (en) 2019-01-24 2019-01-24 Animation multi-state switching method and device for android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910068785.9A CN109859293B (en) 2019-01-24 2019-01-24 Animation multi-state switching method and device for android device

Publications (2)

Publication Number Publication Date
CN109859293A true CN109859293A (en) 2019-06-07
CN109859293B CN109859293B (en) 2022-07-08

Family

ID=66896034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910068785.9A Active CN109859293B (en) 2019-01-24 2019-01-24 Animation multi-state switching method and device for android device

Country Status (1)

Country Link
CN (1) CN109859293B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381370A (en) * 2019-07-22 2019-10-25 腾讯科技(深圳)有限公司 A kind of animation processing method, device, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142031A (en) * 2015-08-17 2015-12-09 北京奇虎科技有限公司 Method and device for displaying character information in barrage during video play
CN106230841A (en) * 2016-08-04 2016-12-14 深圳响巢看看信息技术有限公司 A kind of video U.S. face and the method for plug-flow in real time in network direct broadcasting based on terminal
US20170169599A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Methods and electronic devices for displaying picture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142031A (en) * 2015-08-17 2015-12-09 北京奇虎科技有限公司 Method and device for displaying character information in barrage during video play
US20170169599A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Methods and electronic devices for displaying picture
CN106230841A (en) * 2016-08-04 2016-12-14 深圳响巢看看信息技术有限公司 A kind of video U.S. face and the method for plug-flow in real time in network direct broadcasting based on terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381370A (en) * 2019-07-22 2019-10-25 腾讯科技(深圳)有限公司 A kind of animation processing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN109859293B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN111192591B (en) Awakening method and device of intelligent equipment, intelligent sound box and storage medium
US10235125B2 (en) Audio playback control method, and terminal device
CN109360567A (en) The customizable method and apparatus waken up
US9236088B2 (en) Application communication
CN114518817B (en) Display method, electronic device and storage medium
US10271105B2 (en) Method for playing video, client, and computer storage medium
CN105122353A (en) Natural human-computer interaction for virtual personal assistant systems
CN111177453B (en) Method, apparatus, device and computer readable storage medium for controlling audio playing
CN103905644A (en) Generating method and equipment of mobile terminal call interface
CN108920128A (en) The operating method and system of PowerPoint
CN108235756B (en) Audio competition playing device and method and mobile terminal
CN111128166B (en) Optimization method and device for continuous awakening recognition function
CN109545211A (en) Voice interactive method and system
US20220093133A1 (en) Video sequence layout method, electronic device and storage medium
CN111124229B (en) Method, system and browser for realizing webpage animation control through voice interaction
CN109599133B (en) Language audio track switching method and device, computer equipment and storage medium
CN109859293A (en) Animation multimode switching method and apparatus for Android device
CN114244821A (en) Data processing method, device, equipment, electronic equipment and storage medium
CN109672745A (en) The online control method for playing back of audio and device for FreeRTOS
CN106454393A (en) Video caching method and device
TWI632816B (en) Continuous data delivery with energy conservation
CN116866661A (en) Video prerendering method, device, equipment and storage medium
CN110516043A (en) Answer generation method and device for question answering system
US11580974B2 (en) Method for exiting a voice skill, apparatus, device and storage medium
CN113852944A (en) Audio output method and device

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
CB02 Change of applicant information

Address after: 215123 14 Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu.

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 14 Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu.

Applicant before: AI SPEECH Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant