Movatterモバイル変換


[0]ホーム

URL:


CN103491240B - A kind of alarm clock ringing method, device and mobile terminal - Google Patents

A kind of alarm clock ringing method, device and mobile terminal
Download PDF

Info

Publication number
CN103491240B
CN103491240BCN201310390622.5ACN201310390622ACN103491240BCN 103491240 BCN103491240 BCN 103491240BCN 201310390622 ACN201310390622 ACN 201310390622ACN 103491240 BCN103491240 BCN 103491240B
Authority
CN
China
Prior art keywords
alarm clock
resource
ringing
theme
page
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.)
Active
Application number
CN201310390622.5A
Other languages
Chinese (zh)
Other versions
CN103491240A (en
Inventor
戚冬杰
康上明学
续丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi IncfiledCriticalXiaomi Inc
Priority to CN201310390622.5ApriorityCriticalpatent/CN103491240B/en
Publication of CN103491240ApublicationCriticalpatent/CN103491240A/en
Application grantedgrantedCritical
Publication of CN103491240BpublicationCriticalpatent/CN103491240B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses an alarm clock ringing method and device and a mobile terminal, and belongs to the field of mobile terminal application. The method comprises the following steps: acquiring the setting information of an alarm clock to be rung; when the acquired setting information comprises an alarm clock theme identifier, acquiring an alarm clock theme resource corresponding to the alarm clock theme identifier, wherein the alarm clock theme resource at least comprises a ringing page resource or a ringing video resource; ringing according to the alarm clock theme resource. According to the method and the device, the setting information of the alarm clock to be rung is acquired, the setting information comprises the theme of the alarm clock, and when the alarm clock to be rung rings, a ringing page is displayed according to the acquired theme of the alarm clock. Because the display content of the ringing page is related to the alarm clock theme of the alarm clock, and the alarm clock themes of different alarm clocks are possibly different, the display content of the ringing page of different alarm clocks can be different, the ringing page is not single and unchanged, the personalized setting can be carried out according to the requirements of the user, and the using comfort level of the user is improved.

Description

Translated fromChinese
一种闹钟响铃方法、装置及移动终端A kind of alarm clock ringing method, device and mobile terminal

技术领域technical field

本发明涉及移动终端应用领域,特别涉及一种闹钟响铃方法、装置及移动终端。The invention relates to the application field of mobile terminals, in particular to a method and device for ringing an alarm clock and a mobile terminal.

背景技术Background technique

随着移动终端智能化和便捷化的发展,越来越多的人使用移动终端(主要是手机)取代传统的闹钟,在达到设定时间时进行响铃。With the development of intelligence and convenience of mobile terminals, more and more people use mobile terminals (mainly mobile phones) to replace traditional alarm clocks, which ring when the set time is reached.

针对移动终端的闹钟功能,目前移动终端可支持设置一个或多个闹钟,每个闹钟设置有一个响铃时间、一个响铃周期、以及一个响铃铃声。当达到某个响铃时间时,移动终端的喇叭会播放该响铃时间所属闹钟的响铃铃声,同时移动终端的屏幕会亮起来并显示对闹钟的处理选项(如关闭闹钟选项),用户可以通过滑动操作来关闭闹钟。For the alarm clock function of the mobile terminal, currently the mobile terminal can support setting one or more alarm clocks, and each alarm clock is set with a ringing time, a ringing period, and a ringing tone. When a certain ringing time is reached, the speaker of the mobile terminal will play the ringing tone of the alarm clock that the ringing time belongs to, and the screen of the mobile terminal will light up and display the processing options (such as closing the alarm clock option) to the alarm clock at the same time, and the user can Swipe to turn off the alarm.

由上可知,对于目前移动终端的闹钟功能来说,所有闹钟的响铃场景都是单一的,降低了用户使用的舒适度。It can be seen from the above that, for the alarm clock function of the current mobile terminal, the ringing scene of all the alarm clocks is single, which reduces the comfort of the user.

发明内容Contents of the invention

为了解决上述响铃场景单一不变,降低用户使用舒适度的问题,本发明实施例提供了一种闹钟响铃方法、装置及移动终端。所述技术方案如下:In order to solve the above-mentioned problem that the ringing scene is single and constant, and the user's comfort level is reduced, the embodiments of the present invention provide a method and device for ringing an alarm clock, and a mobile terminal. Described technical scheme is as follows:

一方面,本发明实施例提供了一种闹钟响铃方法,所述方法包括:On the one hand, an embodiment of the present invention provides a method for ringing an alarm clock, the method comprising:

获取待响铃闹钟的设置信息;Obtain the setting information of the alarm clock to ring;

当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,并根据所述闹钟主题资源响铃,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;When the acquired setting information includes the alarm clock theme identifier, acquire the alarm clock theme resource corresponding to the alarm clock theme identifier and stored in the mobile terminal, and ring the bell according to the alarm clock theme resource, and the alarm clock theme resource includes at least a bell Page resources or ringing video resources, the ringing page resource is used to provide a ringing page when the ringing time is reached, the ringing page includes a background picture and an option layout, and the ringing video resource is used to provide a ringing page when the ringing time is reached The video played when the bell rings;

当获取到的所述设置信息包括实时播放指示时,判断所述移动终端是否与互联网连接;When the acquired setting information includes a real-time play instruction, determine whether the mobile terminal is connected to the Internet;

当所述移动终端与所述互联网连接时,获取网络资源地址,并通过浏览器显示所述网络资源地址对应的网页,以采用在线闹钟主题资源响铃,所述网络资源地址用于链接在线闹钟主题资源;When the mobile terminal is connected to the Internet, obtain the address of the network resource, and display the web page corresponding to the address of the network resource through the browser, so as to use the online alarm clock theme resource to ring the bell, and the address of the network resource is used to link the online alarm clock theme resources;

当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。When the mobile terminal is not connected to the Internet, obtain a set default alarm clock theme identifier, and ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.

在第一种可能的实现方式中,所述获取网络资源地址,采用如下方式:In a first possible implementation manner, the acquisition of the network resource address is performed in the following manner:

获取用户设定的第一网络资源地址;Obtain the address of the first network resource set by the user;

或者,or,

所述获取网络资源地址,采用如下方式:The acquisition of the network resource address is carried out in the following manner:

向服务器发送闹钟主题资源请求;Send an alarm theme resource request to the server;

接收所述服务器返回的第二网络资源地址,所述第二网络资源地址为所述服务器根据所述闹钟主题资源请求确定的。and receiving the second network resource address returned by the server, where the second network resource address is determined by the server according to the alarm theme resource request.

在第二种可能的实现方式中,所述方法还包括:In a second possible implementation, the method further includes:

接收用户输入的一个或多个闹钟的设置信息。Receive the setting information of one or more alarm clocks input by the user.

在第三种可能的实现方式中,所述方法还包括:In a third possible implementation manner, the method further includes:

下载闹钟主题资源。Download the alarm clock theme resource.

另一方面,本发明实施例提供了一种闹钟响铃装置,所述装置包括:On the other hand, an embodiment of the present invention provides an alarm clock ringing device, the device comprising:

信息获取模块,用于获取待响铃闹钟的设置信息;An information acquisition module, configured to acquire the setting information of the alarm clock to ring;

资源获取模块,用于当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;A resource acquisition module, configured to obtain an alarm clock theme resource corresponding to the alarm clock theme identifier stored in the mobile terminal when the acquired setting information includes an alarm clock theme identifier, and the alarm clock theme resource includes at least a ringing page resource or a ringing page resource. Ring video resource, the ring page resource is used to provide a ring page when the ring time is reached, the ring page includes a background picture, an option layout, and the ring video resource is used to provide a ringing page that is played when the ring time is reached video of

响铃模块,用于根据所述闹钟主题资源响铃;A bell module, configured to ring the bell according to the alarm theme resource;

地址获取模块,用于当获取到的所述设置信息包括实时播放指示时,获取网络资源地址,所述网络资源地址用于链接在线闹钟主题资源;An address obtaining module, configured to obtain a network resource address when the obtained setting information includes a real-time play instruction, and the network resource address is used to link an online alarm clock theme resource;

所述响铃模块用于,通过浏览器显示所述网络资源地址对应的网页,以采用所述在线闹钟主题资源响铃;The ringing module is used to display the webpage corresponding to the network resource address through the browser, so as to ring the bell by using the online alarm clock theme resource;

连接判断模块,用于在所述地址获取模块获取所述网络资源地址之前,判断所述移动终端是否与互联网连接;A connection judging module, configured to judge whether the mobile terminal is connected to the Internet before the address obtaining module obtains the address of the network resource;

所述响铃模块用于,当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。The ringing module is used for, when the mobile terminal is not connected to the Internet, to acquire a set default alarm clock theme identifier, and to ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.

在第一种可能的实现方式中,所述地址获取模块用于,In a first possible implementation manner, the address obtaining module is used to:

获取用户设定的第一网络资源地址;Obtain the address of the first network resource set by the user;

或者,or,

所述地址获取模块用于,The address obtaining module is used for,

向服务器发送闹钟主题资源请求;Send an alarm theme resource request to the server;

接收所述服务器返回的第二网络资源地址,所述第二网络资源地址为所述服务器根据所述闹钟主题资源请求确定的。and receiving the second network resource address returned by the server, where the second network resource address is determined by the server according to the alarm theme resource request.

在第二种可能的实现方式中,所述装置还包括:In a second possible implementation manner, the device further includes:

信息接收模块,用于接收用户输入的一个或多个闹钟的设置信息。The information receiving module is used to receive setting information of one or more alarm clocks input by the user.

在第三种可能的实现方式中,所述装置还包括:In a third possible implementation manner, the device further includes:

资源下载模块,用于下载闹钟主题资源。The resource download module is used to download alarm clock theme resources.

又一方面,本发明实施例提供了一种移动终端,所述移动终端包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:In yet another aspect, an embodiment of the present invention provides a mobile terminal, the mobile terminal includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be controlled by one or one The above processor executes the one or more programs including instructions for performing the following operations:

获取待响铃闹钟的设置信息;Obtain the setting information of the alarm clock to ring;

当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,并根据所述闹钟主题资源响铃,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;When the acquired setting information includes the alarm clock theme identifier, acquire the alarm clock theme resource corresponding to the alarm clock theme identifier and stored in the mobile terminal, and ring the bell according to the alarm clock theme resource, and the alarm clock theme resource includes at least a bell Page resources or ringing video resources, the ringing page resource is used to provide a ringing page when the ringing time is reached, the ringing page includes a background picture and an option layout, and the ringing video resource is used to provide a ringing page when the ringing time is reached The video played when the bell rings;

当获取到的所述设置信息包括实时播放指示时,判断所述移动终端是否与互联网连接;When the acquired setting information includes a real-time play instruction, determine whether the mobile terminal is connected to the Internet;

当所述移动终端与所述互联网连接时,获取网络资源地址,所述网络资源地址用于链接在线闹钟主题资源,并通过浏览器显示所述网络资源地址对应的网页,以采用所述在线闹钟主题资源响铃;When the mobile terminal is connected to the Internet, obtain the network resource address, the network resource address is used to link the online alarm clock theme resource, and display the web page corresponding to the network resource address through the browser, so as to adopt the online alarm clock theme resource bell;

当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。When the mobile terminal is not connected to the Internet, obtain a set default alarm clock theme identifier, and ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。By acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock to be ringing rings, a ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的一种闹钟响铃方法的流程图;Fig. 1 is a flow chart of a method for ringing an alarm clock provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种闹钟响铃方法的流程图;Fig. 2 is a flow chart of another alarm clock ringing method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种闹钟响铃装置的结构示意图;Fig. 3 is a schematic structural diagram of an alarm clock ringing device provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种闹钟响铃装置的结构示意图;Fig. 4 is a structural schematic diagram of another alarm clock ringing device provided by an embodiment of the present invention;

图5是本发明实施例提供的一种移动终端的硬件结构图。Fig. 5 is a hardware structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1显示了本发明实施例提供的一种闹钟响铃方法,该方法的移动主体可以为移动终端,参见图1,该方法包括:Figure 1 shows a method for ringing an alarm clock provided by an embodiment of the present invention, the mobile subject of the method may be a mobile terminal, see Figure 1, the method includes:

步骤101:获取待响铃闹钟的设置信息。Step 101: Obtain the setting information of the alarm clock to ring.

该闹钟设置信息至少包括响铃时间,还可以包括一些常规闹钟设置信息,例如响铃周期、响铃间隔、响铃铃声等等。The alarm clock setting information includes at least the ringing time, and may also include some conventional alarm clock setting information, such as ringing cycle, ringing interval, ringing sound and so on.

在本实施例中,设置信息还可以包括闹钟主题标识或实时播放指示等等。闹钟主题标识用于获取保存在移动终端的对应的闹钟主题资源,实时播放指示用于指示获取网络资源地址,网络资源地址用于链接在线闹钟主题资源。In this embodiment, the setting information may also include an alarm theme identifier or a real-time play instruction, and the like. The alarm clock theme identifier is used to obtain the corresponding alarm clock theme resource stored in the mobile terminal, the real-time play instruction is used to indicate to acquire the network resource address, and the network resource address is used to link the online alarm clock theme resource.

步骤102:当获取到的设置信息包括闹钟主题标识时,获取闹钟主题标识对应的闹钟主题资源。Step 102: When the acquired setting information includes the alarm clock theme identifier, acquire the alarm clock theme resource corresponding to the alarm clock theme identifier.

闹钟主题资源可以用于提供达到响铃时间时响铃所需的部分资源,如闹钟主题资源包括显示响铃页面所需的响铃页面资源;闹钟主题资源也可以用于提供达到响铃时间时响铃所需的全部资源,例如,闹钟主题资源包括显示响铃页面所需的响铃页面资源和铃声资源;或者,闹钟主题资源包括响铃视频资源。The alarm clock theme resource can be used to provide some of the resources needed to ring the bell when the ring time is reached. For example, the alarm clock theme resource includes the ring page resource required to display the ring page; the alarm clock theme resource can also be used to provide All the resources required for ringing, for example, the alarm clock theme resource includes the ring page resource and the ring tone resource required to display the ring page; or, the alarm theme resource includes the ring video resource.

在本实施例中,闹钟主题资源至少包括响铃页面资源或响铃视频资源。响铃页面资源用于提供达到响铃时间时的响铃页面(包括背景图片、选项布局等),响铃视频资源用于提供达到响铃时间时播放的视频。In this embodiment, the alarm theme resource includes at least a ringing page resource or a ringing video resource. The ringing page resource is used to provide a ringing page (including background image, option layout, etc.) when the ringing time is reached, and the ringing video resource is used to provide a video played when the ringing time is reached.

步骤103:根据获取到的闹钟主题资源响铃。Step 103: Ring the alarm according to the acquired alarm theme resource.

在具体实现中,当闹钟主题资源包括响铃页面资源时,根据响铃页面资源显示响铃页面;当闹钟主题资源包括响铃页面资源和响铃铃声资源时,根据响铃页面资源显示响铃页面,根据响铃铃声资源播放响铃铃声;当闹钟主题资源包括响铃视频资源时,根据响铃视频资源播放响铃视频。In a specific implementation, when the alarm clock theme resource includes a ringing page resource, the ringing page is displayed according to the ringing page resource; when the alarming theme resource includes a ringing page resource and a ringing sound resource, the ringing page is displayed according to the ringing page resource page, play the ringtone according to the ringtone resource; when the alarm theme resource includes a ringtone video resource, play the ringtone video according to the ringtone video resource.

本发明实施例通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。In the embodiment of the present invention, by acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock is ringing, the ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

图2显示了本发明实施例提供的另一种闹钟响铃方法,该方法的执行主体可以为移动终端,参见图2,该方法包括:FIG. 2 shows another method for ringing an alarm clock provided by an embodiment of the present invention. The execution subject of the method may be a mobile terminal. Referring to FIG. 2 , the method includes:

步骤201:接收用户输入的一个或多个闹钟的设置信息。Step 201: Receive setting information of one or more alarm clocks input by a user.

在本实施例中,每个闹钟的设置信息至少包括响铃时间,还可以包括一些常规闹钟设置信息,例如响铃周期、响铃间隔、响铃铃声等等。每个闹钟的设置信息还可以包括闹钟主题信息,例如,闹钟主题标识或实时播放指示等等。闹钟主题标识用于获取保存在移动终端的对应的闹钟主题资源,实时播放指示用于指示获取网络资源地址,网络资源地址用于链接在线闹钟主题资源。In this embodiment, the setting information of each alarm clock includes at least the ringing time, and may also include some conventional alarm clock setting information, such as ringing period, ringing interval, ringing sound and so on. The setting information of each alarm clock may also include alarm clock theme information, for example, an alarm clock theme identifier or a real-time play instruction, and the like. The alarm clock theme identifier is used to obtain the corresponding alarm clock theme resource stored in the mobile terminal, the real-time play instruction is used to indicate to acquire the network resource address, and the network resource address is used to link the online alarm clock theme resource.

不同闹钟的设置信息可以不同,也可以部分相同(除了响铃时间以外的设置信息中的至少一部分),本发明对此不作限制。The setting information of different alarm clocks may be different, or partly the same (at least part of the setting information except the ringing time), which is not limited in the present invention.

在具体实现中,在进行闹钟设置时,移动终端首先让用户选择是否实时播放。当用户输入的设置信息包括实时播放指示时,移动终端可以将用户设定的第一网络资源地址作为该闹钟链接在线闹钟主题资源的地址。当用户输入的设置信息包括非实时播放指示时,移动终端可以提供在设置闹钟之前,移动终端中保存的已经完成下载或缓冲的闹钟主题资源(如图片)供用户选择,用户通过选择闹钟主题标识(如闹钟主题URI(Uniform ResourceIdentifier,统一资源标识符))确定该闹钟响铃所使用的闹钟主题资源;移动终端也可以根据用户设置的闹钟主题名称向服务器发送闹钟主题资源下载请求,由服务器向移动终端发送根据闹钟主题资源下载请求确定的闹钟主题资源。In a specific implementation, when setting the alarm clock, the mobile terminal first allows the user to choose whether to play in real time. When the setting information input by the user includes a real-time play instruction, the mobile terminal may use the address of the first network resource set by the user as the address of the alarm clock link online alarm clock theme resource. When the setting information input by the user includes a non-real-time playback instruction, the mobile terminal can provide the alarm clock theme resources (such as pictures) that have been downloaded or buffered in the mobile terminal before the alarm clock is set for the user to choose. (such as the alarm clock theme URI (Uniform ResourceIdentifier, Uniform Resource Identifier)) determines the alarm clock theme resource used by the alarm clock; the mobile terminal can also send an alarm clock theme resource download request to the server according to the alarm clock theme name set by the user, and the server sends the alarm theme resource download request to the server. The mobile terminal sends the alarm clock theme resource determined according to the download request of the alarm clock theme resource.

在具体实现中,该步骤201为可选步骤,可以根据需要选择执行,例如,可以为某闹钟设置每日循环或工作日循环,这样,在每次闹钟响铃流程中,可以不再每次执行步骤201。In a specific implementation, this step 201 is an optional step, which can be selected and executed according to needs. For example, a daily cycle or a weekday cycle can be set for a certain alarm clock. Execute step 201.

步骤202:获取待响铃闹钟的设置信息。当待响铃闹钟为常规闹钟时,执行步骤203a;当待响铃闹钟为非常规闹钟时,执行步骤203b。Step 202: Obtain the setting information of the alarm clock to ring. When the alarm clock to be rung is a regular alarm clock, step 203a is performed; when the alarm clock to be rung is an unconventional alarm clock, step 203b is performed.

在本实施例中,待响铃闹钟是常规闹钟时,闹钟的设置信息中只包括响铃时间、响铃周期、响铃铃声;当待响铃闹钟是非常规闹钟时,闹钟的设置信息中除了响铃时间、响铃周期、响铃铃声以外,还包括闹钟主题标识或实时播放指示,因此可根据待响铃闹钟的设置信息确定该待响铃闹钟为常规闹钟,还是非常规闹钟。In this embodiment, when the alarm clock to be rung is a conventional alarm clock, the setting information of the alarm clock only includes the ringing time, ringing period, and ringing sound; when the alarm clock to be ringing is an unconventional alarm clock, the setting information of the alarm clock includes only In addition to the ringing time, ringing period, and ringing tone, the alarm clock theme identification or real-time play indication is also included, so it can be determined whether the alarm clock to be ringing is a conventional alarm clock or an unconventional alarm clock according to the setting information of the alarm clock to be ringing.

在本实施例的一种实现方式中,该步骤202可以采用如下方式:向各个应用发送广播消息,该广播消息包括当前时间;比较该广播消息中的当前时间与各个闹钟的响铃时间是否一致,获取响铃时间与当前时间一致的闹钟(待响铃闹钟)的设置信息。In an implementation of this embodiment, step 202 may be performed in the following manner: sending a broadcast message to each application, the broadcast message including the current time; comparing whether the current time in the broadcast message is consistent with the ringing time of each alarm clock , to obtain the setting information of the alarm clock whose ringing time is consistent with the current time (alarm clock to be ringing).

以安卓系统为例,可以通过移动终端的Alarm Manager Service(闹钟管理服务)来广播当前时间,该Alarm Manager Service会监控是否到达既定时间(该既定时间为移动终端中的某个应用对应的任务时间),在到达该既定时间时,将当前时间通过广播消息发送给移动终端中的各个应用。Taking the Android system as an example, the current time can be broadcast through the Alarm Manager Service (alarm clock management service) of the mobile terminal. ), when the predetermined time is reached, the current time is sent to each application in the mobile terminal through a broadcast message.

