<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.cedricbonhomme.org/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>cedric's bazaar - android</title>
        <description></description>
        <link>https://wiki.cedricbonhomme.org/</link>
        <lastBuildDate>Sat, 16 May 2026 05:24:03 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.cedricbonhomme.org/_media/wiki:dokuwiki.svg</url>
            <title>cedric's bazaar</title>
            <link>https://wiki.cedricbonhomme.org/</link>
        </image>
        <item>
            <title>scripts</title>
            <link>https://wiki.cedricbonhomme.org/android:scripts?rev=1754693476&amp;do=diff</link>
            <description>
&lt;p&gt;
These scripts require the installation of &lt;a href=&quot;https://github.com/damonkohler/sl4a&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/damonkohler/sl4a&quot; rel=&quot;ugc nofollow&quot;&gt; SL4A&lt;/a&gt;.
&lt;/p&gt;

&lt;h1 class=&quot;sectionedit1&quot; id=&quot;python&quot;&gt;Python&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;python&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;92-112&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;location&quot;&gt;Location&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code python&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;import&lt;/span&gt; android&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;time&lt;/span&gt;
droid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; android.&lt;span class=&quot;me1&quot;&gt;Android&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
droid.&lt;span class=&quot;me1&quot;&gt;startLocating&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw3&quot;&gt;time&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;sleep&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;True&lt;/span&gt;:
    l &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; droid.&lt;span class=&quot;me1&quot;&gt;readLocation&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;result&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;co1&quot;&gt;# provider = network or GPS&lt;/span&gt;
    latitude &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; l&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'network'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'latitude'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
    longitude &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; l&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'network'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'longitude'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;print&lt;/span&gt; latitude&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; longitude
&amp;nbsp;
    &lt;span class=&quot;kw3&quot;&gt;time&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;sleep&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;tags&quot;&gt;&lt;span&gt;
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/cs_lang:python&quot; class=&quot;wikilink1&quot; title=&quot;cs_lang:python&quot; rel=&quot;tag&quot;&gt;python&lt;/a&gt;,
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/tag:python?do=showtag&amp;amp;tag=python&quot; class=&quot;wikilink1&quot; title=&quot;tag:python&quot; rel=&quot;tag&quot;&gt;python&lt;/a&gt;,
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/tag:gps?do=showtag&amp;amp;tag=gps&quot; class=&quot;wikilink1&quot; title=&quot;tag:gps&quot; rel=&quot;tag&quot;&gt;gps&lt;/a&gt;,
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/tag:location?do=showtag&amp;amp;tag=location&quot; class=&quot;wikilink1&quot; title=&quot;tag:location&quot; rel=&quot;tag&quot;&gt;location&lt;/a&gt;,
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/tag:android?do=showtag&amp;amp;tag=android&quot; class=&quot;wikilink1&quot; title=&quot;tag:android&quot; rel=&quot;tag&quot;&gt;android&lt;/a&gt;,
	&lt;a href=&quot;https://wiki.cedricbonhomme.org/tag:google?do=showtag&amp;amp;tag=google&quot; class=&quot;wikilink1&quot; title=&quot;tag:google&quot; rel=&quot;tag&quot;&gt;google&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Location&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;location&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;113-&amp;quot;} --&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 08 Aug 2025 22:51:16 +0000</pubDate>
        </item>
    </channel>
</rss>
