<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eclipse Mosquitto (Posts about Mobile)</title><link>https://mosquitto.org/</link><description></description><atom:link href="https://mosquitto.org/blog/categories/mobile.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:roger@atchoo.org"&gt;Mosquitto Project&lt;/a&gt; </copyright><lastBuildDate>Mon, 02 Feb 2026 17:08:21 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Android MQTT example project</title><link>https://mosquitto.org/blog/2011/11/android-mqtt-example-project/</link><dc:creator>Mosquitto Project</dc:creator><description>&lt;p&gt;To celebrate the news that the IBM Java MQTT client implementation will be
released as open source, I've put together a simple Android example based on
the &lt;a href="http://dalelane.co.uk/blog/?p=1599"&gt;MQTT service code written by Dale Lane&lt;/a&gt;. I'm a beginner at both Java and
Android, so expect it to be a bit rough.&lt;/p&gt;
&lt;p&gt;The example displays incoming payload text on a text label. It's a complete
project that you can build and install on your phone with only a few small
changes - search for "CHANGE ME" in
src/org/mosquitto/android/mqtt/MQTTDemo.java.&lt;/p&gt;
&lt;p&gt;To get the project working, assuming you've already installed the android sdk,
first get the IBM Java library (see &lt;a href="http://mqtt.org/software"&gt;http://mqtt.org/software&lt;/a&gt;) and put it in
&amp;lt;project dir&amp;gt;/lib then do the following:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;android update project -p &amp;amp;lt;path to project&amp;amp;gt;&lt;/span&gt;
&lt;span class="c"&gt;# If the update complains about build.xml - delete it and run again&lt;/span&gt;
&lt;span class="n"&gt;cd &amp;amp;lt;path to project&amp;amp;gt;&lt;/span&gt;
&lt;span class="n"&gt;ant debug&lt;/span&gt;
&lt;span class="n"&gt;sudo adb start-server&lt;/span&gt;
&lt;span class="n"&gt;ant installd&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I'll not be at all surprised if there are problems in the project due to
different sdk or tool versions. Please comment if you find a problem.&lt;/p&gt;
&lt;p&gt;The project is available from
&lt;a href="http://mosquitto.org/files/examples/android-mqtt-example.zip"&gt;http://mosquitto.org/files/examples/android-mqtt-example.zip&lt;/a&gt;. Until the IBM
Java implementation is open source please be aware of the licence attached to
it.&lt;/p&gt;
&lt;p&gt;Thanks to Dale for the core Android MQTT service implementation.&lt;/p&gt;</description><category>Mobile</category><guid>https://mosquitto.org/blog/2011/11/android-mqtt-example-project/</guid><pubDate>Thu, 03 Nov 2011 14:54:30 GMT</pubDate></item><item><title>MQTT Power Usage on Android</title><link>https://mosquitto.org/blog/2011/10/mqtt-power-usage-on-android/</link><dc:creator>Mosquitto Project</dc:creator><description>&lt;p&gt;Stephen Nicholas has carried out some power usage analysis of MQTT on Android.
Details are at &lt;a href="http://stephendnicholas.com/archives/219"&gt;http://stephendnicholas.com/archives/219&lt;/a&gt; and the conclusion is
that it doesn't use much power.&lt;/p&gt;</description><category>Mobile</category><guid>https://mosquitto.org/blog/2011/10/mqtt-power-usage-on-android/</guid><pubDate>Sun, 16 Oct 2011 19:36:03 GMT</pubDate></item><item><title>Mosquitto on Maemo</title><link>https://mosquitto.org/blog/2011/02/mosquitto-on-maemo/</link><dc:creator>Mosquitto Project</dc:creator><description>&lt;p&gt;Yuvraaj Kelkar got in touch to say he's packaged up mosquitto and the client
libraries for Maemo. If you want to use MQTT on your Maemo device then take a
look at the details on &lt;a href="http://talk.maemo.org/showthread.php?t=69604"&gt;http://talk.maemo.org/showthread.php?t=69604&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks Yuvraaj!&lt;/p&gt;</description><category>Mobile</category><category>Packaging</category><guid>https://mosquitto.org/blog/2011/02/mosquitto-on-maemo/</guid><pubDate>Sun, 13 Feb 2011 22:06:04 GMT</pubDate></item><item><title>MQTT on Android</title><link>https://mosquitto.org/blog/2011/02/mqtt-on-android/</link><dc:creator>Mosquitto Project</dc:creator><description>&lt;p&gt;Dale Lane has written an enormous blog post [Using MQTT in Android Mobile
Applications in which he talks about a lot of the points you are likely to want
to consider if you're writing MQTT applications for Android. There's lots of
useful information and he even includes a complete source code
implementation.&lt;/p&gt;</description><category>Mobile</category><guid>https://mosquitto.org/blog/2011/02/mqtt-on-android/</guid><pubDate>Tue, 01 Feb 2011 15:19:37 GMT</pubDate></item></channel></rss>