步骤203a:播放待响铃闹钟的响铃铃声,并显示待响铃闹钟的响铃页面。Step 203a: Play the ringing tone of the alarm clock to be ringing, and display the ringing page of the alarm clock to be ringing.

在实际应用中,闹钟的响铃铃声来自响铃铃声资源,响铃铃声资源可以是闹钟主题资源的一部分,也可以独立于闹钟主题资源。常规闹钟的响铃页面通常包括背景图案和处理选项。In practical applications, the ringing tone of the alarm clock comes from the ringing tone resource, and the ringing tone resource can be a part of the alarm clock theme resource, or can be independent of the alarm clock theme resource. The ring page for regular alarm clocks usually includes background patterns and handling options.

步骤203b:判断是否实时播放。当判断结果为非实时播放时,执行步骤204a;当判断结果为实时播放时,执行步骤204b。Step 203b: Determine whether to play in real time. When the judging result is non-real-time playing, execute step 204a; when the judging result is real-time playing, execute step 204b.

在具体实现中,是否实时播放可以根据用户的设置进行判断。例如,根据设置信息是否包括实时播放指示进行判断,当获取到的设置信息包括闹钟主题标识时,判定为非实时播放;当获取到的设置信息包括实时播放指示时,判定为实时播放。In a specific implementation, whether to play in real time can be judged according to the settings of the user. For example, it is judged according to whether the setting information includes a real-time playback instruction. When the acquired setting information includes an alarm theme identifier, it is determined to be non-real-time playback; when the acquired setting information includes a real-time playback instruction, it is determined to be real-time playback.

步骤204a:获取闹钟主题标识对应的闹钟主题资源,并根据闹钟主题资源响铃。Step 204a: Obtain the alarm clock theme resource corresponding to the alarm clock theme identifier, and ring the bell according to the alarm clock theme resource.

在实际应用中,闹钟主题的类型可以为提醒信息,如节日提醒、纪念日提醒、社会活动提醒;闹钟主题的类型也可以为网络活动通知,如各个网站的抢购活动的通知;闹钟主题的类型还可以为新闻,如时政新闻、财经新闻、娱乐新闻、科技新闻;闹钟主题的类型还可以为其它资讯信息,本发明对此不作限制。In practical applications, the type of the alarm clock theme can be reminder information, such as holiday reminders, anniversary reminders, and social event reminders; the type of alarm clock theme can also be network activity notifications, such as notifications for panic buying activities on various websites; the type of alarm clock theme It can also be news, such as current affairs news, financial news, entertainment news, science and technology news; the type of the alarm clock theme can also be other information information, which is not limited in the present invention.

闹钟主题资源可以用于提供达到响铃时间时响铃所需的部分资源,如闹钟主题资源包括显示响铃页面所需的响铃页面资源;闹钟主题资源也可以用于提供达到响铃时间时响铃所需的全部资源,例如,闹钟主题资源包括显示响铃页面所需的响铃页面资源和铃声资源;或者,闹钟主题资源包括响铃视频资源。The alarm clock theme resource can be used to provide some of the resources needed to ring the bell when the ring time is reached. For example, the alarm clock theme resource includes the ring page resource required to display the ring page; the alarm clock theme resource can also be used to provide All the resources required for ringing, for example, the alarm clock theme resource includes the ring page resource and the ring tone resource required to display the ring page; or, the alarm theme resource includes the ring video resource.

在具体实现中,当闹钟主题资源包括响铃页面资源时,根据响铃页面资源显示响铃页面;当闹钟主题资源包括响铃页面资源和响铃铃声资源时,根据响铃页面资源显示响铃页面,根据响铃铃声资源播放响铃铃声;当闹钟主题资源包括响铃视频资源时,根据响铃视频资源播放响铃视频。In a specific implementation, when the alarm clock theme resource includes a ringing page resource, the ringing page is displayed according to the ringing page resource; when the alarming theme resource includes a ringing page resource and a ringing sound resource, the ringing page is displayed according to the ringing page resource page, play the ringtone according to the ringtone resource; when the alarm theme resource includes a ringtone video resource, play the ringtone video according to the ringtone video resource.

步骤204b:判断移动终端是否与互联网连接。当移动终端与互联网连接时,执行步骤205a;当移动终端没有与互联网连接时,执行步骤205b。Step 204b: Determine whether the mobile terminal is connected to the Internet. When the mobile terminal is connected to the Internet, step 205a is performed; when the mobile terminal is not connected to the Internet, step 205b is performed.

在实际应用中,该步骤204b可以采用如下方式:判断移动终端的WiFi(wirelessfidelity,无线保真)是否连接成功。In a practical application, the step 204b may adopt the following manner: determine whether the WiFi (wireless fidelity, wireless fidelity) of the mobile terminal is successfully connected.

