CN104156217B - A kind of shared method of screen content, device and mobile terminal - Google Patents
A kind of shared method of screen content, device and mobile terminal Download PDFInfo
- Publication number
- CN104156217B CN104156217B CN201410404935.6A CN201410404935A CN104156217B CN 104156217 B CN104156217 B CN 104156217B CN 201410404935 A CN201410404935 A CN 201410404935A CN 104156217 B CN104156217 B CN 104156217B
- Authority
- CN
- China
- Prior art keywords
- application
- screen
- mobile terminal
- type
- currently running
- 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.)
- Expired - Fee Related
Links
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本发明适用于无线通信技术领域,提供了一种屏幕内容共享的方法、装置及系统,所述方法包括:在移动终端与终端设备共享屏幕内容时,移动终端监测当前运行的应用的类型;当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。本发明,在移动终端与终端设备共享屏幕内容时,移动终端在监测到当前运行的应用是播放视频、音乐等不需要移动终端亮屏的应用时,自动熄屏,能够降低移动终端的电流消耗,延长移动终端的使用时间,提高用户的使用体验。
The present invention is applicable to the field of wireless communication technology, and provides a screen content sharing method, device and system, the method includes: when the mobile terminal shares the screen content with the terminal equipment, the mobile terminal monitors the type of the currently running application; When the mobile terminal detects that the type of the currently running application matches the type of the preset application, the screen is turned off. The preset application is an application that does not require the mobile terminal to turn on the screen when the mobile terminal shares the screen content with the terminal device. . In the present invention, when the mobile terminal and the terminal device share the screen content, the mobile terminal automatically turns off the screen when it detects that the currently running application is an application that does not require the mobile terminal to turn on the screen, such as playing video or music, so that the current consumption of the mobile terminal can be reduced , prolong the use time of the mobile terminal, and improve the user experience.
Description
技术领域technical field
本发明属于无线通信技术领域,尤其涉及一种屏幕内容共享的方法、装置及移动终端。The invention belongs to the technical field of wireless communication, and in particular relates to a screen content sharing method, device and mobile terminal.
背景技术Background technique
随着智能机时代的到来,无线保真wifi带宽速率的提高,屏幕共享技术(Wi-FiDisplay,wfd)在生活中也开始普及使用。With the advent of the era of smart phones, the bandwidth rate of wireless fidelity wifi has increased, and screen sharing technology (Wi-Fi Display, wfd) has also begun to be widely used in daily life.
Wfd技术主要是实现移动设备和终端设备之间共享屏幕内容,例如手机和电视实时共享屏幕内容,手机可以和电视实现无线连接,共享屏幕内容至电视,用户可以在手机屏幕和电视屏幕上同时播放视频、播放音乐、玩游戏等。Wfd technology is mainly to share screen content between mobile devices and terminal devices. For example, mobile phones and TVs share screen content in real time. Mobile phones can realize wireless connection with TV, share screen content to TV, and users can play on mobile phone screen and TV screen at the same time Video, play music, play games, etc.
但是wfd有个缺点:在共享手机屏幕内容的时候,手机屏幕也是点亮的,玩游戏时手机屏幕点亮,大家都可以理解,但是在用手机播放视频、播放音乐等时,用户只需要看着电视屏幕就可以了,手机没必要亮屏。But wfd has a disadvantage: when sharing the content of the mobile phone screen, the mobile phone screen is also lit up. Everyone can understand that the mobile phone screen is lit up when playing games, but when playing videos and music on the mobile phone, users only need to watch You can just turn on the TV screen, and there is no need to turn on the screen of the mobile phone.
现在智能机的屏幕分辨率高、屏幕大,亮屏时,电流很大,手机耗电快且带给用户的体验不好。Smartphones now have high-resolution screens and large screens. When the screen is on, the current is very high, the power consumption of the mobile phone is fast, and the user experience is not good.
发明内容Contents of the invention
本发明实施例提供了一种屏幕内容共享的方法、装置及移动终端,旨在解决现有技术提供的移动终端,在与终端设备共享屏幕内容时,在播放视频、播放音乐时,移动终端仍然亮屏,耗电快且用户体验差的问题。Embodiments of the present invention provide a screen content sharing method, device, and mobile terminal, aiming at solving the problem of mobile terminals provided by the prior art. When sharing screen content with a terminal device, the mobile terminal still Bright screen, fast power consumption and poor user experience.
一方面,提供一种屏幕内容共享的方法,所述方法包括:In one aspect, a method for sharing screen content is provided, the method comprising:
在移动终端与终端设备共享屏幕内容时,移动终端监测当前运行的应用的类型;When the mobile terminal shares screen content with the terminal device, the mobile terminal monitors the type of the currently running application;
当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。When the mobile terminal detects that the type of the currently running application matches the type of the preset application, the screen is turned off. The preset application does not require the mobile terminal to turn on the screen when the mobile terminal shares the screen content with the terminal device. application.
进一步地,在所述当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏之后,还包括:Further, after the mobile terminal monitors that the type of the currently running application matches the type of the preset application, then turn off the screen, it also includes:
移动终端根据接收到的亮屏指令,点亮屏幕。The mobile terminal turns on the screen according to the received screen turn-on instruction.
进一步地,所述当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏包括:Further, when the mobile terminal detects that the type of the currently running application matches the type of the preset application, turning off the screen includes:
当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,启动一个定时器;When the mobile terminal detects that the type of the currently running application matches the type of the preset application, a timer is started;
通过所述定时器监测定时时间是否到达预设的定时时间,如果是,则熄屏。Whether the timing time reaches the preset timing time is monitored by the timer, and if yes, the screen is turned off.
进一步地,与应用对应的进程名中包含有与应用的类型匹配的关键字,所述移动终端监测当前运行的应用的类型包括:Further, the process name corresponding to the application contains a keyword matching the type of the application, and the type of the currently running application monitored by the mobile terminal includes:
移动终端搜索当前运行的所有进程的进程名;The mobile terminal searches for the process names of all processes currently running;
若所述进程名中包含有与应用的类型匹配的关键字,则表示对应类型的应用在运行。If the process name contains a keyword matching the type of the application, it means that the application of the corresponding type is running.
另一方面,提供一种屏幕内容共享的装置,所述装置包括:In another aspect, a device for sharing screen content is provided, the device comprising:
应用类型监测单元,用于在移动终端与终端设备共享屏幕内容时,监测当前运行的应用的类型;The application type monitoring unit is used to monitor the type of the currently running application when the mobile terminal shares the screen content with the terminal device;
熄屏单元,用于当监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。The screen-off unit is used to turn off the screen when it is detected that the type of the currently running application matches the type of the preset application. The preset application does not need to move when the mobile terminal and the terminal device share the screen content. The application that brightens the terminal screen.
进一步地,所述装置还包括:Further, the device also includes:
亮屏单元,用于根据接收到的亮屏指令,点亮屏幕。The screen brightening unit is configured to light up the screen according to the received screen brightening instruction.
进一步地,所述熄屏单元包括:Further, the screen off unit includes:
定时器启动模块,用于当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,启动一个定时器;The timer starting module is used to start a timer when the mobile terminal detects that the type of the currently running application matches the type of the preset application;
熄屏模块,用于通过所述定时器监测定时时间是否到达预设的定时时间,如果是,则熄屏。The screen-off module is used to monitor whether the timing time reaches the preset timing time through the timer, and if so, turn off the screen.
进一步地,与应用对应的进程名中包含有与应用的类型匹配的关键字,所述应用类型监测单元包括:Further, the process name corresponding to the application contains keywords matching the type of the application, and the application type monitoring unit includes:
进程名搜索模块,用于搜索当前运行的所有进程的进程名;The process name search module is used to search the process names of all processes currently running;
应用类型判断模块,用于若所述进程名中包含有与应用的类型匹配的关键字,则表示对应类型的应用在运行。An application type judging module, configured to indicate that the corresponding type of application is running if the process name contains a keyword matching the type of the application.
再一方面,提供一种移动终端,所述移动终端包括如上所述的屏幕内容共享的装置。In yet another aspect, a mobile terminal is provided, and the mobile terminal includes the above-mentioned apparatus for sharing screen content.
在本发明实施例,在移动终端与终端设备共享屏幕内容时,移动终端在监测到当前运行的应用是播放视频、音乐等不需要移动终端亮屏的应用时,自动熄屏,能够降低移动终端的电流消耗,延长移动终端的使用时间,提高用户的使用体验。In the embodiment of the present invention, when the mobile terminal shares the screen content with the terminal device, the mobile terminal automatically turns off the screen when it detects that the currently running application is playing video, music, etc. The current consumption of the mobile terminal is extended, and the user experience is improved.
附图说明Description of drawings
图1是本发明实施例一提供的屏幕内容共享的方法的实现流程图;FIG. 1 is an implementation flowchart of a method for sharing screen content provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的屏幕内容共享的方法的实现流程图;FIG. 2 is an implementation flow chart of the screen content sharing method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的屏幕内容共享的装置的结构框图;FIG. 3 is a structural block diagram of a device for sharing screen content provided by Embodiment 3 of the present invention;
图4是本发明实施例四提供的屏幕内容共享的装置的结构框图。FIG. 4 is a structural block diagram of an apparatus for sharing screen content provided by Embodiment 4 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
在本发明实施例中,在移动终端与终端设备共享屏幕内容时,移动终端监测当前运行的应用的类型,当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏。In the embodiment of the present invention, when the mobile terminal shares the screen content with the terminal device, the mobile terminal monitors the type of the currently running application, and when the mobile terminal detects that the type of the currently running application matches the preset application type, then Turn off the screen.
以下结合具体实施例对本发明的实现进行详细描述:The realization of the present invention is described in detail below in conjunction with specific embodiment:
实施例一Embodiment one
图1示出了本发明实施例一提供的屏幕内容共享的方法的实现流程,详述如下:Fig. 1 shows the implementation process of the screen content sharing method provided by Embodiment 1 of the present invention, which is described in detail as follows:
在步骤S101中,在移动终端与终端设备共享屏幕内容时,移动终端监测当前运行的应用的类型。In step S101, when the mobile terminal shares screen content with the terminal device, the mobile terminal monitors the type of the currently running application.
在本发明实施例中,移动终端与终端设备共享屏幕内容时,会启动wfd应用,wfd应用是实现移动终端与终端设备共享屏幕内容的应用。移动终端安装有wfd应用,启动wfd应用后,可以将移动终端屏幕上的内容共享至终端设备屏幕上。In the embodiment of the present invention, when the mobile terminal and the terminal device share the screen content, the wfd application is started, and the wfd application is an application for realizing the screen content sharing between the mobile terminal and the terminal device. The mobile terminal is installed with a wfd application, and after starting the wfd application, the content on the screen of the mobile terminal can be shared to the screen of the terminal device.
通过wfd应用可以实时监测当前运行的应用的类型。与应用对应的进程名中包含有与应用的类型匹配的关键字,移动终端搜索当前运行的所有进程的进程名,若这些进程名中包含有与预设的应用的类型匹配的关键字,则表示对应类型的应用在运行。The type of the currently running application can be monitored in real time through the wfd application. The process name corresponding to the application contains keywords matching the type of the application, and the mobile terminal searches for the process names of all currently running processes. If these process names contain keywords matching the type of the preset application, then Indicates that the corresponding type of application is running.
具体的,启动一应用后,移动终端系统会自动创建一个与该应用对应的进程,也就是说,每一个启动的应用被关联至一个唯一标识的进程名。Specifically, after starting an application, the mobile terminal system will automatically create a process corresponding to the application, that is, each started application is associated with a uniquely identified process name.
每一种类型的应用,其对应的进程名中会包括不同的关键字。比如,音乐播放类、视频播放类应用对应的进程名中分别含有与应用的类型匹配的关键字“music”、“video”。For each type of application, the corresponding process name includes different keywords. For example, the process names corresponding to music playing and video playing applications respectively contain keywords "music" and "video" matching the types of the applications.
因此,可以搜索当前运行的所有进程的进程名中是否含有与应用的类型匹配的关键字来判断当前运行的应用的类型,若搜索到,则表示对应类型的应用在运行。比如,若搜索到当前运行的所有进程的进程名中含有“music”,则表示当前运行的应用是音乐播放类应用;若搜索到当前运行的所有进程的进程名中含有“video”,则表示当前运行的应用是视频播放类应用。Therefore, the type of the currently running application can be determined by searching whether the process names of all currently running processes contain a keyword matching the type of the application. If found, it means that the corresponding type of application is running. For example, if the process name of all currently running processes contains "music", it means that the currently running application is a music playback application; if the process name of all currently running processes contains "video", it means The currently running application is a video playback application.
具体的,可以通过如下命令搜索与应用匹配的进程:ps|grep"video"Specifically, you can use the following command to search for processes that match the application: ps|grep "video"
其中,ps表示查看当前运行的所有进程,grep“video”表示在当前运行的所有进程的进程名中搜索是否有关键字“video”,若搜索到当前进程的进程名中含有关键字“video”,则表示当前运行的应用是视频播放类应用。Among them, ps means to view all currently running processes, and grep "video" means to search for the keyword "video" in the process names of all currently running processes, if the keyword "video" is found in the process name of the current process , it means that the currently running application is a video playback application.
其中,本发明实施例中的移动终端指手机或移动PC,终端设备指电视或显示器。Wherein, the mobile terminal in the embodiment of the present invention refers to a mobile phone or a mobile PC, and the terminal device refers to a TV or a monitor.
在步骤S102中,当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。In step S102, when the mobile terminal detects that the type of the currently running application matches the type of the preset application, the screen is turned off. The preset application is when the mobile terminal shares the screen content with the terminal device and does not An application that brightens the screen of a mobile terminal.
在本发明实施例中,预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的视频播放类、音乐播放类应用。In the embodiment of the present invention, the preset applications are video playback and music playback applications that do not require the mobile terminal to turn on the screen when the mobile terminal shares screen content with the terminal device.
当移动终端监测到当前运行的应用是不需要移动终端亮屏的视频播放类、音乐播放类等应用时,则熄屏。When the mobile terminal detects that the currently running application is an application such as a video playback type or a music playback type that does not require the screen of the mobile terminal to be turned on, the screen is turned off.
本实施例,在移动终端与终端设备共享屏幕内容时,在移动终端与终端设备共享屏幕内容时,移动终端在监测到当前运行的应用是播放视频、音乐等不需要移动终端亮屏的应用时,自动熄屏,能够降低移动终端的电流消耗,延长移动终端的使用时间,提高用户的使用体验。In this embodiment, when the mobile terminal shares the screen content with the terminal device, when the mobile terminal monitors that the currently running application is an application that does not require the mobile terminal to turn on the screen, such as playing video or music , automatically turn off the screen, can reduce the current consumption of the mobile terminal, prolong the use time of the mobile terminal, and improve the user experience.
实施例二Embodiment two
图2示出了本发明实施例二提供的屏幕内容共享的方法的实现流程,详述如下:FIG. 2 shows the implementation process of the screen content sharing method provided by Embodiment 2 of the present invention, which is described in detail as follows:
在步骤S201中,在移动终端与终端设备共享屏幕内容时,移动终端监测当前运行的应用的类型。In step S201, when the mobile terminal shares screen content with the terminal device, the mobile terminal monitors the type of the currently running application.
在本发明实施例中,因为有些用户可能确实需要一直点亮移动终端屏幕,所以在wfd应用中增加一个可选“自动关闭LCD亮度”的菜单,供用户自己选择,用户可以开启“自动关闭LCD亮度”功能,进而在监测到当前运行的应用的类型与预设的应用的类型匹配时,依次执行步骤S201、S202,使用熄屏功能,熄灭移动终端屏幕。如果用户确实需要一直点亮移动终端屏幕,则关闭“自动关闭LCD亮度”功能,不执行步骤S201、S202和S203。当然默认可以设置成使能该功能。In the embodiment of the present invention, because some users may really need to light up the mobile terminal screen all the time, an optional menu of "automatically turn off LCD brightness" is added to the wfd application for users to choose. Users can turn on the "automatically turn off LCD "Brightness" function, and then when it is detected that the type of the currently running application matches the type of the preset application, step S201 and S202 are executed in sequence to use the screen-off function to turn off the screen of the mobile terminal. If the user really needs to light up the screen of the mobile terminal all the time, the function of "automatically turning off LCD brightness" is turned off, and steps S201, S202 and S203 are not executed. Of course, it can be set to enable this function by default.
在步骤S202中,当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。In step S202, when the mobile terminal detects that the type of the currently running application matches the type of the preset application, the screen is turned off. The preset application is when the mobile terminal shares the screen content with the terminal device and does not An application that brightens the screen of a mobile terminal.
在本发明实施例中,当用户开启“自动关闭LCD亮度”功能后,移动终端监测当前运行的应用的类型,当移动终端监测到当前运行的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用时,可以熄灭移动终端屏幕。In the embodiment of the present invention, after the user turns on the "automatically turn off LCD brightness" function, the mobile terminal monitors the type of the currently running application, and when the mobile terminal detects that the currently running application is sharing screen content between the mobile terminal and the terminal device, When an application that does not require the mobile terminal to turn on the screen, the mobile terminal screen can be turned off.
优选地,为了避免在运行应用后立刻熄灭屏幕给用户造成突兀的感觉,进一步提升用户的使用体验,移动终端监测到当前运行的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用时,启动一个定时器,通过所述定时器监测定时时间是否到达预设的定时时间,如果是,则熄屏。Preferably, in order to avoid an abrupt feeling to the user by turning off the screen immediately after running the application, and to further improve the user experience, the mobile terminal monitors that the currently running application is sharing the screen content with the terminal device, and does not need the mobile terminal When the screen is turned on, a timer is started, and the timer is used to monitor whether the timing time reaches the preset timing time, and if so, the screen is turned off.
具体的,移动终端监测到当前运行的应用是在移动终端与终端设备共享屏幕内容时,先启动一个定时器,定时时间可以预先设定,例如60s,当该定时器监测到定时时间到达60s之后,启动“自动关闭LCD亮度”功能,熄屏。Specifically, when the mobile terminal detects that the currently running application is sharing the screen content between the mobile terminal and the terminal device, it first starts a timer, and the timing time can be preset, such as 60s. When the timer detects that the timing time reaches 60s , activate the function of "automatically turn off LCD brightness" and turn off the screen.
具体的,熄屏操作通过控制移动终端LCD亮度来实现。移动终端LCD亮度的控制可以通过写文件的方法来实现。其中,控制LCD亮度的命令是作为一个节点存放在文件中,控制LCD亮度的命令如下:Specifically, the screen-off operation is realized by controlling the brightness of the LCD of the mobile terminal. The control of the LCD brightness of the mobile terminal can be realized by writing a file. Among them, the command to control the brightness of the LCD is stored as a node in the file, and the command to control the brightness of the LCD is as follows:
echo 0>/sys/class/leds/lcd-backlight/brightness关闭LCD亮度,熄屏echo 0>/sys/class/leds/lcd-backlight/brightness Turn off LCD brightness and turn off the screen
LCD亮度的范围是0~255,255表示最大亮度,屏幕最亮,0表示最小亮度,屏幕熄灭了,移动终端开机时有个默认的LCD亮度,一般是102,用户有时会根据环境调试LCD亮度,这样LCD亮度会对应的发生变化,LCD亮度值越大屏幕越亮。The range of LCD brightness is 0~255, 255 means the maximum brightness, the screen is the brightest, 0 means the minimum brightness, the screen is off, there is a default LCD brightness when the mobile terminal is turned on, usually 102, users sometimes adjust the LCD brightness according to the environment , so that the LCD brightness will change correspondingly, the larger the LCD brightness value, the brighter the screen.
通过往文件里面写入0~255范围内任意整数的亮度值就可以达到用户需要的LCD亮度。By writing any integer brightness value within the range of 0 to 255 into the file, the LCD brightness required by the user can be achieved.
通过上述命令可以得到当前LCD亮度,同时关闭LCD亮度,使移动终端屏幕熄屏,这样一般会降低100~200mA左右的电流,注意这里只是关闭LCD亮度,wfd应用是不允许移动终端待机的,因为移动终端需要实时向终端设备发送数据。The current LCD brightness can be obtained through the above command, and at the same time turn off the LCD brightness to turn off the screen of the mobile terminal, which will generally reduce the current of about 100-200mA. Note that this is just to turn off the LCD brightness. The wfd application does not allow the mobile terminal to stand by, because The mobile terminal needs to send data to the terminal device in real time.
优选地,在步骤S202之后,还包括步骤S203。Preferably, after step S202, step S203 is further included.
在步骤S203中,移动终端根据接收到的亮屏指令,点亮屏幕。In step S203, the mobile terminal lights up the screen according to the received screen brightening instruction.
具体的,用户可以通过按power按键输入亮屏指令至移动终端,移动终端检测到用户按power按键需要点亮屏幕时,可以恢复LCD亮度至熄屏之前的LCD亮度,也可以将LCD亮度设置为自己需要的亮度值。Specifically, the user can press the power button to input a bright screen command to the mobile terminal. When the mobile terminal detects that the user presses the power button to turn on the screen, the LCD brightness can be restored to the LCD brightness before the screen was turned off, or the LCD brightness can be set to The brightness value you need.
其中,用户可以在熄屏之后的任意时候通过按power按键来点亮移动终端屏幕。Wherein, the user can light up the screen of the mobile terminal by pressing the power button at any time after the screen is turned off.
具体的,执行下面的命令来点亮屏幕至需要的LCD亮度:Specifically, execute the following command to light up the screen to the required LCD brightness:
echo X>/sys/class/leds/lcd-backlight/brightnessecho X>/sys/class/leds/lcd-backlight/brightness
其中,X为点亮屏幕以后的LCD亮度值,该亮度值可以是移动终端随机分配的LCD亮度值,也可以是移动终端存储的,熄屏之前的LCD亮度值。Wherein, X is the LCD brightness value after the screen is turned on, and the brightness value may be the LCD brightness value randomly assigned by the mobile terminal, or the LCD brightness value stored by the mobile terminal before the screen is turned off.
其中,在熄屏之前,可以通过下面的命令获取到LCD亮度值:Among them, before the screen is turned off, the LCD brightness value can be obtained through the following command:
cat/sys/class/leds/lcd-backlight/brightness假设返回值为X,X表示移动终端当前LCD亮度cat/sys/class/leds/lcd-backlight/brightness assumes that the return value is X, and X represents the current LCD brightness of the mobile terminal
该命令返回的值即为LCD亮度值,存储该亮度值,在需要点亮屏幕时,移动终端可以设置LCD亮度值为该亮度值,进而将LCD亮度恢复至熄屏之前的LCD亮度值。The value returned by this command is the LCD brightness value, which is stored. When the screen needs to be turned on, the mobile terminal can set the LCD brightness value to this brightness value, and then restore the LCD brightness to the LCD brightness value before the screen was turned off.
本实施例,在熄屏时,可以根据用户的需要,随时点亮屏幕,提升用户的使用体验。另外,在监测到当前运行的应用是不需要亮屏的应用时,可以在定时时间到达后再熄屏,避免熄屏速度过快给用户造成突兀的感觉。还有,可以根据用户的需要,选择开启屏幕熄屏功能和关闭屏幕熄屏功能,可以适用于不同的用户,针对不同的用户,提供不同的使用体验。In this embodiment, when the screen is turned off, the screen can be turned on at any time according to the needs of the user, so as to improve the user experience. In addition, when it is detected that the currently running application is an application that does not need to turn on the screen, the screen can be turned off after the predetermined time is reached, so as to avoid the sudden feeling of the user caused by the too fast turn-off of the screen. In addition, according to the needs of the user, the function of turning on the screen and turning off the screen can be selected, which can be applied to different users and provide different user experiences for different users.
本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. Media, such as ROM/RAM, magnetic disk or optical disk, etc.
实施例三Embodiment three
图3示出了本发明实施例三提供的屏幕内容共享的装置的具体结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。该装置3可以是内置于移动终端中的软件单元、硬件单元或者软硬件结合的单元。并且,该移动终端可以和终端设备一起组成一个屏幕内容共享的系统,在移动终端与终端设备共享屏幕内容时,若移动终端监测到当前运行的应用是不需要移动终端亮屏的应用,则熄屏,可以降低移动终端的电流消耗,延长移动终端的使用时间。该装置3包括:应用类型监测单元31和熄屏单元32。FIG. 3 shows a specific structural block diagram of an apparatus for sharing screen content provided by Embodiment 3 of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The device 3 may be a software unit, a hardware unit or a combination of software and hardware built in the mobile terminal. Moreover, the mobile terminal can form a screen content sharing system together with the terminal device. When the mobile terminal and the terminal device share the screen content, if the mobile terminal detects that the currently running application is an application that does not require the mobile terminal to turn on the screen, it will turn off the screen. The screen can reduce the current consumption of the mobile terminal and prolong the use time of the mobile terminal. The device 3 includes: an application type monitoring unit 31 and a screen off unit 32 .
其中,应用类型监测单元31,用于在移动终端与终端设备共享屏幕内容时,监测当前运行的应用的类型;Wherein, the application type monitoring unit 31 is used to monitor the type of the currently running application when the mobile terminal shares the screen content with the terminal device;
熄屏单元32,用于当监测到当前运行的应用的类型与预设的应用的类型匹配时,则熄屏,所述预设的应用是在移动终端与终端设备共享屏幕内容时,不需要移动终端亮屏的应用。The screen-off unit 32 is used to turn off the screen when it is detected that the type of the currently running application matches the type of the preset application. The preset application is when the mobile terminal shares the screen content with the terminal device and does not An application that brightens the screen of a mobile terminal.
具体的,与应用对应的进程名中包含有与应用的类型匹配的关键字,所述应用类型监测单元31包括:Specifically, the process name corresponding to the application contains keywords matching the type of the application, and the application type monitoring unit 31 includes:
进程名搜索模块,用于搜索当前运行的所有进程的进程名;The process name search module is used to search the process names of all processes currently running;
应用类型判断模块,用于若所述进程名中包含有与应用的类型匹配的关键字,则表示对应类型的应用在运行。An application type judging module, configured to indicate that the corresponding type of application is running if the process name contains a keyword matching the type of the application.
本发明实施例提供的屏幕内容共享的装置可以应用在前述对应的方法实施例一中,详情参见上述实施例一的描述,在此不再赘述。The device for sharing screen content provided by the embodiment of the present invention can be applied in the aforementioned first corresponding method embodiment. For details, refer to the description of the aforementioned first embodiment, which will not be repeated here.
实施例四Embodiment four
图4示出了本发明实施例四提供的屏幕内容共享的装置的具体结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。该装置4可以是内置于移动终端中的软件单元、硬件单元或者软硬件结合的单元。并且,该移动终端可以和终端设备一起组成一个屏幕内容共享的系统,在移动终端与终端设备共享屏幕内容时,若移动终端监测到当前运行的应用是不需要移动终端亮屏的应用,则熄屏,可以降低移动终端的电流消耗,延长移动终端的使用时间。该装置4包括:应用类型监测单元31、熄屏单元32和亮屏单元41。FIG. 4 shows a specific structural block diagram of an apparatus for sharing screen content provided by Embodiment 4 of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The device 4 may be a software unit, a hardware unit or a combination of software and hardware built in the mobile terminal. In addition, the mobile terminal and the terminal device can form a screen content sharing system. When the mobile terminal and the terminal device share the screen content, if the mobile terminal detects that the currently running application is an application that does not require the mobile terminal to turn on the screen, it will turn off the screen. The screen can reduce the current consumption of the mobile terminal and prolong the use time of the mobile terminal. The device 4 includes: an application type monitoring unit 31 , a screen off unit 32 and a screen on unit 41 .
其中,亮屏单元41,用于根据接收到的亮屏指令,点亮屏幕。Wherein, the screen brightening unit 41 is configured to light up the screen according to the received screen brightening instruction.
具体的,所述熄屏单元32包括:Specifically, the screen off unit 32 includes:
定时器启动模块,用于当移动终端监测到当前运行的应用的类型与预设的应用的类型匹配时,启动一个定时器;The timer starting module is used to start a timer when the mobile terminal detects that the type of the currently running application matches the type of the preset application;
熄屏模块,用于通过所述定时器监测定时时间是否到达预设的定时时间,如果是,则熄屏。The screen-off module is used to monitor whether the timing time reaches the preset timing time through the timer, and if so, turn off the screen.
本发明实施例提供的屏幕内容共享的装置可以应用在前述对应的方法实施例二中,详情参见上述实施例二的描述,在此不再赘述。The device for sharing screen content provided by the embodiment of the present invention can be applied in the aforementioned second corresponding method embodiment. For details, refer to the description of the aforementioned second embodiment, which will not be repeated here.
值得注意的是,上述装置实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above-mentioned device embodiments, the included units are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit It is only for the convenience of distinguishing each other, and is not used to limit the protection scope of the present invention.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410404935.6A CN104156217B (en) | 2014-08-15 | 2014-08-15 | A kind of shared method of screen content, device and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410404935.6A CN104156217B (en) | 2014-08-15 | 2014-08-15 | A kind of shared method of screen content, device and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104156217A CN104156217A (en) | 2014-11-19 |
| CN104156217B true CN104156217B (en) | 2017-06-30 |
Family
ID=51881724
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410404935.6A Expired - Fee Related CN104156217B (en) | 2014-08-15 | 2014-08-15 | A kind of shared method of screen content, device and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104156217B (en) |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6606825B2 (en) * | 2014-12-18 | 2019-11-20 | ティアック株式会社 | Recording / playback device with wireless LAN function |
| CN106155653A (en) * | 2015-04-03 | 2016-11-23 | 深圳光启智能光子技术有限公司 | Operating system controls method and the module of hardware device |
| CN105426145B (en) * | 2015-11-06 | 2019-04-23 | 武汉卡比特信息有限公司 | A kind of method that mobile phone screen projects computer terminal |
| CN105592337A (en) * | 2015-12-22 | 2016-05-18 | 小米科技有限责任公司 | Display method and device, sending device and control device |
| CN105760080A (en) * | 2016-02-16 | 2016-07-13 | 北京小米移动软件有限公司 | Display method and device, control device and display device |
| CN107526424B (en) * | 2016-06-21 | 2021-05-04 | 中兴通讯股份有限公司 | A terminal energy saving method and device thereof |
| CN106375745A (en) * | 2016-10-28 | 2017-02-01 | 努比亚技术有限公司 | Screen projection device and method |
| CN106658160A (en) * | 2016-10-28 | 2017-05-10 | 努比亚技术有限公司 | Screen projection method and device |
| EP3609192B1 (en) * | 2017-04-24 | 2023-04-19 | Huawei Technologies Co., Ltd. | Image sharing method and electronic device |
| CN107231489B (en) * | 2017-07-06 | 2020-08-21 | 钛马信息网络技术有限公司 | Terminal and screen projection method thereof |
| US11330029B2 (en) * | 2018-03-27 | 2022-05-10 | Lenovo (Singapore) Pte. Ltd. | Sharing content with a detected device |
| US11281334B2 (en) | 2018-11-30 | 2022-03-22 | Samsung Electronics Co., Ltd. | Interaction method, system, and device for information |
| CN110191503B (en) * | 2019-06-04 | 2022-06-10 | 惠州Tcl移动通信有限公司 | Audio playing method, system, storage medium and mobile terminal |
| CN114236358B (en) * | 2021-12-20 | 2023-09-01 | 卡斯柯信号有限公司 | IO board card maintenance fault diagnosis method for aggregation peak-shifting scheduling |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103051777A (en) * | 2012-12-04 | 2013-04-17 | 北京百度网讯科技有限公司 | Method and device for controlling mobile terminal screen brightness and mobile terminal |
| CN103226458A (en) * | 2013-05-09 | 2013-07-31 | 上海斐讯数据通信技术有限公司 | Multi-screen display control method for intelligent mobile equipment |
| CN103716709A (en) * | 2013-12-23 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | Method and device for same screen interaction |
-
2014
- 2014-08-15 CN CN201410404935.6A patent/CN104156217B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103051777A (en) * | 2012-12-04 | 2013-04-17 | 北京百度网讯科技有限公司 | Method and device for controlling mobile terminal screen brightness and mobile terminal |
| CN103226458A (en) * | 2013-05-09 | 2013-07-31 | 上海斐讯数据通信技术有限公司 | Multi-screen display control method for intelligent mobile equipment |
| CN103716709A (en) * | 2013-12-23 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | Method and device for same screen interaction |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104156217A (en) | 2014-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104156217B (en) | A kind of shared method of screen content, device and mobile terminal | |
| KR102299330B1 (en) | Method for voice recognition and an electronic device thereof | |
| RU2686673C1 (en) | Device and method of terminal control and terminal | |
| KR102279600B1 (en) | Method for operating in a portable device, method for operating in a content reproducing apparatus, the protable device, and the content reproducing apparatus | |
| EP3087716B1 (en) | Remote rendering for efficient use of wireless bandwidth for wireless docking | |
| EP3373287A1 (en) | Method for controlling display refresh rate and electronic device | |
| US11157315B2 (en) | Method for process management and electronic device | |
| CN107231489A (en) | A kind of terminal and its throwing screen method | |
| KR20150032554A (en) | Energy-efficient transmission of content over a wireless connection | |
| US20160202880A1 (en) | Method for starting application program, terminal and non-transitory computer readable storage medium | |
| KR102607647B1 (en) | Electronic apparatus and tethering connection method thereof | |
| US20140244854A1 (en) | Content Streaming Between Devices | |
| US20150304336A1 (en) | Multi-screen interaction method of multimedia resource and terminal device | |
| US20150147961A1 (en) | Content Retrieval via Remote Control | |
| CN103488450A (en) | Method, device and terminal equipment for projecting picture | |
| CN107360458A (en) | Play control method, device, storage medium and terminal | |
| US20150304701A1 (en) | Play control method and device | |
| CN102929650A (en) | Method and device for independently configuring application program running environment and mobile device | |
| US10136291B2 (en) | Low-power wireless content communication between devices | |
| CN106357925A (en) | Method, device and terminal for switching screen brightness adjusting modes | |
| US20170192741A1 (en) | Method, System, and Computer Storage Medium for Voice Control of a Split-Screen Terminal | |
| CN106532876A (en) | Power supply control method and device and computer equipment | |
| CN106412625B (en) | multimedia synchronous playing method, device, terminal and system | |
| CN106227566A (en) | Application program download control method, device and terminal unit in application shop | |
| CN105185401A (en) | Method and device for synchronizing multi-media file list |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CP03 | Change of name, title or address | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170630 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |