{"id":827,"date":"2011-03-20T16:40:31","date_gmt":"2011-03-20T05:40:31","guid":{"rendered":"http:\/\/www.madox.net\/blog\/?p=827"},"modified":"2011-03-20T16:40:31","modified_gmt":"2011-03-20T05:40:31","slug":"experiment-with-phonegap-awesome","status":"publish","type":"post","link":"https:\/\/www.madox.net\/blog\/2011\/03\/20\/experiment-with-phonegap-awesome\/","title":{"rendered":"Experiment with PhoneGap &#8211; Awesome"},"content":{"rendered":"<p>The backstory is that I created the Mecanum Wheel Rover with a web interface with intention that it can be cross platform. \u00a0Every phone\/mobile can view the web right? \u00a0Then there are those wonderful APIs for accessing device hardware such as accelerometers and compass so they can be useful inputs too. \u00a0Therein lies the problem, other than iOS 4.3+, there&#8217;s almost no support for the DeviceMotion APIs, it is not even in Android 2.3!<\/p>\n<p>I made a &#8216;vague commitment&#8217; (hehe) to provide an App that would use the accelerometer to drive the Rover. \u00a0Little did I know how annoying it was that almost all code examples\/tutorials online are made irrelevant by the ever changing Android API set. \u00a0Almost giving up, \u00a0I ran into &#8216;<a href=\"http:\/\/www.phonegap.com\/\" target=\"_blank\">PhoneGap<\/a>&#8216;.<\/p>\n<p>PhoneGap is a mobile framework that allows use of HTML+CSS+Javascript to be built into a &#8216;native app&#8217;, for\u00a0iOS, Android, Blackberry, Palm, Windows Mobile\/Phone, Symbian&#8230; yes it targets them all! \u00a0Sure there&#8217;ll be some missing features here and there but WOW!<\/p>\n<p>To keep it short, the wow factor continues with :-<\/p>\n<ul>\n<li>There&#8217;s documentation! \u00a0DECENT DOCUMENTATION!<\/li>\n<li>There are code examples! \u00a0WORKING CODE EXAMPLES!<\/li>\n<li>Comprehensive get started tutorial for Android\/iOS.<\/li>\n<li>It took me less than 30 minutes from download to simple code running on the phone that remote controlled the Rover! \u00a0Seriously, I think the iOS\/Android SDKs take longer to install. \u00a0(Oh cheating&#8230; I had the SDK installed already).<\/li>\n<\/ul>\n<p>It looks like it is building up a decent user base, go check it out.<\/p>\n<p>Oh and here&#8217;s the quick &amp; nasty app in action :<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"425\" height=\"350\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/fjSNTQz6b7Q\" \/><embed type=\"application\/x-shockwave-flash\" width=\"425\" height=\"350\" src=\"http:\/\/www.youtube.com\/v\/fjSNTQz6b7Q\"><\/embed><\/object><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The backstory is that I created the Mecanum Wheel Rover with a web interface with intention that it can be cross platform. \u00a0Every phone\/mobile can view the web right? \u00a0Then there are those wonderful APIs for accessing device hardware such as accelerometers and compass so they can be useful inputs too. \u00a0Therein lies the problem, &hellip; <a href=\"https:\/\/www.madox.net\/blog\/2011\/03\/20\/experiment-with-phonegap-awesome\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Experiment with PhoneGap &#8211; Awesome&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-engineering"],"_links":{"self":[{"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":7,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/827\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}