步骤205a:获取网络资源地址,并通过浏览器显示网络资源地址对应的网页。Step 205a: Obtain the address of the network resource, and display the web page corresponding to the address of the network resource through the browser.

在本实施例中,网络资源地址用于链接在线闹钟主题资源,显示网络资源地址对应的网页,即采用在线闹钟主题资源响铃。In this embodiment, the network resource address is used to link the online alarm clock theme resource, and the web page corresponding to the network resource address is displayed, that is, the online alarm clock theme resource is used to ring the bell.

在本实施例的一种实现方式中,该步骤205a可以采用如下方式:获取用户设定的第一网络资源地址。In an implementation manner of this embodiment, the step 205a may adopt the following manner: obtain the first network resource address set by the user.

在本实施例的另一种实现方式中,该步骤205a可以采用如下方式:向服务器发送闹钟主题资源请求;接收服务器返回的第二网络资源地址,第二网络资源地址为服务器根据闹钟主题资源请求确定的。In another implementation of this embodiment, step 205a may be performed in the following manner: send an alarm clock theme resource request to the server; definite.

在具体实现中,闹钟主题资源请求可以闹钟主题的类型,也可以包括响铃时间。当闹钟主题资源请求包括闹钟主题的类型时,服务器可以根据闹钟主题的类型,推送与闹钟主题的类型相关的第二网络资源地址给移动终端。当闹钟主题资源请求包括响铃时间时,服务器可以根据响铃时间,推送与响铃时间相关的第二网络资源地址给移动终端,如当响铃时间为上午十点时,服务器向移动终端推送小米十点抢购的网址,又如当响铃时间为晚上七点时,服务器向移动终端推送新闻联播的网址。In a specific implementation, the resource request for the alarm clock theme may be the type of the alarm clock theme, and may also include the ringing time. When the resource request of the alarm clock theme includes the type of the alarm clock theme, the server may push the address of the second network resource related to the type of the alarm clock theme to the mobile terminal according to the type of the alarm clock theme. When the alarm theme resource request includes the ringing time, the server can push the second network resource address related to the ringing time to the mobile terminal according to the ringing time, such as when the ringing time is ten o'clock in the morning, the server pushes the Another example is the URL of Xiaomi's snap-up at 10 o'clock, and when the bell rings at 7:00 p.m., the server pushes the URL of the news broadcast to the mobile terminal.

步骤205b:获取设定的默认闹钟主题标识,根据默认闹钟主题标识对应的闹钟主题资源响铃。Step 205b: Obtain the set default alarm clock theme ID, and ring the alarm clock theme resource corresponding to the default alarm clock theme ID.

在本实施例中,默认闹钟主题资源标识可以是用户设定的,也可以是移动终端默认设置的。In this embodiment, the default alarm clock theme resource identifier may be set by the user, or may be set by default by the mobile terminal.

在本实施例的一种实现方式中,该方法还可以包括步骤:下载闹钟主题资源。该步骤可以在步骤201之前执行,也可以与步骤201同时执行,还可以在步骤201之后执行,本发明对此不作限制。In an implementation manner of this embodiment, the method may further include the step of: downloading the alarm clock theme resource. This step may be performed before step 201, may be performed simultaneously with step 201, or may be performed after step 201, which is not limited in the present invention.

当该步骤在步骤201之前执行时,在步骤201中,移动终端可以提供移动终端中保存的已经完成下载或缓冲的闹钟主题资源供用户选择,以确定闹钟响铃所使用的闹钟主题资源。When this step is performed before step 201, in step 201, the mobile terminal may provide downloaded or buffered alarm clock theme resources stored in the mobile terminal for the user to select, so as to determine the alarm clock theme resources used by the alarm clock.

当该步骤与步骤201同时执行时,在步骤201中,移动终端可以根据用户设置的闹钟主题名称向服务器发送闹钟主题资源下载请求,从而使服务器向移动终端发送根据闹钟主题资源下载请求确定的闹钟主题资源,以完成闹钟主题资源的下载。When this step is executed simultaneously with step 201, in step 201, the mobile terminal can send an alarm clock theme resource download request to the server according to the alarm clock theme name set by the user, so that the server can send the alarm clock determined according to the alarm clock theme resource download request to the mobile terminal. Theme resources to complete the download of the alarm clock theme resources.

本发明实施例通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。In the embodiment of the present invention, by acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock is ringing, the ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

图3显示了本发明实施例提供的一种闹钟响铃装置,该装置可以为移动终端,参见图3,该装置包括:Figure 3 shows an alarm clock ringing device provided by an embodiment of the present invention, the device may be a mobile terminal, referring to Figure 3, the device includes:

信息获取模块301,用于获取待响铃闹钟的设置信息;An information acquisition module 301, configured to acquire the setting information of the alarm clock to ring;

资源获取模块302,用于当获取到的设置信息包括闹钟主题标识时,获取闹钟主题标识对应的闹钟主题资源;A resource acquisition module 302, configured to obtain an alarm clock theme resource corresponding to the alarm clock theme identifier when the acquired setting information includes the alarm clock theme identifier;

响铃模块303,用于根据获取到的闹钟主题资源响铃。The ringing module 303 is configured to ring the alarm according to the acquired alarm theme resource.

该闹钟设置信息至少包括响铃时间,还可以包括一些常规闹钟设置信息,例如响铃周期、响铃间隔、响铃铃声等等。The alarm clock setting information includes at least the ringing time, and may also include some conventional alarm clock setting information, such as ringing cycle, ringing interval, ringing sound and so on.

在本实施例中,设置信息还可以包括闹钟主题标识或实时播放指示等等。闹钟主题标识用于获取保存在移动终端的对应的闹钟主题资源,实时播放指示用于指示获取网络资源地址,网络资源地址用于链接在线闹钟主题资源。In this embodiment, the setting information may also include an alarm theme identifier or a real-time play instruction, and the like. The alarm clock theme identifier is used to obtain the corresponding alarm clock theme resource stored in the mobile terminal, the real-time play instruction is used to indicate to acquire the network resource address, and the network resource address is used to link the online alarm clock theme resource.

闹钟主题资源可以用于提供达到响铃时间时响铃所需的部分资源,如闹钟主题资源包括显示响铃页面所需的响铃页面资源;闹钟主题资源也可以用于提供达到响铃时间时响铃所需的全部资源,例如,闹钟主题资源包括显示响铃页面所需的响铃页面资源和铃声资源;或者,闹钟主题资源包括响铃视频资源。The alarm clock theme resource can be used to provide some of the resources needed to ring the bell when the ring time is reached. For example, the alarm clock theme resource includes the ring page resource required to display the ring page; the alarm clock theme resource can also be used to provide All the resources required for ringing, for example, the alarm clock theme resource includes the ring page resource and the ring tone resource required to display the ring page; or, the alarm theme resource includes the ring video resource.

在本实施例中,闹钟主题资源至少包括响铃页面资源或响铃视频资源。响铃页面资源用于提供达到响铃时间时的响铃页面(包括背景图片、选项布局等),响铃视频资源用于提供达到响铃时间时播放的视频。In this embodiment, the alarm theme resource includes at least a ringing page resource or a ringing video resource. The ringing page resource is used to provide a ringing page (including background image, option layout, etc.) when the ringing time is reached, and the ringing video resource is used to provide a video played when the ringing time is reached.

在具体实现中,当闹钟主题资源包括响铃页面资源时,根据响铃页面资源显示响铃页面;当闹钟主题资源包括响铃页面资源和响铃铃声资源时,根据响铃页面资源显示响铃页面,根据响铃铃声资源播放响铃铃声;当闹钟主题资源包括响铃视频资源时,根据响铃视频资源播放响铃视频。In a specific implementation, when the alarm clock theme resource includes a ringing page resource, the ringing page is displayed according to the ringing page resource; when the alarming theme resource includes a ringing page resource and a ringing sound resource, the ringing page is displayed according to the ringing page resource page, play the ringtone according to the ringtone resource; when the alarm theme resource includes a ringtone video resource, play the ringtone video according to the ringtone video resource.

本发明实施例通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。In the embodiment of the present invention, by acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock is ringing, the ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

图4显示了本发明实施例提供的另一种闹钟响铃装置,该装置可以为移动终端,参见图4,该装置包括:Figure 4 shows another alarm clock ringing device provided by an embodiment of the present invention, the device may be a mobile terminal, see Figure 4, the device includes:

信息获取模块401,用于获取待响铃闹钟的设置信息;An information acquisition module 401, configured to acquire the setting information of the alarm clock to ring;

资源获取模块402,用于当获取到的设置信息包括闹钟主题标识时,获取闹钟主题标识对应的闹钟主题资源;A resource acquisition module 402, configured to obtain an alarm clock theme resource corresponding to the alarm clock theme identifier when the acquired setting information includes the alarm clock theme identifier;

响铃模块403,用于根据获取到的闹钟主题资源响铃。The ringing module 403 is configured to ring the alarm according to the acquired alarm theme resource.

在本实施例中,每个闹钟的设置信息至少包括响铃时间,还可以包括一些常规闹钟设置信息,例如响铃周期、响铃间隔、响铃铃声等等。每个闹钟的设置信息还可以包括闹钟主题信息,例如,闹钟主题标识或实时播放指示等等。In this embodiment, the setting information of each alarm clock includes at least the ringing time, and may also include some conventional alarm clock setting information, such as ringing period, ringing interval, ringing sound and so on. The setting information of each alarm clock may also include alarm clock theme information, for example, an alarm clock theme identifier or a real-time play instruction, and the like.

闹钟主题标识用于获取保存在移动终端的对应的闹钟主题资源,实时播放指示用于指示获取网络资源地址,网络资源地址用于链接在线闹钟主题资源。The alarm clock theme identifier is used to obtain the corresponding alarm clock theme resource stored in the mobile terminal, the real-time play instruction is used to indicate to acquire the network resource address, and the network resource address is used to link the online alarm clock theme resource.

不同闹钟的设置信息可以不同,也可以部分相同(除了响铃时间以外的设置信息中的至少一部分),本发明对此不作限制。The setting information of different alarm clocks may be different, or partly the same (at least part of the setting information except the ringing time), which is not limited in the present invention.

在具体实现中,在进行闹钟设置时,移动终端首先让用户选择是否实时播放。当用户输入的设置信息包括实时播放指示时,移动终端可以将用户设定的第一网络资源地址作为该闹钟链接在线闹钟主题资源的地址。当用户输入的设置信息包括非实时播放指示时,移动终端可以提供在设置闹钟之前,移动终端中保存的已经完成下载或缓冲的闹钟主题资源(如图片)供用户选择,用户通过选择闹钟主题标识(如闹钟主题URI)确定该闹钟响铃所使用的闹钟主题资源。In a specific implementation, when setting the alarm clock, the mobile terminal first allows the user to choose whether to play in real time. When the setting information input by the user includes a real-time play instruction, the mobile terminal may use the address of the first network resource set by the user as the address of the alarm clock link online alarm clock theme resource. When the setting information input by the user includes a non-real-time playback instruction, the mobile terminal can provide the alarm clock theme resources (such as pictures) that have been downloaded or buffered in the mobile terminal before the alarm clock is set for the user to choose. (such as the alarm clock theme URI) determines the alarm clock theme resource used by the alarm clock to ring.

闹钟主题资源可以用于提供达到响铃时间时响铃所需的部分资源,如闹钟主题资源包括显示响铃页面所需的响铃页面资源;闹钟主题资源也可以用于提供达到响铃时间时响铃所需的全部资源,例如,闹钟主题资源包括显示响铃页面所需的响铃页面资源和铃声资源;或者,闹钟主题资源包括响铃视频资源。在具体实现中,当闹钟主题资源包括响铃页面资源时,根据响铃页面资源显示响铃页面;当闹钟主题资源包括响铃页面资源和响铃铃声资源时,根据响铃页面资源显示响铃页面,根据响铃铃声资源播放响铃铃声;当闹钟主题资源包括响铃视频资源时,根据响铃视频资源播放响铃视频。The alarm clock theme resource can be used to provide some of the resources needed to ring the bell when the ring time is reached. For example, the alarm clock theme resource includes the ring page resource required to display the ring page; the alarm clock theme resource can also be used to provide All the resources required for ringing, for example, the alarm clock theme resource includes the ring page resource and the ring tone resource required to display the ring page; or, the alarm theme resource includes the ring video resource. In a specific implementation, when the alarm clock theme resource includes a ringing page resource, the ringing page is displayed according to the ringing page resource; when the alarming theme resource includes a ringing page resource and a ringing sound resource, the ringing page is displayed according to the ringing page resource page, play the ringtone according to the ringtone resource; when the alarm theme resource includes a ringtone video resource, play the ringtone video according to the ringtone video resource.

在本实施例的一种实现方式中,信息获取模块401可以用于,向各个应用发送广播消息,该广播消息包括当前时间;比较该广播消息中的当前时间与各个闹钟的响铃时间是否一致,获取响铃时间与当前时间一致的闹钟(待响铃闹钟)的设置信息。In an implementation of this embodiment, the information acquisition module 401 may be configured to send a broadcast message to each application, the broadcast message including the current time; compare whether the current time in the broadcast message is consistent with the ringing time of each alarm clock , to obtain the setting information of the alarm clock whose ringing time is consistent with the current time (alarm clock to be ringing).

以安卓系统为例,可以通过移动终端的Alarm Manager Service来广播当前时间,该Alarm Manager Service会监控是否到达既定时间(该既定时间为移动终端中的某个应用对应的任务时间),在到达该既定时间时,将当前时间通过广播消息发送给移动终端中的各个应用。Taking the Android system as an example, the current time can be broadcast through the Alarm Manager Service of the mobile terminal, and the Alarm Manager Service will monitor whether the predetermined time is reached (the predetermined time is the task time corresponding to an application in the mobile terminal). When the time is set, the current time is sent to each application in the mobile terminal through a broadcast message.

本实施在例的另一种实现方式中,当待响铃闹钟为常规闹钟时,响铃模块403可以用于,播放待响铃闹钟的响铃铃声,并显示待响铃闹钟的响铃页面。In another implementation of this embodiment, when the alarm clock to ring is a regular alarm clock, the ringing module 403 can be used to play the ringing tone of the alarm clock to ring, and display the ringing page of the alarm clock to ring .

在本实施例中,待响铃闹钟是常规闹钟时,闹钟的设置信息中只包括响铃时间、响铃周期、响铃铃声;当待响铃闹钟是非常规闹钟时,闹钟的设置信息中除了响铃时间、响铃周期、响铃铃声以外,还包括闹钟主题标识或实时播放指示,因此可根据待响铃闹钟的设置信息确定该待响铃闹钟为常规闹钟,还是非常规闹钟。In this embodiment, when the alarm clock to be rung is a conventional alarm clock, the setting information of the alarm clock only includes the ringing time, ringing period, and ringing sound; when the alarm clock to be ringing is an unconventional alarm clock, the setting information of the alarm clock includes only In addition to the ringing time, ringing period, and ringing tone, the alarm clock theme identification or real-time play indication is also included, so it can be determined whether the alarm clock to be ringing is a conventional alarm clock or an unconventional alarm clock according to the setting information of the alarm clock to be ringing.

在实际应用中,闹钟的响铃铃声来自响铃铃声资源,响铃铃声资源可以是闹钟主题资源的一部分,也可以独立于闹钟主题资源。常规闹钟的响铃页面通常包括背景图案和处理选项。In practical applications, the ringing tone of the alarm clock comes from the ringing tone resource, and the ringing tone resource can be a part of the alarm clock theme resource, or can be independent of the alarm clock theme resource. The ring page for regular alarm clocks usually includes background patterns and handling options.

本实施在例的又一种实现方式中,该装置还可以包括:地址获取模块404,用于当获取到的设置信息包括实时播放指示时,获取网络资源地址,该网络资源地址用于链接在线闹钟主题资源。In yet another implementation of this embodiment, the device may further include: an address obtaining module 404, configured to obtain a network resource address when the obtained setting information includes a real-time playback instruction, and the network resource address is used to link online Alarm clock theme resource.

响铃模块403用于,通过浏览器显示网络资源地址对应的网页,以采用在线闹钟主题资源响铃。The ringing module 403 is used to display the webpage corresponding to the network resource address through the browser, so as to ring the bell using the online alarm clock theme resource.

可选地,地址获取模块404可以用于,获取用户设定的第一网络资源地址。Optionally, the address obtaining module 404 may be configured to obtain the address of the first network resource set by the user.

可选地,地址获取模块404可以用于,向服务器发送闹钟主题资源请求;接收服务器返回的第二网络资源地址,该第二网络资源地址为服务器根据闹钟主题资源请求确定的。Optionally, the address obtaining module 404 may be configured to send an alarm clock theme resource request to the server; receive a second network resource address returned by the server, the second network resource address is determined by the server according to the alarm clock theme resource request.

在具体实现中,闹钟主题资源请求可以闹钟主题的类型,也可以包括响铃时间。当闹钟主题资源请求包括闹钟主题的类型时,服务器可以根据闹钟主题的类型,推送与闹钟主题的类型相关的第二网络资源地址给移动终端。当闹钟主题资源请求包括响铃时间时,服务器可以根据响铃时间,推送与响铃时间相关的第二网络资源地址给移动终端,如当响铃时间为上午十点时,服务器向移动终端推送小米十点抢购的网址,又如当响铃时间为晚上七点时,服务器向移动终端推送新闻联播的网址。In a specific implementation, the resource request for the alarm clock theme may be the type of the alarm clock theme, and may also include the ringing time. When the resource request of the alarm clock theme includes the type of the alarm clock theme, the server may push the address of the second network resource related to the type of the alarm clock theme to the mobile terminal according to the type of the alarm clock theme. When the alarm theme resource request includes the ringing time, the server can push the second network resource address related to the ringing time to the mobile terminal according to the ringing time, such as when the ringing time is ten o'clock in the morning, the server pushes the Another example is the URL of Xiaomi's snap-up at 10 o'clock, and when the bell rings at 7:00 p.m., the server pushes the URL of the news broadcast to the mobile terminal.

在该种实现方式中,该装置还可以包括连接判断模块405,用于在地址获取模块404获取网络资源地址之前,判断移动终端是否与互联网连接。In this implementation manner, the device may further include a connection judging module 405, configured to judge whether the mobile terminal is connected to the Internet before the address obtaining module 404 obtains the address of the network resource.

响铃模块403用于,当移动终端未与互联网连接时,获取设定的默认闹钟主题标识,根据默认闹钟主题标识对应的闹钟主题资源响铃。The ringing module 403 is used for, when the mobile terminal is not connected to the Internet, obtain the set default alarm clock theme ID, and ring the alarm clock theme resource corresponding to the default alarm clock theme ID.

在实际应用中,连接判断模块405可以用于,判断移动终端的WiFi是否连接成功。In practical applications, the connection judging module 405 may be used to judge whether the WiFi connection of the mobile terminal is successful.

在具体实现中,默认闹钟主题资源标识可以是用户设定的,也可以是移动终端默认设置的。在实际应用中,闹钟主题的类型可以为提醒信息,如节日提醒、纪念日提醒、社会活动提醒;闹钟主题的类型也可以为网络活动通知,如各个网站的抢购活动的通知;闹钟主题的类型还可以为新闻,如时政新闻、财经新闻、娱乐新闻、科技新闻;闹钟主题的类型还可以为其它资讯信息,本发明对此不作限制。In a specific implementation, the default alarm clock theme resource identifier may be set by the user, or may be set by default by the mobile terminal. In practical applications, the type of the alarm clock theme can be reminder information, such as holiday reminders, anniversary reminders, and social event reminders; the type of alarm clock theme can also be network activity notifications, such as notifications for panic buying activities on various websites; the type of alarm clock theme It can also be news, such as current affairs news, financial news, entertainment news, science and technology news; the type of the alarm clock theme can also be other information information, which is not limited in the present invention.

闹钟主题资源可以用于提供达到响铃时间时响铃所需的部分资源,如闹钟主题资源包括显示响铃页面所需的响铃页面资源;闹钟主题资源也可以用于提供达到响铃时间时响铃所需的全部资源,例如,闹钟主题资源包括显示响铃页面所需的响铃页面资源和铃声资源;或者,闹钟主题资源包括响铃视频资源。The alarm clock theme resource can be used to provide some of the resources needed to ring the bell when the ring time is reached. For example, the alarm clock theme resource includes the ring page resource required to display the ring page; the alarm clock theme resource can also be used to provide All the resources required for ringing, for example, the alarm clock theme resource includes the ring page resource and the ring tone resource required to display the ring page; or, the alarm theme resource includes the ring video resource.

当闹钟主题资源包括响铃页面资源时,根据响铃页面资源显示响铃页面;当闹钟主题资源包括响铃页面资源和响铃铃声资源时,根据响铃页面资源显示响铃页面,根据响铃铃声资源播放响铃铃声;当闹钟主题资源包括响铃视频资源时,根据响铃视频资源播放响铃视频。When the alarm clock theme resource includes a ring page resource, display the ring page according to the ring page resource; when the alarm clock theme resource includes a ring page resource and a ring tone resource, display the ring page according to the ring page resource, The ringtone resource plays the ringtone; when the alarm theme resource includes the ring video resource, the ring video is played according to the ring video resource.

在本实施例的又一种实现方式中,该装置还可以包括:信息接收模块406,用于接收用户输入的一个或多个闹钟的设置信息。In yet another implementation manner of this embodiment, the device may further include: an information receiving module 406, configured to receive setting information of one or more alarm clocks input by a user.

在本实施例中,用户输入的设置信息至少包括响铃时间、响铃周期和闹钟主题信息,闹钟主题信息为闹钟主题标识或实时播放指示。不同闹钟的设置信息可以不同,也可以部分相同,本发明对此不作限制。In this embodiment, the setting information input by the user includes at least ringing time, ringing cycle and alarm theme information, and the alarm theme information is an alarm theme identifier or a real-time playback instruction. The setting information of different alarm clocks may be different, or partly the same, which is not limited in the present invention.

在本实施例的又一种实现方式中,该装置还可以包括:资源下载模块407,用于下载闹钟主题资源。In yet another implementation manner of this embodiment, the device may further include: a resource download module 407, configured to download alarm clock theme resources.

本发明实施例通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。In the embodiment of the present invention, by acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock is ringing, the ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

图5显示了本发明实施例提供的一种移动终端,参见图5,该移动终端500可以包括RF(Radio Frequency,射频)电路501、包括有一个或一个以上计算机可读存储介质的存储器502、输入单元503、显示单元504、传感器505、音频电路506、WiFi模块507、包括有一个或者一个以上处理核心的处理器508、以及电源509等部件。本领域技术人员可以理解,图5中示出的移动终端500结构并不构成对移动终端500的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:FIG. 5 shows a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 5, the mobile terminal 500 may include an RF (Radio Frequency, radio frequency) circuit 501, a memory 502 including one or more computer-readable storage media, Input unit 503 , display unit 504 , sensor 505 , audio circuit 506 , WiFi module 507 , processor 508 including one or more processing cores, and power supply 509 and other components. Those skilled in the art can understand that the structure of the mobile terminal 500 shown in FIG. 5 does not constitute a limitation to the mobile terminal 500, and may include more or less components than those shown in the illustration, or combine some components, or different components. layout. in:

RF电路501可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器508处理;另外,将涉及上行的数据发送给基站。通常,RF电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、SIM(Subscriber Identity Module,用户身份模块)卡、收发信机、耦合器、LNA(Low NoiseAmplifier,低噪声放大器)、双工器等。此外,RF电路501还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global Systemof Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(WidebandCode Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 501 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 508 for processing; in addition, the data related to the uplink is sent to the base station . Generally, the RF circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a SIM (Subscriber Identity Module, Subscriber Identity Module) card, a transceiver, a coupler, an LNA (Low Noise Amplifier, low noise amplifier), duplexer, etc. In addition, the RF circuit 501 can also communicate with networks and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communication), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), LTE (Long Term Evolution, Long Term Evolution), email, SMS (Short Messaging Service, Short Message Service), etc.

存储器502可用于存储软件程序以及模块,处理器508通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如判断当前时间是否为响铃时间等)等;存储数据区可存储根据移动终端500的使用所创建的数据(比如闹钟的设置等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器508和输入单元503对存储器502的访问。The memory 502 can be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by running the software programs and modules stored in the memory 502 . The memory 502 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application program required by a function (such as judging whether the current time is the ringing time, etc.), etc.; the storage data area can store Data created according to the use of the mobile terminal 500 (such as setting of an alarm clock, etc.) and the like. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 502 may further include a memory controller to provide access to the memory 502 by the processor 508 and the input unit 503 .

输入单元503可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。在具体实现中,输入单元503可包括触敏表面5031以及其他输入设备5032。触敏表面5031,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面5031上或在触敏表面5031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面5031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面5031。除了触敏表面5031,输入单元503还可以包括其他输入设备5032。在具体实现中,其他输入设备5032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 503 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. In a specific implementation, the input unit 503 may include a touch-sensitive surface 5031 and other input devices 5032 . The touch-sensitive surface 5031, also referred to as a touch display screen or touchpad, can collect user touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch-sensitive surface 5031 or The operation near the touch-sensitive surface 5031), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 5031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 508, and can receive and execute commands sent by the processor 508. In addition, the touch-sensitive surface 5031 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 5031 , the input unit 503 may also include other input devices 5032 . In a specific implementation, other input devices 5032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元504可用于显示由用户输入的信息或提供给用户的信息以及移动终端500的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板5041,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板5041。进一步的,触敏表面5031可覆盖显示面板5041,当触敏表面5031检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板5041上提供相应的视觉输出。虽然在图5中,触敏表面5031与显示面板5041是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面5031与显示面板5041集成而实现输入和输出功能。The display unit 504 can be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 500. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 504 may include a display panel 5041. Optionally, the display panel 5041 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light-emitting diode), or the like. Further, the touch-sensitive surface 5031 may cover the display panel 5041, and when the touch-sensitive surface 5031 detects a touch operation on or near it, the touch operation is sent to the processor 508 to determine the type of the touch event, and then the processor 508 determines the type of the touch event according to the type of the touch event. The type provides a corresponding visual output on the display panel 5041. Although in FIG. 5, the touch-sensitive surface 5031 and the display panel 5041 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 5031 and the display panel 5041 can be integrated to realize input. and output functions.

