<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fredde&#039;s Android Dev</title>
	<atom:link href="http://droiddevelop.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://droiddevelop.wordpress.com</link>
	<description>...because I&#039;m a nerd</description>
	<lastBuildDate>Wed, 19 Oct 2011 10:12:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='droiddevelop.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Fredde&#039;s Android Dev</title>
		<link>http://droiddevelop.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://droiddevelop.wordpress.com/osd.xml" title="Fredde&#039;s Android Dev" />
	<atom:link rel='hub' href='http://droiddevelop.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Getting it going with ASP.NET MVC3 + jQuery Mobile</title>
		<link>http://droiddevelop.wordpress.com/2011/10/19/getting-it-going-with-asp-net-mvc3-jquery-mobile/</link>
		<comments>http://droiddevelop.wordpress.com/2011/10/19/getting-it-going-with-asp-net-mvc3-jquery-mobile/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 10:12:31 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[jQuery Mobile]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=153</guid>
		<description><![CDATA[In the following posts I&#8217;d like to show a really basic example how to create a simple jQuery Mobile page containing a page header (e.g. a title) with a toolbar button, a body with some text and a footer with some sort of copyright text. After that I&#8217;ll show some basic navigation stuff along with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=153&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquerymobile.com/" target="_blank"><img class="alignright size-full wp-image-143" style="border:0 none;" title="jquery-logo" src="http://droiddevelop.files.wordpress.com/2011/10/jquery-logo.png?w=620" alt=""   /></a>In the following posts I&#8217;d like to show a really basic example how to create a simple jQuery Mobile page containing a page header (e.g. a title) with a toolbar button, a body with some text and a footer with some sort of copyright text. After that I&#8217;ll show some basic navigation stuff along with a form and of course submitting this form to a controller action. This will include both client side stuff, e.g. javascript + HTML5 + CSS, and server side code, e.g. MVC controller actions.</p>
<p>I will use Visual Studio and its standard project template for an ASP.NET MVC3 web application, e.g. the empty MVC3 template. I will use the Razor view engine and include jQuery Mobile to make it look good on mobile devices.<br />
<span id="more-153"></span></p>
<h2>The objectives in this post</h2>
<p>In this post I will show the following things:</p>
<ul>
<li>Create an <a href="http://www.asp.net/mvc" target="_blank">ASP.NET MVC3</a> solution in Visual Studio</li>
<li>Reference and use <a href="http://jquery.com/" target="_blank">jQuery</a> + <a href="http://jquerymobile.com/" target="_blank">jQuery Mobile</a></li>
<li>Creating a jQuery Mobile page (e.g. an MVC View using jQuery Mobile)</li>
</ul>
<h2>Create the initial Visual Studio project</h2>
<p>Create an ASP.NET MVC3 Web Application project and its empty project template. Just leave the default settings, e.g. use the Razor View Engine and click OK. The web application project is created, including one single Error view inside the Shared folder inside Views. When creating the new project you will also get a layout template as well, called <strong><em>_Layout.cshtml</em></strong>. This layout may be compared to the master page file in an ordinary ASP.NET web application.</p>
<p>In the _Layout.cshtml you will find the style sheets included in the application along with a reference to the jQuery framework. The next thing to do is to remove the reference to the Site.css style sheet and the jQuery framework. The modified _Layout.cshtml will now look like this:</p>
<p><pre class="brush: xml;">&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;@ViewBag.Title&lt;/title&gt;
  &lt;/head&gt;

  &lt;body&gt;
    @RenderBody()
  &lt;/body&gt;
&lt;/html&gt;</pre></p>
<p>Now it&#8217;s time to include the jQuery Mobile things and some other stuff.</p>
<h2>Include jQuery Mobile js and css</h2>
<p>First of all the jQuery Mobile framework has to be downloaded. This is found <a href="http://jquerymobile.com/download/" target="_blank">here (version 1.0 RC1)</a>. For this example I decided to use the uncompressed versions for both the js and the css. Save the javascript file in the Scripts folder and the css file in the Content folder.<strong> <em>To use jQuery Mobile the core jQuery framework is needed</em></strong> as well, so this is downloaded to the same folder as the Mobile pack. Include the files in the Visual Studio project and add references to the files in _Layout.cshtml file. These steps should end up with a _Layout.cshtml file looking like this, after <em><strong>adding a new empty &#8220;main.css&#8221;</strong> style sheet</em> to the Content folder:</p>
<p><pre class="brush: xml;">&lt;!DOCTYPE html&gt;
&lt;html&gt;
 &lt;head&gt;
    &lt;title&gt;@ViewBag.Title&lt;/title&gt;

    &lt;!-- Styles --&gt;
    &lt;link rel=&quot;stylesheet&quot;
          href=&quot;@Url.Content(&quot;~/Content/jquery.mobile-1.0rc1.css&quot;)&quot;&gt;&lt;/link&gt;
    &lt;!-- This style sheet will be used later on --&gt;
    &lt;link rel=&quot;stylesheet&quot;
          href=&quot;@Url.Content(&quot;~/Content/main.css&quot;)&quot;&gt;&lt;/link&gt;

    &lt;!-- Scripts --&gt;
    &lt;script type=&quot;text/javascript&quot;
            src=&quot;@Url.Content(&quot;~/Scripts/jquery-1.6.4.js&quot;)&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;
            src=&quot;@Url.Content(&quot;~/Scripts/jquery.mobile-1.0rc1.js&quot;)&quot;&gt;&lt;/script&gt;

 &lt;/head&gt;

 &lt;body&gt;
    @RenderBody()
 &lt;/body&gt;
&lt;/html&gt;</pre></p>
<blockquote><p>I decided to go with the latest version of jQuery, e.g. version 1.6.4.</p></blockquote>
<p>Of course all downloaded things above may be included as <strong><em>CDN resources</em></strong> instead, making the _Layout.cshtml file look like this:</p>
<p><pre class="brush: xml;">&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
       &lt;title&gt;@ViewBag.Title&lt;/title&gt;

       &lt;!-- Styles --&gt;
       &lt;link rel=&quot;stylesheet&quot;
             href=&quot;http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.css&quot;&gt;&lt;/link&gt;
       &lt;!-- This style sheet will be used later on --&gt;
       &lt;link rel=&quot;stylesheet&quot;
             href=&quot;@Url.Content(&quot;~/Content/main.css&quot;)&quot;&gt;&lt;/link&gt;

       &lt;!-- Scripts --&gt;
       &lt;script type=&quot;text/javascript&quot;
               src=&quot;http://code.jquery.com/jquery-1.6.4.js&quot;&gt;&lt;/script&gt;
       &lt;script type=&quot;text/javascript&quot;
               src=&quot;http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.js&quot;&gt;&lt;/script&gt;

   &lt;/head&gt;

   &lt;body&gt;
     @RenderBody()
   &lt;/body&gt;
&lt;/html&gt;</pre></p>
<p>Now everything is set up to use the framework, let&#8217;s add a &#8220;Hello World!&#8221; view.</p>
<h2>Adding a View</h2>
<p>The easiest way to add a View to an MVC application is to first add a Controller, let&#8217;s call it <strong><em>HomeController</em></strong>, by right-clicking the Controllers folder and choose &#8220;Add&#8221; -&gt; &#8220;Controller&#8230;&#8221;. By default an Index action is created in the newly created controller:</p>
<p><pre class="brush: csharp;">using System.Web.Mvc;

namespace DroidDevSeries.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        public ActionResult Index()
        {
            return View();
        }
    }
}</pre></p>
<p>Right-click <em><strong>return View();</strong></em> on line 11 and choose &#8220;Add View&#8221;. This will create a folder structure in the Views folder with a <strong><em>Home</em></strong> folder with an <strong><em>Index.cshtml</em></strong> file inside:</p>
<p><img class="alignnone size-full wp-image-192" style="border:0 none;" title="solution_after_adding_view" src="http://droiddevelop.files.wordpress.com/2011/10/solution_after_adding_view.png?w=620" alt=""   /></p>
<h2>Making it look mobile</h2>
<p>One of the best things with jQuery Mobile is, according to me, that its base component for making a web page look like a mobile app is the div tag. A page in the jQuery Mobile world is a <em><strong>div tag</strong></em> with a <em><strong>data-role</strong> <strong>attribute</strong></em> set to <em><strong>page</strong></em>. So if a view to be used on a mobile device is added to the solution, its .cshtml file should look something like this:</p>
<p><pre class="brush: xml;">@{
ViewBag.Title = &quot;Index&quot;;
}

&lt;div data-role=&quot;page&quot;&gt; &lt;!-- Here's the page div --&gt;
     &lt;div data-role=&quot;header&quot;&gt;&lt;h1&gt;Sample page&lt;/h1&gt;&lt;/div&gt;
     &lt;div data-role=&quot;content&quot;&gt;Hello World!&lt;/div&gt;
     &lt;div data-role=&quot;footer&quot;&gt;&lt;h1&gt;&amp;copy; Copyright SomeCompany&lt;/h1&gt;&lt;/div&gt;
&lt;/div&gt;</pre></p>
<p>Note that I decided to add a header, some content and a footer as well, using the div tag attributes:</p>
<ul>
<li>data-role=&#8221;<em><strong>header</strong></em>&#8220;</li>
<li>data-role=&#8221;<em><strong>content</strong></em>&#8220;</li>
<li>data-role=&#8221;<em><strong>footer</strong></em>&#8220;</li>
</ul>
<p>In upcoming posts other data-roles will be shown, allowing jQuery Mobile to hook in on things and make it pretty.</p>
<p>Viewing the page created above in the Chrome browser will look like this:</p>
<p><img class="alignnone size-full wp-image-166" style="border:0 none;margin:10px 0;" title="hello_world_chrome" src="http://droiddevelop.files.wordpress.com/2011/10/hello_world_chrome.png?w=620&#038;h=633" alt="" width="620" height="633" /></p>
<p>and with an Android emulator:</p>
<p><img class="alignnone size-full wp-image-167" style="border:0 none;margin:10px 0;" title="hello_world_avd" src="http://droiddevelop.files.wordpress.com/2011/10/hello_world_avd.png?w=620" alt=""   /></p>
<p>Now we&#8217;re on our way, next up is to add some fancy toolbar buttons in the page header and page footer and some sort of list in the content section. Read about that in upcoming posts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=153&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2011/10/19/getting-it-going-with-asp-net-mvc3-jquery-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2011/10/jquery-logo.png" medium="image">
			<media:title type="html">jquery-logo</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2011/10/solution_after_adding_view.png" medium="image">
			<media:title type="html">solution_after_adding_view</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2011/10/hello_world_chrome.png" medium="image">
			<media:title type="html">hello_world_chrome</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2011/10/hello_world_avd.png" medium="image">
			<media:title type="html">hello_world_avd</media:title>
		</media:content>
	</item>
		<item>
		<title>No more native (I think)</title>
		<link>http://droiddevelop.wordpress.com/2011/10/04/no-more-native-i-think/</link>
		<comments>http://droiddevelop.wordpress.com/2011/10/04/no-more-native-i-think/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 07:13:48 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[jQuery Mobile]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=142</guid>
		<description><![CDATA[OK, time for some action around here again! The other day I was browsing the internet and bumped into a comparison between a number of HML5 + Javascript + CSS frameworks for mobile and handheld devices. First of all my aim was to gather more information about the Sencha Touch framework, but since I got [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=142&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://droiddevelop.files.wordpress.com/2011/10/jquery-logo.png"><img class="alignright size-full wp-image-143" style="border:0 none;margin:5px 7px;" title="jquery-logo" src="http://droiddevelop.files.wordpress.com/2011/10/jquery-logo.png?w=620" alt=""   /></a><em>OK, time for some action around here again!</em> The other day I was browsing the internet and bumped into a comparison between a number of HML5 + Javascript + CSS frameworks for mobile and handheld devices. First of all my aim was to gather more information about the <a title="Mobile JavaScript Framework for Developing HTML5 Web Apps" href="http://www.sencha.com/products/touch/" target="_blank">Sencha Touch</a> framework, but since I got started on a <a title="ASP.NET MVC: The Official Microsoft ASP.NET Site" href="http://www.asp.net/mvc" target="_blank">ASP.NET MVC3</a> web project at work I googled for &#8220;mobile development using MVC3&#8243; and read about a guy writing about <a title="Create a blog with JQuery Mobile and ASP.NET MVC 3 with C# | Giant Flying Saucer" href="http://www.giantflyingsaucer.com/blog/?p=2205" target="_blank">creating a blog using jQuery Mobile and MVC3</a>.</p>
<p>Thanks to <a title="Giant Flying Saucer | Programming parlour tricks" href="http://www.giantflyingsaucer.com/blog/" target="_blank">Chad Lung</a>! The article was an inspiration to start developing a small mobile time report web application.</p>
<p>So, what&#8217;s next? Well, I&#8217;ve created an ASP.NET MCV3 web application and started playing around with it to get familiar with the jQuery Mobile framework. So far everything is great, except pretty bad performance on page and dialog transitions on Android devices. Luckily the framework supports disabling all animations on transitions and the application runs smooth. I&#8217;ll sum up the things in a separate post later on.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=142&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2011/10/04/no-more-native-i-think/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2011/10/jquery-logo.png" medium="image">
			<media:title type="html">jquery-logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Having a short break</title>
		<link>http://droiddevelop.wordpress.com/2010/10/27/having-a-short-break/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/27/having-a-short-break/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 17:42:43 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=136</guid>
		<description><![CDATA[As some may have noticed, the posting here has come to a stop for the moment. There will be more coming here soon of course, but for the moment I&#8217;m working on learning Dependency Injection and writing about that on freddes.se. I&#8217;ll be back here in a couple of days or so!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=136&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-139" style="border:0 none;margin-left:5px;margin-right:5px;" title="sleep-icon" src="http://droiddevelop.files.wordpress.com/2010/10/sleep-icon.png?w=620" alt=""   />As some may have noticed, the posting here has come to a stop for the moment. There will be more coming here soon of course, but for the moment I&#8217;m working on learning Dependency Injection and writing about that on <a title="freddes.se" href="http://www.freddes.se">freddes.se</a>.</p>
<p>I&#8217;ll be back here in a couple of days or so!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=136&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/27/having-a-short-break/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/sleep-icon.png" medium="image">
			<media:title type="html">sleep-icon</media:title>
		</media:content>
	</item>
		<item>
		<title>The map integration</title>
		<link>http://droiddevelop.wordpress.com/2010/10/19/the-map-integration/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/19/the-map-integration/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 20:23:55 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[App: MapInfo]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=109</guid>
		<description><![CDATA[In the previous post on the design for the real app I decided to start the implementation of the map showing some objects of some kind. That&#8217;s done now&#8230; To have some sort of chance on success I took a lot of code from the Google Map View tutorial, e.g. the adding of map overlays. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=109&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-112" style="border:0 none;margin:0 5px;" title="mapintegration" src="http://droiddevelop.files.wordpress.com/2010/10/mapintegration.png?w=620" alt=""   />In the previous post on the design for the real app I decided to start the implementation of the map showing some objects of some kind. That&#8217;s done now&#8230;</p>
<p>To have some sort of chance on success I took a lot of code from the <a title="Google Map View" href="http://developer.android.com/resources/tutorials/views/hello-mapview.html" target="_blank">Google Map View tutorial</a>, e.g. the adding of map overlays. First I <strong>created an entities package</strong> (<strong>se.freddes.mapinfo.entities</strong>) and added an entity class:</p>
<ul>
<li>GeoItem
<ul>
<li>Properties/attributes
<ul>
<li>Title</li>
<li>Details</li>
<li>ItemLink</li>
<li>X</li>
<li>Y</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>The class doesn&#8217;t contain any methods, but it implements the <a title="Serializable interface" href="http://developer.android.com/reference/java/io/Serializable.html" target="_blank">java.io.Serializable</a> interface. The interface is needed later on when deserializing of Json objects. This will be explained in upcoming posts. The source for the <strong>GeoItem </strong>class looks like this:</p>
<p><pre class="brush: java;">package se.freddes.mapinfo.entities;

import java.io.Serializable;
import com.google.android.maps.Overlay;
import android.net.Uri;

public class GeoItem extends Overlay implements Serializable {

    private String Title;
    private String Details;
    private String ItemLink;
    private Double X;
    private Double Y;

    public Double getX() {
        return this.X;
    }
    public Double getY() {
        return this.Y;
    }
    public String getTitle() {
        return Title;
    }
    public void setTitle(String title) {
        this.Title = title;
    }
    public String getDetails() {
        return Details;
    }
    public void setDetails(String details) {
        this.Details = details;
    }
    public Uri getItemLink() {
        return Uri.parse(ItemLink);
    }
    public void setItemLink(Uri itemLink) {
        this.ItemLink = itemLink.toString();
    }
}</pre></p>
<p>To make it possible to adding the GeoItems as overlays on the map, I decided to steal the implementation of the <strong>HelloItemizedOverlay </strong>from part 2 of the Google Map View tutorial. The only thing I did was to rename it to <strong>GeoItemizedOverlay</strong>, which made the code look like this:</p>
<p><pre class="brush: java;">package se.freddes.mapinfo.entities;

import java.util.ArrayList;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class GeoItemizedOverlay extends ItemizedOverlay&lt;OverlayItem&gt; {

    private ArrayList&lt;OverlayItem&gt; mOverlays = new ArrayList&lt;OverlayItem&gt;();
    private Context mContext;

    public GeoItemizedOverlay(Drawable defaultMarker, Context context) {
        super(boundCenterBottom(defaultMarker));
        mContext = context;
    }

    @Override
    protected OverlayItem createItem(int i) {
        return mOverlays.get(i);
    }

    @Override
    public int size() {
        return mOverlays.size();
    }

    public void addOverlay(OverlayItem overlay) {
        mOverlays.add(overlay);
        populate();
    }

    @Override
    protected boolean onTap(int index) {
        OverlayItem item = mOverlays.get(index);
        AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
        dialog.setTitle(item.getTitle());
        dialog.setMessage(item.getSnippet());
        dialog.show();
        return true;
    }

}</pre></p>
<p>The overlays are added to the map using the following construction:</p>
<p><pre class="brush: java;">private void addItems(MapView mapView) {
    mapView.getOverlays().clear();
    GeoItemizedOverlay items =
        GeoItemHandler.getItems((this.getResources().getDrawable(R.drawable.pushpin)), mapView);
    if(items != null) {
        mapView.getOverlays().add(items);
    }
}</pre></p>
<p>The <strong>GeoItemHandler.getItems</strong> method on line 4 will be shown in a later post on <strong>Json object deserialization</strong>. Note that before adding the overlays the old ones are removed, on line 2. The addItems private method above is called from the onCreate event handler.</p>
<p>So, that&#8217;s it for the items to be displayed. The thing needed now is a way to show the map, e.g. an<strong> activity for the map</strong>. This is shown in part 1 of the Google Map View tutorial.</p>
<p>I won&#8217;t show this here since it is exactly the same as in the tutorial. This means that next up is to get some data to display, e.g. implement a Web service handler.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=109&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/19/the-map-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/mapintegration.png" medium="image">
			<media:title type="html">mapintegration</media:title>
		</media:content>
	</item>
		<item>
		<title>I forget to name the app</title>
		<link>http://droiddevelop.wordpress.com/2010/10/18/i-forget-to-name-the-app/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/18/i-forget-to-name-the-app/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 18:19:01 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[App: MapInfo]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=125</guid>
		<description><![CDATA[I just realized I forgot to give the app a name&#8230; It will be called MapInfo. How about that for a fancy name? The source package will therefore be se.freddes.mapinfo.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=125&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-128" style="border:0 none;margin:0 5px;" title="appname" src="http://droiddevelop.files.wordpress.com/2010/10/appname.png?w=620" alt=""   />I just realized I forgot to give the app a name&#8230;</p>
<p>It will be called <strong>MapInfo</strong>. How about that for a fancy name?<br />
The source package will therefore be <strong>se.freddes.mapinfo</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=125&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/18/i-forget-to-name-the-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/appname.png" medium="image">
			<media:title type="html">appname</media:title>
		</media:content>
	</item>
		<item>
		<title>Design for the &#8220;real&#8221; app</title>
		<link>http://droiddevelop.wordpress.com/2010/10/17/design-for-the-real-app/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/17/design-for-the-real-app/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 20:07:00 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[App: MapInfo]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=93</guid>
		<description><![CDATA[In a previous post I decided to create an app showing things or objects on a map, displaying detailed info about the objects and the app should be served with data from a web service returning JSON objects. The web service will be a RESTful web service, but this is of course not the primary [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=93&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-94" style="border:0 none;margin:0 5px;" title="designer" src="http://droiddevelop.files.wordpress.com/2010/10/designer.png?w=620" alt=""   />In a previous post I decided to create an app showing things or objects on a map, displaying detailed info about the objects and the app should be served with data from a web service returning JSON objects. The web service will be a RESTful web service, but this is of course not the primary thing with the system.</p>
<p>The app will, in the first version, consist of three modules:</p>
<ul>
<li>Web service handler
<ul>
<li>Consume the web service</li>
<li>Deserialize the received JSON objects into POJOs</li>
<li>Provide an interface for other parts to get fresh data from the web service</li>
</ul>
</li>
<li>&#8220;Caching&#8221;/local storage
<ul>
<li>The app shall be able store historical data</li>
<li>The app shall cache the latest received data to use when the app starts, before a refresh</li>
<li>Store a favorites, such as favorite restaurant or air port</li>
</ul>
</li>
<li>Map integration
<ul>
<li>The objects shall be displayed on map</li>
<li>Detailed information shall be displayed for the selected object</li>
<li>The objects shall have some kind of context menu for adding them to the favorites list</li>
</ul>
</li>
</ul>
<p>I think I&#8217;ll start off with the Map integration since that&#8217;s the one most needed to see any results from the other parts of the system. I think this one will be the hardest to make it work properly but at the same time the easiest to feed with fake data.</p>
<p>More info will be published here later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=93&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/17/design-for-the-real-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/designer.png" medium="image">
			<media:title type="html">designer</media:title>
		</media:content>
	</item>
		<item>
		<title>OK, what to build?</title>
		<link>http://droiddevelop.wordpress.com/2010/10/16/ok-what-to-build/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/16/ok-what-to-build/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 21:17:16 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=85</guid>
		<description><![CDATA[Since I finished the tutorials on the Android Developers site I felt I needed to build my own somewhat useful app, I have to decide what to build. When I was younger I had a great interest in meteorology and airplanes, so I got familiar with something called METAR. METAR is a way of encoding [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=85&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-86" style="border:0 none;margin:0 5px;" title="rainy" src="http://droiddevelop.files.wordpress.com/2010/10/rainy.png?w=620" alt=""   />Since I finished the tutorials on the <a title="Android Developers" href="http://developer.android.com/index.html" target="_blank">Android Developers</a> site I felt I needed to build my own somewhat useful app, I have to decide what to build. When I was younger I had a great interest in meteorology and airplanes, so I got familiar with something called METAR. METAR is a way of encoding weather observations and I bumped into those when visiting my cousin at his work on an airport. When I later started doing some serious web programming I decided to create a web services exposing methods for getting METAR encoded data, to be consumed from a web site presenting those on a map. So why not go the same way this time when learning a new target OS?</p>
<p>The thing with this decision to build such an application is the following:</p>
<ul>
<li>The app has to consume one or more web services, returning JSON objects</li>
<li>The app has to deserialize data from the web services, e.g. deserialize JSON objects into Java object</li>
<li>The app has to have a map for presenting the information</li>
<li>The app has to have a database to store historical data</li>
</ul>
<p>When giving those requirements on the app, I felt that it will look much like the Google Maps app already out there on the market, but I don&#8217;t really care. I will learn the Android development stuff and I will create my on app implementing the requirements stated above. After all it will be well suited for presenting restaurants from my girl friend&#8217;s restaurant guide (LaLevin&#8217;s restaurangguide on <a title="LaLevin's restaurangguide" href="http://lalevin.wordpress.com/" target="_blank">http://lalevin.wordpress.com</a>) as well, so maybe I&#8217;ll do that&#8230;</p>
<p>I&#8217;ll get back here when I have some kind of system design to show.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=85&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/16/ok-what-to-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/rainy.png" medium="image">
			<media:title type="html">rainy</media:title>
		</media:content>
	</item>
		<item>
		<title>Resources on the Android Developers&#8217; site</title>
		<link>http://droiddevelop.wordpress.com/2010/10/16/resources-on-the-android-developers-site/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/16/resources-on-the-android-developers-site/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 17:29:05 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=81</guid>
		<description><![CDATA[Before starting to develop my own apps, I really feel that I have to give credits to the Android Developers&#8217; site and all the resources presented there. The Android Developers&#8217; Resources site is filled with sweet things, tutorials that are great, technical articles, code samples and tons of other stuff. The tutorials were great for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=81&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-82" style="border:0 none;margin:0 5px;" title="resources" src="http://droiddevelop.files.wordpress.com/2010/10/resources.png?w=620" alt=""   />Before starting to develop my own apps, I really feel that I have to give credits to the Android Developers&#8217; site and all the resources presented there. The <a title="Developer Resources" href="http://developer.android.com/resources/index.html" target="_blank">Android Developers&#8217; Resources</a> site is filled with sweet things, tutorials that are great, technical articles, code samples and tons of other stuff.</p>
<p>The tutorials were great for me being a newbie on the Android app development. Have a look there, everything you need is there from setting up the environment to adding maps and databases to your app. Good luck!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=81&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/16/resources-on-the-android-developers-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/resources.png" medium="image">
			<media:title type="html">resources</media:title>
		</media:content>
	</item>
		<item>
		<title>The Notepad Tutorial</title>
		<link>http://droiddevelop.wordpress.com/2010/10/14/the-notepad-tutorial/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/14/the-notepad-tutorial/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 21:12:34 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[Misc programming]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=53</guid>
		<description><![CDATA[The three step Notepad Tutorial is a great tutorial giving you a great insight i different things, like storing things to a database, databinding lists of items etc. It gives a great introduction on building real world apps for the Android OS. It is divided into three parts where part two and three are continuations [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=53&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-54" style="border:0 none;margin:0 5px;" title="notepad" src="http://droiddevelop.files.wordpress.com/2010/10/notepad.png?w=620" alt=""   />The three step <a title="Notepad Tutorial" href="http://developer.android.com/resources/tutorials/notepad/index.html" target="_blank">Notepad Tutorial</a> is a great tutorial giving you a great insight i different things, like storing things to a database, databinding lists of items etc. It gives a great introduction on building real world apps for the Android OS.</p>
<p>It is divided into three parts where part two and three are continuations on the previous step. You can download each step&#8217;s base of code but it makes more sense to start off with part one and create your own base of code for the next step.</p>
<p>Before starting with this tutorial I had finished the others, which was more or less needed. I felt really comfortable after finishing the third part of this tutorial, actually so comfortable that I now can build my own app. I have a couple of ideas in mind, and I will try to log things here in upcoming posts. But before that, let&#8217;s look at some key things from the Notepad thing.</p>
<p>In the <a title="Notepad Exercise 1" href="http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html" target="_blank">first part</a> I got introduced to the <strong>ListView</strong>, the <strong>layout for the items</strong> in the ListView and the <strong>ListActivity</strong>. I now felt that I had missed writing about activities and their central role in the Android app development. Let&#8217;s have a look at them here.</p>
<p>An Activity is exactly what is says, it is a component, some sort of view, where the user may perform some kind of useful things. In the Notepad tutorial the ListActivity is the first thing that meets the user. It is a list of notes present in the database for the app. The ListActivity is a subclass of the <strong>Activity </strong>class that gives more functionality handling items, e.g. event handling when the user selects an item etc.</p>
<p>Another great thing in the first part is the creation of the <strong>option menu</strong> on the ListView and the events on that menu. It also covers the filling of the ListView, using a <strong>cursor </strong>and <strong>databinding</strong>.</p>
<p>The <a title="Notepad Exercise 2" href="http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html" target="_blank">second </a>and <a title="Notepad Exercise 3" href="http://developer.android.com/resources/tutorials/notepad/notepad-ex3.html" target="_blank">third</a> part of the tutorial the key things are:</p>
<ul>
<li>Constructing an app using <strong>multiple activities</strong></li>
<li>Passing data between activities with <strong>Bundle objects</strong></li>
<li><strong>Context menus</strong></li>
<li>Maintain <strong>application states</strong></li>
</ul>
<p>After finishing all the three steps I felt I had a pretty good base for developing my own app, so let&#8217;s get the things going!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=53&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/14/the-notepad-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/notepad.png" medium="image">
			<media:title type="html">notepad</media:title>
		</media:content>
	</item>
		<item>
		<title>Internet access for apps</title>
		<link>http://droiddevelop.wordpress.com/2010/10/14/internet-access-for-apps/</link>
		<comments>http://droiddevelop.wordpress.com/2010/10/14/internet-access-for-apps/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 09:32:11 +0000</pubDate>
		<dc:creator>Fredde</dc:creator>
				<category><![CDATA[Misc programming]]></category>

		<guid isPermaLink="false">http://droiddevelop.wordpress.com/?p=70</guid>
		<description><![CDATA[In the previous post on the MapView (Google Maps API) I bumped into to problems having the app connecting to the Internet. It turned out that it was a configuration issue, where I had forgotten to specify the app&#8217;s need for Internet access. I wrote about it before but I feel like writing it again, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=70&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-71" style="border:0 none;margin:0 5px;" title="internet_connection" src="http://droiddevelop.files.wordpress.com/2010/10/internet_connection.png?w=620" alt=""   />In the previous post on the MapView (Google Maps API) I bumped into to problems having the app connecting to the Internet. It turned out that it was a configuration issue, where I had forgotten to specify the app&#8217;s need for Internet access. I wrote about it before but I feel like writing it again, just to make myself remember it. The thing is that I will for sure forget it and curse my stupidity in the future when developing apps needing Internet access&#8230;</p>
<p>OK, on<strong> line 7</strong> is the configuration to be added to the <strong>AndroidManifest.xml</strong> file:</p>
<p><pre class="brush: xml;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;se.freddes.helloworldgooglemaps&quot;
      android:versionCode=&quot;1&quot;
      android:versionName=&quot;1.0&quot;&gt;

    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;

    &lt;application ...&gt;
        &lt;activity ...&gt;
        .
        .
        .
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;</pre></p>
<p>I&#8217;ll try to remember that now!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/droiddevelop.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/droiddevelop.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/droiddevelop.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=droiddevelop.wordpress.com&amp;blog=16622611&amp;post=70&amp;subd=droiddevelop&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://droiddevelop.wordpress.com/2010/10/14/internet-access-for-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33342bff482d514ed7b4b3e48f47cd0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frejo975</media:title>
		</media:content>

		<media:content url="http://droiddevelop.files.wordpress.com/2010/10/internet_connection.png" medium="image">
			<media:title type="html">internet_connection</media:title>
		</media:content>
	</item>
	</channel>
</rss>
