{"id":3148,"date":"2011-10-24T14:53:45","date_gmt":"2011-10-24T12:53:45","guid":{"rendered":"http:\/\/www.gsm-modem.de\/M2M\/?p=3148"},"modified":"2011-10-24T21:51:40","modified_gmt":"2011-10-24T19:51:40","slug":"mqtt-iandroid-mobile-applications","status":"publish","type":"post","link":"http:\/\/www.gsm-modem.de\/M2M\/m2m-faq\/mqtt-iandroid-mobile-applications\/","title":{"rendered":"MQTT in Android mobile applications"},"content":{"rendered":"<h2>How to receive push notifications using MQTT in an Android mobile application<\/h2>\n<p>Dave Lane was so friendly to describe the using of the MQTT protocol with Android. Many thanks to Dave. It will save developers some time and hopefully one of them will make some more code, tips and hints public. The whole story of Dave here:<a href=\"http:\/\/dalelane.co.uk\/blog\/?p=1599\"><br \/>\nMQTT in an Android mobile application<\/a><\/p>\n<p>If somebody of you are looking for code in other programming languages then just have a look at<a title=\"Permanent Link to MQTT M2M protocol supported by Facebook\" rel=\"bookmark\" href=\"..\/m2m-news\/mqtt-m2m-protocol-facebook\/\"><br \/>\nMQTT M2M protocol supported by Facebook<\/a><\/p>\n<p>or spend some hours at<a title=\"Permanent Link to 1st Energy &amp; Smart Home Technology &amp; Metering Summit \u00e2\u20ac\u201c Oct. 26 in Munich\" rel=\"bookmark\" href=\"..\/m2m-events\/energy-smart-home-metering\/\"><br \/>\n<\/a><a href=\"http:\/\/www.gsm-modem.de\/M2M\/m2m-events\/energy-smart-home-metering\/\">1st Energy &amp; Smart Home Technology &amp; Metering Summit \u00e2\u20ac\u201c Oct. 26 in Munich<\/a><\/p>\n<p>I will stay in Munich and talk about the news in Smart-Home, Smart-Metering and Ambient Assisted Living. I also hope to have some interesting meetings with people that has need or interest for wireless communication. Nevertheless my presentation I finished some minutes ago.<\/p>\n<p>It contains the news Bluetooth Low Energy in Apple\u00c2\u00b4s iPhone 4S, the Near Field Communication in Google\u00c2\u00b4s Nexus Prime and the support of the M2M protocol MQTT with Facebook. I will talk about a weather station that is feeding Twitter and I will talk about the possibility to replace ZigBee and Z-Wave to a licence free protocol on 6LoWPAN. Google will hopefully come with a Open Source Protocol on 6LoWPAN until end of this year. Last but not least Google has chosen the Open Source evaluation platform Arduino and one of its clones to wire it to USB. Everybody can now create its own game controller for any Ardroid device. Or just wire the treat mill in the basement and to speed up the virtual starship on the smart-phone or tablet. Caption Kirk\u00c2\u00b4s Enterprise will gets its Warp 10 by running faster. \ud83d\ude42<br \/>\nOk, the Enterprise is Science-Fiction, but more than 100000 Open Source Arduino\u00c2\u00b4s in the field is it not. All owners of an Arduino got a licence free software library for connecting it to an Android tablet or smartphone. The power of an Open Source Operating System called Android was married with an Open Source evaluation platform for micro controllers called Arduino. Believe me or not but there is already Open Source code for MQTT on Ardunino as well.<\/p>\n<p>Do you have further questions and would like to start the development of  your own M2M app feeding Twitter, Facebook or Google+ right now? I  will be glad to share my more than 15 years in GSM and GPS plus 25  years in radio communication with you. Just send an e-mail by using the <a href=\"..\/m2m-news\/m2m-news\/contact-me\/\">form here<\/a> or by e-mail to harald.naumann (at) gsm-modem.de.<\/p>\n<div class=\"shariff shariff-align-left shariff-widget-align-left\"><ul class=\"shariff-buttons theme-default orientation-horizontal buttonsize-small\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=http%3A%2F%2Fwww.gsm-modem.de%2FM2M%2Fm2m-faq%2Fmqtt-iandroid-mobile-applications%2F&text=MQTT%20in%20Android%20mobile%20applications\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fwww.gsm-modem.de%2FM2M%2Fm2m-faq%2Fmqtt-iandroid-mobile-applications%2F\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button linkedin shariff-nocustomcolor\" style=\"background-color:#1488bf\"><a href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=http%3A%2F%2Fwww.gsm-modem.de%2FM2M%2Fm2m-faq%2Fmqtt-iandroid-mobile-applications%2F\" title=\"Share on LinkedIn\" aria-label=\"Share on LinkedIn\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0077b5; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#0077b5\" d=\"M6.2 11.2v17.7h-5.9v-17.7h5.9zM6.6 5.7q0 1.3-0.9 2.2t-2.4 0.9h0q-1.5 0-2.4-0.9t-0.9-2.2 0.9-2.2 2.4-0.9 2.4 0.9 0.9 2.2zM27.4 18.7v10.1h-5.9v-9.5q0-1.9-0.7-2.9t-2.3-1.1q-1.1 0-1.9 0.6t-1.2 1.5q-0.2 0.5-0.2 1.4v9.9h-5.9q0-7.1 0-11.6t0-5.3l0-0.9h5.9v2.6h0q0.4-0.6 0.7-1t1-0.9 1.6-0.8 2-0.3q3 0 4.9 2t1.9 6z\"\/><\/svg><\/span><span class=\"shariff-text\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button mailto shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"mailto:?body=http%3A%2F%2Fwww.gsm-modem.de%2FM2M%2Fm2m-faq%2Fmqtt-iandroid-mobile-applications%2F&subject=MQTT%20in%20Android%20mobile%20applications\" title=\"Send by email\" aria-label=\"Send by email\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#999\" d=\"M32 12.7v14.2q0 1.2-0.8 2t-2 0.9h-26.3q-1.2 0-2-0.9t-0.8-2v-14.2q0.8 0.9 1.8 1.6 6.5 4.4 8.9 6.1 1 0.8 1.6 1.2t1.7 0.9 2 0.4h0.1q0.9 0 2-0.4t1.7-0.9 1.6-1.2q3-2.2 8.9-6.1 1-0.7 1.8-1.6zM32 7.4q0 1.4-0.9 2.7t-2.2 2.2q-6.7 4.7-8.4 5.8-0.2 0.1-0.7 0.5t-1 0.7-0.9 0.6-1.1 0.5-0.9 0.2h-0.1q-0.4 0-0.9-0.2t-1.1-0.5-0.9-0.6-1-0.7-0.7-0.5q-1.6-1.1-4.7-3.2t-3.6-2.6q-1.1-0.7-2.1-2t-1-2.5q0-1.4 0.7-2.3t2.1-0.9h26.3q1.2 0 2 0.8t0.9 2z\"\/><\/svg><\/span><span class=\"shariff-text\">email<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button whatsapp shariff-nocustomcolor\" style=\"background-color:#5cbe4a\"><a href=\"https:\/\/api.whatsapp.com\/send?text=http%3A%2F%2Fwww.gsm-modem.de%2FM2M%2Fm2m-faq%2Fmqtt-iandroid-mobile-applications%2F%20MQTT%20in%20Android%20mobile%20applications\" title=\"Share on Whatsapp\" aria-label=\"Share on Whatsapp\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#34af23; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#34af23\" d=\"M17.6 17.4q0.2 0 1.7 0.8t1.6 0.9q0 0.1 0 0.3 0 0.6-0.3 1.4-0.3 0.7-1.3 1.2t-1.8 0.5q-1 0-3.4-1.1-1.7-0.8-3-2.1t-2.6-3.3q-1.3-1.9-1.3-3.5v-0.1q0.1-1.6 1.3-2.8 0.4-0.4 0.9-0.4 0.1 0 0.3 0t0.3 0q0.3 0 0.5 0.1t0.3 0.5q0.1 0.4 0.6 1.6t0.4 1.3q0 0.4-0.6 1t-0.6 0.8q0 0.1 0.1 0.3 0.6 1.3 1.8 2.4 1 0.9 2.7 1.8 0.2 0.1 0.4 0.1 0.3 0 1-0.9t0.9-0.9zM14 26.9q2.3 0 4.3-0.9t3.6-2.4 2.4-3.6 0.9-4.3-0.9-4.3-2.4-3.6-3.6-2.4-4.3-0.9-4.3 0.9-3.6 2.4-2.4 3.6-0.9 4.3q0 3.6 2.1 6.6l-1.4 4.2 4.3-1.4q2.8 1.9 6.2 1.9zM14 2.2q2.7 0 5.2 1.1t4.3 2.9 2.9 4.3 1.1 5.2-1.1 5.2-2.9 4.3-4.3 2.9-5.2 1.1q-3.5 0-6.5-1.7l-7.4 2.4 2.4-7.2q-1.9-3.2-1.9-6.9 0-2.7 1.1-5.2t2.9-4.3 4.3-2.9 5.2-1.1z\"\/><\/svg><\/span><span class=\"shariff-text\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button rss shariff-nocustomcolor\" style=\"background-color:#ff8c00\"><a href=\"http:\/\/www.gsm-modem.de\/M2M\/feed\/rss\/\" title=\"RSS feed\" aria-label=\"RSS feed\" role=\"button\" class=\"shariff-link\" style=\"; background-color:#fe9312; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fe9312\" d=\"M4.3 23.5c-2.3 0-4.3 1.9-4.3 4.3 0 2.3 1.9 4.2 4.3 4.2 2.4 0 4.3-1.9 4.3-4.2 0-2.3-1.9-4.3-4.3-4.3zM0 10.9v6.1c4 0 7.7 1.6 10.6 4.4 2.8 2.8 4.4 6.6 4.4 10.6h6.2c0-11.7-9.5-21.1-21.1-21.1zM0 0v6.1c14.2 0 25.8 11.6 25.8 25.9h6.2c0-17.6-14.4-32-32-32z\"\/><\/svg><\/span><span class=\"shariff-text\">RSS feed<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>How to receive push notifications using MQTT in an Android mobile application Dave Lane was so friendly to describe the using of the MQTT protocol with Android. Many thanks to Dave. It will save developers some time and hopefully one of them will make some more code, tips and hints public. The whole story of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[3],"tags":[73,40],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/posts\/3148"}],"collection":[{"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/comments?post=3148"}],"version-history":[{"count":10,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/posts\/3148\/revisions"}],"predecessor-version":[{"id":3156,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/posts\/3148\/revisions\/3156"}],"wp:attachment":[{"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/media?parent=3148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/categories?post=3148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gsm-modem.de\/M2M\/wp-json\/wp\/v2\/tags?post=3148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}