移动终端500还可包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5041的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5041和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端500还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 500 may also include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5041 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5041 when the mobile terminal 500 moves to the ear. and/or backlighting. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition-related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the mobile terminal 500, here No longer.

音频电路506、扬声器5061,传声器5062可提供用户与移动终端500之间的音频接口。音频电路506可将接收到的音频数据转换后的电信号,传输到扬声器5061,由扬声器5061转换为声音信号输出;另一方面,传声器5062将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经RF电路501以发送给比如另一终端,或者将音频数据输出至存储器502以便进一步处理。音频电路506还可能包括耳塞插孔,以提供外设耳机与移动终端500的通信。The audio circuit 506 , the speaker 5061 and the microphone 5062 can provide an audio interface between the user and the mobile terminal 500 . The audio circuit 506 can transmit the electrical signal converted from the received audio data to the loudspeaker 5061, and the loudspeaker 5061 converts it into a sound signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 508, and then sent to another terminal through the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earphone jack to provide communication between an external earphone and the mobile terminal 500 .

WiFi属于短距离无线传输技术,移动终端500通过WiFi模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块507,但是可以理解的是,其并不属于移动终端500的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile terminal 500 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 507, which provides users with wireless broadband Internet access. Although FIG. 5 shows a WiFi module 507, it can be understood that it is not an essential component of the mobile terminal 500, and can be completely omitted as required without changing the essence of the invention.

处理器508是移动终端500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行移动终端500的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器508可包括一个或多个处理核心;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。The processor 508 is the control center of the mobile terminal 500, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502 , execute various functions and process data of the mobile terminal 500, so as to monitor the mobile phone as a whole. Optionally, the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 508 .

移动终端500还包括给各个部件供电的电源509(比如电池),优选的,电源可以通过电源管理系统与处理器508逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 500 also includes a power supply 509 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 508 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system. . The power supply 509 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

具体在本实施例中,移动终端设备的显示单元是触摸屏显示器,移动终端设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,该一个或者一个以上程序包含用于进行以下操作的指令:Specifically in this embodiment, the display unit of the mobile terminal device is a touch screen display, and the mobile terminal device also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be controlled by one or executed by one or more processors, the one or more programs containing instructions for:

获取待响铃闹钟的设置信息;Obtain the setting information of the alarm clock to ring;

当获取到的设置信息包括闹钟主题标识时,获取闹钟主题标识对应的闹钟主题资源,闹钟主题资源至少包括响铃页面资源或响铃视频资源;When the obtained setting information includes the alarm clock theme identifier, the alarm clock theme resource corresponding to the alarm clock theme identifier is obtained, and the alarm clock theme resource includes at least a ringing page resource or a ringing video resource;

根据闹钟主题资源响铃。Ring the bell according to the alarm theme resource.

可选的,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

当获取到的设置信息包括实时播放指示时,获取网络资源地址,该网络资源地址用于链接在线闹钟主题资源;When the obtained setting information includes a real-time playback instruction, obtain a network resource address, which is used to link the online alarm clock theme resource;

通过浏览器显示网络资源地址对应的网页,以采用在线闹钟主题资源响铃。The web page corresponding to the network resource address is displayed through the browser, so as to use the online alarm clock theme resource to ring the bell.

可选的,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

获取用户设定的第一网络资源地址;Obtain the address of the first network resource set by the user;

或者,or,

向服务器发送闹钟主题资源请求;Send an alarm theme resource request to the server;

接收服务器返回的第二网络资源地址,第二网络资源地址为服务器根据闹钟主题资源请求确定的。The second network resource address returned by the server is received, and the second network resource address is determined by the server according to the alarm theme resource request.

可选的,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

判断移动终端是否与互联网连接;Determine whether the mobile terminal is connected to the Internet;

当移动终端未与互联网连接时,获取设定的默认闹钟主题标识,根据默认闹钟主题标识对应的闹钟主题资源响铃。When the mobile terminal is not connected to the Internet, the set default alarm clock theme identifier is obtained, and the alarm clock theme resource corresponding to the default alarm clock theme identifier is used to ring the bell.

可选的,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

接收用户输入的一个或多个闹钟的设置信息。Receive the setting information of one or more alarm clocks input by the user.

可选的,该一个或者一个以上程序还包含用于进行以下操作的指令:Optionally, the one or more programs also include instructions for:

下载闹钟主题资源。Download the alarm clock theme resource.

本发明实施例通过获取待响铃闹钟的设置信息,设置信息包括闹钟主题,在待响铃闹钟响铃时,根据获取到的闹钟主题显示响铃页面。由于响铃页面的显示内容与闹钟的闹钟主题有关,不同闹钟的闹钟主题可能不同,因此不同闹钟的响铃页面的显示内容可以不同,响铃页面不是单一不变的,可以根据用户的需求进行个性化设置,提高了用户使用的舒适度。In the embodiment of the present invention, by acquiring the setting information of the alarm clock to be ringing, the setting information includes the theme of the alarm clock, and when the alarm clock is ringing, the ringing page is displayed according to the acquired theme of the alarm clock. Since the display content of the ring page is related to the alarm clock theme of the alarm clock, the alarm clock themes of different alarm clocks may be different, so the display content of the ring page of different alarm clocks can be different. Personalized settings improve user comfort.

需要说明的是:上述实施例提供的闹钟响铃装置在响铃时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的闹钟响铃装置与闹钟响铃方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the alarm clock ringing device provided by the above-mentioned embodiment is ringing, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. That is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the alarm clock ringing device provided in the above embodiments and the alarm clock ringing method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (9)

