{"id":16149,"date":"2026-03-12T11:12:01","date_gmt":"2026-03-12T09:12:01","guid":{"rendered":"https:\/\/wp.rncmobile.net\/?page_id=16149"},"modified":"2026-03-12T11:26:01","modified_gmt":"2026-03-12T09:26:01","slug":"intents-android","status":"publish","type":"page","link":"https:\/\/wp.rncmobile.net\/index.php\/intents-android\/","title":{"rendered":"Intents Android"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\"><strong>Contr\u00f4le du Cell Recorder via Broadcast Android<\/strong><\/span><\/p>\n<p>RNC Mobile permet de d\u00e9marrer et arr\u00eater le Cell Recorder (cartographie) via des intents broadcast Android. Cela permet l&rsquo;int\u00e9gration avec des applications tierces, des scripts shell, Tasker, ou toute autre automatisation.<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>Pr\u00e9requis<\/strong><\/span><\/p>\n<ul>\n<li>L&rsquo;application RNC Mobile doit \u00eatre <strong>ouverte ou en arri\u00e8re-plan<\/strong> (le service foreground doit tourner).<\/li>\n<li>L&rsquo;appareil doit avoir les <strong>permissions de localisation<\/strong> accord\u00e9es \u00e0 RNC Mobile.<\/li>\n<\/ul>\n<p><span style=\"font-size: 14pt;\"><strong>Commandes<\/strong><\/span><\/p>\n<p><strong>D\u00e9marrer le Cell Recorder<\/strong><\/p>\n<p><code>am broadcast -a org.rncteam.rncfreemobile.CELL_RECORDER_START org.rncteam.rncfreemobile<\/code><\/p>\n<p><strong>Arr\u00eater le Cell Recorder<\/strong><\/p>\n<p><code>am broadcast -a org.rncteam.rncfreemobile.CELL_RECORDER_STOP org.rncteam.rncfreemobile<\/code><\/p>\n<p><strong><span style=\"font-size: 14pt;\">V\u00e9rification<\/span><\/strong><\/p>\n<ul>\n<li>Le retour <code>Broadcast completed: result=0<\/code> indique que la commande a bien \u00e9t\u00e9 re\u00e7ue.<\/li>\n<li>L&rsquo;ic\u00f4ne de cartographie dans l&rsquo;application doit passer en mode actif\/inactif.<\/li>\n<li>L&rsquo;ic\u00f4ne GPS (position) dans la barre d&rsquo;\u00e9tat Android s&rsquo;active\/d\u00e9sactive.<\/li>\n<\/ul>\n<p><strong><span style=\"font-size: 14pt;\">Exemple avec Tasker<\/span><\/strong><\/p>\n<ol>\n<li>Cr\u00e9er une nouvelle <strong>T\u00e2che<\/strong><\/li>\n<li>Ajouter l&rsquo;action <strong>Syst\u00e8me &gt; Envoyer une intention (Send Intent)<\/strong><\/li>\n<li>Configurer :<br \/>\n&#8211; <strong>Action<\/strong> : <code>org.rncteam.rncfreemobile.CELL_RECORDER_START<\/code> (ou <code>_STOP<\/code>)<br \/>\n&#8211; <strong>Package<\/strong> : <code>org.rncteam.rncfreemobile<\/code><br \/>\n&#8211; <strong>Cible<\/strong> : Broadcast Receiver<\/li>\n<\/ol>\n<p><strong><span style=\"font-size: 14pt;\">Remarques<\/span><\/strong><\/p>\n<ul>\n<li>Si l&rsquo;application est compl\u00e8tement ferm\u00e9e (pas de service en arri\u00e8re-plan), le broadcast sera re\u00e7u mais le cell recorder ne pourra pas fonctionner correctement. Assurez-vous que le service RNC Mobile tourne.<\/li>\n<li>Les zones d&rsquo;exclusion GPS restent actives : si vous \u00eates dans une zone d&rsquo;exclusion, l&rsquo;enregistrement sera en pause m\u00eame apr\u00e8s un d\u00e9marrage via broadcast.<\/li>\n<li>Le broadcast fonctionne depuis un terminal ADB, un shell root, ou toute application ayant la capacit\u00e9 d&rsquo;envoyer des intents.<\/li>\n<\/ul>\n<p><strong><span style=\"font-size: 14pt;\">Quelques exemples d&rsquo;utilisation<\/span><\/strong><\/p>\n<p><strong>Tasker : d\u00e9marrage automatique en voiture<\/strong><\/p>\n<ol>\n<li><strong>Profil<\/strong> : \u00c9tat &gt; R\u00e9seau &gt; Bluetooth connect\u00e9 &gt; s\u00e9lectionner le kit mains-libres de la voiture<\/li>\n<li><strong>T\u00e2che d&rsquo;entr\u00e9e<\/strong> (connexion Bluetooth) :<br \/>\n&#8211; Action : Syst\u00e8me &gt; Envoyer une intention<br \/>\n&#8211; Action : <code>org.rncteam.rncfreemobile.CELL_RECORDER_START<\/code><br \/>\n&#8211; Package : <code>org.rncteam.rncfreemobile<\/code><br \/>\n&#8211; Cible : Broadcast Receiver<\/li>\n<li><strong>T\u00e2che de sortie<\/strong> (d\u00e9connexion Bluetooth) :<br \/>\n&#8211; M\u00eame configuration avec <code>org.rncteam.rncfreemobile.CELL_RECORDER_STOP<\/code><\/li>\n<\/ol>\n<p><strong>Tasker : cartographie uniquement en d\u00e9placement<\/strong><\/p>\n<ol>\n<li><strong>Profil<\/strong> : \u00c9tat &gt; Capteurs &gt; Vitesse &gt; sup\u00e9rieure \u00e0 5 km\/h<\/li>\n<li><strong>T\u00e2che d&rsquo;entr\u00e9e<\/strong> : Envoyer l&rsquo;intent <code>CELL_RECORDER_START<\/code><\/li>\n<li><strong>T\u00e2che de sortie<\/strong> : Envoyer l&rsquo;intent <code>CELL_RECORDER_STOP<\/code><\/li>\n<\/ol>\n<p><strong>MacroDroid<\/strong><\/p>\n<ol>\n<li><strong>D\u00e9clencheur<\/strong> : Connexion Wi-Fi perdue \/ Bluetooth connect\u00e9 \/ Localisation (g\u00e9ofence)<\/li>\n<li><strong>Action<\/strong> : Envoyer un broadcast<br \/>\n&#8211; Package : <code>org.rncteam.rncfreemobile<\/code><br \/>\n&#8211; Action : <code>org.rncteam.rncfreemobile.CELL_RECORDER_START<\/code> ou <code>_STOP<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Contr\u00f4le du Cell Recorder via Broadcast Android RNC Mobile permet de d\u00e9marrer et arr\u00eater le Cell Recorder (cartographie) via des intents broadcast Android. Cela permet l&rsquo;int\u00e9gration avec des applications tierces, des scripts shell, Tasker, ou toute autre automatisation. Pr\u00e9requis L&rsquo;application RNC Mobile doit \u00eatre ouverte ou en arri\u00e8re-plan (le service foreground doit tourner). L&rsquo;appareil doit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-16149","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/pages\/16149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/comments?post=16149"}],"version-history":[{"count":7,"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/pages\/16149\/revisions"}],"predecessor-version":[{"id":16156,"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/pages\/16149\/revisions\/16156"}],"wp:attachment":[{"href":"https:\/\/wp.rncmobile.net\/index.php\/wp-json\/wp\/v2\/media?parent=16149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}