<?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>Droidweb.com &#187; Android Development Corner</title>
<atom:link href="http://droidweb.com/category/android-development-corner/feed/" rel="self" type="application/rss+xml" />
<link>http://droidweb.com</link>
<description>Your source for Android application reviews, programming tips, and other Android advice</description>
<lastBuildDate>Fri, 23 Dec 2011 13:21:14 +0000</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=3.3.1</generator>
<item>
<title>Fix @Override Errors in your Eclipse Console</title>
<link>http://droidweb.com/2011/12/fix-override-errors-in-your-eclipse-console/</link>
<comments>http://droidweb.com/2011/12/fix-override-errors-in-your-eclipse-console/#comments</comments>
<pubDate>Thu, 22 Dec 2011 13:27:00 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[eclipse]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2376</guid>
<description>
<![CDATA[Often when importing Android code into my Eclipse workspace, I find that there are a lot of new &#8216;errors&#8217; introduced to the code.  These errors were closely linked to my...]]>
</description>
<content:encoded>
<![CDATA[<p><a href="http://droidweb.com/wp-content/uploads/2011/12/eclipse.png"><img src="http://droidweb.com/wp-content/uploads/2011/12/eclipse-300x106.png" alt="" title="eclipse" width="300" height="106" class="aligncenter size-medium wp-image-2380" /></a></p>
<p>Often when importing Android code into my Eclipse workspace, I find that there are a lot of new &#8216;errors&#8217; introduced to the code.  These errors were closely linked to my overriden classes (something you&#8217;ll find quite often in android code) and read &#8220;The method X must override a superclass method&#8221; .  For the longest time I&#8217;ve wondered how to reliably fix those bugs (until now I had been removing and re-adding the @Override keyword as appropriate to make the compiler shut up).  This morning I stumbled across a <a href="http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips">Stack Overflow</a> thread that finally solves this problem.</p>
<p>You see, the problem is related to which version of Java the code is checked for compatibility errors against.  Eclipse defaults to using Java 1.5, which only allows the use of interface methods if super() is called.  Java 1.6 allowed the use of the @Override keyword to designation the interface implementation which is current standard way of overriding interface classes in Android coding.</p>
<p>To fix your problem you just need to do a bit of tinkering in the project settings in Eclipse.  Go to your project preferences and under Java &gt; Compiler set the java compiler to 1.6.  While this might fix the error, it is more likely that you&#8217;re going to have to change the project specific value for compiler level as well.  Select &#8221;Configure project specific settings&#8221; and change the java compiler value there to 1.6 as well.  After an automatic rebuild of your project, you should see all of those pesky error messages disappear!</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/12/fix-override-errors-in-your-eclipse-console/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>Create Icons for your Application using Android Asset Studio</title>
<link>http://droidweb.com/2011/10/create-icons-for-your-application-using-android-asset-studio/</link>
<comments>http://droidweb.com/2011/10/create-icons-for-your-application-using-android-asset-studio/#comments</comments>
<pubDate>Tue, 18 Oct 2011 17:42:41 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Website Review]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[assets]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[icon]]>
</category>
<category>
<![CDATA[wizard]]>
</category>
<guid isPermaLink="false">http://droidweb.com/2011/10/create-icons-for-your-application-using-android-asset-studio/</guid>
<description>
<![CDATA[Let’s be honest.&#160; Sometimes creating icons for you Android Application can be a bit tedious.&#160; There are three different resolutions you have to shoot for (mdpi, ldpi, and hdpi), and...]]>
</description>
<content:encoded>
<![CDATA[<p><a href="http://droidweb.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-1.22.30-PM.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="Screen Shot 2011-10-18 at 1.22.30 PM" border="0" alt="Screen Shot 2011-10-18 at 1.22.30 PM" src="http://droidweb.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-1.22.30-PM_thumb.png" width="312" height="45" /></a></p>
<p>Let’s be honest.&#160; Sometimes creating icons for you Android Application can be a bit tedious.&#160; There are three different resolutions you have to shoot for (mdpi, ldpi, and hdpi), and several iterations you have to create (launcher icons, menu icons, notification icons, and, now that Icre Cream Sandwich is coming out, Action Bar icons).&#160; I, for one, can never remember all the proper resolutoins and have to keep running back to the <a href="http://developer.android.com/guide/practices/ui_guidelines/icon_design.html">Android Developers Icon Design Reference</a> to get it right.&#160; Even then, I’m a bit artistically challenged, so I’m never happy with the final result.</p>
<p>Enter <a href="http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html">Android Asset Studio</a>.&#160; This simple tool lets you create most, if not all, or the icons in your application quickly and easily.&#160; There are wizards for creating Launcher icons, Menu icons, Action Bar Icons, Tab Icons, Notification Icons, and device framed screenshots.</p>
<p>&#160;</p>
<p>For each type of icon, there is a simple to use wizard that allows you to choose, the artwork you wish to display on your button (you can upload your own artwork, use predefined clip-art pictures, or just use text).&#160; After choosing artwork, add in trim, color, and shading values, and viola!&#160; You have a set of icons.&#160; This is a nice tool that all you independent developers should check out!</p>
<p><a href="http://droidweb.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-1.36.56-PM.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Screen Shot 2011-10-18 at 1.36.56 PM" border="0" alt="Screen Shot 2011-10-18 at 1.36.56 PM" src="http://droidweb.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-1.36.56-PM_thumb.png" width="313" height="307" /></a></p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/10/create-icons-for-your-application-using-android-asset-studio/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Android Builders Summit Presentations</title>
<link>http://droidweb.com/2011/04/android-builders-summit-presentations/</link>
<comments>http://droidweb.com/2011/04/android-builders-summit-presentations/#comments</comments>
<pubDate>Fri, 29 Apr 2011 13:19:23 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[android stack]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[Introduction]]>
</category>
<category>
<![CDATA[linux]]>
</category>
<category>
<![CDATA[Marakana]]>
</category>
<category>
<![CDATA[presentation]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2226</guid>
<description>
<![CDATA[Here&#8217;s an interesting powerpoint presentation series I&#8217;ve been watching lately that thoroughly covers Android from the bottom up. Ranging from 30 min presentations to 90 min sessions, these presentations are...]]>
</description>
<content:encoded>
<![CDATA[<p>Here&#8217;s an interesting powerpoint presentation series I&#8217;ve been watching lately that <em><strong>thoroughly</strong></em> covers Android from the bottom up.  Ranging from 30 min presentations to 90 min sessions, these presentations are no short task, but the information within is invaluable for a real Android guy (read hardcore developers).  Find embedded copies below:</p>
<h2><strong>Android Builders Summit &#8211; A Walk Through The Android Stack</strong></h2>
<p>Learn about the stack that powers Android devices from the linux kernel core on up</p>
<p><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/ygP3_1Lzrj4?fs=1&#038;hl=en_US&#038;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ygP3_1Lzrj4?fs=1&#038;hl=en_US&#038;hd=1" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h2><strong>Android Builders Summit &#8211; Beyond the Phone</strong></h2>
<p>Here we see some alternative uses of Android in corporations outside of just for phones</p>
<p><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/vBY6SW0Txsc?fs=1&#038;hl=en_US&#038;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vBY6SW0Txsc?fs=1&#038;hl=en_US&#038;hd=1" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h2><strong>Tutorial: Android Application Development &#8211; A 9,000 foot overview </strong></h2>
<p>70 minute introduction to Android devices</p>
<p><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/Mf7z_mrce00?fs=1&#038;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Mf7z_mrce00?fs=1&#038;hl=en_US" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>For more helpful tutorials by the same guys, check out the <a href="http://marakana.com/techtv/index.html">Marakana TechTV</a> website.</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/04/android-builders-summit-presentations/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Powerpoint: Android UI Design Tips</title>
<link>http://droidweb.com/2011/04/powerpoint-android-ui-design-tips/</link>
<comments>http://droidweb.com/2011/04/powerpoint-android-ui-design-tips/#comments</comments>
<pubDate>Mon, 25 Apr 2011 11:30:19 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2199</guid>
<description>
<![CDATA[Here&#8217;s a presentation I found floating through my twitter stream recently. As a developer, it has some useful information you should think about before designing your next application. Android UI...]]>
</description>
<content:encoded>
<![CDATA[<p>Here&#8217;s a presentation I found floating through my twitter stream recently.  As a developer, it has some useful information you should think about before designing your next application.</p>
<div align="center">
<div style="width:425px" id="__ss_4827211"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/AndroidDev/android-ui-design-tips" title="Android UI Design Tips">Android UI Design Tips</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/4827211" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/AndroidDev">Android Developers</a> </div>
</p></div>
</div>
<p>Have any design tips? Design questions? We&#8217;d love to hear them; just fire us a comment below, or drop us a message via twitter <a href="http://twitter.com/droidweb">@droidweb</a></p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/04/powerpoint-android-ui-design-tips/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Dealing with JSON in Android</title>
<link>http://droidweb.com/2011/04/dealing-with-json-in-android/</link>
<comments>http://droidweb.com/2011/04/dealing-with-json-in-android/#comments</comments>
<pubDate>Mon, 18 Apr 2011 08:22:02 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[News]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[application development]]>
</category>
<category>
<![CDATA[data]]>
</category>
<category>
<![CDATA[JSON]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2179</guid>
<description>
<![CDATA[Much like their web-based kin, mobile applications rely on data to make them work. Most applications require calls to an api or other data source, to make themselves useful. Whether...]]>
</description>
<content:encoded>
<![CDATA[<p>Much like their web-based kin, mobile applications rely on data to make them work.  Most applications require calls to an api or other data source, to make themselves useful.  Whether it be a call to an RSS feed in your favorite news application, a call to a private API to make your favorite online service app work, or just a database connection to run your favorite MMO game, data is crucial to the mobile application.  </p>
<p>When you deal with data pulled from an online source, it usually comes in one of two formats, either XML or JSON.  Today we&#8217;re going to look at how to deal with JSON, and I&#8217;m going to introduce you to some tools I use to make the process as painless as possible.</p>
<p><a href="http://droidweb.com/wp-content/uploads/2011/04/json.jpg"><img src="http://droidweb.com/wp-content/uploads/2011/04/json.jpg" alt="" title="json" width="420" height="289" class="aligncenter size-full wp-image-2181" /></a></p>
<p>Firstly, what is <a href="http://www.json.org/">JSON</a>?  JSON stands for JavaScript Object Notation.  It is a &#8220;lightweight data-interchange format&#8221; used transfer data between servers and client applications.  JSON is touted as being XML&#8217;s low-fat brother, as it doesn&#8217;t use the sometimes bloated tag structure that XML does.  Instead, data is organized into objects and arrays.  Objects may contain arrays and vice-versa.  Quite simply put, objects are unordered name: value pairs where the name and value are separated by a colon and the pair is separated by a comma.  Arrays are denoted by brackets &#8220;[]&#8220;.  For a complete explanation of JSON, including examples, check out either the <a href="http://en.wikipedia.org/wiki/Json">wikipedia entry</a> or the <a href="http://www.json.org/">JSON.org website</a></p>
<p>Now that we know what JSON is, how do we use it?  There are many ways to process JSON, including via third party libraries.  However I prefer to keep things simple and handle the data using the built in java library code.  Generally I make a call to a URL which returns the JSON string via an ASYNCTask (gotta keep that URL processing out of the main UI thread). I then create a JSONObject from that string and parse on the fly using a combination of .getJSONArray(), .getJSONObject(); and custom getObject() methods available through the default org.JSON.* libraries.  </p>
<p>While writing the code for processing JSON on the fly, I find a few tools out there helpful:</p>
<p><a href="http://www.jsonlint.com/">JSON Lint</a> (http://www.jsonlint.com/)</p>
<p><a href="http://droidweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-18-at-4.11.57-AM.png"><img src="http://droidweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-18-at-4.11.57-AM-300x152.png" alt="" title="Screen shot 2011-04-18 at 4.11.57 AM" width="300" height="152" class="aligncenter size-medium wp-image-2185" /></a></p>
<p>This tool simply validates a given JSON string.  If I&#8217;m dealing with a small snippet of JSON that I have to process, I&#8217;ll drop it into the given window, which will neatly validate and format the code.  Reading unformatted JSON outputs is a pain; don&#8217;t do it.  Use a tool such as this to clean it up, so you can see what&#8217;s going on.</p>
<p><a href="http://jsoneditor.net/">Json Editor</a> (http://jsoneditor.net/)</p>
<p><a href="http://droidweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-18-at-4.13.28-AM.png"><img src="http://droidweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-18-at-4.13.28-AM-300x189.png" alt="" title="Screen shot 2011-04-18 at 4.13.28 AM" width="300" height="189" class="aligncenter size-medium wp-image-2184" /></a></p>
<p>When the JSON gets a little more complicated, pull out this tool.  JSON editor lets you see the data in a tree format, which is useful when writing code to parse the JSON output on the fly.  In addition, its a Json Editor, meaning that, if necessary, you can write up your own edits to the JSON and get that back as a revised JSON file.</p>
<p>Developers, what are you favorite tools for dealing with JSON? Do you use IDE plugins? Online site? Emacs?  Let us know in the comments below or via twitter @droidweb</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/04/dealing-with-json-in-android/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Implement a SwipeView in Android</title>
<link>http://droidweb.com/2011/03/implement-a-swipeview-in-android/</link>
<comments>http://droidweb.com/2011/03/implement-a-swipeview-in-android/#comments</comments>
<pubDate>Mon, 28 Mar 2011 13:59:23 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[News]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[design]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[Jason Fry]]>
</category>
<category>
<![CDATA[SwipeView]]>
</category>
<category>
<![CDATA[UI]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2137</guid>
<description>
<![CDATA[Android development is partially about having a set of tools in your UI toolbox that you bring out when appropriate in the design and implementation phases of the project.  I&#8217;m...]]>
</description>
<content:encoded>
<![CDATA[<p>Android development is partially about having a set of tools in your UI toolbox that you bring out when appropriate in the design and implementation phases of the project.  I&#8217;m about to add an invaluable tool to your toolbox.  Meet the SwipeView.</p>
<h2>What is a &#8220;SwipeView&#8221;?</h2>
<p>A SwipeView is an Android UI view similar to the homescreens.  You have several similar panes of content that you access by swiping left and right.  As you swipe left and right, transitions between the views are animated so that the view in focus follows your finger.  See the handy illustration below (Click to enlarge):</p>
<p style="text-align: center;"><a href="http://droidweb.com/wp-content/uploads/2011/03/SwipeView.png"><img class="aligncenter size-full wp-image-2138" title="SwipeView" src="http://droidweb.com/wp-content/uploads/2011/03/SwipeView.png" alt="" width="400" height="125" /></a></p>
<p style="text-align: center;">&nbsp;</p>
<h2 style="text-align: left;">When Should I use a &#8220;SwipeView&#8221;?</h2>
<p style="text-align: left;">SwipeViews are useful if you&#8217;re going to have several screens with the same layout and function that you want the user to switch between.  If you&#8217;ve ever used the <a href="https://market.android.com/details?id=com.epicurious">Epicurious</a> app they make good use of a SwipeView-esque implementation when searching for recipes.  Think of SwipeViews as something like a Gallery implementation for Views instead of just images.</p>
<h2 style="text-align: left;">How Do I implement a &#8220;SwipeView&#8221;?</h2>
<p>Here&#8217;s the fun part.  Now that you know you want a SwipeView in your Android application how do you implement it.  As you probably know its not a standard Android View.  As such we&#8217;re going to make use of a third party library.  <a href="http://jasonfry.co.uk/">Jason Fry </a> has put together a nice library for the simple implementation of SwipeViews.  Head on over to his site and <a href="http://jasonfry.co.uk/?id=23">blog post</a> for more details about how to implement your very own SwipeView.  Since each SwipeView implementation is going to be widely different, I&#8217;m just going to summarize the steps to implement his library below:</p>
<ul>
<li>Add SwipeView element (&lt;uk.co.jasonfry.android.tools.ui.SwipeView&#8230;) to the desired XML layout as you would any Android View.</li>
<li>Reference SwipeView in java code via findViewById() as usual</li>
<li>Populate SwipeView with number of views that you&#8217;d like to be able to swipe between</li>
<li>Implement method <em>private class<strong> SwipeImageLoader </strong>implements<strong> OnPageChangedListener </strong>{public void onPageChanged(int oldPage, int newPage) {}}. </em>Look at the library&#8217;s documentation and examples for more details on how to do this.  Essentially this method will handle dynamically allocating and populating views as your user swipes back and forth.</li>
</ul>
<p>I would include an example of implementation here, but my implementation was quite unorthodox and borrowed ideas from how to implement ListViews and other portions of my Android experience. Needless to say its a bit more involved than what should be expected from an introduction to an UI pattern.  If you&#8217;d like help implementing your own SwipeView, feel free to drop a line in the comments below or give us a shoutout via twitter <a href="http://twitter.com/droidweb">@droidweb</a>.</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/03/implement-a-swipeview-in-android/feed/</wfw:commentRss>
<slash:comments>6</slash:comments>
</item>
<item>
<title>Introduction to Android Application Development Part 4: Navigating the Eclipse IDE</title>
<link>http://droidweb.com/2010/06/introduction-to-android-application-development-part-4-navigating-the-eclipse-ide/</link>
<comments>http://droidweb.com/2010/06/introduction-to-android-application-development-part-4-navigating-the-eclipse-ide/#comments</comments>
<pubDate>Fri, 11 Jun 2010 03:32:46 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/2010/06/introduction-to-android-application-development-part-4-navigating-the-eclipse-ide/</guid>
<description>
<![CDATA[Ok, now that you&#8217;ve go the SDK installed, its time to get familiar with the Eclipse IDE.  To help you with that I&#8217;ve prepared a short video in which I...]]>
</description>
<content:encoded>
<![CDATA[<p>Ok, now that you&#8217;ve go the SDK installed, its time to get familiar with the Eclipse IDE.  To help you with that I&#8217;ve prepared a short video in which I go through the eclipse IDE, point out a few things, and click a few others.<br />
</p>
<div align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/yx4KBTf5Q0M&amp;hl=en_US&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/yx4KBTf5Q0M&amp;hl=en_US&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p>In the next post, we&#8217;ll create our application!</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2010/06/introduction-to-android-application-development-part-4-navigating-the-eclipse-ide/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Introduction to Android Application Development Part 3: Installing Android 2.0 SDK on a Mac</title>
<link>http://droidweb.com/2010/06/installing-android-2-0-sdk-on-a-mac/</link>
<comments>http://droidweb.com/2010/06/installing-android-2-0-sdk-on-a-mac/#comments</comments>
<pubDate>Thu, 10 Jun 2010 19:27:27 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/?p=1132</guid>
<description>
<![CDATA[Here&#8217;s a repost of an earlier blog post for everyone at the Humanities Gaming Institute. Lately I&#8217;ve updated to Android 2.0 SDK.  In the process I noticed that things were...]]>
</description>
<content:encoded>
<![CDATA[<p><em>Here&#8217;s a repost of an earlier blog post for everyone at the <a href="http://humanitiesgaming.sc.edu/">Humanities Gaming Institute</a>.</em></p>
<p>Lately I&#8217;ve updated to Android 2.0 SDK.  In the process I noticed that things were slightly different.  Following my motto of &#8220;Scratching my head so you don&#8217;t have to,&#8221; I&#8217;ve decided to document the new process of installing the SDK from scratch.  (And I mean from scratch&#8230; I just freshly installed Mac OSX yesterday.)</p>
<p>System Details:<br />
Here are some details on my system so you know what environment I&#8217;m working in:</p>
<div><a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-1.png"><img class="aligncenter size-full wp-image-1133" title="Picture 1" src="http://droidweb.com/wp-content/uploads/2009/11/Picture-1.png" alt="Picture 1" width="311" height="382" /></a></div>
<p>Essentially I&#8217;m running a white MacBook about a year and a half old&#8230; Theoretically this install should work with any Mac.</p>
<p><span style="color: #000000;"><strong>Step 1: Get Eclipse</strong></span><br />
<em>If you already have eclipse feel free to skip this step, but I was serious about documenting the process from scratch&#8230;</em></p>
<div>
<div>Download the version of Eclipse for your purposes at <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>.  I download the Eclipse IDE for Java Developers because I mostly use Eclipse for Android development.  Under this header I choose the <a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-java-galileo-SR1-macosx-cocoa.tar.gz">Mac Cocoa 32 bit download</a>, as the Carbon download is soon to be deprecated.</div>
<p><a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-2.png"><img class="aligncenter size-medium wp-image-1134" title="Picture 2" src="http://www.blog.droidweb.com/wp-content/uploads/2009/11/Picture-2-300x168.png" alt="Picture 2" width="300" height="168" /></a></p>
<div>Unzip the downloded tar.gz file somewhere convenient.  I just unzipped it to my &#8216;Documents&#8217; folder.  Inside this folder there is an eclipse executable with the familiar eclipse logo.  (I just add eclipse to my dock items afterwards so I don&#8217;t have to hunt for it again.</div>
<div style="text-align: center;"><a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-3.png"><img class="aligncenter size-medium wp-image-1135" title="Picture 3" src="http://www.blog.droidweb.com/wp-content/uploads/2009/11/Picture-3-300x181.png" alt="Picture 3" width="300" height="181" /></a></div>
<div>
<div>
<div><strong>Step 2: Download the Android SDK</strong></p>
<p>Grab the <a href="http://developer.android.com/sdk/index.html">Android SDK</a> from the Android website.  Choose the proper SDK for your environment (which would be Mac OSX) and download.  Unzip this to an appropriate place as well.  Again I just dump it to my documents folder.<br />
<strong><br />
Step 3: (Optional but highly recommended) Add /tools to you $PATH variable<br />
</strong><br />
Now to make your life easier if you ever plan on doing anything remotely involved with android, add the /tools directory within the SDK folder to your $PATH variable.  This allows you to easily invoke the tools found in the folder, such as adb quickly from a terminal window.<br />
To edit your path variable:</p>
<ol>
<li>Open a terminal window</li>
<li>Edit your .bash_profile file (its ok if this doesn&#8217;t exist yet.  I just edit by <em>nano .bash_profile<br />
)</em></li>
<li>Add <code>export PATH=${PATH}:<em>&lt;your_sdk_dir&gt;</em>/tools </code>to the open file.  I usually make sure i get this right by popping open another terminal window and cd-ing until I&#8217;m in the <em>/tools</em> directory, typing <em>pwd</em> and copying and pasting the results.  My <em>.bash_profile </em>file now reads: <strong><em>export PATH=${PATH}:/Users/myusername/Documents/android-sdk-mac/tools</em></strong></li>
<li>Save and close.  To do this with nano use &lt;ctrl&gt;+&lt;x&gt; , &lt;y&gt;, &lt;enter&gt;</li>
<li>To test whether your $PATH variable has changed, close all terminal windows, open a new one and type in <strong>$PATH</strong>.  Something like <strong>-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/<em>usernamehere</em>/Documents/android-sdk-mac/tools: No such file or directory </strong>should appear.</li>
</ol>
<p><strong>Step 4: Install the Eclipse Plugin </strong><br />
Now we have to install the Eclipse plugin for Android development</p>
<ol>
<li>Open Eclipse</li>
<li>Goto <strong>Help</strong> &gt; I<strong>nstall New Software</strong></li>
<li>Click <strong>Add</strong></li>
<li>In the resulting popup box type Android ADT Plugin (or something similar) into the name field</li>
<li>Type https://dl-ssl.google.com/android/eclipse/ into the Location field</li>
<li>Press <strong>OK</strong></li>
<li style="text-align: left;">Check the box next to &#8216;Developer Tools&#8217;<a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-4.png"><img class="aligncenter size-medium wp-image-1136" title="Picture 4" src="http://www.blog.droidweb.com/wp-content/uploads/2009/11/Picture-4-300x242.png" alt="Picture 4" width="300" height="242" /></a></li>
<li>Click Next.</li>
<li>Accept the liscense agreememts</li>
<li>Click <strong>Finish</strong></li>
</ol>
<p>At this point, the plugin should install.  After installation Eclipse will prompt you to restart it.</p>
<p><strong>Step 5: Adding SDK Components</strong><br />
Here&#8217;s where things are different.  Instead of installing the SDK for a given version of Android, we now install SDK Components for that version of Android.  This allows us to test against many different versions of Android easily and make sure that that prized application we&#8217;ve worked on for the past several months works on Android 1.5, 1.6, 2.0, and over 9,000</p>
<ol>
<li>Open the preferences pane.  This can be done easily by the keyboard shortcut &lt;cmnd&gt; + &lt;,&gt;.</li>
<li>Click <strong>Android </strong>on the left pane as shown below
<div><a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-5.png"><img class="aligncenter size-medium wp-image-1137" title="Picture 5" src="http://www.blog.droidweb.com/wp-content/uploads/2009/11/Picture-5-300x253.png" alt="Picture 5" width="300" height="253" /></a></div>
</li>
<li>In the field <strong>SDK Location</strong> fill in the directory where you unzipped the SDK</li>
<li>Click <strong>Apply </strong>then <strong>Ok</strong></li>
<li>
<div>Go to <strong>Window &gt; Android SDK and</strong><strong> AVD Manager</strong><br />
<a href="http://droidweb.com/wp-content/uploads/2009/11/Picture-6.png"><img class="aligncenter size-medium wp-image-1138" title="Picture 6" src="http://www.blog.droidweb.com/wp-content/uploads/2009/11/Picture-6-300x175.png" alt="Picture 6" width="300" height="175" /></a></div>
</li>
<li>Goto <strong>Available Packages</strong>, check the box next to the website listed, and check the components you want to install.  Click <strong>Install Selected. </strong>Accept all and <strong>Install. </strong>This will be how you install new Android versions.</li>
</ol>
<p>Now you should be ready to go and start developing Android applications!  If you have any trouble following anything listed above, leave a comment and I&#8217;ll help remedy the situation.</p></div>
</div>
</div>
</div>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2010/06/installing-android-2-0-sdk-on-a-mac/feed/</wfw:commentRss>
<slash:comments>22</slash:comments>
</item>
<item>
<title>Introduction to Android Application Development Part 2: Homescreen Layout Design</title>
<link>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-homescreen/</link>
<comments>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-homescreen/#comments</comments>
<pubDate>Thu, 10 Jun 2010 19:19:52 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[tutorial]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/2010/06/intro-app-development-tutorial-part-1-homescreen/</guid>
<description>
<![CDATA[Now that we&#8217;ve got some planning underway, let&#8217;s get to work.  The first piece is the homescreen of the app.  Let&#8217;s take a look at that mock-up we drew earlier:...]]>
</description>
<content:encoded>
<![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://droidweb.com/wp-content/uploads/2010/06/TutorialBackground1.png" alt="" width="320" height="243" /></p>
<p>Now that we&#8217;ve got some planning underway, let&#8217;s get to work.  The first piece is the homescreen of the app.  Let&#8217;s take a look at that mock-up we drew earlier:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://droidweb.com/wp-content/uploads/2010/06/Homescreen1.png" alt="" width="120" height="180" /></p>
<p>Before we do any work on making that app happen, let&#8217;s have a quick crash course in Android layout development.  Android layouts can be designed in either of two ways: it can be declared though XML, or it can be created programmatically through Java statements.  We will look at both of those later on, though more focus will be given to XML layouts.  This is because XML layouts are how you&#8217;re going to be designing most, if not all, of your layouts.  Java programmatic layout design is used as a secondary means of doing custom / dynamic layouts.</p>
<p>XML layouts are done hierarchically and are composed of <em>views</em>.  A view is a prepackaged module that you can use easily in your applications. (For a quick intro to Android layouts, check out this link: <a href="http://developer.android.com/guide/tutorials/views/index.html">Google Developer&#8217;s Hello, Views Blog Entry</a>.)</p>
<p>Let&#8217;s look back at our planned layout and break it down into its component views:</p>
<div><img src="http://droidweb.com/wp-content/uploads/2010/06/linearLayout.png" alt="" width="150" height="225" /><img src="http://droidweb.com/wp-content/uploads/2010/06/ImageView.png" alt="" width="150" height="225" /><img src="http://droidweb.com/wp-content/uploads/2010/06/Buttons.png" alt="" width="150" height="225" /></div>
<p>Remember how I said that the views are hierarchical?  Well, here&#8217;s the hierarchy of the homescreen:</p>
<ol>
<li>LinearLayout</li>
</ol>
<ul>
<li>ImageView</li>
<li>Button</li>
<li>Button</li>
<li>Button</li>
</ul>
<p>This is a simple layout; more complicated layouts have more levels of hierarchy.</p>
<p style="text-align: center;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Now that we understand the hierarchy, how do we put this into a project?  Let&#8217;s move to the next tutorial: setting up a project and putting some code in it.</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-homescreen/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Introduction to Android Application Development Part 1: Planning</title>
<link>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-planning/</link>
<comments>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-planning/#comments</comments>
<pubDate>Thu, 10 Jun 2010 16:36:52 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[#hgi]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[Droidweb]]>
</category>
<category>
<![CDATA[tutorial]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/2010/06/intro-app-development-tutorial-part-1-planning/</guid>
<description>
<![CDATA[development, android, planning, tutorial, HGI Many people ask me how to get started in Android application development. As a result, I&#8217;ve always wanted to write a tutorial for Android beginners to help them accomplish that. ...]]>
</description>
<content:encoded>
<![CDATA[<p><!-- #BeginTags --></p>
<p class="tags"><a rel="tag" href="http://www.technorati.com/tag/development">development</a>, <a rel="tag" href="http://www.technorati.com/tag/android">android</a>, <a rel="tag" href="http://www.technorati.com/tag/planning">planning</a>, <a rel="tag" href="http://www.technorati.com/tag/tutorial">tutorial</a>, <a rel="tag" href="http://www.technorati.com/tag/HGI">HGI</a></p>
<p><!-- #EndTags --></p>
<p style="text-align: center;"><img class="aligncenter" src="http://droidweb.com/wp-content/uploads/2010/06/TutorialBackground.png" alt="Application Tutorial page 1" width="320" height="243" /></p>
<p>Many people ask me how to get started in Android application development. As a result, I&#8217;ve always wanted to write a tutorial for Android beginners to help them accomplish that.  Such an undertaking is easier said than done, but here it goes.</p>
<p>For this tutorial, I&#8217;m mixing media types.  I go over some of the important stuff through video; I recount most of the process through text such as this, and there will be pictures galore. If I missed anything, feel free to comment and I&#8217;ll add to this tutorial.  Let&#8217;s get started, shall we?</p>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/pjf5K57yVa0&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/pjf5K57yVa0&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p>Okay &#8211; now that you&#8217;ve watched that video, let me flesh out some of the ideas presented therein.</p>
<ul>
<li><strong>Planning is important:</strong> That&#8217;s the first thing we&#8217;re going to do. I drew a rough mock-up of what the application is going to be / do in the second half of that video.  I&#8217;ll expand upon it and make it neater below through making some application mock-ups in an image editor.</li>
<li>In this tutorial I&#8217;m going to focus on the <strong>points of Android development</strong>, not developing this app per se.  Of course we will develop this app to completion, but I will be highlighting the components that you&#8217;ll likely see throughout creating your own development.</li>
</ul>
<h3>Mock-ups</h3>
<p><img class="alignleft" style="margin-left: 25px; margin-right: 25px;" src="http://droidweb.com/wp-content/uploads/2010/06/Homescreen.png" border="25" alt="" hspace="25" width="120" height="180" align="left" /> This is the <em>homescreen</em> for our app.  In the coming tutorials, I will show you how to write this homescreen, some of the design thinking behind said homescreen, and more.  This is where you will learn basic Android UI.</p>
<div>
<p><span> </span></p>
</div>
<p><img class="alignleft" style="margin-left: 25px; margin-right: 25px;" src="http://droidweb.com/wp-content/uploads/2010/06/wishlist.png" border="25" alt="" hspace="25" width="120" height="180" align="left" /> This screen will be your <em>wishlist</em> screen.  The same template will be used for the My Library screen.  It will consist of a custom ListView which will be populated with data we pull from both databases and APIs.</p>
<div>
<p><span> </span></p>
</div>
<p>Being the tease that I am, I&#8217;m going to hold my ideas for the search screen back for now.  Come up with a design for it yourself.  Feel free to send it in to me by emailing triplemwebdesigns@gmail.com.  If it&#8217;s good enough, I might choose it and design it in an upcoming tutorial.  Until next time: <em>Happy developing!</em></p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2010/06/intro-app-development-tutorial-part-1-planning/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
</channel>
</rss>
<!-- Served from: blog.droidweb.com @ 2012-02-09 03:54:54 by W3 Total Cache -->