Translated fromChinese
1.一种闹钟响铃方法,其特征在于,所述方法包括:1. A kind of alarm clock ringing method is characterized in that, described method comprises:获取待响铃闹钟的设置信息;Obtain the setting information of the alarm clock to ring;当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,并根据所述闹钟主题资源响铃,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;When the acquired setting information includes the alarm clock theme identifier, acquire the alarm clock theme resource corresponding to the alarm clock theme identifier and stored in the mobile terminal, and ring the bell according to the alarm clock theme resource, and the alarm clock theme resource includes at least a bell Page resources or ringing video resources, the ringing page resource is used to provide a ringing page when the ringing time is reached, the ringing page includes a background picture and an option layout, and the ringing video resource is used to provide a ringing page when the ringing time is reached The video played when the bell rings;当获取到的所述设置信息包括实时播放指示时,判断所述移动终端是否与互联网连接;When the acquired setting information includes a real-time play instruction, determine whether the mobile terminal is connected to the Internet;当所述移动终端与所述互联网连接时,获取网络资源地址,并通过浏览器显示所述网络资源地址对应的网页,以采用在线闹钟主题资源响铃,所述网络资源地址用于链接在线闹钟主题资源;When the mobile terminal is connected to the Internet, obtain the address of the network resource, and display the web page corresponding to the address of the network resource through the browser, so as to use the online alarm clock theme resource to ring the bell, and the address of the network resource is used to link the online alarm clock theme resources;当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。When the mobile terminal is not connected to the Internet, obtain a set default alarm clock theme identifier, and ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.2.根据权利要求1所述的方法,其特征在于,所述获取网络资源地址,采用如下方式:2. The method according to claim 1, wherein the acquisition of the network resource address is performed in the following manner:获取用户设定的第一网络资源地址;Obtain the address of the first network resource set by the user;或者,or,所述获取网络资源地址,采用如下方式:The acquisition of the network resource address is carried out in the following manner:向服务器发送闹钟主题资源请求;Send an alarm theme resource request to the server;接收所述服务器返回的第二网络资源地址,所述第二网络资源地址为所述服务器根据所述闹钟主题资源请求确定的。and receiving the second network resource address returned by the server, where the second network resource address is determined by the server according to the alarm theme resource request.3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, characterized in that the method further comprises:接收用户输入的一个或多个闹钟的设置信息。Receive the setting information of one or more alarm clocks input by the user.4.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:4. method according to claim 1 or 2, is characterized in that, described method also comprises:下载闹钟主题资源。Download the alarm clock theme resource.5.一种闹钟响铃装置,其特征在于,所述装置包括:5. A kind of alarm clock ringing device, is characterized in that, described device comprises:信息获取模块,用于获取待响铃闹钟的设置信息;An information acquisition module, configured to acquire the setting information of the alarm clock to ring;资源获取模块,用于当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;A resource acquisition module, configured to obtain an alarm clock theme resource corresponding to the alarm clock theme identifier stored in the mobile terminal when the acquired setting information includes an alarm clock theme identifier, and the alarm clock theme resource includes at least a ringing page resource or a ringing page resource. Ring video resource, the ring page resource is used to provide a ring page when the ring time is reached, the ring page includes a background picture, an option layout, and the ring video resource is used to provide a ringing page that is played when the ring time is reached video of响铃模块,用于根据所述闹钟主题资源响铃;A bell module, configured to ring the bell according to the alarm theme resource;地址获取模块,用于当获取到的所述设置信息包括实时播放指示时,获取网络资源地址,所述网络资源地址用于链接在线闹钟主题资源;An address obtaining module, configured to obtain a network resource address when the obtained setting information includes a real-time play instruction, and the network resource address is used to link an online alarm clock theme resource;所述响铃模块用于,通过浏览器显示所述网络资源地址对应的网页,以采用所述在线闹钟主题资源响铃;The ringing module is used to display the webpage corresponding to the network resource address through the browser, so as to ring the bell by using the online alarm clock theme resource;连接判断模块,用于在所述地址获取模块获取所述网络资源地址之前,判断所述移动终端是否与互联网连接;A connection judging module, configured to judge whether the mobile terminal is connected to the Internet before the address obtaining module obtains the address of the network resource;所述响铃模块用于,当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。The ringing module is used for, when the mobile terminal is not connected to the Internet, to acquire a set default alarm clock theme identifier, and to ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.6.根据权利要求5所述的装置,其特征在于,所述地址获取模块用于,6. The device according to claim 5, wherein the address acquisition module is used for:获取用户设定的第一网络资源地址;Obtain the address of the first network resource set by the user;或者,or,所述地址获取模块用于,The address obtaining module is used for,向服务器发送闹钟主题资源请求;Send an alarm theme resource request to the server;接收所述服务器返回的第二网络资源地址,所述第二网络资源地址为所述服务器根据所述闹钟主题资源请求确定的。and receiving the second network resource address returned by the server, where the second network resource address is determined by the server according to the alarm theme resource request.7.根据权利要求5或6所述的装置,其特征在于,所述装置还包括:7. The device according to claim 5 or 6, characterized in that the device further comprises:信息接收模块,用于接收用户输入的一个或多个闹钟的设置信息。The information receiving module is used to receive setting information of one or more alarm clocks input by the user.8.根据权利要求5或6所述的装置,其特征在于,所述装置还包括:8. The device according to claim 5 or 6, characterized in that the device further comprises:资源下载模块,用于下载闹钟主题资源。The resource download module is used to download alarm clock theme resources.9.一种移动终端,其特征在于,所述移动终端包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:9. A mobile terminal, characterized in that the mobile terminal includes a memory and one or more programs, wherein one or more programs are stored in the memory and are configured to be executed by one or more processors The one or more programs include instructions for:获取待响铃闹钟的设置信息;Obtain the setting information of the alarm clock to ring;当获取到的所述设置信息包括闹钟主题标识时,获取所述闹钟主题标识对应的保存在移动终端的闹钟主题资源,并根据所述闹钟主题资源响铃,所述闹钟主题资源至少包括响铃页面资源或响铃视频资源,所述响铃页面资源用于提供达到响铃时间时的响铃页面,所述响铃页面包括背景图片、选项布局,所述响铃视频资源用于提供达到响铃时间时播放的视频;When the acquired setting information includes the alarm clock theme identifier, acquire the alarm clock theme resource corresponding to the alarm clock theme identifier and stored in the mobile terminal, and ring the bell according to the alarm clock theme resource, and the alarm clock theme resource includes at least a bell Page resources or ringing video resources, the ringing page resource is used to provide a ringing page when the ringing time is reached, the ringing page includes a background picture and an option layout, and the ringing video resource is used to provide a ringing page when the ringing time is reached The video played when the bell rings;当获取到的所述设置信息包括实时播放指示时,判断所述移动终端是否与互联网连接;When the acquired setting information includes a real-time play instruction, determine whether the mobile terminal is connected to the Internet;当所述移动终端与所述互联网连接时,获取网络资源地址,所述网络资源地址用于链接在线闹钟主题资源,并通过浏览器显示所述网络资源地址对应的网页,以采用所述在线闹钟主题资源响铃;When the mobile terminal is connected to the Internet, obtain the network resource address, the network resource address is used to link the online alarm clock theme resource, and display the web page corresponding to the network resource address through the browser, so as to adopt the online alarm clock theme resource bell;当所述移动终端未与所述互联网连接时,获取设定的默认闹钟主题标识,根据所述默认闹钟主题标识对应的闹钟主题资源响铃。When the mobile terminal is not connected to the Internet, obtain a set default alarm clock theme identifier, and ring an alarm clock theme resource corresponding to the default alarm clock theme identifier.
CN201310390622.5A2013-08-302013-08-30 A kind of alarm clock ringing method, device and mobile terminalActiveCN103491240B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310390622.5ACN103491240B (en)2013-08-302013-08-30 A kind of alarm clock ringing method, device and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310390622.5ACN103491240B (en)2013-08-302013-08-30 A kind of alarm clock ringing method, device and mobile terminal

Publications (2)

Publication NumberPublication Date
CN103491240A CN103491240A (en)2014-01-01
CN103491240Btrue CN103491240B (en)2017-03-01

Family

ID=49831190

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310390622.5AActiveCN103491240B (en)2013-08-302013-08-30 A kind of alarm clock ringing method, device and mobile terminal

Country Status (1)

CountryLink
CN (1)CN103491240B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104065831A (en)*2014-07-112014-09-24华为软件技术有限公司Mobile terminal alarm clock implementation method and device
CN104822214A (en)*2015-05-292015-08-05桂林电子科技大学Intelligent light controller
CN106331285A (en)*2015-06-162017-01-11中兴通讯股份有限公司Alarm clock reminding method and device
CN106953970A (en)*2017-03-142017-07-14广东欧珀移动通信有限公司 Method, device and audio playback device for starting and broadcasting an alarm clock using network resources
CN109116718B (en)*2018-06-292021-10-22上海掌门科技有限公司 Method and device for setting alarm clock
CN110191237B (en)*2019-07-082020-09-15中国联合网络通信集团有限公司Terminal alarm clock setting method and terminal
CN111694535B (en)*2020-06-122023-08-29广州酷狗计算机科技有限公司Alarm clock information display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101640719A (en)*2008-07-302010-02-03深圳富泰宏精密工业有限公司Alarm clock task management system and method
CN101951435A (en)*2010-09-072011-01-19宇龙计算机通信科技(深圳)有限公司Alarm clock reminding method, device and mobile terminal
CN103167124A (en)*2012-07-242013-06-19深圳市金立通信设备有限公司System and method using microblog to achieve mobile phone alarm clock reminding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101640719A (en)*2008-07-302010-02-03深圳富泰宏精密工业有限公司Alarm clock task management system and method
CN101951435A (en)*2010-09-072011-01-19宇龙计算机通信科技(深圳)有限公司Alarm clock reminding method, device and mobile terminal
CN103167124A (en)*2012-07-242013-06-19深圳市金立通信设备有限公司System and method using microblog to achieve mobile phone alarm clock reminding

Also Published As

Publication numberPublication date
CN103491240A (en)2014-01-01

Similar Documents

PublicationPublication DateTitle
CN104243671B (en)Volume adjusting method, device and electronic equipment
CN106686396B (en)Method and system for switching live broadcast room
CN103491240B (en) A kind of alarm clock ringing method, device and mobile terminal
WO2016150331A1 (en)Method and device for operating game client
CN104348943B (en)A kind of method and apparatus of incoming call prompting
WO2017008569A1 (en)Message updating method, apparatus, and terminal
WO2018120905A1 (en)Message reminding method for terminal, and terminal
WO2014206138A1 (en)Webpage data update method, apparatus and terminal device
CN103744574A (en) A method and device for turning off an alarm clock for a mobile terminal, and the mobile terminal
HK1204373A1 (en)A launch control method and apparatus for application programs
CN108834132A (en) A data transmission method and device and related media products
CN106658354A (en)Data transmission method and equipment
CN105959482A (en)Scene sound effect control method and electronic device
CN107104930A (en)It is a kind of that the methods, devices and systems for checking authority are set
CN104660769B (en)A kind of methods, devices and systems for adding associated person information
CN107463395B (en)Component calling method and device
CN115686514A (en) React-based authority control method, device, electronic equipment and storage medium
CN105808716A (en) Alarm clock reminder method, device and terminal
KR101876394B1 (en)Method and device for playing media data on a terminal
CN106330875B (en)Message display method and device
CN105282628B (en)A kind of method and apparatus of video playing
CN105094869B (en)Target program determines method and device
CN106850957A (en)Method, device and mobile terminal that applicative notifications are managed
CN106454953A (en) Flow control method, device and terminal
CN106210325B (en) A method, device and terminal for setting ringtones for social applications

Legal Events

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

[8]ページ先頭

©2009-2025 Movatter.jp