<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Android-France &#187; reveil</title>
	<atom:link href="http://android-france.fr/tag/reveil/feed/" rel="self" type="application/rss+xml" />
	<link>http://android-france.fr</link>
	<description>Toute l&#039;actualité et la documentation sur l&#039;OS de Google</description>
	<lastBuildDate>Sun, 12 Feb 2012 18:10:29 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>WakeVoice &#8211; Le réveil customisable sous Android</title>
		<link>http://android-france.fr/2010/10/26/wakevoice-le-reveil-customisable-sous-android/</link>
		<comments>http://android-france.fr/2010/10/26/wakevoice-le-reveil-customisable-sous-android/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 21:46:34 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Actualité]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[flux]]></category>
		<category><![CDATA[matin]]></category>
		<category><![CDATA[meteo]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[reveil]]></category>
		<category><![CDATA[wakevoice]]></category>

		<guid isPermaLink="false">http://android-france.fr/?p=51753</guid>
		<description><![CDATA[WakeVoice application qui permet de customiser son reveil]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://android-france.fr/wp-content/uploads/2010/10/device30.png"><img class="size-full wp-image-51756 aligncenter" title="WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/uploads/2010/10/device30.png" alt="device30 WakeVoice   Le réveil customisable sous Android Android France" width="336" height="560" /></a></p>
<p style="text-align: center;">.</p>
<p><strong><a href="http://wakevoice.adnfxmobile.fr/">WakeVoice </a></strong>est une application qui vous permet de customiser votre réveil et de choisir comment et avec quelles news vous voulez vous lever le matin. Cette application utilise les possibilités vocales de votre téléphone dans les deux sens. Grâce à des commandes vocales, vous pourrez arrêter ou rééchelonner votre temps d&#8217;éveil.</p>
<p style="text-align: center;">[[Show as slideshow]]</p>
<p style="text-align: center;">.</p>
<p><strong>WakeVoice </strong>vous apporte également plusieurs autres fonctionnalités:</p>
<ul>
<li>Lire la météo du jours</li>
<li>Lire votre flux favori de news</li>
<li>Possibilité d’enregistrer ses propres commandes vocales pour arrêter et repousser le réveil</li>
<li>programmation de plusieurs alarmes, sur plusieurs jours, réglages des noms, volumes, délais&#8230;</li>
</ul>
<p>WakeVoice est disponible en deux versions sur Android Market.</p>
<p>Une version lite</p>
<p style="text-align: center;"><a href="http://android-france.fr/wp-content/uploads/2010/10/wakevoicelite.png"><img class="size-full wp-image-51754 aligncenter" title="WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/uploads/2010/10/wakevoicelite.png" alt="wakevoicelite WakeVoice   Le réveil customisable sous Android Android France" width="250" height="250" /></a></p>
<p>et une version payante à 2.77 dollars soit 2 euros.</p>
<p style="text-align: center;"><a href="http://android-france.fr/wp-content/uploads/2010/10/wakevoicefullqr.png"><img class="size-full wp-image-51755 aligncenter" title="WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/uploads/2010/10/wakevoicefullqr.png" alt="wakevoicefullqr WakeVoice   Le réveil customisable sous Android Android France" width="250" height="250" /></a></p>
<p style="text-align: center;">.</p>
<p style="text-align: center;">
<div class="ngg-galleryoverview" id="ngg-gallery-496-51753">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://android-france.fr/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=496&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-6577" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device10d.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device10d WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device10d.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6578" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device22.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device22 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device22.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6579" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device30.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device30 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device30.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6580" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device39.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device39 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device39.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6581" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device40.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device40 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device40.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-6582" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device52.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device52 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device52.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6583" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device60.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device60 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device60.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6584" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device66.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device66 WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device66.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-6585" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/wakevoice/device8a.png" title=" " class="shutterset_set_496" >
								<img title="WakeVoice   Le réveil customisable sous Android Android France" alt="thumbs device8a WakeVoice   Le réveil customisable sous Android Android France" src="http://android-france.fr/wp-content/gallery/wakevoice/thumbs/thumbs_device8a.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
<strong>Android France</strong> est hébergé par <a href="http://www.advalem.fr/" target="_blank">Ad Valem</a>.

<span style="font-weight: 800;">Retrouvez nous aussi sur </span><a href="http://actu.android-france.fr" target="_blank">Le micoblog</a> - <a href="http://android-france.fr/forum/" target="_blank">Le forum </a> - <a href="http://android-france.fr/2010/04/09/application-android-france/" target="_blank">L'application </a> - <a href="http://android-france.fr/comparateur/" target="_blank">Le comparateur</a> et bien sûr <a href="http://www.facebook.com/android.france" target="_blank">Facebook</a> - <a href="http://twitter.com/android_france" target="_blank">Twitter</a> - <a href="http://www.youtube.com/user/AndroidFrance" target="_blank">Youtube</a> - <a href="http://www.flickr.com/photos/40592948@N03/" target="_blank">Flickr</a> - <a href="http://www.google.com/profiles/webzine.android.france" target="_blank">Google Buzz</a>

<hr />

<span style="font-size: 11px;">© Guy pour <a href="http://android-france.fr">Android-France</a>, 2010. | <a href="http://android-france.fr/2010/10/26/wakevoice-le-reveil-customisable-sous-android/">Permalien</a> | <a href="http://android-france.fr/2010/10/26/wakevoice-le-reveil-customisable-sous-android/#comments">11 commentaires</a> |</span>

<small></small>]]></content:encoded>
			<wfw:commentRss>http://android-france.fr/2010/10/26/wakevoice-le-reveil-customisable-sous-android/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Motorola Milestone &#8211; Test du Dock</title>
		<link>http://android-france.fr/2010/02/08/motorola-milestone-dock/</link>
		<comments>http://android-france.fr/2010/02/08/motorola-milestone-dock/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 21:31:32 +0000</pubDate>
		<dc:creator>Cyril</dc:creator>
				<category><![CDATA[Accessoire]]></category>
		<category><![CDATA[Test de smartphone]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[Motorola]]></category>
		<category><![CDATA[Motorola milestone]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[reveil]]></category>
		<category><![CDATA[station d'accueil]]></category>
		<category><![CDATA[Vidéo]]></category>

		<guid isPermaLink="false">http://android-france.fr/?p=29265</guid>
		<description><![CDATA[Nous venons juste de recevoir le dock d'origine du Motorola Milestone et nous proposons un petit test pour ceux qui n'ont pas encore vu ce qu'il donnait.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://android-france.fr/wp-content/uploads/2010/02/station-d-accueil-Motorola-Milestone.jpg"><img class="size-full wp-image-29266 aligncenter" title="Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/uploads/2010/02/station-d-accueil-Motorola-Milestone.jpg" alt="station d accueil Motorola Milestone Motorola Milestone   Test du Dock Android France" width="560" height="420" /></a></p>
<p>Après une longue rupture de stock, ous venons juste de recevoir<strong> le dock d&#8217;origine du Motorola</strong> <strong>Milestone</strong> et nous proposons un petit test pour ceux qui n&#8217;ont pas encore vu ce qu&#8217;il donnait.</p>
<p><strong>La station d&#8217;accueil Motorola permet de transformer votre Motorola Milestone en réveil, en lecteur mp3 ou bien encore en cadre photo</strong>.</p>
<p style="text-align: center;"><a href="http://android-france.fr/wp-content/uploads/2010/02/Motorola-Milestone-Photo.jpg"><img class="size-full wp-image-29270 aligncenter" title="Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/uploads/2010/02/Motorola-Milestone-Photo.jpg" alt="Motorola Milestone Photo Motorola Milestone   Test du Dock Android France" width="560" height="420" /></a></p>
<p>Ne vous attendez pas à du streaming en bluetooth ou encore à une sortie TV, <strong>le dock propose le strict minimum</strong>, il recharge votre terminal via son <span style="text-decoration: underline;"><strong>unique</strong></span> prise microUSB.</p>
<p><strong>Un système magnétique permet au Motorola Milestone de détecter qu&#8217;il est connecté à sa station d&#8217;accueil</strong> et une surchouche logicielle se lance automatiquement. Cette application réduit la luminosité de l&#8217;écran et affiche entre autres  l&#8217;heure, la date (pour les réveil de soirées difficiles) et la météo.</p>
<p>On peut aussi se servir du dock pour lancer un enchaînement de photos ou encore écouter de la musique. Un bouton pour revenir à un niveau de luminosité normal et un accès rapide au réveil est aussi à l&#8217;écran.</p>
<p style="text-align: center;">
<p><a href="http://www.youtube.com/watch?v=dCo4z6C6xaw&#038;fmt=18">http://www.youtube.com/watch?v=dCo4z6C6xaw</a></p>
</p>
<p><strong>Bien que la station d&#8217;accueil soit de très bonne qualité et que sa finition soit parfaite</strong>, elle est quand même <span style="text-decoration: underline;"><strong>assez chère</strong></span> pour ce qu&#8217;elle propose. Pour ce qui est du packaging ne vous attendez à rien de bien consistant (même pas à un cable microUSB).</p>
<p>Vous pouvez consulter nos <a href="http://www.flickr.com/photos/40592948@N03/sets/72157623382030272/" target="_blank">photos en HD de la station d&#8217;accueil du Motorola Milestone sur la galerie Flickr</a>.</p>
<p style="text-align: center;">
<div class="ngg-galleryoverview" id="ngg-gallery-215-29265">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://android-france.fr/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=215&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-2973" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h17.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h17 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h17.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2974" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h19.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h19 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h19.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2975" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h19_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h19 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h19_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2976" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h19_2.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h19 2 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h19_2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2977" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h19_3.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h19 3 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h19_3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-2978" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h20.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h20 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h20.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2979" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h21.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h21 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h21.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2980" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h22.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h22 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h22.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2981" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h25.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h25 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h25.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2982" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h27.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h27 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h27.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-2983" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h27_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h27 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h27_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2984" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h28.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h28 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h28.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2985" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h28_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h28 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h28_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2986" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h29.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h29 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h29.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2987" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h29_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h29 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h29_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-2988" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h30.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h30 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h30.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2989" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h31.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h31 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h31.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2990" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h32.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h32 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h32.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2991" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h32_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h32 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h32_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2992" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h32_2.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h32 2 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h32_2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-2993" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h33.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h33 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h33.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2994" class="ngg-gallery-thumbnail-box" style="width:20%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/2010-02-08_21h33_1.jpg" title=" " class="shutterset_set_215" >
								<img title="Motorola Milestone   Test du Dock Android France" alt="thumbs 2010 02 08 21h33 1 Motorola Milestone   Test du Dock Android France" src="http://android-france.fr/wp-content/gallery/motorola-milestone-dock-test/thumbs/thumbs_2010-02-08_21h33_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
<p style="text-align: center;">.</p>
<strong>Android France</strong> est hébergé par <a href="http://www.advalem.fr/" target="_blank">Ad Valem</a>.

<span style="font-weight: 800;">Retrouvez nous aussi sur </span><a href="http://actu.android-france.fr" target="_blank">Le micoblog</a> - <a href="http://android-france.fr/forum/" target="_blank">Le forum </a> - <a href="http://android-france.fr/2010/04/09/application-android-france/" target="_blank">L'application </a> - <a href="http://android-france.fr/comparateur/" target="_blank">Le comparateur</a> et bien sûr <a href="http://www.facebook.com/android.france" target="_blank">Facebook</a> - <a href="http://twitter.com/android_france" target="_blank">Twitter</a> - <a href="http://www.youtube.com/user/AndroidFrance" target="_blank">Youtube</a> - <a href="http://www.flickr.com/photos/40592948@N03/" target="_blank">Flickr</a> - <a href="http://www.google.com/profiles/webzine.android.france" target="_blank">Google Buzz</a>

<hr />

<span style="font-size: 11px;">© Cyril pour <a href="http://android-france.fr">Android-France</a>, 2010. | <a href="http://android-france.fr/2010/02/08/motorola-milestone-dock/">Permalien</a> | <a href="http://android-france.fr/2010/02/08/motorola-milestone-dock/#comments">21 commentaires</a> |</span>

<small></small>]]></content:encoded>
			<wfw:commentRss>http://android-france.fr/2010/02/08/motorola-milestone-dock/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Tutoriel &#124; Faire vibrer le téléphone et lire mp3 au moment du reveil</title>
		<link>http://android-france.fr/2010/01/10/tutoriel-faire-vibrer-le-telephone-et-lire-mp3-au-moment-du-reveil/</link>
		<comments>http://android-france.fr/2010/01/10/tutoriel-faire-vibrer-le-telephone-et-lire-mp3-au-moment-du-reveil/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:48:42 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Developpement]]></category>
		<category><![CDATA[Tuto développement]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[reveil]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://android-france.fr/?p=25972</guid>
		<description><![CDATA[Rajouter du son dans votre réveil]]></description>
			<content:encoded><![CDATA[<p><em>Ce tutoriel est réalisé et proposé par </em>bunjix<em>, développeur d’application sous Android. Vous pouvez voir son blog sur</em><a href="http://bunjix.fr/services" target="_blank"><em> </em>http://bunjix.fr</a><em>.</em></p>
<p>On m’a demander il y a quelque temps de faire un complément du tutoriel sur <em><em><a title="Permanent Link to Développez votre propre réveil (Alarme) avec votre android phone" rel="bookmark" href="../2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/">Développez votre propre réveil (Alarme) avec votre android phone</a></em></em>. Dans ce tutoriel j’expliquais comment créer un réveil à une heure voulue. Le manque était qu’au réveil, il y avait juste un message qui s’affichait (c’était juste pour illustrer le tutoriel).</p>
<p>On va donc maintenant voir en deux parties comment ajouter des vibrations et du son.</p>
<p>Pour ajouter des vibrations lors du réveil il faut ajouter ce morceau de code (toujours dans la <em>méthode <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html#onReceive%28android.content.Context,%20android.content.Intent%29">onReceive</a></em>):</p>
<pre class="brush: java">
Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
//vibre pendant 1 seconde, puis attend 1/2 secondes avant de recommencer.
vibrator.vibrate(new long[]{0,1000,500,1000,2000}, -1);
// ou vibre pendant 2 secondes.
//vibrator.vibrate(2000);
</pre>
<h4>Explication</h4>
<ol>
<li> On récupère une instance du service Vibrator.</li>
<li>Pour faite vibrer le smartphone, il existe plusieurs surcharges de la méthode vibrate:
<ol>
<li>Faire vibrer en suivant un pattern : vibrator.vibrate(new long[]{0,1000,500,1000,2000}, -1).</li>
<li>Ici on fait vibrer de 0 à 1 seconde, puis une pause d’1/2 seconde, puis on recommence pendant 1 seconde.
<ol>
<li>Le second paramètre correspond au nombre de fois que l’on doit répéter la séquence (-1 pour ne pas répéter).</li>
<li>Le second paramètre correspond au nombre de fois que l’on doit répéter la séquence (-1 pour ne pas répéter).</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>Pour ajouter un son il faut déjà ajouter dans le répertoire res/raw (ou créer ce repertoire si il n’existe pas encore)  le fichier son que vous voulez lire. Ensuite, ajouter le code (toujours dans la méthode onRecive):</p>
<pre class="brush: java">

final MediaPlayer mp = MediaPlayer.create(context, R.raw.fichier_son);
mp.start();
Handler h = new Handler(){
@Override
public void handleMessage(Message msg) {
if(msg.what==0){
mp.stop();
}
super.handleMessage(msg);
}
};
Message m = new Message();
m.what = 0;
h.sendMessageDelayed(m, 10000);
</pre>
<h4>Explication</h4>
<ol>
<li>On commence par créer un objet <a href="http://developer.android.com/reference/android/media/MediaPlayer.html">MediaPlayer</a> à partir du context et du fichier de resource.</li>
<li>Puis on lance le son avec la méthode start();</li>
<li>Pour aller plus loin, j’ai ajouter un handler qui permet de stopper la lecture après 10 secondes en utilisant un <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a>.</li>
</ol>
<strong>Android France</strong> est hébergé par <a href="http://www.advalem.fr/" target="_blank">Ad Valem</a>.

<span style="font-weight: 800;">Retrouvez nous aussi sur </span><a href="http://actu.android-france.fr" target="_blank">Le micoblog</a> - <a href="http://android-france.fr/forum/" target="_blank">Le forum </a> - <a href="http://android-france.fr/2010/04/09/application-android-france/" target="_blank">L'application </a> - <a href="http://android-france.fr/comparateur/" target="_blank">Le comparateur</a> et bien sûr <a href="http://www.facebook.com/android.france" target="_blank">Facebook</a> - <a href="http://twitter.com/android_france" target="_blank">Twitter</a> - <a href="http://www.youtube.com/user/AndroidFrance" target="_blank">Youtube</a> - <a href="http://www.flickr.com/photos/40592948@N03/" target="_blank">Flickr</a> - <a href="http://www.google.com/profiles/webzine.android.france" target="_blank">Google Buzz</a>

<hr />

<span style="font-size: 11px;">© Guy pour <a href="http://android-france.fr">Android-France</a>, 2010. | <a href="http://android-france.fr/2010/01/10/tutoriel-faire-vibrer-le-telephone-et-lire-mp3-au-moment-du-reveil/">Permalien</a> | <a href="http://android-france.fr/2010/01/10/tutoriel-faire-vibrer-le-telephone-et-lire-mp3-au-moment-du-reveil/#comments">7 commentaires</a> |</span>

<small></small>]]></content:encoded>
			<wfw:commentRss>http://android-france.fr/2010/01/10/tutoriel-faire-vibrer-le-telephone-et-lire-mp3-au-moment-du-reveil/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Développez votre propre réveil (Alarme) avec votre android phone</title>
		<link>http://android-france.fr/2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/</link>
		<comments>http://android-france.fr/2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 23:57:40 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Developpement]]></category>
		<category><![CDATA[Tuto développement]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[reveil]]></category>
		<category><![CDATA[tuto]]></category>
		<category><![CDATA[Tutoriel]]></category>

		<guid isPermaLink="false">http://android-france.fr/?p=21556</guid>
		<description><![CDATA[Développer votre propre réveil avec votre Android phone]]></description>
			<content:encoded><![CDATA[<p><em>Ce tutoriel est réalisé et proposé par </em>bunjix<em>, développeur d&#8217;application sous Android. Vous pouvez voir son blog sur</em><a href="http://bunjix.fr/" target="_blank"><em> </em>http://bunjix.fr</a><em>.</em><span style="display: block; padding-left: 6em;"> </span></p>
<p>Dans ce tuto je vais créer un réveil simple. Le but est de montrer comment se passe l&#8217;activation d&#8217;une alarme à une heure voulue.</p>
<p>D’abord mon fichier XML pour l’affichage de mes informations (très simple)</p>
<pre class="brush: xml">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;RelativeLayout android:id=&quot;@+id/RelativeLayout01&quot;
    android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot;
    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:gravity=&quot;center&quot;&gt;
    &lt;CheckBox android:layout_height=&quot;wrap_content&quot;
        android:layout_width=&quot;fill_parent&quot; android:text=&quot;07:00&quot; android:id=&quot;@+id/heure&quot;
        android:textSize=&quot;40dip&quot; android:gravity=&quot;center&quot; android:onClick=&quot;changeHeure&quot; /&gt;
&lt;/RelativeLayout&gt;
</pre>
<p>Pour réaliser ce  réveil j’utilise la classe <a href="http://developer.android.com/reference/android/app/AlarmManager.html">AlarmManager</a>. Dans ma méthode onCreate j&#8217;ai 3 étapes:</p>
<p>1. Je charge les informations du réveil (voir plus bas pour l&#8217;explication).<br />
2. Je gère l&#8217;affichage<br />
3. Je planifie l&#8217;alarme.</p>
<pre class="brush: java">
@Override
public void onCreate(Bundle savedInstanceState) {
//Chargement des informations du reveil
charger();

super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//Affichage
affichage();

//Planification
planifierAlarm();
}
</pre>
<p>Pour que le réveil soit fonctionnel, je souhaite qu&#8217;il se réactive si je reboot mon téléphone. Il faut donc que je sauvegarde l&#8217;heure de mon réveil et ses informations. Pour cela j&#8217;ai créé une classe <strong>Alarm </strong>qui implémente <a href="http://developer.android.com/reference/java/io/Serializable.html">Serializable</a></p>
<p>Code classe Alarm</p>
<pre class="brush: java">

import java.io.Serializable;
import android.text.format.Time;

public class Alarm implements Serializable{
private static final long serialVersionUID = 1L;
private Time heure;
private boolean active;
public Time getHeure() {
return heure;
}
public void setHeure(Time heure) {
this.heure = heure;
}
public boolean isActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
}
}
</pre>
<p>Pour charger les informations du réveil, j&#8217;ai donc la fonction charger. La fonction tente de charger l&#8217;objet Alarm Serialisé dans le fichier alarm.serial.  Si ce fichier n&#8217;existe pas encore, on créer une alarm activé avec une heure fixée à 7h30.</p>
<pre class="brush: java">

public void charger(){
alarm = null;
try {
ObjectInputStream alarmOIS= new ObjectInputStream(openFileInput(&quot;alarm.serial&quot;));
alarm = (Alarm) alarmOIS.readObject();
alarmOIS.close();
}
catch(FileNotFoundException fnfe){
alarm = new Alarm();
alarm.setActive(true);
Time t = new Time();
t.hour = 7;
t.minute = 30;
alarm.setHeure(t);
}
catch(IOException ioe) {
ioe.printStackTrace();
}
catch(ClassNotFoundException cnfe) {
cnfe.printStackTrace();
}
}
</pre>
<p>Pour sauver les infos du réveil j&#8217;implémente la méthode<strong> sauver()</strong> :</p>
<pre class="brush: java">

public void sauver(){
try {
ObjectOutputStream alarmOOS= new ObjectOutputStream(openFileOutput(&quot;alarm.serial&quot;,MODE_WORLD_WRITEABLE));
alarmOOS.writeObject(alarm);
alarmOOS.flush();
alarmOOS.close();
}
catch(IOException ioe) {
ioe.printStackTrace();
}
}
</pre>
<p>Toujours dans mon Activity j&#8217;ai ma fonction affichage qui affiche simplement les informations du réveil (l&#8217;heure et l&#8217;état : activé/désactivé)</p>
<pre class="brush: java">

private void affichage() {
//Ici on a juste voulu créer un affichage de l&#039;heure qui soit au format hh:mm.
String heureReveil = &quot;&quot;;
heureReveil += alarm.getHeure().hour &gt;10 ? alarm.getHeure().hour : &quot;0&quot; + alarm.getHeure().hour;
heureReveil +=&quot;:&quot;;
heureReveil += alarm.getHeure().minute &gt;10 ? alarm.getHeure().minute : &quot;0&quot; + alarm.getHeure().minute;
CheckBox ck_alarm = (CheckBox)findViewById(R.id.heure);
ck_alarm.setText(heureReveil);
ck_alarm.setChecked(alarm.isActive());
}
</pre>
<p>Dans le fichier layout.xml qu&#8217;on peut voir au début, vous constaterez que pour la CheckBox, j&#8217;ai réglé l&#8217;attribut onClick (à partir de Android 1.6) avec la valeur changeHeure. Je dois donc implémenter la fonction :<br />
Cette fonction se déclenchera donc au clic sur la checkbox ou l&#8217;heure. Elle s&#8217;occupera d&#8217;activer l&#8217;alarme ou de la désactiver. Si l&#8217;alarme passe en mode activée alors on affichera un <a href="http://developer.android.com/reference/android/app/TimePickerDialog.html">TimePickerDialog</a> afin de choisir l&#8217;heure.<br />
Puis on replanifiera l&#8217;alarme.</p>
<pre class="brush: java">

public void changeHeure(View target){
CheckBox ck_alarm = (CheckBox)findViewById(R.id.heure);
//Si on active l&#039;alarm alors on veut choisir l&#039;heure.
if(ck_alarm.isChecked()){
TimePickerDialog dialog = new TimePickerDialog(this, this, alarm.getHeure().hour, alarm.getHeure().minute, true);
dialog.show();
}
//On replanifie l&#039;alarme.
planifierAlarm();
}
</pre>
<p>Le deuxième argument du constructeur du <a href="http://developer.android.com/reference/android/app/TimePickerDialog.html">TimePickerDialog </a>correspond au callback, le listener OnTimeSetListener qui se déclenche à la validation de la nouvelle heure.<br />
Notre activity implémente donc cette interface et nous avons donc la fonction OnTimeSet qui va changer l&#8217;heure de notre objet alarm et replanifier l&#8217;alarme.</p>
<pre class="brush: java">

@Override
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
Time t = new Time();
t.hour = hourOfDay;
t.minute = minute;
alarm.setHeure(t);
affichage();
planifierAlarm();
}
</pre>
<p>Pour finir avec notre activity, nous avons la fameuse fonction planifierAlarm. Cette fonction va simplement supprimer (si elle existe) puis ajouter notre alarme dans le service AlarmManager.<br />
Plusieurs étapes :</p>
<p>1. On récupère une instance du service AlarmManager<br />
2. On crée un Intent qui va être appelé au déclenchement de l&#8217;alarme.<br />
3. On crée le PendingIntent qui identifie notre Alarm avec un ALARM_ID (champ static de notre Activity)<br />
4. On annule l&#8217;alarme si elle existe dans l&#8217;AlarmManager<br />
5. Ajout de l&#8217;alarme</p>
<pre class="brush: java">

private void planifierAlarm() {
//Récupération de l&#039;instance du service AlarmManager.
AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);

//On instancie l&#039;Intent qui va être appelé au moment du reveil.
Intent intent = new Intent(this, AlarmReceiver.class);

//On créer le pending Intent qui identifie l&#039;Intent de reveil avec un ID et un/des flag(s)
PendingIntent pendingintent = PendingIntent.getBroadcast(this, ALARM_ID, intent, 0);

//On annule l&#039;alarm pour replanifier si besoin
am.cancel(pendingintent);

if(alarm.isActive()){
//on va déclencher un calcul pour connaitre le temps qui nous sépare du prochain reveil.
Calendar reveil  = Calendar.getInstance();
reveil.set(Calendar.HOUR_OF_DAY, alarm.getHeure().hour);
reveil.set(Calendar.MINUTE, alarm.getHeure().minute);
if(reveil.compareTo(Calendar.getInstance()) == -1)
reveil.add(Calendar.DAY_OF_YEAR, 1);
Calendar cal = Calendar.getInstance();
reveil.set(Calendar.SECOND, 0);
cal.set(Calendar.SECOND, 0);
long diff = reveil.getTimeInMillis() - cal.getTimeInMillis();

//On ajoute le reveil au service de l&#039;AlarmManager
am.set(AlarmManager.RTC_WAKEUP,cal.getTimeInMillis() + diff, pendingintent);
Toast.makeText(this, &quot;Alarme programmé le &quot; + reveil.get(Calendar.DAY_OF_MONTH) + &quot; à &quot; + reveil.get(Calendar.HOUR_OF_DAY) + &quot;:&quot; + reveil.get(Calendar.MINUTE), Toast.LENGTH_SHORT).show();
}
}
</pre>
<p>Il nous reste donc maintenant à écrire la classe AlarmReceiver qui va être déclenché au moment du réveil. Cette classe doit dériver de <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></p>
<pre class="brush: java">

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class AlarmReceiver extends BroadcastReceiver{

@Override
public void onReceive(Context context, Intent intent) {
try {
Toast.makeText(context, &quot;C&#039;est l&#039;heure !!!&quot;,Toast.LENGTH_LONG).show();
//On peut mettre ce que l&#039;on veut. Vibreur, lecture d&#039;un mp3 ou autre.
}
catch (Exception r) {
Toast.makeText(context, &quot;Erreur.&quot;,Toast.LENGTH_SHORT).show();
r.printStackTrace();
}
}
}
</pre>
<p>On peut également créer une autre classe AlarmBootReceiver qui va être déclenché au démarrage du téléphone afin de recharger notre réveil.<br />
Cette classe contient également les méthodes charger et planifierAlarm.</p>
<pre class="brush: java">

public class AlarmBootReceiver extends BroadcastReceiver{
Alarm alarm;
Context context;
@Override
public void onReceive(Context context, Intent intent) {
this.context = context;
charger();
planifierAlarm();
}

...
}
</pre>
<p>Dernière étape, le manifest :</p>
<pre class="brush: xml">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.bunjix.tuto.Reveil&quot;
      android:versionCode=&quot;1&quot;
      android:versionName=&quot;1.0&quot;&gt;
    &lt;application android:icon=&quot;@drawable/icon&quot; android:label=&quot;@string/app_name&quot;&gt;
        &lt;activity android:name=&quot;.Reveil&quot;
                  android:label=&quot;@string/app_name&quot; android:theme=&quot;@android:style/Theme.Light&quot;&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
&lt;receiver android:name=&quot;com.bunjix.tuto.Reveil.AlarmReceiver&quot; android:process=&quot;:remote&quot; /&gt;
&lt;receiver android:name=&quot;com.bunjix.tuto.Reveil.AlarmBootReceiver&quot;&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.BOOT_COMPLETED&quot; /&gt;
            &lt;/intent-filter&gt;
        &lt;/receiver&gt;
    &lt;/application&gt;
    &lt;uses-sdk android:minSdkVersion=&quot;4&quot; /&gt;

&lt;uses-permission android:name=&quot;android.permission.RECEIVE_BOOT_COMPLETED&quot;&gt;&lt;/uses-permission&gt;
&lt;/manifest&gt;
</pre>
<p><a href="http://android-france.fr/wp-content/uploads/2009/11/Tuto_Reveil.zip">code complet</a><em><br />
</em></p>
<p><em>Note de Guy : Ce tuto nous donne toute la panoplie des méthodes  pour réaliser un réveil.  merci à <a href="http://bunjix.fr">bunjix </a>pour ce tuto</em></p>
<strong>Android France</strong> est hébergé par <a href="http://www.advalem.fr/" target="_blank">Ad Valem</a>.

<span style="font-weight: 800;">Retrouvez nous aussi sur </span><a href="http://actu.android-france.fr" target="_blank">Le micoblog</a> - <a href="http://android-france.fr/forum/" target="_blank">Le forum </a> - <a href="http://android-france.fr/2010/04/09/application-android-france/" target="_blank">L'application </a> - <a href="http://android-france.fr/comparateur/" target="_blank">Le comparateur</a> et bien sûr <a href="http://www.facebook.com/android.france" target="_blank">Facebook</a> - <a href="http://twitter.com/android_france" target="_blank">Twitter</a> - <a href="http://www.youtube.com/user/AndroidFrance" target="_blank">Youtube</a> - <a href="http://www.flickr.com/photos/40592948@N03/" target="_blank">Flickr</a> - <a href="http://www.google.com/profiles/webzine.android.france" target="_blank">Google Buzz</a>

<hr />

<span style="font-size: 11px;">© Guy pour <a href="http://android-france.fr">Android-France</a>, 2009. | <a href="http://android-france.fr/2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/">Permalien</a> | <a href="http://android-france.fr/2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/#comments">14 commentaires</a> |</span>

<small></small>]]></content:encoded>
			<wfw:commentRss>http://android-france.fr/2009/11/26/developpez-votre-propre-reveil-alarme-avec-votre-android-phone/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
