{"id":763,"date":"2014-04-14T04:00:35","date_gmt":"2014-04-14T04:00:35","guid":{"rendered":"http:\/\/192.168.3.4\/?p=763"},"modified":"2018-01-09T06:48:47","modified_gmt":"2018-01-09T14:48:47","slug":"android-sensors","status":"publish","type":"post","link":"https:\/\/www.cloudacm.com\/?p=763","title":{"rendered":"Android Sensors"},"content":{"rendered":"<p><strong>Beyond &#8220;Hello World&#8221;<\/strong><\/p>\n<p>The thrill of creating my first Android app was short lived.\u00a0 The ADK is vast and I have no outline or road map that comforts a spoon fed student.\u00a0 The real reason for taking a stab at smart phone app development was to get at those sensors and store the readings.\u00a0 This is going to require user input, screen output, sensor readings, and data storage.<\/p>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=G4Pg4RaxFgg\"><strong>In Search Of<\/strong><\/a><\/p>\n<p>The simple task of reading sensors proved to be a challenging one.\u00a0 There is so much information available on the topic, the NOOBS typically search the wrong phrase with dead end results.\u00a0 Time is a luxury for me and each attempt has to produce some meaningful result.<\/p>\n<p><strong>Back to my notes<\/strong><\/p>\n<p>I decided to look at more of the tutorials that AndroidPreK offered.\u00a0 The user input steps and screen output portions seemed to be satisfied with the instruction.<br \/>\n<iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/QL5uaaOJQiE\" height=\"135\" width=\"240\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n<p><strong>Sensor readings<\/strong><\/p>\n<p>I looked and looked but the answer never really stood out at me.\u00a0 I found a Thai blog that had some information, but the video on <a href=\"http:\/\/www.youtube.com\/watch?v=19Xy4vHUbfw\">Youtube<\/a> failed to run on my browser.\u00a0 Good golly Ms Molly!\u00a0 After getting congressional approval, I was able to finally load the <a href=\"http:\/\/translate.google.com\/translate?hl=en&amp;sl=th&amp;u=http:\/\/www.akexorcist.com\/2013\/03\/light-sensor.html&amp;prev=\/search%3Fq%3Dhttp:\/\/www.akexorcist.com\/2013\/03\/light-sensor.html%26biw%3D1280%26bih%3D904\">page in Google with translation<\/a>.\u00a0 The real gem of the blog was the code shared at the bottom.\u00a0 About Time!\u00a0 I was able to import into Eclipse and get a better understanding what all the other search results were talking about.\u00a0 The code was the bridge.\u00a0 Thank you <a href=\"http:\/\/www.youtube.com\/user\/akexorcis\">Ake<\/a> <a href=\"http:\/\/www.akexorcist.com\/\">Exorcist<\/a>.<\/p>\n<p><strong>Bridge over troubled waters<\/strong><\/p>\n<p>The new sensor code emboldened me to do some more searching. \u00a0The sensor list wasn&#8217;t comprehensive for my variety of Android phones. \u00a0All of the phones contain microphones, yet this simple oversight was made with the sample sensor code. \u00a0If the code I found earlier was the bridge, then my discovery of <a href=\"http:\/\/www.techbitar.com\/sensoduino.html\">SensoDuino<\/a> was the express lane across it. \u00a0<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.techbitar.android.sensoduino\">This app<\/a> really brought it all together. \u00a0<a href=\"http:\/\/www.youtube.com\/user\/techbitar\">Techbitar<\/a> had done the leg work, this is exactly what this quarter is about!<\/p>\n<p><strong>What is on the other side?<\/strong><\/p>\n<p>It seemed like the phone integration was unavoidable, now I know it is. \u00a0I have seen too many demos of applications, such as the smart helmet, the pollution sensor, and now the Arduino. \u00a0This sensor fusion is pervasive and these devices are showing up everywhere, not just in phones, but in cars, structures, appliances, and roads. \u00a0In the 2 short weeks of this quarter, I have been fortunate to make such headway.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/C7JQ7Rpwn2k\" height=\"135\" width=\"240\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n<p>Now I feel more at ease about branching out and <a href=\"http:\/\/www.youtube.com\/watch?v=0nOlr9eKyes\">researching how this data is presented<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Beyond &#8220;Hello World&#8221; The thrill of creating my first Android app was short lived.\u00a0 The ADK is vast and I have no outline or road map that comforts a spoon fed student.\u00a0 The real reason for taking a stab at smart phone app development was to get at those sensors and store the readings.\u00a0 This is going to require user input, screen output, sensor readings, and data storage. In Search Of The simple task of reading sensors proved to be&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.cloudacm.com\/?p=763\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-android","category-rd"],"_links":{"self":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=763"}],"version-history":[{"count":21,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":804,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions\/804"}],"wp:attachment":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}