<?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; developer tips</title>
<atom:link href="http://droidweb.com/tag/developer-tips/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>ActionBarSherlock Compatibility Library upgraded to v. 3.5.0</title>
<link>http://droidweb.com/2011/12/actionbarsherlock-compatibility-library-upgraded-to-v-3-5-0/</link>
<comments>http://droidweb.com/2011/12/actionbarsherlock-compatibility-library-upgraded-to-v-3-5-0/#comments</comments>
<pubDate>Wed, 21 Dec 2011 14:05:34 +0000</pubDate>
<dc:creator>triplem</dc:creator>
<category>
<![CDATA[News]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[ABS]]>
</category>
<category>
<![CDATA[action bar sherlock]]>
</category>
<category>
<![CDATA[android]]>
</category>
<category>
<![CDATA[developer tips]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[library]]>
</category>
<category>
<![CDATA[plugin]]>
</category>
<guid isPermaLink="false">http://droidweb.com/?p=2363</guid>
<description>
<![CDATA[Developers rejoice! One of my favorite Android libraries to date has recently been upgraded to becoming evenmore awesome than before. Jake Wharton&#8217;s ActionBarSherlock library has been updated! ActionBarSherlock is an...]]>
</description>
<content:encoded>
<![CDATA[<p><img class="alignright" src="http://actionbarsherlock.com/static/mascot.png" alt="" width="132" height="150" /></p>
<p>Developers rejoice! One of my favorite Android libraries to date has recently been upgraded to becoming evenmore awesome than before. <a href="https://plus.google.com/108284392618554783657">Jake Wharton&#8217;s</a> ActionBarSherlock library has been updated!</p>
<p>ActionBarSherlock is an extension of the <a href="http://developer.android.com/sdk/compatibility-library.html">compatibility library</a> designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.  It allows the easy addition of the a<a href="http://www.androidpatterns.com/uap_pattern/action-bar">ction bar Android UI paradigm</a> to applications without having to worry about compatibility with older versions of Android.  I am a strong supporter of this paradigm and try to use it whenever possible!</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-2367" title="actionbar_sherlock" src="http://droidweb.com/wp-content/uploads/2011/12/actionbar_sherlock-300x135.png" alt="" width="500" height="217" /></p>
<p>&nbsp;</p>
<p>From his Google Plus:</p>
<blockquote><p>Major updates in this version:</p>
<ul>
<li>Completely redone menu and action item support. This has been backported from the progress made on ABS 4.0 and provides a much more stable and logical layout of action items and management of the menu.</li>
<li>The compatibility library base has been updated to r6. I have also re-added the *Compat classes that were duplicated by this library and marked them as deprecated.</li>
</ul>
<p>Download the new version from <a href="http://abs.io/">http://abs.io/</a>. The samples on GitHub and the Android Market will be rolling out this evening as well.</p></blockquote>
<p>Updating your projects making use of the old library is ridiculously easy.  Just download the new library and any desired .jar files, add the library as a project to your eclipse setup, and replace the references in your project to the old libraries with references to the new libraries.</p>
<p>Do you have any experiences using the ActionBarSherlock Library?  Would you like to see a guide for how to get up and running on ActionBarSherlock?  Drop us a comment below or tweet us <a href="http://twitter.com/droidweb">@droidweb</a>!</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2011/12/actionbarsherlock-compatibility-library-upgraded-to-v-3-5-0/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Starting Android Development Part 2: Project Structure</title>
<link>http://droidweb.com/2010/01/starting-android-development-part-2-project/</link>
<comments>http://droidweb.com/2010/01/starting-android-development-part-2-project/#comments</comments>
<pubDate>Sat, 02 Jan 2010 13:30:00 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[Andriod]]>
</category>
<category>
<![CDATA[Android Developer Center]]>
</category>
<category>
<![CDATA[developer tips]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[eclipse]]>
</category>
<category>
<![CDATA[SDK]]>
</category>
<category>
<![CDATA[starting]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/?p=1242</guid>
<description>
<![CDATA[In Part One of Starting Android Development, we discussed setting up your project in Eclipse.  Now it&#8217;s time to explain exactly what’s going on and how Android development works.  This...]]>
</description>
<content:encoded>
<![CDATA[<p><img style="display: block; float: none; margin-left: auto; margin-right: auto;" title="ADC_logo" src="http://www.blog.droidweb.com/wp-content/uploads/2009/12/ADC_logo1-300x253.png" alt="" width="300" height="253" /></p>
<p>In <a href="http://www.blog.droidweb.com/?p=1217">Part One</a> of <em>Starting Android Development</em>, we discussed setting up your project in Eclipse.  Now it&#8217;s time to explain exactly what’s going on and how Android development works.  This information will help you keep things in perspective as you program, and it will help you when it comes to debugging time.</p>
<p>Let&#8217;s take a look at the Eclipse screen after you’ve set up a given project:</p>
<p style="text-align: center;"><a href="http://droidweb.com/wp-content/uploads/2009/12/Picture6.png"><img class="aligncenter" style="display: inline; border: 0px;" title="Picture 6" src="http://droidweb.com/wp-content/uploads/2009/12/Picture6_thumb.png" border="0" alt="Picture 6" width="436" height="309" /></a></p>
<p>For the purposes of this explanation, let&#8217;s look at the directories in the left pane of the Eclipse screen.  Under the name of the project you&#8217;ve just created, you should see several subfolders.  Let&#8217;s explain what they do:</p>
<ul>
<li><strong>src</strong>: This holds the source code for your project.
<ul>
<li><strong>com.droidweb.conversion</strong>: This is the package holding your source code.  Several packages can make up a single project.  This is especially true when you include others&#8217; packages to provide some type of functionality for your program.  For example, in a conversion application I wrote (ConvertAll+), I imported a package to handle different currencies.
<ul>
<li><strong>convert.java</strong>: Inside the package are individual .java files.  This is where the goodies (the source code itself) are.</li>
</ul>
</li>
</ul>
</li>
<li><strong>gen</strong>: This is a folder for automatically generated stuff Android uses to help your program operate properly.  There’s nothing in here that you need to mess with.  It will automatically update itself as necessary.  Sometimes when you import projects and they return errors, the solution is to delete this folder and let Eclipse regenerate it for you . . . but more about that later.
<ul>
<li><strong>com.droidweb.conversion</strong>: This is the package holding automatically generated code corresponding to the package of the same name in the /src/ folder.
<ul>
<li><strong>R.java</strong>: R.java is an automatically created and maintained file that keeps up with the resources your project utilizes.  In a lot of your Android programming, you’re going to use static variables that really translate into numerical (usual hex) values.  R.java makes the translation between these variables and their numerical values.</li>
</ul>
</li>
</ul>
</li>
<li><strong>Android 1.5</strong> (or appropriate Android source version): This contains the actual Android source code on top of which you’re going to build your applications.  As such, I’m not really going to discuss this much.</li>
<li><strong>assets</strong>:  Why, this is what you set your &#8212; oh wait &#8212; wrong thing. . . . Usually you won&#8217;t mess with this folder, but if you have raw files to be read by your application, then they <em>can</em> be put here; but it&#8217;s probably better that it goes in the /res/raw folder.  More about that later.</li>
<li><strong>res</strong>: res stands for resources.  Here is where you put your resources (images, files, etc).
<ul>
<li><strong>drawable</strong>: This is where the images you’re going to use go.  Android supports a variety of image files, including .jpg, .gif (static), png, etc.</li>
<li><strong>layout</strong>: This is where the .xml files describing your program layouts go.  I’ll spend a post on those later.</li>
<li><strong>values</strong>: This is where .xml files defining values can be stored.  An example is a network topography program I worked on.  In the custom view drawing routine, I predefined the colors of good / bad links in a .xml file in the /srv/values folder.</li>
</ul>
</li>
<li><strong>AndroidManifest.xml</strong>: This is the file that will be the source of the most headaches for you (well, starting out it will be . . .).  This is where your project is described in a form that Android devices can understand.  Application permissions, activity descriptions, and more are found here.  This file itself will be the topic of a future post onto itself &#8212; yes, it&#8217;s that important.</li>
</ul>
<p>Next time we&#8217;ll discuss program flow in a typical Android program.</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2010/01/starting-android-development-part-2-project/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Starting Android Development Part 1: Setting Up a Project in Eclipse</title>
<link>http://droidweb.com/2009/12/starting-android-development-part-1-setting-up-a-project-in-eclipse/</link>
<comments>http://droidweb.com/2009/12/starting-android-development-part-1-setting-up-a-project-in-eclipse/#comments</comments>
<pubDate>Thu, 31 Dec 2009 04:12:00 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[Android Development Corner]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[deevelopment]]>
</category>
<category>
<![CDATA[developer tips]]>
</category>
<category>
<![CDATA[eclipse]]>
</category>
<category>
<![CDATA[project management]]>
</category>
<category>
<![CDATA[SDK]]>
</category>
<category>
<![CDATA[setting up]]>
</category>
<category>
<![CDATA[starting]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/?p=1217</guid>
<description>
<![CDATA[So, you’ve got an Android Device.  You’ve got the SDK set up.  Now what?  In the next few posts, I’m going to walk you though creating your very own Android...]]>
</description>
<content:encoded>
<![CDATA[<p><a href="http://droidweb.com/wp-content/uploads/2009/12/ADC_logo1.png"><img class="aligncenter size-medium wp-image-1228" title="ADC_logo" src="http://www.blog.droidweb.com/wp-content/uploads/2009/12/ADC_logo1-300x253.png" alt="" width="300" height="253" /></a></p>
<p>So, you’ve got an Android Device.  You’ve got the SDK set up.  Now what?  In the next few posts, I’m going to walk you though creating your very own Android application from scratch.</p>
<p>To do that, I’m going to assume the following:</p>
<ul>
<li>You have your Android SDK setup</li>
<li>You know a little something about programming in Java</li>
<li>You’re willing to leave comments if some of my instructions are unclear</li>
</ul>
<p>All right . . . ready to start?</p>
<p><strong><span style="font-size: medium;">Setting up a new project in Eclipse</span></strong><br />
<em>Each program you write for Android will be contained in its own ‘project’ from Eclipse’s point of view.  This makes sure that the code is stored properly in its own little folder.</em></p>
<ul>
<li>Select <strong>File</strong> <strong>&gt;</strong> <strong>New</strong> <strong>&gt;</strong> <strong>Project</strong></li>
<li>From the resulting wizard, chose <strong>Android &gt; Android Project</strong> (See picture below)</li>
</ul>
<p style="text-align: center;"><a href="http://droidweb.com/wp-content/uploads/2009/12/Picture3.png"><img class="aligncenter" style="border: 0pt none; display: block;" title="Picture 3" src="http://droidweb.com/wp-content/uploads/2009/12/Picture3_thumb.png" border="0" alt="Picture 3" width="394" height="257" /></a></p>
<ul>
<li>The next screen will allow you to set up most of the important values that Eclipse needs.  Here’s a quick explanation on what they mean:
<ul>
<li><strong>Project Name</strong>: This is the name that the project will have in your workspace.</li>
<li>The <strong>Contents</strong> box determines where the source files (your .java, .dex, and other files) are going to be stored.</li>
<li>The <strong>Build Target </strong>box allows you to select which version of Android you’re shooting for.  Since I’m using some old code for this project, I’m going to use Android 1.5 as the target &#8212; meaning that this program will theoretically run on all Android devices 1.5 and above .  As of right now, I build most of my projects to run on 1.5 / 1.6 and test for all versions of Android that are out there on devices (1.5 / 1.6 / 2.0).</li>
<li><strong>Application Name</strong>: Give your application name here.  This will be stored under a special variable that we’ll see later.</li>
<li><strong>Package Name</strong>: Java code is organized in packages.  Enter a package name here.  The package name will lend itself to the folder hierarchy in which source code is stored.  For example, a package name of com.droidweb.temperature means that the code will be stored in com/droidweb/temperature/.</li>
<li><strong>Create Activity</strong>: Android program flow is controlled by activities.  Check the box if you want a default activity to launch when your program opens (99 times out of 100 you do), then give it a name in the text box.  See the picture below if this is unclear.</li>
<li><strong>Min SDK Version</strong>: This will automatically fill in based on your Build Target chose.  This is the minimum SDK version code on which your program will run.  Each version of the Android SDK has a version number as outlined in the table below:</li>
</ul>
</li>
</ul>
<div>
<table border="0" cellspacing="0" cellpadding="2" width="300" align="center">
<tbody>
<tr>
<td width="150" valign="top">SDK Name</td>
<td width="150" valign="top">Version Number</td>
</tr>
<tr>
<td width="150" valign="top">1.0</td>
<td width="150" valign="top">2</td>
</tr>
<tr>
<td width="150" valign="top">1.5 (Cupcake)</td>
<td width="150" valign="top">3</td>
</tr>
<tr>
<td width="150" valign="top">1.6 (Donut)</td>
<td width="150" valign="top">4</td>
</tr>
<tr>
<td width="150" valign="top">2.0 (Éclair)</td>
<td width="150" valign="top">5</td>
</tr>
</tbody>
</table>
</div>
<p style="text-align: center;"><a href="http://droidweb.com/wp-content/uploads/2009/12/Picture4.png"><img class="aligncenter" style="display: inline; border: 0px;" title="Picture 4" src="http://droidweb.com/wp-content/uploads/2009/12/Picture4_thumb.png" border="0" alt="Picture 4" width="371" height="503" /></a></p>
<p>Click <strong>Finish</strong> once you’ve filled in all the appropriate information.  Stay tuned for our next post: I&#8217;ll begin to explain the structure of your Android project.</p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2009/12/starting-android-development-part-1-setting-up-a-project-in-eclipse/feed/</wfw:commentRss>
<slash:comments>3</slash:comments>
</item>
<item>
<title>Developer Tip #5: Sync Sample Address Book in Android Simulator</title>
<link>http://droidweb.com/2009/07/developer-tip-5-sync-sample-address-book-in-android-simulator/</link>
<comments>http://droidweb.com/2009/07/developer-tip-5-sync-sample-address-book-in-android-simulator/#comments</comments>
<pubDate>Mon, 27 Jul 2009 22:49:27 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[DroidTips]]>
</category>
<category>
<![CDATA[address book]]>
</category>
<category>
<![CDATA[contacts]]>
</category>
<category>
<![CDATA[developer tips]]>
</category>
<category>
<![CDATA[Emulator]]>
</category>
<category>
<![CDATA[Sync]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/?p=950</guid>
<description>
<![CDATA[Recently I’ve been working on an application that makes use of a user’s contact book.  While it is simple to download the application to my physical device and test it...]]>
</description>
<content:encoded>
<![CDATA[<p>Recently I’ve been working on an application that makes use of a user’s contact book.  While it is simple to download the application to my physical device and test it on my own phone book, this is not so convenient for others who don’t have a physical device to test on.  Also, it is a lot easier to test and test often on the emulator than to transfer the project to my ADP1 phone and then run it.  Think of it as the difference between testing something in a lab and testing it ‘in the field’.  While more useful, testing ‘in the field’ has a lot more overhead and should be reserved for more ‘functional’ updates to your code.</p>
<p>That being said, I’ve found a way to upload and sync a large contacts book to the Android emulator.  The crux of the process makes use of <a href="http://www.funambol.com/">Funambol</a>, who “provides open source MobileWeb push email and pim sync software for billions of phones,” and their sync application for Android.  To install and use this program perform the following steps [I suggest reading entire instruction set before starting]:</p>
<ul>
<li><strong>Download the Funambol sync .apk file to your phone.</strong>
<ul>
<li>Open an android emulator.</li>
<li>Open the included browser in the emulator</li>
<li>Navigate to <a href="https://android-client.forge.funambol.org/">https://android-client.forge.funambol.org/</a></li>
<li>Click on “<a href="https://android-client.forge.funambol.org/servlets/ProjectDocumentList">Documents &amp; Files</a>” under the Project Tools menu</li>
</ul>
</li>
</ul>
<p align="center"><a href="http://droidweb.com/wp-content/uploads/2009/07/funambol1.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="funambol1" src="http://droidweb.com/wp-content/uploads/2009/07/funambol1_thumb.png" border="0" alt="funambol1" width="226" height="337" /></a></p>
<ul>
<li>
<ul>
<li>On the resulting screen navigate through the file structure as follows:
<ul>
<li>Android Client (0,6) &gt; Contrib &gt; (0,1) &gt; a la Mobile</li>
</ul>
</li>
</ul>
</li>
</ul>
<p align="center"><a href="http://droidweb.com/wp-content/uploads/2009/07/funambol2.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="funambol2" src="http://droidweb.com/wp-content/uploads/2009/07/funambol2_thumb.png" border="0" alt="funambol2" width="226" height="337" /></a></p>
<ul>
<li>
<ul>
<li>
<div>Select <a href="https://android-client.forge.funambol.org/files/documents/99/244/SyncClientBinary.apk">alamobile-Funambolsync.apk</a> [&lt;—Or just click on this link via your emulator] and download</div>
</li>
</ul>
</li>
<li>
<div><strong>Install Funambol .apk file</strong></div>
<ul>
<li>
<div>Install as you would any .apk file</div>
</li>
</ul>
</li>
</ul>
<p align="left"><a href="http://droidweb.com/wp-content/uploads/2009/07/funambol3.png"><img style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" title="funambol3" src="http://droidweb.com/wp-content/uploads/2009/07/funambol3_thumb.png" border="0" alt="funambol3" width="226" height="337" /></a></p>
<ul>
<li>
<div><strong>Setup Funambol Sync</strong></div>
<ul>
<li>
<div>Run Sync from emulator</div>
</li>
</ul>
</li>
</ul>
<p align="center"><a href="http://droidweb.com/wp-content/uploads/2009/07/funambol5.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="funambol5" src="http://droidweb.com/wp-content/uploads/2009/07/funambol5_thumb.png" border="0" alt="funambol5" width="226" height="337" /></a></p>
<ul>
<li>
<ul>
<li>
<div>Go to Menu &gt; Settings</div>
</li>
</ul>
</li>
</ul>
<p align="center"><a href="http://droidweb.com/wp-content/uploads/2009/07/funambol4.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="funambol4" src="http://droidweb.com/wp-content/uploads/2009/07/funambol4_thumb.png" border="0" alt="funambol4" width="226" height="337" /></a></p>
<ul>
<li>
<ul>
<li>
<div>Enter credentials of <em>Username: <strong>guest </strong></em><span style="text-decoration: underline;">and</span> p<em>assword: <strong>guest</strong></em></div>
</li>
<li>
<div>Click ok and click twice on contacts menu item to sync with Funambol’s sample address book.  The syncing process will take a few minutes as it seeds your contact book with 300+ entries.</div>
</li>
</ul>
</li>
</ul>
<p align="left"><a href="http://droidweb.com/wp-content/uploads/2009/07/contactbook_sync.png"><img style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" title="contactbook_sync" src="http://droidweb.com/wp-content/uploads/2009/07/contactbook_sync_thumb.png" border="0" alt="contactbook_sync" width="226" height="337" /></a></p>
<ul>
<li>If your contacts don&#8217;t show up right away go to Contacts &gt; Menu &gt; Display Group &gt; All contacts.</li>
<li><strong>Have fun!</strong></li>
</ul>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2009/07/developer-tip-5-sync-sample-address-book-in-android-simulator/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>Developer Tip #4: Enabling SD Card on Emulator</title>
<link>http://droidweb.com/2009/07/developer-tip-4-enabling-sd-card-on-emulator/</link>
<comments>http://droidweb.com/2009/07/developer-tip-4-enabling-sd-card-on-emulator/#comments</comments>
<pubDate>Sun, 19 Jul 2009 16:17:18 +0000</pubDate>
<dc:creator>Maliek Mcknight</dc:creator>
<category>
<![CDATA[DroidTips]]>
</category>
<category>
<![CDATA[Programming]]>
</category>
<category>
<![CDATA[Android programming help]]>
</category>
<category>
<![CDATA[developer tips]]>
</category>
<category>
<![CDATA[development]]>
</category>
<category>
<![CDATA[Emulator]]>
</category>
<category>
<![CDATA[SD card]]>
</category>
<category>
<![CDATA[tips]]>
</category>
<guid isPermaLink="false">http://www.blog.droidweb.com/?p=899</guid>
<description>
<![CDATA[Here&#8217;s something that&#8217;s come up recent for me as a developer.  How do you emulate a SD card on a emulator.  Since the upgrade to SDK version 1.5, this has...]]>
</description>
<content:encoded>
<![CDATA[<p style="text-align: left; padding-left: 30px;">Here&#8217;s something that&#8217;s come up recent for me as a developer.  How do you emulate a SD card on a emulator.  Since the upgrade to SDK version 1.5, this has changed.  Here&#8217;s how its done now (With pictures for extra help <img src='http://droidweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<ol style="padding-left: 30px;">
<li>Find out where your AVDs (Android Virtual Devices) are located.
<ul>
<li>This can be done by using the command</li>
</ul>
<p style="text-align: center;"><code>android list avd</code></p>
<ul>
<li>The command android is found within the /tools directory of the SDK you&#8217;re using.  Set this directory as a global $PATH variable for simplicity as per <a href="http://developer.android.com/sdk/1.5_r3/upgrading.html">installation instructions here</a>.</li>
<li>This will return a list of AVDs and their location</li>
</ul>
</li>
</ol>
<ol style="padding-left: 30px;">
<li><a href="http://droidweb.com/wp-content/uploads/2009/07/Screenshot-1.png"><img class="aligncenter size-full wp-image-901" title="Screenshot-1" src="http://droidweb.com/wp-content/uploads/2009/07/Screenshot-1.png" alt="Screenshot-1" width="485" height="313" /></a>Now that you know where your emulator(s) are, navigate to the <em>avd_name.avd/</em> folder.</li>
<li>Create the SD Card emulator using the <a href="http://developer.android.com/guide/developing/tools/emulator.html#sdcard">mksdcard command</a></li>
</ol>
<ul style="text-align: center; padding-left: 30px;"><code>mksdcard 32M sdcard.img</code></ul>
<li>16M refers to the card size, and the image will have a name of sdcard.img</li>
<li>Next time you boot your emulator, there will automatically be a SD Card image.</li>
<p style="padding-left: 30px;">To add files to the SD Card, go to Eclipse and select the DDMS view.  From there select your emulator.  Click on the file browsing tab.  Here you can drag and drop things to the /sdcard/ folder.  Enjoy<br />
<a href="http://droidweb.com/wp-content/uploads/2009/07/Screenshot-2.png"><img class="aligncenter size-large wp-image-906" title="Screenshot-2" src="http://www.blog.droidweb.com/wp-content/uploads/2009/07/Screenshot-2-1024x640.png" alt="Screenshot-2" width="488" height="304" /></a></p>
]]>
</content:encoded>
<wfw:commentRss>http://droidweb.com/2009/07/developer-tip-4-enabling-sd-card-on-emulator/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
</channel>
</rss>
<!-- Served from: blog.droidweb.com @ 2012-02-09 03:13:18 by W3 Total Cache -->
