CN108600838A - Information source switching method, device, Android TVs and the readable storage medium storing program for executing of Android TVs - Google Patents
Information source switching method, device, Android TVs and the readable storage medium storing program for executing of Android TVs Download PDFInfo
- Publication number
- CN108600838A CN108600838A CN201810389161.2A CN201810389161A CN108600838A CN 108600838 A CN108600838 A CN 108600838A CN 201810389161 A CN201810389161 A CN 201810389161A CN 108600838 A CN108600838 A CN 108600838A
- Authority
- CN
- China
- Prior art keywords
- information source
- android
- program
- information
- tvs
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of information source switching method of Android TVs, device, Android TVs and readable storage medium storing program for executing.The present invention passes through before starting the corresponding application program of program triggering command that user inputs on the primary interfaces launcher of android system, receive the callback information that system layer feeds back program triggering command in android system, and when in determining the callback information received comprising information source switching command, information source handover operation is carried out according to information source switching command, after completing above-mentioned information source handover operation, it goes to call interrupt interface primary in android system, then the corresponding application program of startup program triggering command.By switching information source, the mode for restarting application program, corresponding information source can not be directly switch to when carrying out information source handover operation by efficiently solving Android TVs in the prior art, and enter the application program chosen, but the technical issues of the picture for TV applications of flashing.
Description
Technical field
The present invention relates to ntelligent television technolog field more particularly to a kind of information source switching method of Android TVs, dresses
It sets, Android TVs and readable storage medium storing program for executing.
Background technology
With the fast development of Android (Android) technology, Android TVs become more and more popular.Current
The information source that Android TVs can be supported is also more and more, and in order to facilitate the use of user, developer encapsulates one and is used for
The application program (hereinafter referred to as TV applications) of switching and management information source.TV applications are main corresponding such as DTV (Digital
Television, DTV), simulated television (AnalogTelevision, ATV), conventional coaxial cable transmission TV signal
Class information source is broadcast live in (Television, TV) etc., and such as high-definition multimedia interface (High Definition Multimedia
Interface, HDMI), audio (Audio) and video (Video), free online Flash music players
The supports such as (CenFunMusic Player, CMP), Video Graphics Array (Video Graphics Array, VGA) access external
The information source of equipment.And other web applications then correspond in customized information source (hereinafter referred to as storage information sources).
When carrying out information source switching, is directly applied by TV and switched between oneself corresponding various information source and storage information sources.
Although executing the switching of information source by TV applications, it is convenient to be brought to user, with android system version
This continuous renewal iteration, since Android7.0 versions, using above-mentioned information source switching mode, Android TVs are receiving
The program triggering command inputted in the primary desktop starter (interfaces launcher) of android system to user, is answered by TV
When with carrying out information source handover operation, it can be asked because executing existing delay in the onStop methods for switching in TV applications of information source
Then topic, the picture for the TV applications that cause first to flash in handoff procedure are just switched to the information source of user's selection, and enter corresponding answer
Use program.
In addition, since Google does not provide the Android source codes at the primary interfaces launcher, developer
Also it has no idea to solve the technical problem by changing the source code at the interfaces launcher.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
Invention content
The main purpose of the present invention is to provide a kind of information source switching method of Android TVs, device, Android electricity
Depending on and readable storage medium storing program for executing, it is intended to solve in the prior art Android TVs receiving user in the primary of android system
The program triggering command inputted on the interfaces launcher can not be directly switch to corresponding information source when carrying out information source handover operation,
And enter the application program chosen, but the technical issues of the picture for TV applications of flashing.
To achieve the above object, the present invention provides a kind of information source switching method of Android TVs, the method includes
Following steps:
Android TVs are triggered in response to the program that user inputs on the primary interfaces launcher of android system
Instruction, receives the callback information that system layer feeds back described program triggering command in the android system;
When including information source switching command in the callback information, information source switching behaviour is carried out according to the information source switching command
Make;
After the completion of information source handover operation, call interrupt interface primary in the android system, with start with it is described
The corresponding application program of program triggering command.
Preferably, it is described in the callback information include information source switching command when, according to the information source switching command into
Row information source handover operation, specifically includes:
When including information source switching command in the callback information, according to the information source switching command, by the Android
Currently used original source is switched to the corresponding information source of the application program in system.
Preferably, described when in the callback information including information source switching command, it, will according to the information source switching command
Currently used original source is switched to before the corresponding information source of the application program in the android system, the method
Further include:
Judge whether the currently used original source of the android system is the corresponding information source of the application program;
Correspondingly, described when in the callback information including information source switching command, it, will according to the information source switching command
Currently used original source is switched to the corresponding information source of the application program in the android system, have include:
If it is determined that the currently used original source of the android system is not the corresponding information source of the application program, then
The currently used original source of the android system is switched to the corresponding information source of the application program;
If it is determined that the currently used original source of the android system is the corresponding information source of the application program, then jump
Cross the information source handover operation.
It is preferably, described to call interrupt interface primary in the android system after the completion of information source handover operation,
After starting application program corresponding with described program triggering command, the method further includes:
Monitor whether the application program is closed;
If monitoring the application program to be closed, operation primary in the android system is called to connect
Mouthful, the corresponding information source of the application program is switched to the original source.
Preferably, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
Before breath, the method further includes:
Android TVs carry out initialization institute corresponding with described program triggering command according to described program triggering command
State the operation of application program;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
When in the callback information comprising information source switching command, information source handover operation, tool are carried out according to the information source switching command for breath
Body includes:
In the Android TVs carry out initializing the operating process of the application program, the Android systems are received
The callback information that system layer feeds back described program triggering command in system includes information source switching command in the callback information
When, carry out information source handover operation according to the information source switching command.
It is preferably, described to call interrupt interface primary in the android system after the completion of information source handover operation,
To start application program corresponding with described program triggering command, specifically include:
In information source handover operation and after the completion of initializing the operation of the application program, call in the android system
Primary interrupt interface, to start application program corresponding with described program triggering command.
Preferably, the Android TVs are inputted in response to user on the primary interfaces launcher of android system
Program triggering command before, the method further includes:
Register monitoring event;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
Breath, specifically includes:
In the callback information that system layer feeds back described program triggering command in listening to the android system, connect
Receive the callback information.
In addition, to achieve the above object, it is described the present invention also provides a kind of information source switching mechanism of Android TVs
Device includes:
Respond module, the program for being inputted on the primary interfaces launcher of android system in response to user are touched
Send instructions;
Receiving module, for receiving the readjustment that system layer feeds back described program triggering command in the android system
Information;
Handover module, when for including information source switching command in the callback information, according to the information source switching command
Carry out information source handover operation;
Starting module, for after the completion of information source handover operation, calling middle disconnecting primary in the android system
Mouthful, to start application program corresponding with described program triggering command.
In addition, to achieve the above object, the present invention also provides a kind of Android TVs, the Android TVs packet
It includes:Memory, processor and the information source for being stored in the Android TVs that can be run on the memory and on the processor
Changeover program, the information source changeover program of the Android TVs are arranged for carrying out the information source switching method of the Android TVs
The step of.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is
Computer readable storage medium is stored with the information source changeover program of Android TVs, institute on the computer readable storage medium
State the information source switching method that the Android TVs are realized when the information source changeover programs of Android TVs is executed by processor
Step.
The present invention is referred to by the program triggering inputted on the primary interfaces launcher of android system in startup user
Before enabling corresponding application program, the callback information that system layer feeds back program triggering command in reception android system, and
When determining in the callback information received comprising information source switching command, information source handover operation is carried out according to information source switching command,
After completing above-mentioned information source handover operation, go to call interrupt interface primary in android system, then startup program triggering command
Corresponding application program.By switching information source, restarts the mode of application program, efficiently solve Android in the prior art
TV can not be directly switch to corresponding information source, and enter the application program chosen, but dodge when carrying out information source handover operation
The technical issues of picture of existing TV applications.
Description of the drawings
Fig. 1 is the structural schematic diagram of the Android TVs for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the information source switching method first embodiment of Android TVs of the present invention;
Fig. 3 is the flow diagram of the information source switching method second embodiment of Android TVs of the present invention;
Fig. 4 is the high-level schematic functional block diagram of the information source switching mechanism of Android TVs of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
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.
Referring to Fig.1, Fig. 1 is that the structure of the Android TVs for the hardware running environment that the embodiment of the present invention is related to is shown
It is intended to.
As shown in Figure 1, the Android TVs may include:Processor 1001, such as CPU, communication bus 1002, user
Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection between these components
Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), remote controler
(Telecontroller) etc., optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface
1004 may include optionally standard wireline interface and wireless interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI)
Interface).Memory 1005 can be high-speed RAM memory, can also be nonvolatile memory (non-
), such as magnetic disk storage volatilememory.Memory 1005 optionally can also be independently of aforementioned processor 1001
Storage device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to Android TVs, it can
To include either combining certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media
The information source changeover program of letter module, Subscriber Interface Module SIM and Android TVs.
In Android TVs shown in Fig. 1, network interface 1004 is mainly used for connecting the remote control for user's operation and sets
It is standby, such as remote controler, user mobile terminal (mobile phone, tablet computer), from allow users to the Android TVs into
Row interaction;User interface 1003 is mainly used for receiving the various instructions that user is inputted by remote control equipment, display screen or keyboard;
The Android TVs call the information source changeover program of the Android TVs stored in memory 1005 by processor 1001,
And execute following operation:
In response to the program triggering command that user inputs on the primary interfaces launcher of android system, institute is received
State the callback information that system layer feeds back described program triggering command in android system;
When including information source switching command in the callback information, information source switching behaviour is carried out according to the information source switching command
Make;
After the completion of information source handover operation, call interrupt interface primary in the android system, with start with it is described
The corresponding application program of program triggering command.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
When including information source switching command in the callback information, according to the information source switching command, by the Android
Currently used original source is switched to the corresponding information source of the application program in system.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
Judge whether the currently used original source of the android system is the corresponding information source of the application program;
Correspondingly, described when in the callback information including information source switching command, it, will according to the information source switching command
Currently used original source is switched to the corresponding information source of the application program in the android system, have include:
If it is determined that the currently used original source of the android system is not the corresponding information source of the application program, then
The currently used original source of the android system is switched to the corresponding information source of the application program;
If it is determined that the currently used original source of the android system is the corresponding information source of the application program, then jump
Cross the information source handover operation.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
Monitor whether the application program is closed;
If monitoring the application program to be closed, operation primary in the android system is called to connect
Mouthful, the corresponding information source of the application program is switched to the original source.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
According to described program triggering command, the initialization application program corresponding with described program triggering command is carried out
Operation;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
When in the callback information comprising information source switching command, information source handover operation, tool are carried out according to the information source switching command for breath
Body includes:
In the operating process for initialize the application program, system layer is received in the android system to institute
The callback information for stating program triggering command feedback, when in the callback information comprising information source switching command, according to the information source
Switching command carries out information source handover operation.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
In information source handover operation and after the completion of initializing the operation of the application program, call in the android system
Primary interrupt interface, to start application program corresponding with described program triggering command.
Further, processor 1001 can call the information source of the Android TVs stored in memory 1005 to switch journey
Sequence also executes following operation:
Register monitoring event;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
Breath, specifically includes:
In the callback information that system layer feeds back described program triggering command in listening to the android system, connect
Receive the callback information.
The present embodiment through the above scheme, is inputted starting user on the primary interfaces launcher of android system
Program triggering command corresponding application program before, receive system layer in android system and program triggering command fed back
Callback information, and when in determining the callback information received comprising information source switching command, first carried out according to information source switching command
Information source handover operation after completing above-mentioned information source handover operation, then goes to call interrupt interface primary in android system, so
The corresponding application program of startup program triggering command afterwards is carrying out letter to efficiently solve Android TVs in the prior art
When the handover operation of source, corresponding information source can not be directly switch to, and enter the application program chosen, but the picture for TV applications of flashing
The technical issues of face.
In addition, it is necessary to illustrate, what is provided in the present embodiment is only a kind of specific hardware configuration, in practical application
In, it is any to support android system, and the terminal device for having multiple information sources all can serve as to execute information source switching journey
The hardware configuration of sequence, those skilled in the art can Rational choice as needed, be not limited herein.
Based on above-mentioned hardware configuration, the information source switching method embodiment of Android TVs of the present invention is proposed.
It is the flow diagram of the information source switching method first embodiment of Android TVs of the present invention with reference to Fig. 2, Fig. 2.
In the first embodiment, the information source switching method of the Android TVs includes the following steps:
S10:The program that Android TVs are inputted in response to user on the primary interfaces launcher of android system
Triggering command receives the callback information that system layer feeds back described program triggering command in the android system.
It should be understood that the program triggering command that user inputs on the primary interfaces launcher of android system, tool
Body can be the remote control equipment by being connect with Android TV and communications, such as remote controler or the mobile phone of user, tablet computer electricity
The mobile terminals such as brain can also be the equipment such as the mouse being connect with Android TV and communications, keyboard, choose android system
It is generated after the icon of any application program shown on the primary interfaces launcher.
In addition, communication connection described in the present embodiment can use wired connection or wireless connection.Wherein, wirelessly connect
It connects and Wireless Fidelity (WIreless-FIdelity, WI-FI) connection can be used, other radio connections, example can also be used
Such as:The modes such as bluetooth connection, the present embodiment are without limitation.
In addition, it is necessary to which explanation, in the concrete realization, developer need first to provide android system primary
Software Development Kit (Software Development Kit, SDK) is accordingly compiled, to realize following information source switching behaviour
Make.
In order to make it easy to understand, being specifically described below:
Firstly, it is necessary to which increase by one is customized in the IApplicationThread.java classes that primary SDK is provided
Information source switching interface.
Then, successively the ApplicationThreadNative.java classes in the system layer of android system,
Increase identical customized information source in the inner classes ApplicationThread.java classes of ActivityThread.java classes
Switching interface.
In order to facilitate subsequent calls, increased customized information source switching interface in above-mentioned class can be named as:
ScheduleSwitchSourceActivity interfaces.
Meanwhile each class of control executes connecing for above-mentioned information source switching interface in Instrumentation.java classes
Mouthful, for example be named as:CallActivityOnSwitchSource interfaces.
In addition, in order to realize that the automatic switchover of information source, developer also need to increase in primary SDK one for cutting
The class of information source is changed and managed, for example is named as:TVActivity.java, while above-mentioned each class of increase reception is anti-in such
The interface of the callback information of feedback judges whether the interface for needing to carry out information source handover operation, for example is named as:
OnSwitchSource interfaces.
In doing so, using existing compiler server that the android system for increasing above-mentioned interface newly is primary
SDK be compiled, obtain a SDK for having information source handoff functionality.
The SDK for having information source handoff functionality based on this, Android TVs in response to user android system original
After the program triggering command inputted on the interfaces raw launcher, each class in the system layer of android system can execute as follows
Operation, to generate callback information:
First, the scheduleSwitchSourceActivity interfaces increased newly in ApplicationThread.java classes
It can be called, and after having called the interface, the callback information for whether needing to carry out information source switching can be generated, then will generate
Callback information be sent to the scheduleSwitchSourceActivity interfaces in ActivityThread.java classes,
ScheduleSwitchSourceActivity interfaces in ActivityThread.java classes are receiving
After the callback information that scheduleSwitchSourceActivity interfaces in ApplicationThread.java classes are sent,
Call the callActivityOnSwitchSource interfaces in Instrumentation.java classes.
Finally, the callback information for reporting callActivityOnSwitchSource interfaces to feed back.
It should be noted that only a kind of specific execution flow is given above, not to technical scheme of the present invention
Any restriction is constituted, in specific implementation, newly-increased each interface can be rationally arranged in those skilled in the art as needed
Title and readjustment logic, be not limited herein.
S20:When including information source switching command in the callback information, carries out information source according to the information source switching command and cut
Change operation.
In the present embodiment, in the callback information include information source switching command when, according to the information source switching command into
Original source currently used in the android system is specifically switched to described using journey by capable information source handover operation
The corresponding information source of sequence.
It should be noted that in the present embodiment, the operation of information source switching, specifically by TVActivity.java classes pair
The TV application executions answered, specifically, in order to facilitate the operation of user, developer can be in advance by Android TV branch
The plurality of information resources held, such as it is corresponding as DTV, ATV, TV live streaming class information source, and such as HDMI, AV, CMP, VGA support access are external
The information source of equipment corresponds in TV applications, the corresponding information source of other web applications that then will be installed on Android TVs
Uniformly it is added to a customized information source management to concentrate, for convenience of explanation, the hereinafter referred to as information source management integrates to be believed as storage
Source.
Correspondingly, TV is applied when carrying out information source handover operation according to the information source switching command, and being exactly mainly will
TV is switched to storage information sources using corresponding information source, or storage information sources are switched to TV and apply corresponding information source.
Pass through foregoing description, it will be understood that in the concrete realization, currently used original letter in the android system
Source may be that TV applies corresponding above-mentioned information source, it is also possible to make storage information sources.The corresponding information source of the application program, may
It is storage information sources, it is also possible to which TV applies corresponding information source.
In addition, it is necessary to explanation, in the concrete realization, can be arranged, if
The Boolean that the mark information source that carries switches in the callback information of callActivityOnSwitchSource interfaces feedback is
True, such as boolean=true then judge that callback information includes information source switching command, if
The Boolean that the mark information source that carries switches in the callback information of callActivityOnSwitchSource interfaces feedback is
False, such as boolean=false then judge not include information source switching command, concrete implementation mode, ability in callback information
The technical staff in domain can be arranged as required to, and the present embodiment does not limit this.
S30:After the completion of information source handover operation, call interrupt interface primary in the android system, with start with
The corresponding application program of described program triggering command.
Specifically, in the present embodiment, interrupt interface primary in the android system (onStop interfaces) is called
Operation, specifically removes the onStop interfaces inside actuator by TV using corresponding TVActivity.java classes.
And start the operation of application program corresponding with described program triggering command, then it is by selected application program pair
The Activity classes answered are performed.
By foregoing description it is not difficult to find that the Android TVs of the present embodiment, are starting user in android system
Before the corresponding application program of program triggering command inputted on the primary interfaces launcher, system in android system is received
The callback information that layer feeds back program triggering command, and when in determining the callback information received comprising information source switching command,
Information source handover operation first is carried out according to information source switching command, after completing above-mentioned information source handover operation, then goes to call Android systems
Primary interrupt interface in system, the then corresponding application program of startup program triggering command, to efficiently solve the prior art
Middle Android TVs can not be directly switch to corresponding information source, and enter the application journey chosen when carrying out information source handover operation
Sequence, but the technical issues of the picture for TV applications of flashing.
In addition, in order to make selected application program is synchronous with the switching operation of information source to carry out, in the present embodiment,
Before receiving the callback information that system layer feeds back described program triggering command in the android system, the method is also wrapped
It includes:Android TVs carry out the initialization application corresponding with described program triggering command according to described program triggering command
The operation of program.
That is, the program inputted on the primary interfaces launcher of android system in response to user in Android TVs
After triggering command, before receiving the callback information that system layer feeds back described program triggering command in the android system, quilt
The application program chosen just starts the life cycle of its corresponding Activity class, can be specifically to call onCreate to connect successively
Mouth, onStart interfaces.
Correspondingly, while carrying out above-mentioned initialization operation, by increasing in the system layer of android system
The class and TV of scheduleSwitchSourceActivity interfaces and callActivityOnSwitchSource interfaces are answered
The behaviour of execution step S20 to step S40 is gone with the onSwitchSource interfaces increased newly in corresponding TVActivity.java classes
Make, so as to during carrying out information source handover operation, synchronize the initialization operation for carrying out application program so that two behaviour
Work can ensure that basic synchronization is completed, and then after the initialization operation of information source handover operation and application program has executed,
After onStop interfaces in TVActivity.java classes are called, the corresponding Activity classes of selected application program can
Start the application program to be directly entered onResume methods, to greatly reduce the stand-by period of user, is further promoted
User experience.
In addition, in the concrete realization, in order to reduce the occupancy of the process to TVActivity.java classes, can note in advance
Whether one monitoring event of volume has the callback information that system layer feeds back selected application program in android system to monitor
To the onSwitchSource interfaces in TVActivity.java classes.
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
Breath, specifically includes:
In the callback information that system layer feeds back described program triggering command in listening to the android system, connect
Receive the callback information
It should be noted that only a kind of specific mode for receiving callback information is given above, not to the present invention's
Technical solution constitutes any restriction, and in practical applications, those skilled in the art can be arranged as required to receive readjustment letter
The mode of breath, is not limited herein.
Further, with reference to Fig. 3, the information source switching method of Android TVs of the present invention is proposed based on first embodiment
Original source currently used in the android system is being switched to the application by second embodiment in the present embodiment
Before the corresponding information source of program, need first to judge whether the currently used original source of the android system is the application
Then the corresponding information source of program carries out information source handover operation according to judging result.
For convenience of description, step S20 is refined as three sub-steps in the present embodiment, refers to Fig. 3.
In step s 201, include information source switching command in the callback information.
In step S202, judge whether the currently used original source of the android system is the application program
Corresponding information source.
Correspondingly, if it is determined that the currently used original source of the android system is not that the application program is corresponding
Information source thens follow the steps S203, according to the information source switching command, by the currently used original source of the android system
It is switched to the corresponding information source of the application program;If it is determined that the currently used original source of the android system is described answers
With the corresponding information source of program, then the information source handover operation is skipped, step S30 is directly entered.
By foregoing description it is not difficult to find that the information source switching method of the Android TVs provided in the present embodiment, according to
Information source switching command before original source currently used in android system is switched to the corresponding information source of application program, leads to
It crosses and judges whether the currently used original source of android system is the corresponding information source of selected application program, only two
When person is inconsistent, the handover operation of information source is just executed, automatically switches information source realizing, while ensureing user experience, reduces
The frequency of information source handover operation thereby reduces the occupancy to the android system progress of work.
Further, after the completion of information source handover operation, middle segment interface primary in the android system is called, with
After starting application program corresponding with described program triggering command, new monitoring event can be started, monitor the application program
Whether it is closed, i.e., whether the application program has invoked the primary interrupt interface of android system, after being switched to
Platform, or the primary destruction interface of android system (onDestroy interfaces) is had invoked, work has been destroyed by android system
Process.
If monitoring the application program to be closed, runnable interface primary in android system is called
The corresponding information source of the application program is switched to original source, further promotes user experience, avoid out by (onResume interfaces)
Existing application program has been switched off, and corresponding information source is also the phenomenon that working.
Specifically, in android system, the operation whether one application program of monitoring closes specifically can be by this
The monitoring event registered in the corresponding Activity classes of application program is performed, and certainly, is in monitoring the application program
Closed state, and by the corresponding Activity classes of the application program onStop interfaces or onDestroy interfaces execute.
And call the operation of runnable interface primary in android system, then it is to go to execute by TVActivity.java classes
OnResume interfaces in such, while going to hold in the onSwitchSource interfaces increased newly in TVActivity.java classes
The corresponding information source of the application program is switched to original source by row information source handover operation.
It should be noted that workflow described above is only schematical, not to the protection model of the present invention
Enclose composition limit, in practical applications, those skilled in the art can select according to the actual needs part therein or
It all achieves the purpose of the solution of this embodiment, is not herein limited.
In addition, the not technical detail of detailed description in the present embodiment, reference can be made to what first embodiment of the invention was provided
The information source switching method of Android TVs, details are not described herein again.
In addition, the embodiment of the present invention also provides a kind of information source switching mechanism of Android TVs.As shown in figure 4, should
The information source switching mechanism of Android TVs may include:It respond module 4001, receiving module 4002, handover module 4003 and opens
Dynamic model block 4004.
Wherein, respond module 4001, for being inputted on the primary interfaces launcher of android system in response to user
Program triggering command.Receiving module 4002, for receiving in the android system system layer to described program triggering command
The callback information of feedback.Handover module 4003, when for including information source switching command in the callback information, according to the letter
Source switching command carries out information source handover operation.Starting module 4004, for after the completion of information source handover operation, described in calling
Primary interrupt interface in android system, to start application program corresponding with described program triggering command.
The information source switching mechanism of the Android TVs of the present embodiment is starting user in the primary of android system
Before the corresponding application program of program triggering command inputted on the interfaces launcher, system layer pair in android system is received
The callback information of program triggering command feedback, and when in determining the callback information received comprising information source switching command, first press
Information source handover operation is carried out according to information source switching command, after completing above-mentioned information source handover operation, then goes to call in android system
Primary interrupt interface, the then corresponding application program of startup program triggering command, to efficiently solve in the prior art
Android TVs can not be directly switch to corresponding information source, and enter the application journey chosen when carrying out information source handover operation
Sequence, but the technical issues of the picture for TV applications of flashing.
It should be noted that the apparatus embodiments described above are merely exemplary, not to the protection of the present invention
Range constitute limit, in practical applications, those skilled in the art can select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment, and is not limited herein.
In addition, the not technical detail of detailed description in the present embodiment, reference can be made to what any embodiment of the present invention was provided
The information source switching method of Android TVs, details are not described herein again.
In addition, the embodiment of the present invention also proposes that a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing are computer-readable
Storage medium is stored with the information source changeover program of Android TVs, the Android on the computer readable storage medium
Following operation is realized when the information source changeover program of TV is executed by processor:
In response to the program triggering command that user inputs on the primary interfaces launcher of android system, institute is received
State the callback information that system layer feeds back described program triggering command in android system;
When including information source switching command in the callback information, information source switching behaviour is carried out according to the information source switching command
Make;
After the completion of information source handover operation, call interrupt interface primary in the android system, with start with it is described
The corresponding application program of program triggering command.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
When including information source switching command in the callback information, according to the information source switching command, by the Android
Currently used original source is switched to the corresponding information source of the application program in system.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
Judge whether the currently used original source of the android system is the corresponding information source of the application program;
Correspondingly, described when in the callback information including information source switching command, it, will according to the information source switching command
Currently used original source is switched to the corresponding information source of the application program in the android system, have include:
If it is determined that the currently used original source of the android system is not the corresponding information source of the application program, then
The currently used original source of the android system is switched to the corresponding information source of the application program;
If it is determined that the currently used original source of the android system is the corresponding information source of the application program, then jump
Cross the information source handover operation.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
Monitor whether the application program is closed;
If monitoring the application program to be closed, operation primary in the android system is called to connect
Mouthful, the corresponding information source of the application program is switched to the original source.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
According to described program triggering command, the initialization application program corresponding with described program triggering command is carried out
Operation;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
When in the callback information comprising information source switching command, information source handover operation, tool are carried out according to the information source switching command for breath
Body includes:
In the operating process for initialize the application program, system layer is received in the android system to institute
The callback information for stating program triggering command feedback, when in the callback information comprising information source switching command, according to the information source
Switching command carries out information source handover operation.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
In information source handover operation and after the completion of initializing the operation of the application program, call in the android system
Primary interrupt interface, to start application program corresponding with described program triggering command.
Further, following operation is also realized when the information source changeover program of the Android TVs is executed by processor:
Register monitoring event;
Correspondingly, described to receive the readjustment letter that system layer feeds back described program triggering command in the android system
Breath, specifically includes:
In the callback information that system layer feeds back described program triggering command in listening to the android system, connect
Receive the callback information.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that an Android TV or other branch
The terminal device of android system is held, such as mobile phone, computer, server, air conditioner or the network equipment execute the present invention
The information source switching method of Android TVs described in each embodiment.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of information source switching method of Android TVs, which is characterized in that the described method comprises the following steps:
The program triggering command that Android TVs are inputted in response to user on the primary interfaces launcher of android system,
Receive the callback information that system layer feeds back described program triggering command in the android system;
When including information source switching command in the callback information, information source handover operation is carried out according to the information source switching command;
After the completion of information source handover operation, interrupt interface primary in the android system is called, with startup and described program
The corresponding application program of triggering command.
2. the information source switching method of Android TVs as described in claim 1, which is characterized in that described to believe in the readjustment
When in breath including information source switching command, information source handover operation is carried out according to the information source switching command, is specifically included:
When including information source switching command in the callback information, according to the information source switching command, by the android system
In currently used original source be switched to the corresponding information source of the application program.
3. the information source switching method of Android TVs as claimed in claim 2, which is characterized in that described to believe in the readjustment
It, will be currently used original in the android system according to the information source switching command when in breath including information source switching command
Information source is switched to before the corresponding information source of the application program, and the method further includes:
Judge whether the currently used original source of the android system is the corresponding information source of the application program;
Correspondingly, described when in the callback information including information source switching command, it, will be described according to the information source switching command
Currently used original source is switched to the corresponding information source of the application program in android system, have include:
If it is determined that the currently used original source of the android system is not the corresponding information source of the application program, then by institute
It states the currently used original source of android system and is switched to the corresponding information source of the application program;
If it is determined that the currently used original source of the android system is the corresponding information source of the application program, then institute is skipped
State information source handover operation.
4. the information source switching method of Android TVs as described in any one of claims 1 to 3, which is characterized in that described to believe
After the completion of the handover operation of source, interrupt interface primary in the android system is called, to start and described program triggering command
After corresponding application program, the method further includes:
Monitor whether the application program is closed;
If monitoring the application program to be closed, runnable interface primary in the android system is called, it will
The corresponding information source of the application program is switched to the original source.
5. the information source switching method of Android TVs as described in claim 1, which is characterized in that described in the reception
Before the callback information that system layer feeds back described program triggering command in android system, the method further includes:
Android TVs according to described program triggering command, carry out initialization it is corresponding with described program triggering command described in answer
With the operation of program;
Correspondingly, described to receive the callback information that system layer feeds back described program triggering command in the android system,
When in the callback information including information source switching command, information source handover operation is carried out according to the information source switching command, it is specific to wrap
It includes:
In the Android TVs carry out initializing the operating process of the application program, receive in the android system
The callback information that system layer feeds back described program triggering command is pressed when in the callback information comprising information source switching command
Information source handover operation is carried out according to the information source switching command.
6. the information source switching method of Android TVs as claimed in claim 5, which is characterized in that described switch in information source is grasped
After the completion of work, interrupt interface primary in the android system is called, to start answer corresponding with described program triggering command
With program, specifically include:
In information source handover operation and after the completion of initializing the operation of the application program, call primary in the android system
Interrupt interface, to start corresponding with described program triggering command application program.
7. the information source switching method of Android TVs as described in claim 1, which is characterized in that the Android TVs are rung
Should be before the program triggering command that user inputs on the primary interfaces launcher of android system, the method is also wrapped
It includes:
Register monitoring event;
Correspondingly, described to receive the callback information that system layer feeds back described program triggering command in the android system, tool
Body includes:
In the callback information that system layer feeds back described program triggering command in listening to the android system, institute is received
State callback information.
8. a kind of information source switching mechanism of Android TVs, which is characterized in that described device further includes:
Respond module, the program triggering for being inputted on the primary interfaces launcher of android system in response to user refer to
It enables;
Receiving module, for receiving the callback information that system layer feeds back described program triggering command in the android system;
Handover module carries out when for including information source switching command in the callback information according to the information source switching command
Information source handover operation;
Starting module, for after the completion of information source handover operation, calling interrupt interface primary in the android system,
To start application program corresponding with described program triggering command.
9. a kind of Android TVs, which is characterized in that the Android TVs include:Memory, processor and it is stored in institute
The information source changeover program for the Android TVs that can be run on memory and on the processor is stated, the Android TVs
Information source changeover program is arranged for carrying out the information source switching method of the Android TVs as described in any one of claim 1 to 7
Step.
10. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is computer readable storage medium, described
The information source changeover program of Android TVs, the information source switching of the Android TVs are stored on computer readable storage medium
The information source switching method for realizing the Android TVs as described in any one of claim 1 to 7 when program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810389161.2A CN108600838B (en) | 2018-04-26 | 2018-04-26 | Information source switching method and device for Android television, Android television and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810389161.2A CN108600838B (en) | 2018-04-26 | 2018-04-26 | Information source switching method and device for Android television, Android television and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108600838A true CN108600838A (en) | 2018-09-28 |
CN108600838B CN108600838B (en) | 2021-08-03 |
Family
ID=63609898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810389161.2A Active CN108600838B (en) | 2018-04-26 | 2018-04-26 | Information source switching method and device for Android television, Android television and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108600838B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672916A (en) * | 2018-12-29 | 2019-04-23 | 深圳Tcl新技术有限公司 | Switching method, television set and the storage medium of information source |
CN111385618A (en) * | 2018-12-29 | 2020-07-07 | 深圳Tcl新技术有限公司 | Information source list display method, Android television and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140022461A1 (en) * | 2012-07-20 | 2014-01-23 | Sony Corporation | Internet tv module for enabling presentation and navigation of non-native user interface on tv having native user interface using either tv remote control or module remote control |
CN103686369A (en) * | 2013-12-26 | 2014-03-26 | Tcl集团股份有限公司 | Android platform based television signal source switching method and device |
CN105025366A (en) * | 2014-04-29 | 2015-11-04 | Tcl集团股份有限公司 | Source management method and system of smart television |
CN105872768A (en) * | 2016-04-20 | 2016-08-17 | 深圳Tcl数字技术有限公司 | Display terminal information source switching method and device |
CN106371858A (en) * | 2015-07-22 | 2017-02-01 | 鸿合科技有限公司 | Method and apparatus for starting windows program by android |
-
2018
- 2018-04-26 CN CN201810389161.2A patent/CN108600838B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140022461A1 (en) * | 2012-07-20 | 2014-01-23 | Sony Corporation | Internet tv module for enabling presentation and navigation of non-native user interface on tv having native user interface using either tv remote control or module remote control |
CN103686369A (en) * | 2013-12-26 | 2014-03-26 | Tcl集团股份有限公司 | Android platform based television signal source switching method and device |
CN105025366A (en) * | 2014-04-29 | 2015-11-04 | Tcl集团股份有限公司 | Source management method and system of smart television |
CN106371858A (en) * | 2015-07-22 | 2017-02-01 | 鸿合科技有限公司 | Method and apparatus for starting windows program by android |
CN105872768A (en) * | 2016-04-20 | 2016-08-17 | 深圳Tcl数字技术有限公司 | Display terminal information source switching method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672916A (en) * | 2018-12-29 | 2019-04-23 | 深圳Tcl新技术有限公司 | Switching method, television set and the storage medium of information source |
CN111385618A (en) * | 2018-12-29 | 2020-07-07 | 深圳Tcl新技术有限公司 | Information source list display method, Android television and storage medium |
CN111385618B (en) * | 2018-12-29 | 2022-01-04 | 深圳Tcl新技术有限公司 | Information source list display method, Android television and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108600838B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108491275B (en) | Program optimization method, device, terminal and storage medium | |
KR101413321B1 (en) | Mobile consumer electronic applications on internet video platform | |
CN104156217B (en) | A kind of shared method of screen content, device and mobile terminal | |
CN104516781B (en) | A kind of operating system language switching method and device | |
CN105740010B (en) | A kind of starting-up method and terminal device | |
CN103338139A (en) | Multi-screen interaction method and device, and terminal equipment | |
CN103634682A (en) | Global setting implementation method and device for intelligent televisions | |
US9733897B2 (en) | Method and apparatus of searching content | |
US10728486B2 (en) | Smart television playing method and device | |
CN104301797A (en) | Method and device for controlling playing resources in mobile terminal browser | |
CN105224369A (en) | Application start method and system | |
CN108174256A (en) | Video broadcasting method, device and computer readable storage medium | |
WO2019076387A1 (en) | Application switching method and apparatus | |
CN104066011A (en) | Control method of interface switching of intelligent TV and control device thereof | |
CN108600838A (en) | Information source switching method, device, Android TVs and the readable storage medium storing program for executing of Android TVs | |
CN105721919A (en) | Application switching processing method, application switching processing device and smart set-top box equipment | |
CN106658138B (en) | Smart television and its signal source switch method, device | |
CN108196816A (en) | Put out music control method, device and the computer storage media under screen state | |
CN106603946B (en) | Television remote control method, device and system | |
CN115314494A (en) | Multi-device cooperative work method and device | |
CN113282268B (en) | Sound effect configuration method and device, storage medium and electronic equipment | |
CN112055238B (en) | Video playing control method, device and system | |
CN114025170A (en) | Video playing method and device, computer equipment and computer readable storage medium | |
CN110764888A (en) | Application switching method, storage medium and device | |
CN111580776A (en) | Audio function recovery method, device, terminal and 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 |