<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jappit.com &#187; api</title>
	<atom:link href="http://www.jappit.com/blog/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jappit.com/blog</link>
	<description>Mobile blog by Alessandro La Rosa</description>
	<lastBuildDate>Wed, 23 Nov 2011 10:38:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Samsung Bada Developers Day: all we need is&#8230; a new OS?</title>
		<link>http://www.jappit.com/blog/2010/03/17/samsung-bada-developers-day-all-we-need-is-a-new-os/</link>
		<comments>http://www.jappit.com/blog/2010/03/17/samsung-bada-developers-day-all-we-need-is-a-new-os/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 11:18:29 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[flash lite]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bada]]></category>
		<category><![CDATA[developers day]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=1345</guid>
		<description><![CDATA[Recently I had the opportunity of attending the Samsung Bada Developers Day in Milan, and I would like to share my first impressions about the Bada OS. First of all, let&#8217;s say that Bada is all but a new OS: Bada is actually a refactored and readapted version of the OS used for years by [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had the opportunity of attending the <a title="Samsung Bada Developer Days" href="http://developer.bada.com/apis/event/developerDayInfo.do?menu=MC01160100&amp;mtb1=&amp;mtb2=">Samsung Bada Developers Day</a> in Milan, and I would like to share my <strong>first impressions</strong> about the <a title="Bada Developer site" href="http://developer.bada.com/">Bada OS</a>.</p>
<p><a title="Samsung Bada Developer Days" href="http://developer.bada.com/apis/event/developerDayInfo.do?menu=MC01160100&amp;mtb1=&amp;mtb2="><img class="alignnone size-full wp-image-1346" title="Samsung Bada developer day" src="http://www.jappit.com/blog/wp-content/badadevday.jpg" alt="" width="620" height="216" /></a></p>
<p>First of all, let&#8217;s say that <a title="Bada Developer site" href="http://developer.bada.com/">Bada</a> is all but a new OS: Bada is actually a refactored and readapted version of the OS used for years by <a title="Samsung" href="http://www.samsung.com">Samsung</a> as their legacy OS. The good news is that now it has been made <strong>available and open to all developers</strong>, that can use all the APIs that were previously accessible to Samsung and its partners only.</p>
<p>When I say open it means <strong>really </strong>open: <strong><a title="Samsung Bada API" href="http://dpimg.ospos.net/contents/docs/resources/com.samsung.bada.apireference.help/FramesetMain.html">API set</a> is impressive</strong>, and it seems there&#8217;s actually nothing that has been left out. The comparison with other &#8220;modern&#8221; OS (e.g.: iPhone and Android) shows how Bada gives to developers a new level of access to the device and its features.</p>
<p>Bada applications are built by using <strong>C/C++ code</strong>, but there is a good news for non C-speakers: Bada devices come <strong>with <a title="Adobe Flash Lite" href="http://www.adobe.com/products/flash/">Flash Lite</a> support</strong> (<a title="Samsung Wave" href="http://wave.samsungmobile.com/">Samsung Wave</a> ships Flash Lite 3.0) and you can <strong>package a Flash Lite application into a native one</strong>, and distribute it on the Bada App Store. But the good news are not ended, since the Bada architecture allows<strong> Flash Lite content to access every native API</strong>! This is huge, and as a Flash developer I cannot be more happy of this! <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="Samsung Bada" href="http://developer.bada.com/"><img class="alignnone size-full wp-image-1351" title="Samsung Bada" src="http://www.jappit.com/blog/wp-content/bada_banner.png" alt="" width="620" height="135" /></a></p>
<p>Coming to the downsides: <strong>Bada applications cannot run in background</strong>, so no real multitasking is allowed. When an app goes in background, it is simply paused, and you can resume it from the active apps list. As for the development part, the <a title="Samsung Bada SDK" href="http://developer.bada.com/apis/docs/commonpage.do?menu=MC01040000&amp;mtb1=MTAzNDQzMzI4MDYw&amp;mtb2=MTAzNDQzNDYwMDc3">SDK</a> has currently some glitches, as the necessity to be <strong>restarted each time an application has to be deployed</strong>. Anyway, being not a final release, we can expect improvements in the next versions.</p>
<p>Summarizing it up, the first &#8220;contact&#8221; with the Bada environment was good: the <strong>OS is powerful and open</strong>, with the <strong>Flash Lite support and native API access</strong> being actually the best parts in my opinion. The current only Bada device (the Wave) is fast, responsive and with a <strong>nice touchscreen</strong> (differently from what seen on some recent Samsung models, see <a title="Samsung H1" href="http://info.vodafone360.com/en/phones/360h1">H1</a>).</p>
<p>What remains to see is if all this good stuff will be able to <strong>gain a decent market share</strong>, and so if it&#8217;ll be worth to invest time and money on it.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2010/03/17/samsung-bada-developers-day-all-we-need-is-a-new-os/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MidMaps: new Google Maps API for J2ME</title>
		<link>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/</link>
		<comments>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:13:40 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=1313</guid>
		<description><![CDATA[I finally found some time to finish and publish the first release of a tiny library that allow to easily integrate Google Maps in every J2ME application: MidMaps. You can read all the details, download the library together with sample code, and read the full JavaDocs here: MidMaps &#8211; J2ME Google Maps library.]]></description>
			<content:encoded><![CDATA[<p>I finally found some time to finish and publish the first release of a tiny <strong>library that allow to easily integrate Google Maps in every J2ME application</strong>: <a title="MidMaps - J2ME Google Maps API" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/">MidMaps</a>.</p>
<p><a title="MidMaps - J2ME Google Maps library" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/"><img class="alignnone size-full wp-image-1316" title="MidMaps - J2ME Google Maps library" src="http://www.jappit.com/blog/wp-content/midmaps_shots.png" alt="" width="640" height="289" /></a></p>
<p>You can read all the details, <strong>download the library together with sample code,</strong> and read the <strong>full JavaDocs</strong> here: <a title="MidMaps - J2ME Google Maps API" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/">MidMaps &#8211; J2ME Google Maps library</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Buzz, first screenshots and impressions</title>
		<link>http://www.jappit.com/blog/2010/02/10/google-buzz-first-screenshots-and-impressions/</link>
		<comments>http://www.jappit.com/blog/2010/02/10/google-buzz-first-screenshots-and-impressions/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 10:16:35 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[maps]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=1160</guid>
		<description><![CDATA[Here are my first screenshots of Buzz, the Facebook-Twitter-alternative by Google, integrated into Google Maps for mobile, running on a Nokia N97: So what? Maybe I&#8217;m a bit disappointed after the Wave experience, but the first approach with Buzz was not great, at least on mobile (as I still have no Buzz on my Gmail [...]]]></description>
			<content:encoded><![CDATA[<p>Here are my first screenshots of <a title="Google Buzz" href="http://buzz.google.com">Buzz</a>, the <strong>Facebook-Twitter-alternative</strong> by <a href="http://www.google.com">Google</a>, integrated into <a title="Mobile Google Maps" href="http://maps.google.com/m">Google Maps for mobile</a>, running on a <a title="Nokia N97" href="http://www.forum.nokia.com/devices/N97">Nokia N97</a>:</p>
<p><a href="http://www.jappit.com/blog/wp-content/google_buzz_terms.jpg"><img class="size-full wp-image-1161 alignnone" title="Google Buzz welcome" src="http://www.jappit.com/blog/wp-content/google_buzz_terms.jpg" alt="" width="640" height="360" /></a></p>
<p><a href="http://www.jappit.com/blog/wp-content/my_first_google_buzz.jpg"><img class="alignnone size-full wp-image-1162" title="My first Google Buzz!" src="http://www.jappit.com/blog/wp-content/my_first_google_buzz.jpg" alt="" width="640" height="360" /></a></p>
<p>So what? Maybe I&#8217;m a bit disappointed after the <a href="http://wave.google.com">Wave</a> experience, but the <strong>first approach with Buzz was not great</strong>, at least on mobile (as I still have no Buzz on my <a title="Gmail" href="http://www.gmail.com">Gmail</a> account).</p>
<p>Google is still working hard to release fully-featured clients but, right now, <strong>this app </strong>(or better, Buzz integrated in the Google Maps app) <strong>seems to have no utility at all</strong>. Apart from buzzing and seeing <strong>random buzzes around me</strong>, I cannot simply do anything else.</p>
<p>Moreover, strange thing for Google products, the <a title="Google Buzz API" href="http://code.google.com/apis/buzz/">Buzz API</a> is still in an early, almost useless phase.</p>
<p>It&#8217;s just <strong>too early</strong>? Let&#8217;s hope <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2010/02/10/google-buzz-first-screenshots-and-impressions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use Google Maps data within your mobile application</title>
		<link>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/</link>
		<comments>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/#comments</comments>
		<pubDate>Wed, 14 May 2008 08:17:10 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[forumnokia]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[map images]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=37</guid>
		<description><![CDATA[Note: You can find this article also on Forum Nokia Wiki: How to use Google Maps data in mobile applications Today we&#8217;ll see how to use Google Maps data within a mobile application. Google Maps offers REST services that allows accessing its data with simple HTTP requests, so we can easily integrate them within our [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: You can find this article also on Forum Nokia Wiki: <a title="How to use Google Maps data in mobile applications Wiki article" href="http://wiki.forum.nokia.com/index.php/How_to_use_Google_Maps_data_in_mobile_applications" target="_blank">How to use Google Maps data in mobile applications</a></em></p>
<p>Today we&#8217;ll see how to use Google Maps data within a mobile application.<br />
Google Maps offers REST services that allows accessing its data with simple HTTP requests, so we can easily integrate them within our mobile apps.</p>
<h3>Signup for a Google Maps API key</h3>
<p>First thing you must do is to signup on this page:<br />
<a title="Google Maps API key signup" href="http://code.google.com/apis/maps/signup.html" target="_blank">http://code.google.com/apis/maps/signup.html</a><br />
Once done, you&#8217;ll get a key (a simple String) you&#8217;ll use for all your query to Google Maps services</p>
<h3>Static maps</h3>
<p>Standard Google Maps code is suited for web applications, since it includes alot of Ajax functionalities, that are not really useful if you&#8217;re building a mobile application. So, the solution is to use static maps service, that will allow us to retrieve single images, easily usable within our apps.</p>
<p>Static maps service supports different image formats (png32, gif, jpg) and customizable image size, so that we can get perfect images for all our needs. As an example, suppose we want to retrieve the location at:</p>
<ul>
<li>latitude: 41.867878</li>
<li>longitude: 12.471516</li>
</ul>
<p>We can simply retrieve this URL with an HTTP GET request:</p>
<pre><a href="http://maps.google.com/staticmap?center=41.867878,12.471516&#038;amp" rel="nofollow">http://maps.google.com/staticmap?center=41.867878,12.471516&#038;amp</a>;
format=png32&amp;zoom=8&amp;size=240x320&amp;key=&lt;API_KEY&gt;</pre>
<p>This way, we&#8217;ll get a PNG32 image, with a width of 240 pixels, and a height of 320, centered at point (41.867878,12.471516), and with a zoom level of 8 (zoom can go from 0 to a maximum level of 19).</p>
<p><img src="http://www.jappit.com/images/blog/uploads/google_staticmap.jpg" alt="Google Maps static image sample" width="240" height="320" /></p>
<h3>Geocode an address</h3>
<p>From Google Maps docs:<br />
<em>Geocoding is the process of converting addresses (like &#8220;1600 Amphitheatre Parkway, Mountain View, CA&#8221;) into geographic coordinates (like latitude 37.423021 and longitude -122.083739)</em></p>
<p>So, let&#8217;s assume we want to build an application that displays the address typed by our user. We should firstly geocode its address to geographics coordinates.<br />
To do this, Google Maps offer another REST service easily accessible with simple HTTP requests.</p>
<p>Let&#8217;s say you want to geocode this address<em> &#8220;Leicester Square, London&#8221;</em>, then you&#8217;ll request this URL:</p>
<pre><a href="http://maps.google.com/maps/geo?q=Leicester%20Square,%20London" rel="nofollow">http://maps.google.com/maps/geo?q=Leicester%20Square,%20London</a>
&amp;output=csv&amp;key=&lt;API_KEY&gt;</pre>
<p>and you&#8217;ll get this output:</p>
<pre>200,6,51.510605,-0.130728</pre>
<p>Where:</p>
<ul>
<li>the first number is a code, that in this case (200) means that geocoding has been successfull (for a full list of status codes you can see here: [1])</li>
<li>the second number gives a measure of geocoding accuracy (from 0 to 9 &#8211; maximum accuracy)</li>
<li>3rd and 4th numbers represent latitude and longitude of the geocoded address, so these are the coordinate we&#8217;ll use to retrieve the map through the static map service we&#8217;ve seen before</li>
</ul>
<p>As you can see, there is an &#8216;output&#8217; parameter within the geocode request, and this means that we can choose the output format we prefer for our needs. Supported formats are:</p>
<ul>
<li>xml</li>
<li>kml (same as xml, but with different Content-Type)</li>
<li>json (not really useful for mobile apps)</li>
<li>csv (comma separated values)</li>
</ul>
<h3>Proxy server, usage limits</h3>
<p>Since your Google Maps API key is bound to a specific URL, to access map services you should setup a proxy server that will receive HTTP requests from your mobile application and forward them to Google Maps REST URLs, giving back Google responses to mobile clients.</p>
<p>Also, be aware that there is a limit to the number of requests (both for static maps and geocode service) you can do each day. For personal uses they&#8217;re more than enough, anyway consider this point if you plan to develop commercial services.</p>
<h3>Google Maps J2ME API and sample application</h3>
<p>Now, you want code right? <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Here it is:</p>
<p><img src="http://www.jappit.com/images/blog/uploads/j2me_google_maps.jpg" alt="Google Maps sample application screenshot" width="475" height="280" /></p>
<ul style="text-align: left;">
<li style="text-align: left;">a J2ME class to access Google Maps REST services: <a title="Google Maps J2ME API" href="http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API">http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API</a></li>
<li style="text-align: left;">a sample application using Google Maps data: <a title="J2me Google Maps sample application" href="http://www.jappit.com/index.php?page=emulator&amp;midlet=google_maps">http://www.jappit.com/index.php?page=emulator&#038;midlet=google_maps</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

